Reputation
615
Top tag
Next privilege 1,000 Rep.
See vote count; VIP usercard
Badges
7 13
Newest
 Organizer
Impact
~121k people reached

Apr
30
comment ifdown in cron bash script fails to run
1. Does the script (and ifdown) hang or end prematurely? (Do you see it in ps -ef?) It should hang if your script does not continue. ------ 2. Try to use the verbose switch to get more information: ifdown -v eth1 ------ 3. Does it fail if you manually restart cron? Try sudo service cron stop && sudo service cron start ------ 4. What are the exported environment variables in the working and non-working case? Store the output of export. If the non-working case is missing some variables which could be important, try to set them in your script.
Apr
30
comment no login screen ubuntu 14.10
If you end up recovering just your data you can boot Ubuntu as a live OS from the installation USB or CD. There you can mount your partition on the computer's hard-drive and backup your data. Then you can do clean install and copy the data back. --- If you chose non-LTS version (like 15.04 or 14.10) then you should upgrade twice a year. I personally prefer to stay with the LTS version for two years or longer.
Apr
30
comment Firefox stuck on old version and problems with held packages
Does sudo apt-get update show any errors or suspicious output? What do you have in the file /etc/apt/sources.list?
Apr
30
comment no login screen ubuntu 14.10
For users which are not Linux or IT enthusiasts it is certainly recommended to stay with LTS releases of Ubuntu like 14.04 and in the future 16.04.
Apr
30
comment no login screen ubuntu 14.10
You can try to test if the system is functional with only the graphic screen (X Server) black: Try to switch to the text console using Ctrl+Alt+F1. If the login prompt appears you can try to login. From the shell in the text console you can safely turn off the computer using sudo shutdown -h now. --- BTW do you know that 14.04.2 is a release with long support (LTS), that this update of 14.04 was released after 14.10 and that support of 14.10 will end in July?
Apr
30
comment WiFi not working on HP Probook & HP 431 Notebooks
To run a command as root in Ubuntu you run it with help of sudo . In your case: sudo rfkill unblock all. --- Also it could be interesting to know if you installed the original Ubuntu 14.04 or the current 14.04.2 with updated Linux kernel.
Apr
27
comment Loop not getting exicuted for a particular date
Could you please add a diagnostic echo before the while loop? echo ":$start_date: :$start_days: :$end_date: :$end_days:". The colons around the variable are to see possible white-space characters. To be sure about the while loop add also: echo ":$start_days:" before for. Then please show the exact output. -- It is not a good idea to parse output of ls. In your for loop you should use this instead: for i in *; do -- You forgot double quotes around $i. File names with spaces will not work. -- Also I do not see a reason for piping output of less. Use grep -E ... "$i" directly.
Apr
27
comment index out of range?
In the code listed the error should show on line 3 not on the empty line 2. Am I right? The code is also missing import sys and import yaml before the first command.
Apr
27
comment mountall: error while loading shared libraries: libudev.so.0
Could you please let us know which version of Ubuntu is it? --- On my system (Ubuntu 14.04.2 64-bit) I have /sbin/mountall which is linked to libudev.so.1 (/lib/x86_64-linux-gnu/libudev.so.1). It looks like this library is corrupted/missing on your system. --- You can boot from a recovery media, check and reinstall the libudev package. The procedure will be based on the section Update Failure more specific information could be provided for a specific version of Ubuntu.
Feb
25
comment Is using Software Updater the same thing as running apt-get update and apt-get upgrade?
There is another difference: apt-get does not use PhasedUpdates so sometimes Software Updater shows less updates than apt-get. See Why Does Software Updater Say No updates Available, but apt-get upgrade Shows updates available?.
Feb
23
comment Why is the automatic login disabled for users with encrypted home?
@cupakob: If you want to have an autologin and an encrypted directory you can encrypt just a sub-directory of home as described for example here: help.ubuntu.com/community/EncryptedPrivateDirectory
Dec
9
comment Sudoers file, enable NOPASSWD for user, all commands
@DanielAlder: The specification line from the question nicholsonjf ALL=NOPASSWD: ALL is correct. It was just at a wrong place as I explained in the answer. ------ The Runas specification — in your case (ALL) — is optional. If you omit the specification you can run the commands as root and you cannot use -u and -g options of sudo.
Dec
1
comment Delete all files apart from pdf files in a directory
I understand that you meant the solution as an "interactive" process with multiple manual iterations but the checks will be hardly usable for long lists of files and the problems mentioned above could bring easy to overlook mistakes.
Dec
1
comment Delete all files apart from pdf files in a directory
I noticed three problems here: a) It will exclude any file containing pdf anywhere in its name. --- b) It will delete PDF files if any of the letter in the suffix are upper case. --- c) It is not a good idea to use output of ls. It will not work with file names containing newlines. Some implementations of ls replace special characters e.g. tab by ?. --- It is better to use: find -maxdepth 1 -print0. (not so short as ls :) ----- To resolve a) and b) use grep -vi '\.pdf$' --- complete (but GNU only) solution: find -maxdepth 1 -print0 | grep -viz '\.pdf$' | xargs -0 rm
Nov
29
comment GNOME Image Viewer opens its window 2 pixels shorter and distorts the image by resampling
Thank you! --- I totally forgot about the second name of the application. I am tired of that. In the about pop-up I see: "The GNOME image viewer", no mention of "Eye of GNOME". --- I have found other bug reports of the same problem (or a problem with the same symptoms). I will add more information later. --- It is not considered to be a good habit to ask for accepting an answer. I normally accept answers few days later and you can see that I accept answers. :)
Nov
1
comment How to run an alias in a shell script?
In the point 2 you do not set an alias but a variable.
Oct
30
comment folder inside the same folder error
Without write access you cannot delete or modify the problematic directory. ------ Could you please send ls -ld of it?
Oct
14
comment “Could not open moddep file '/lib/modules/3.XX-generic/modules.dep.bin'” when mounting using a loop
I had the same problem after the battery in my notebook failed during boot. mo‌​dules.dep.bin was empty. (computer shut off probably right during rebuild or something?) The mentioned reinstall solved the problem. Thanks! After further study I think it would probably suffice to run depmod to regenerate the file.
Oct
7
comment Why wouldn't `which` command work for `cd`? Can't find the executable `cd` too!
Ok, you are right. Sorry, I did not follow the link to the cd documentation‌​.
Oct
7
comment Why wouldn't `which` command work for `cd`? Can't find the executable `cd` too!
The linked description from the POSIX specification does not explicitly say that cd must be as shell built-in ... but based on how process properties and their transfer work in UNIX cd as a shell built-in is the only straightforward implementation. See the reply of Volker Siegel.