In this post I'll show you how to rename you user account with example on Ubuntu Linux operating system. I did this the other day because I didn't like user name i gave to the Ubuntu installer, so i wanted to rename my account together with my home folder and all that goes with doing so...
First i have created temporary user account and joined it to the admin group. You can't mess with users account while being logged in to it (enabling root account on Ubuntu looked too messy). This is how to create user (remember the password you gave to adduser cause you'll need it to log in to your temp account):
sudo adduser temp
sudo adduser temp admin
Now we shall logout and log in as temp user but not using GUI way, instead we will use virtual terminal to do our magic. You should grab pen and paper (photographic memory should help also) to write down this procedure cause there is no GUI where we are headed.
Now restart your PC and when prompted for login press Ctrl+Alt+F1. On the virtual console tty1 log in with you temp user name and password you have provided to adduser command. Now enter these lines one by one replacing "oldname" and "newname" with what you have now and what you want to have after this is over.
sudo usermod -l newname -d /home/newname -m oldname
sudo groupmod -n newname oldname
sudo chown -R newname:newname /home/newname
sudo deluser temp
Some applications hardcode your home path in recent files and stuff like that (by the way that is very bad practice, people should use $HOME variable or something similar instead of hardcoding /home/username). Those hardcoded links wont work anymore because user name has changed. To track down those applications you could run something like following to find files in your home directory that contain old path string.
grep "home/oldname" -R .*
Now update all files with your new home path and be on your way (Gedit : Search -> Replace). On my system only Virtualbox files had to be changed. That is it. Cheers!
Some Logitech web-cams have serious problems all of the last kernel revisions (somewhere since 2.6.26 kernel revision). Sometimes when user starts its Linux OS things with web-cam go bad. Symptoms are "Waiting for sound system to respond" when clicking at the sound icon in system tray and ton of "cannot set freq 16000 to ep 0x86" in your /var/log/kern.log. What solves this problem when this occurs is removing snd-usb-audio kernel module from kernel and plugging it back. Cause of this bug is still unknown, and some say it is a bug in some Logitech webcam firmwares which gets triggered by something in Linux boot process. Lets work around it on Debian, Ubuntu and its derivatives...
Continue reading →
Last week I've stumbled upon this article with the title "The Cost Of Running Compiz" that bashes Compiz Fusion for killing Linux gamers (is this oxymoron or what?) frame rates. Doctor is in the house. Read on...
It would be ideal that you can have Compiz with ton of eye candy and glitch free 3D games. We know that doesn't work. But instead wouldn't it be possible to have our eye candy Compiz disabled while gaming and re enabled when returned to desktop? Sure. Peace of cake. Here's the idea and the steps to do so...
Continue reading →
From my experience I've learned that every configuration has one or more "Linux unfriendly" hardware. Not so long ago Wacom tablets were one of those stubborn pieces of an equipment. It's true that Wacom driver existed but it wasn't included in your favorite distribution. You had to go to The Linux Wacom Project web page, and download unofficial Wacom driver in its source version. Then you had to spend a few days compiling, crunching through online documents and trough your distributions configuration files adding lines in hope that somehow it'll work.
In the recent years things began to look better for our tablets. Now almost every Linux distribution has a Wacom driver included. It may not be the newest version, but Wacom driver is very mature and in 90% of cases works just fine. So now with a driver included in your distribution you're just a few mouse clicks (keyboard clicks to be precise) away from working tablet in your Linux distribution. I will take the Ubuntu as an example...
Continue reading →