When learning to make bash scripts, at one point or other you’d like to know how to suspend your computer from terminal. Well, there are quite some methods available for Ubuntu. You can choose whatever suits your needs. I prefer method 3 (look below). Method 1: sudo sh /etc/acpi/sleep.sh force Method 2: sudo pm-suspend This… Continue reading [HowTo] Suspend Ubuntu from terminal or keyboard shortcuts
Category: ubuntu-linux
[Solved] apt-get “is to be installed” errors in Ubuntu
This class of error means the dependency is of different version than required. I tried to install deluge-console but it gave me the following error: deluge-console : Depends: deluge-common (= 1.3.0-0ubuntu1) but 1.3.0-1~getdeb1 is to be installed The error is not that self-explanatory. Here the deluge-common version required by deluge-console is 1.3.0-0 but 1.3.0-1 is… Continue reading [Solved] apt-get “is to be installed” errors in Ubuntu
[Solved] Mp3 not playing on Amarok
After upgrading to Maverick, somehow Amarok stopped playing Mp3. Same thing happened when I upgraded to Lucid from Karmic. To fix it, install libxine1-all-plugins: sudo apt-get install libxine1-all-plugins That fixed it for me! Cheers!
[HowTo] Find number of files inside a folder in Linux
I wanted to find out the number of files inside a folder. I didn’t want the folders to be included in the result. A blog post on zimbio.com shows us how to do it with ls command which is not only downright inaccurate, it is also slower than what I am going to show you. I… Continue reading [HowTo] Find number of files inside a folder in Linux
[HowTo] Open thumbs.db and extract thumbnails from it
Thumbs.db is a file used to store thumbnail data of a folder in Windows. It makes loading of thumbnails significantly faster, however it has some privacy issues. Like if you delete an image, its thumbnail might still be there in thumbs.db file which would allow you to view it. There’s an open source python script… Continue reading [HowTo] Open thumbs.db and extract thumbnails from it
[SOLVED] Unable to find the Jasper image conversion program in Kopete
Kopete supports yahoo webcam and it works seamlessly. Although it doesn’t work right away after installing kopete. If you try to access anyone’s webcam you’ll get the following error. Unable to find the Jasper image conversion program. Jasper is required to render Yahoo webcam images. Please see http://wiki.kde.org/tiki-index.php?page=Kopete%20Webcam%20Support for further information. You can fix it… Continue reading [SOLVED] Unable to find the Jasper image conversion program in Kopete
[SOLVED] TERM environment variable not set in Guake
After upgrading to Maverick Meerkat yesterday, my Guake terminal started giving the following error on executing top: TERM environment variable not set. You can fix the error by doing exactly what error says – set the TERM variable. To do that execute the following in terminal: echo -e “TERM=xterm\nexport TERM” >> ~/.bashrc Kill the guake terminal… Continue reading [SOLVED] TERM environment variable not set in Guake
[SOLVED] ‘Unknown’ filesystem in gparted
I had a primary NTFS partition with windows 7 installed on it. Somehow, its bootloader went corrupt so I used install-mbr in ubuntu to fix that but it only made the problem worse. Now my system didn’t recognise the partition as NTFS partition and I couldn’t access the partition. I modified the partition ID using… Continue reading [SOLVED] ‘Unknown’ filesystem in gparted
[Solved] Subtitles not being displayed in VLC in Ubuntu
I had this problem where subtitles were not being shown in VLC. No matter what I did, it just wouldn’t display. I reinstalled VLC but still it had problems. So I removed all the vlc config files to reset the settings and fix the problem. rm -rf ~/.config/vlc That fixed it. Cheers!
[SOLVED] “Ignoring file ‘.distUpgrade’ / ‘.save’ in directory ‘/etc/apt/sources.list.d/’ as it has an invalid filename extension” on Ubuntu 10.10
Recently apt-get update started throwing notices which read: Ignoring file ‘opera.list.distUpgrade’ in directory ‘/etc/apt/sources.list.d/’ as it has an invalid filename extension Ignoring file ‘opera.list.save’ in directory ‘/etc/apt/sources.list.d/’ as it has an invalid filename extension It occured because sources.list.d directory isn’t supposed to contain files with .distupgrade and .save extensions, but since I upgraded my distribution from 10.04,… Continue reading [SOLVED] “Ignoring file ‘.distUpgrade’ / ‘.save’ in directory ‘/etc/apt/sources.list.d/’ as it has an invalid filename extension” on Ubuntu 10.10