Changing Initial Username in UBUNTU

Change Initial Username in UBUNTU for a newer established account

sudo usermod –login NEWNAME –home /home/NEWNAME -m OLDNAME
sudo groupmod –new-name NEWGROUP OLDGROUP

OLDNAME is the current login name
NEWNAME is the desired login name

On a default ubuntu install,
OLDGROUP is the same as OLDNAME,
NEWGROUP is the same as NEWNAME

The “usermod” command will change the login name and move the home directory from /home/OLDNAME to /home/NEWNAME
And “groupmod” command will rename the old group name to the new group name, for permissions etc

Change Initial Username in UBUNTU for an older established account

If your OLDNAME is quite unique, one could follow up the “usermod” and “groupmod” commands with find command

find /home/NEWNAME/ -type f -name ‘*’ -exec sed -i ‘s/OLDNAME/NEWNAME/g’ {} \;

The “find” command will loop through every single file in /home/NEWNAME and change every occurrence of OLDNAME *within* the contents of the file to NEWNAME. This is an attempt to correct any mention of OLDNAME in your hidden configuration files, the .filename ones

The reason why this command is dangerous is because if your OLDNAME is something short like “igh” which is a substring of other words. If you try to change username “igh” to “may”, do not use the above command because any document that contains the word “right” would be changed to “rmayt”.
Be careful as terrible damage can be done with this find command

Trying the above commands is suggested only when you back-up first.

The other problem that sometimes occurs is that the .wine directory contains symlinks whose path contains the name OLDNAME.
(Things like this /home/NENWAME/.wine/drive_c/windows/profiles/OLDNAME/Desktop become broken symlinks).

Mostly these can be done manually, as they aren’t so many symlinks – I am assuming 😉

Thanks to unutbu’s comments at Ubuntu Forums

Why Linux Why Ubuntu

Why Ubuntu is better than Windows or Is Windows 7 better than Ubuntu –

To each his own, Windows is an awesome OS for its ease of being already installed in most machines and to complement that we have polished software that works with it (and is easily available). And you need Windows to play games 🙂

So why linux?
Because its open source, can be modified to suit your needs and you can redistribute it without any keys to type in (i.e. CHEAP)
And the security linux provides is a lure.. let thou be lazy yet always safe. No anti viruses to install EVER..

And why Ubuntu?
Because it has a user-friendly GUI!
Talking ’bout cheap, it comes with an Office (Open Office), an email client (Evolution) all for free!
Don’t forget to throw in free applications which might not be as polished as those for Windows (considering Adobe Photoshop) But in all fairness not everyone purchases Photoshop for “fun”. So try GIMP!
Power up an old machine, and you have ubuntu running for you! Its compatible with more or less all hardware! And am not talking about graphics – you may not envision 3D stuff with that old a machine. Nonetheless your terminal works!

An amazing experience of trials and testing.. Hats off to Linux!

The apt-get for Ubuntu

Installing the fun applications – when I install Ubuntu in any machine


sudo apt-get install vlc


Adobe flash extension for Firefox

Inkspace (Vector Drawing Tool)

sudo apt-get install inkscape

LAMP (Apache + PHP)

sudo apt-get install apache2 php5 libapache2-mod-php5


sudo apt-get install mysql-server mysql-client php5-mysql


apt-get install phpmyadmin

Open Server SSH

apt-get install ssh

Emacs (funny it isn’t pre installed)

sudo apt-get emacs