Posts

Ctrl-Alt-Backspace is now disabled

Ctrl-Alt-Backspace is key combination to restart X. But for Ubuntu users from Alpha5 of Jaunty Jackalope, this shortcut will be disabled. This can be enabled from xorg.conf or or via the command dontzap --disable. The main reason for disabling Ctrl-Alt-Backspace shortcut is to protect newbies from accidentally restarting X.

Convert line break between Linux and Windows

If you are both Linux's and Window's user then you must know that Linux and Windows uses different line breaks. So If you type something in Linux and open in Window or vice versa then your line will not break properly. However you can easily convert between them. You can either use powerful sed or with a simple program tofrodos . To convert Linux line break to Windows type: unix2dos filename.txt To convert Windows line break to Linux type: dos2unix filename.txt Use -b option if you want to backup the file before changes are made. Use it with find command to perform changes in multiple files.

Next version of Ubuntu announced

Next version of Ubuntu 9.10 is announced. It's going to be called Karmic Koala. Yes the next version of Ubuntu 9.10 is going to be called Karmic Koala. Hear it from Mark Shuttleworth himself, http://fridge.ubuntu.com/node/1831

Usb support in Virtual Box

If you are going to use Sun Virtual Box to use USB device in guest OS then you should be aware that the default installation doesn't gives you that option. If you Google, there are many people offering many suggestion, some working for few people and some not. Well, I tried the same in Intrepid Ibex Ubuntu Linux, but none of the suggestion worked for me. So the most simple thing that I did and worked was read the manual and found there are two version of Virtual Box. You can see the differences between them by going to http://www.virtualbox.org/wiki/Editions Don't do anything with /etc/udev/rules.d/40-permissions.rules, /etc/init.d/mountdevsubfs.sh or /etc/fstab. open /etc/apt/sources.list add " deb http://download.virtualbox.org/virtualbox/debian intrepid non-free" to it. Also I recommend you to add VirtualBox GPG key. Then update by typing, "sudo aptitude update" Remove old virtual box if you have installed by "sudo aptitude remove virtualbox-ose...

Debian Lenny Released

This year's valentine gift from Debian side is the Debian GNU/Linux version 5.0 codenamed Lenny . I comes after 22 months of constant development. Read more: http://debian.org/News/2009/20090214

./configure: 123: Syntax error: Bad fd number"

While compiling fftv I got a strange error. ./configure: 123: Syntax error: Bad fd number" The fix for this is: sudo mv /bin/sh /bin/sh.bkp sudo ln -s /bin/bash /bin/sh

How do I change hostname in Ubuntu Linux?

You can see or change hostname of your computer with hostname command. You need privileged access to use this command. In terminal, typing hostname gives you the hostname of the computer. hostname xyz changes the name of your computer to xyz.

Unable to remove old X config backup file /etc/X11/xorg.conf.backup.

Image
Many people complains me that they get error "Unable to remove old X config backup file '/etc/X11/xorg.conf.backup'." after pressing "Save to X configuration file" in nvidia-settings. The reason is very simple, launching nvidia-settings doesn't give you enough permission to write inside /etc/. So run nvidia-settings in the following way: Press Alt+F2 type gksu nvidia-settings

sudo echo

Many people complain that they cant use sudo with echo. For example people try to do sudo echo 1 > /etc/file To know why this fails, lets break the command in two parts. sudo echo 1 You are just echoing "1". > /etc/file You are trying to write something to file inside /etc for which you need root access. But there is no root access as sudo was needlessly used with echo command. So to use sudo and echo we need help from one command called tee . With tee you can accomplish the above work. echo 1 | sudo tee /etc/file echo 1 | sudo tee -a /etc/file

Ubuntu 9.04 to be called Jaunty Jackalope

Jaunty Jackalope is known for its fastness, so will the next version of Ubuntu 9.04 Jaunty Jackalope. The main goal on this release is to make boot up time or resume time very short and integrating desktop applications and web applications. Hear from Mark Shuttleworth himself, link

simple way to write to files from bash script

Here is two of the simplest method from where you can write to files from a bash script. Method One Within the bash script write echo "what you want to write" > filePath/fileName echo "What you want to append" >> filePath/fileName Method Two Within the bash script write cat << EOF > filePath/fileName Lines of the text that you want to write. You can write any number of lines. EOF cat << EOF > filePath/fileName Lines of the text that you want to append. You can write any number of lines. EOF

Control brightness from command line

Screen brightness can be viewed and controlled from /proc directory. /proc/acpi/video/VGA/LCDD/brightness is the file. First cat the content of the file with cat /proc/acpi/video/VGA/LCDD/brightness It will show all the supported levels and current level. The current level is the current brightness of your screen. To change the screen brightness just put any number on that file. For eg: echo 10 > /proc/acpi/video/VGA/LCDD/brightness echo 5 > /proc/acpi/video/VGA/LCDD/brightness echo 1 > /proc/acpi/video/VGA/LCDD/brightness