Add a User in Linux
Answer:
Add a User in Linux, just use the useradd command:
# sudo useradd -d /home/john -m john
The above command will create the user john and create a home directory which is at /home/john
Linux Ask! is a Q & A web site specific for Linux related questions. Questions are collected, answered and audited by experienced Linux users.
Add a User in Linux
Answer:
Add a User in Linux, just use the useradd command:
# sudo useradd -d /home/john -m john
The above command will create the user john and create a home directory which is at /home/john
Upgrade Packages in Ubuntu
Answer:
From time to time, packages will release new version so your installed packages will also need to keep updated.
To upgrade your system, first update your package index by
# sudo apt-get update
Than upgrade the packages
# sudo apt-get upgrade
Update the Package Index in Ubuntu
Answer:
In Ubuntu, the package index is managed by the Advanced Packaging Tool (APT).
The index of all the available packages from the repositories is defined in the file /etc/apt/sources.list file.
To update this package index, use the following command.
# sudo apt-get update
That is it.
Install the Lucid Light Themes (Radiance and Ambiance) in Ubuntu 9.10
Answer:
The new Lucid Light themes (Radiance and Ambiance) in Ubuntu 10.04 is very nice and it can also be used in older version of Ubuntu such as Ubuntu 9.10, so you don't need to upgrade if you only want the new themes.
What you need to do is the following (for Ubuntu 9.10).
1. Add the repository
# sudo add-apt-repository ppa:nilarimogard/webupd8
2. Install all the needed files
# sudo apt-get update && sudo apt-get install gtk2-engines-murrine ubuntu-mono light-themes gtk2-engines-aurora
3. Change it in action
Reference: http://www.webupd8.org/2010/03/ubuntu-lucid-light-themes-radiance-and.html
Install sun-java-jdk in Ubuntu 10.04
Answer:
To install the offical Sun (now Oracle) JDK in Ubuntu 10.04, you need to do the following in terminal.
1. Add the extra repository
# sudo add-apt-repository "deb http://archive.canonical.com/ lucid partner"
2. Update the local package index
# sudo apt-get update
3. Install the JDK and plugin
# sudo apt-get install sun-java6-jdk sun-java6-plugin
4. And finally, change you system to use the newly installed JDK.
# sudo update-java-alternatives -s java-6-sun