Reputation
744
Top tag
Next privilege 1,000 Rep.
See votes, expandable usercard
Badges
9 15
Newest
 Announcer
Impact
~155k people reached

Jul
5
comment How to install Angrybirds in Ubuntu 14.10 with Wine?
Unfortunately both variants have been discontinued.
Jul
3
comment How to wipe a hard disk completely so that no data recovery tools can retrieve anything?
You can also use cat with much simpler syntax: cat /dev/zero >/dev/sdX. ------ To get slightly better performance with dd use larger block size for example bs=64k. (cat uses this block size - 64 KiB by default.) ------ GNU dd has an useful feature: When you send it signal USR1 it shows statistics and continues in operation: pkill -USR1 -f '^dd if=/dev/zero of=/dev/sdX bs=64k'
Jun
20
comment gcc 4.8.4 in Ubuntu 14.04 (LTS)?
Now gcc was updated to the version 4.8.4 in trusty-updates: packages.ubuntu.com/trusty-updates/gcc-4.8
Jun
5
comment How can I create a new blank file in an occupied directory?
This is unnecessarily complicated in the case the directory is already opened in Nautilus. ------ Easier way: In a terminal (start with Ctrl+Alt+t) write: cd (with a space) then drag and drop the directory from Nautilus to the terminal and press Enter. This will switch you to the directory. Then write: touch filename which will create an empty file named filename.
May
15
comment How do I install Adobe Acrobat Reader deb package downloaded from Adobe website?
In 14.04 to avoid some warnings I had to do: sudo apt-get install libcanberra-gtk-module:i386 gtk2-engines-murrine:i386 ; apt-get download overlay-scrollbar-gtk2:i386 ; sudo dpkg --ignore-depends overlay-scrollbar:i386 -i overlay-scrollbar-gtk2_*_i386.deb ------ It is not possible to use sudo apt-get install overlay-scrollbar-gtk2:i386 because this package depends on non-existing overlay-scrollbar:i386. ------ Also libdconf0:i386 and libdconf-dbus-0-0:i386 should probably be installed but they are not available in 14.04.
May
11
comment How can I capitalize letters before a certain character? (^)
With GNU sed the second variant of the regex (extended regex) can be used with option -r: sed -r 's/^(.*)\^/\U\1/'
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 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 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 except files with the extension pdf 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 except files with the extension pdf 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?