Configuring a new Ubuntu Installation

1 minute read

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.

Because I use different languages from day to day, below are some notes on how to set up some of those languages in Ubuntu.

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:

  1. sudo apt-get remove openjdk
  2. sudo vim /etc/apt/sources.list
  3. uncomment the following two lines:
    deb partner deb-src partner (note: release_name is the name of the current distribution of Ubuntu)
  4. sudo apt-get update
  5. sudo apt-get install sun-java6-jdk

Installing the C/C++ developer tools takes just one command:

  1. sudo apt-get install build-essentials
  2. To get the man pages for the functions use the following command:
    sudo apt-get install manpages-dev

To install git, type the following command: sudo apt-get install git-core

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:

case "$TERM" in
PROMPT_COMMAND='echo -ne "33]0;${USER}@${HOSTNAME}: ${PWD}07"'
  1. Save the changes and exit out of any terminal sessions
  2. 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