Configuring a new Ubuntu Installation
I recently had to do a re-install of Ubuntu on one of my home machines and wanted to write down some of the things I did after the installation to install certain software and configure some settings to customize Linux to my liking.
Development
Because I use different languages from day to day, below are some notes on how to set up some of those languages in Ubuntu.
Java
I like to use the Sun JDK instead of the OpenJDK. Ubuntu 10.10 installs the OpenJDK by default, to remove this and to install the Sun JDK follow these steps:
-
sudo apt-get remove openjdk
- sudo vim /etc/apt/sources.list
- uncomment the following two lines:
deb http://archive.canonical.com/ubuntupartner deb-src http://archive.canonical.com/ubuntu partner (note: release_name is the name of the current distribution of Ubuntu) - sudo apt-get update
- sudo apt-get install sun-java6-jdk
C/C++
Installing the C/C++ developer tools takes just one command:
- sudo apt-get install build-essentials
- To get the man pages for the functions use the following command:
sudo apt-get install manpages-dev
Git
To install git, type the following command: sudo apt-get install git-core
Subversion
To install subversion, type the following command:
- sudo apt-get install subversion
Note: for a server environment where you’d like to have apache serve up your subversion repositories type in the following command:
- sudo apt-get install libapache2-svn
Terminal Title
I like to see the current path of all of my terminal sessions, but by default this is not configured in Ubuntu. I found the following steps on the internet that can help me set this up. The steps are as follow:
Edit the bash.bashrc file in the ‘/etc’ directory Uncomment out the lines 24 thru 29:
- Save the changes and exit out of any terminal sessions
- Open up a terminal session, in the title bar of the Terminal Window as you now browse around the system you’ll see your username@machine-name: /full_path/…/…/
Leave a comment