Labels

Wednesday 26 March 2014

[UBUNTU] Install LAMP

Install tasksel in ubuntu
In terminal:
sudo apt-get install tasksel

sudo tasksel



choose LAMP (use spacebar keyboard to choose)
and press Tab to choose OK and press Enter

During the installation you will be asked to insert the mysql root password
ok

Saturday 8 March 2014

[UBUNTU] Setup JAVA_HOME

System-wide environment variables

/etc/profile.d/*.sh

Files with the .sh extension in the /etc/profile.d directory get executed whenever a bash login shell is entered (e.g. when logging in from the console or over ssh), as well as by the DisplayManager when the desktop session loads.
You can for instance create the file /etc/profile.d/myenvvars.sh and set variables like this:  
Suppose my jdk1.7.0 in folder /home/approved/Downloads

sudo -i
(type password)
cat >/etc/profile.d/myenvvars.sh
(and press)
export JAVA_HOME=/home/approved/Downloads/jdk1.7.0 
export PATH=$PATH:$JAVA_HOME/bin
(and press)
Ctrl+D

logout 
in terminal: 
java -version