Tag Info

New answers tagged

-1

Hey guys I have tried the above solutions, and for a day it worked with out having to change the ID, but today I logged on and tried to enter software-center and I was getting the "NO KALI" error so I changed the ID to Debian and got this Traceback (most recent call last): File "/usr/sbin/update-software-center", line 38, in <module> from ...


0

Yes, monit either needs to run sudo, or to be running as the root user. Configuring monit as its own user with the correct permissions is also viable however it is probably the most involved of the potential solutions. Generally running sudo from scripts is not viable as it will prompt for a password. It is possible to stop sudo prompting for a password in ...


0

I found a solution. I use a python script which runs a simple QWebKit window. This is the code I'm currently using (maybe I find some further improvements). (uses some snippets from Stackexchange) #!/usr/bin/env python import sys from PyQt4 import QtGui, QtCore from PyQt4.QtCore import * from PyQt4.QtGui import * from PyQt4.QtWebKit import * class ...


1

"make modules_install install" tries to build initrd image on /boot partition, which has 162 megabytes free, which is simply not enough. If you want to compile kernel yourself on Ubuntu, you need to prepare at least 1GB free space on /boot partition.


0

The answer here (and provided links) suggest that lld was removed back in LLVM 3.2. It doesn't have a future. Use GNU ld or gold instead. http://stackoverflow.com/questions/17779958/llvm-ld-still-exist-for-clang-3-4 It should really be removed from the main LLVM page as #13 (http://llvm.org/), or put in some archive section or something.


1

