Posts

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

Lenovo Y510 surround sound in Ubuntu

Image
Lenovo Y510 has go 4.1 sound system with a sub- woofer (Dolby Home Theater) Default installation of Ubuntu doesn't recognises all four speaker. There are few fix going on the Internet. There is one problem with those fixes, i.e. headphone doesn't mute the speakers. So you have to manually mute and un-mute the speaker while using the headphone. However I have found one fix, that recognises all four speaker and one sub-woofer, mutes and un-mutes them while using headphone, and produces 5.1 surround sound. Open /etc/modprobe.d/alsa-base for editing. (you need root access) Open /etc/modprobe.d/alsa.conf if you are using Fedora (Thanks to the Anonymous user) add the following line at the end options snd_hda_intel model=6stack-dell save and reboot. Now, go to Audio Preferences and select "6ch" under the options tab. You are all done, test it with the command "speaker-test -Dplug:surround51 -c6 -twav" Note: If you have updated your system...

Ubuntu has the strongest chance to take Linux mainstream

Image
Interview with Samba's Jeremy Alliso "Jeremy Allison's contributions to the free software world are legion, and yet the project he's best known for continues to be Samba, the open implementation of some of Microsoft's most important networking protocols. Linux Format magazine asked him about KDE, NAS, LSB, DCs and other acronyms, and now his answers are here for your TLA titillation…" Read it here.

NO SEX TONIGHT!

[Christmas Post] [Credit goes to the original writer] I never quite figured out why the sexual urge of men and women differ so much. And I never have figured out the whole Venus and Mars thing. I have never figured out why men think with their head and women with their heart. FOR EXAMPLE: One evening last week, my girlfriend and I were getting into bed. Well, the passion starts to heat up, and she eventually says "I don't feel like it, I just want you to hold me." I said "WHAT??!! What was that?!" So she says the words that every boyfriend on the planet dreads to hear... "You're just not in touch with my emotional needs as a woman enough for me to satisfy your physical needs as a man." She responded to my puzzled look by saying, "Can't you just love me for who I am and not what I do for you in the bedroom?" Realizing that nothing was going to happen that night, I went to sleep. The very next day I opted to take the day off of work to ...

The "I'm Linux" Video Contest

Yes you read it right. After I'm Mac and I'm Pc now there is going to be I'm Linux. "While the Linux Foundation would love to spend millions promoting Linux on TV, it's simply not our style (or in our budget). Even more importantly, Linux isn't a top-down, commercially controlled operating system. It's a grassroots product of mass collaboration. That's why we're sponsoring a community contest to create a Linux video that showcases just what Linux means to those who use it, and hopefully inspires many to try it." "The winner will receive a free trip to Tokyo, Japan to participate in the Linux Foundation Japan Linux Symposium in October 2009." http://video.linuxfoundation.org/category/video-category/-linux-foundation-video-contest

Linux is for your wife

I read couple of blogs claiming Linux is ready because his/her wife or old granny was able to use it without any problem. Here is my view on this. First of all, what are the general work your wife or old granny do on the computer? 1. Surf net 2. Chat 3. Listen Music 4. Maybe little of word processing So you say Linux is ready because it can do above mentioned work nicely? Linux was able to do such work since last decade. Instead of judging the maturity of Linux with less tech savvy wife and granny, it should be compared with technocrats who wants his/her computer to do everything, try new gadgets, always play with new software and so. Does your new printer or you ipod work with Linux? Does your brand new laptop behave well? Is you printer recognized and you can use free wifi? Can you name few games you have played on your Linux box? . . . . and the list can go on. So is the Linux ready?

Brightness reversed?

Image
If your brightness function keys are reversed then here is the simplest solution you could possibly have. Go to System, Preferences, Power Management Set " Set Display brightness to: " to zero (0) That's it.