Wednesday, February 27, 2013

Software installed via repository and via untarring

As of March 31, 2013

Via Ubuntu repository

sudo apt-get install apache2
sudo apt-get install subversion
sudo apt-get install mysql-server
sudo apt-get install mysql-client

Via download and untarring

jdk1.7.0_15
apache-maven-2.2.1
apache-tomcat-7.0.37
jboss-as-7.1.1.Final
eclipse-juno
apache-activemq-5.8.0

Changing the default (bash) shell

One way of changing the default login shell, which happens to be the bash shell is as follows. You need to be an administrative user to do it.

sudo vi /etc/paswd

Find you user name in the above file and change the bash invocation on that line to another shell type.

Note that the csh or ksh is not installed by default in Ubuntu, so if you need those shells, you have to install them from the Ubuntu repository.

Environment variables

In Windows, environment variables, once set - either at the user level or the system level are available regardless of how many new command prompt windows are opened.

In Linux, it is a different story. If you need to have environment variables available to all your shell windows - interactive or not, you need to export them after setting them first. Without the export, the environment variable is only available for the current shell and will not be seen in another shell.