You need to unload the nouveau driver before you can load the nvidia driver. However, the nouveau driver is currently in use by the X-server, so it cannot be unloaded yet. You have to stop the X-server first (but don't just re-start it, as then it will use the nouveau driver again). So in short: stop X-server: sudo service lightdm stop unload the nvidia ...


0

Commands like these may help man sshfs sshfs -h 2>&1 | more # or "less", if possible


2

People usually use a pager like less to read such a long output: sshfs -h | less On less type H to show help. Q to quit. Note that you might occasionally need 2>&1 to see also additional output from stderr. For sshfs -h it has such an output so you'd better do that like this: sshfs -h 2>&1 | less Besides using a pager, on Linux text ...


0

man logrotate This mechanism provides compress and delayedcomress for your purposes


1

It's devilspie2 now. (devilspie is not maintained now) Please follow this link to get the tool & related info. If you are on Ubuntu then click here For man page click here


1

Have you tried just restarting X? End session / logout and login again


0

I misunderstanded the /test/Makefile file. In the beggining there is a listing, but they are not the names of parameters what I need. BNTEST= bntest ECTEST= ectest ECDSATEST= ecdsatest ECDHTEST= ecdhtest EXPTEST= exptest IDEATEST= ideatest SHA1TEST= sha1test SHA256TEST= sha256t SHA512TEST= sha512t MDC2TEST= mdc2test RMDTEST= rmdtest ...


0

The two directories are provided by linux-headers-x.x.xx-xx and linux-headers-x.x.xx-xx-generic packages, which provide the header files for the kernel. linux-headers-x.x.xx-xx This directory comprises of header files for multiple architectures, including x86, amd64, powerpc and others, resulting in more number of files and larger size of package. ...


0

General notes: With the current user basis and the company support for Ubuntu, I would assume that this is currently one of the distros with the broadest hardware and software support. Ubuntu itself is Debian-based, but with Debian's focus on stability (for good reasons), Debian usually does not offer the latest software versions. So if you want to switch ...


0

This was a combined misconception. It originates from me confusing GB in fdisk, and GiB in gparted. The 256GB disk's representation in GiB is roughly equivalent to the ubuntu--vg-boot partition size (~238GB). I assumed that there was some type of hidden partition disk error because of the discrepancy in the capacities, but it was really just me misreading ...


1

Try umount -f /media/sdb1 or umount -l /media/sdb1. If all else fails you can manually edit /etc/mtab to remove the offending mount entry.


1

In your ispconfig.vhost file, see this block: <FilesMatch "\.ph(p3?|tml)$"> SetHandler None </FilesMatch> It tells to not associate any handler for php files. A little after, you have another block: <IfModule mod_fcgid.c> ... <FilesMatch "\.php$"> SetHandler fcgid-script </FilesMatch> ... </IfModule> This ...


0

You can try to find older version of these packages and install it manually by dpkg -i packagename to decrease dependencies list and, probably, decrease potential thread to your system.


2

You can also use top instead of watch: top -p $(ps ax | grep python | awk '{print $1}' | paste -sd "," -) -d 2


5

You can watch any command so give this a try watch "ps aux | grep python"


3

There's no property on a file that indicates that it's hidden. Early versions of Unix had an ls command that hid files whose name begins with . (“dot files”) and that tradition stuck. The ls command, by default, hides files whose name begins with . and shows all other files. Some graphical file managers hide files whose name begins with ., just like ls, ...


3

opencv.sh~ is not a hidden file. POSIX defines a hidden file as one starting with a dot, but opencv.sh~ does not start with a dot. If you don't want to see these files, you can explicitly avoid them by using a glob that doesn't include them (for example, shopt -s extglob followed by ls !(*\~)), or (as I assume these are from vim), you can configure vim not ...


1

You have to run the iperf in server mode on one device iperf -s and iperf in client mode on the other iperf -c IPADRESSOFSERVER at the same time.


0

To boot Ubuntu server I'm using a menuentry like so: menuentry "Ubuntu server installer" { set isofile=/isos/ubuntu-15.04-server-amd64.iso loopback isoloop $isofile set gfxpayload=keep linux (isoloop)/install/vmlinuz file=/cdrom/preseed/ubuntu-server.seed iso-scan/filename=$isofile quiet noeject -- initrd (isoloop)/install/initrd.gz } ...


0

If you want to be more bash specific you can also write you code in ~/.bash_profile or ~/.bash_login. And you can source any script therein for example: if [ -f ~/.bashrc ]; then source ~/.bashrc fi


2

If you're using NetworkManager (and you very likely are): nmcli radio wifi off. This is simply a command line interface equivalent of the widget. NetworkManager is a complicated beast. I'm not sure what the basic commands are that it's using.


0

See a ticket: cp: cannot stat ‘/exports’: No such file or directory: This is happening because $TMPDIR is not set on your local machine. Sorry about that. I've opened #5954 to fix the issue. In the meantime, a workaround is to export TMPDIR=/tmp and things should begin working again. Fixed. Fix available since 1.7.4


-1

This is what works for me: config.vm.synced_folder "/source/path", "/dest/path", :nfs => true, mount_options: ['rw', 'vers=3', 'tcp', 'fsc']


0

This is much easier than suggested by other answers. No need to format, reboot or use live CD. su root # then enter your password to switch to root user chown root:root /usr/bin/sudo && chmod 4755 /usr/bin/sudo exit # to get back to the original user This is the easiest way to fix this issue. Explanation, sudo is corrupted (I know corrupted is the ...


1

If you are sure about the settings (Baud, parity, flow control) you use, I think that minicom does not "hang" but rather just "does not show anything". If it is female-to-female I would suspect the cable just does not "cross" TX and RX, this means that both source computer and target computer "speak" on the same line and "listen" on the same line (like when ...


0

I disagree with the decision to depreciate php-auth-pam although I can understand why they did. There a number of challenges to integrating php and pam, including that php is often linked to your webserver which may or may not be multithreaded (and handling multiple threads with pam may be problematic), php tends to have a very high hit rate (where pam ...


3

sudo ./configure && make && make install That's your problem right there. You're running ./configure as root, then make and make install as your own user. ./configure produces files that are owned by root which the subsequent build is doesn't have the permission to access. Building never needs to be done as root, only installation. ...


2

To see the word wrapping you are expecting, use Esc+$ However, be careful if you're editing a configuration file or code or something that is sensitive to newlines and/or indents. I suggest making sure Soft line wrapping is off in those cases.


1

At first check, what rules are really loaded in your firewall: iptables -L -n -v It may happen that: rules are not loaded at all, no matter what you write into mentioned file rules are loaded from different file your firewall uses eg. custom chains and your rules are loaded into such chain instead in INPUT you can't connect because of any other problem, ...


0

I also was facing from same problem when I ran my own addon kodi gave segmentation fault(core dumped) and stopped. I totally removed kodi sudo apt-get autoremove kodi The above command will remove kodi completely also. Delete the ".kodi"(it's hidden so hit ctrl+h) directory in your home folder. After that do the following. sudo apt-get update ...


2

{001..005} is a bash feature but you are running your script with sh and on Ubuntu sh is dash not bash. So don't run your script with sh script.sh but with bash script.sh or even simply ./script.sh since you have #!/bin/bash at the beginning of your script.


0

Change /etc/hosts to this: 127.0.0.1 localhost localhost. hp-laptop hp-laptop. vagrant-ubuntu-trusty-64 10.XXX.X.XXX hp-laptop. When the smtp connection to Gmail times out, you misconfigured the smtp server data in your MTA configuration (like sendmail, exim or postfix). Be aware that the gmail smtp server to not support smtp connections to port 25 ...


-1

Does this work? echo "This is a test." | mailx -s "Test" myemail@email.com


0

Looks like your UPower is broken. Xfpm4 reacts to signals from UPower over dbus to adjust the icon. And that's it. If UPower doesn't communicate this in the right way, xfpm4 can't do much about this. Better ask your distributor to fix this.


1

Some firewall between you and the target site is blocking TCP connections to port 22, either by blocking outgoing packets or by blocking the response. You can locate the firewall by running tcptraceroute github.com 22. If the firewall is beyond your control (e.g. on your ISP's equipment), there's nothing you can do without outside help. If your ISP is ...


0

I've re-installed it using apt-get install rsyslog and logs seem to be filling up again, odd that it seems to have gone missing in the first place, it's clearly been on the system before


0

I had to figure this out as well but at the very least executing casperjs requires you to have variables available that are loaded when you load a shell as a log-in shell. In my case I didn't feel like hard-coding the path to casperJS in my script because it was already set in the $PATH on my mashine. This then lead to the discovery that just spawning a ...


0

Open the terminal and execute the command # sudo add-apt-repository ppa:adiscon/v8-stable Now install rsyslog # sudo apt-get install rsyslog to check rsyslog version, # rsyslogd -v rsyslogd 7.4.4, compiled with: FEATURE_REGEXP: Yes FEATURE_LARGEFILE: No GSSAPI Kerberos 5 support: Yes FEATURE_DEBUG (debug ...


0

If you may get an error while installing FFMPEG on centOS 6.5, create repo : /etc/yum.repos.d/dag.repo # vi /etc/yum.repos.d/dag.repo add below lines into it, [dag] name=DAG RPM Repository baseurl=http://apt.sw.be/redhat/el$releasever/en/$basearch/dag gpgcheck=1 enabled=1 GPG key for DAG, run the below command, # rpm --import ...


1

This is a Catch 22 you're in. You're trying to install something python-related that was made for Python v2, not 3, but the default version used and installed on your system IS v3. The module mentioned is now called configparser in Python 3, whilst it was called ConfigParser in Python 2. As we're on an OS where case sensitivity is very important, the ...


0

Since you're on Ubuntu, you can also use the Startup Disk Creator. It's a bit easier to use than dd, IMHO.


1

Just copying the files is not enough because you will miss the bootloader. You should dd the image to the usb stick: dd if=kali.iso of=/dev/sdX bs=4M; sync to start it. Be aware, that this will delete all data on the stick and the partition scheme will not be optimal.


0

I don't know if it is to enhance your knowledge on routing on Linux, but if it is not, I'd like to suggest using OpenWrt for this job. OpenWrt already has interface management, DHCP server, firewall, port forward, IPv6 support and other services all available from either the CLI or a web interface. OpenWrt can be installed either on a cheap machine, many ...


3

Looks like you accidentally messed up the /etc/apt/sources.list.d directory. Somehow a file called rohan, a file called Untitled Document 1 were created in this directory and the file ubuntu-wine-ppa-precise.list became corrupted. Try to remove the files /etc/apt/sources.list.d/rohan and /etc/apt/sources.list.d/Untitled Document 1 (or move them to ~/ - ...


2

You could ignore the first two lines, or correct the problems Remove the file rohan in /etc/apt/sources.list.d/ sudo rm /etc/apt/sources.list.d/rohan Remove the file Untitled Document 1 in /etc/apt/sources.list.d/ sudo rm "/etc/apt/sources.list.d/Untitled Document 1" Correct the file /etc/apt/sources.list.d/ubuntu-wine-ppa-precise.list Correct ...



Top 50 recent answers are included