Dumindu Madunuwan

developer and designer

Ubuntu GNOME Remix, NVIDIA, Oracle’s Java and LAMP

'Ubuntu GNOME Remix

After abandoning this platform for more than one year, this is the first article I’m writing on Tumblr. On the last year I tried to create an ‘Ultimate Responsive Layout’ before adding posts. Because of that I missed the chance of writing some important articles including about the experience of GNOME 3.6, the success of my HTML5/CSS3 usage and How I became a designer from a developer. Even after creating two good responsive web layouts  (mytemplate and Tumblr 2013) , still I am not satisfied to write those articles. Anyway after using Fedora 18 (from the beta release) I switch to UGR(Ubuntu GNOME Remix) because of I faced an error on login about two weeks ago.

I switched to OpenSuse and Fedora because of I don’t like to use Unity on Ubuntu and also GNOME was not much stable on Ubuntu. But when UGR released I installed it on my office laptop because of I hate Unity and I have to use Ubuntu as the main OS at office. But I used Fedora at home and always love it. About two weeks ago I faced the logging error, then I decided to use UGL till GNOME 3.8 release. First thing to tell that UGR 12.10 is not bad but one important thing is missing, “GNOME online accounts”. yah, I miss it so much and it might be come up with UGR 13.4. Anyway lets start this.

01. Installing NVIDIA drivers

First add the Nvidia repository and install current drivers

sudo apt-add-repository  ppa:ubuntu-x-swat/x-updates
sudo apt-get update
sudo apt-get install nvidia-current

02. Installing Java

In the moment I was installing UGR, Its come up with no default java installation. So I could easily install it. Last year I learned not to use Java 7 because of Zend and Aptana Studio(the IDEs I prefer) are not stable enough with Java 7. Sometimes the whole system is getting stuck with it. So I prefer Oracle Java 6 and download it from Oracle website. Select Java SE 6 JDK .bin version.

sudo chmod +x jdk-6uXX-linux-x64.bin
sudo chown root. -R jdk1.6.X_XX/
sudo mkdir /usr/lib/jvm
sudo mv jdk1.6.X_XX/ /usr/lib/jvm/jdk1_6
sudo update-alternatives --install "/usr/bin/java" "java" "/usr/lib/jvm/jdk1_6/bin/java" 1
sudo update-alternatives --install "/usr/bin/javac" "javac" "/usr/lib/jvm/jdk1_6/bin/javac" 1
sudo update-alternatives --install "/usr/bin/javaws" "javaws" "/usr/lib/jvm/jdk1_6/bin/javaws" 1
sudo update-alternatives --set java /usr/lib/jvm/jdk1_6/bin/java
sudo update-alternatives --set javac /usr/lib/jvm/jdk1_6/bin/javac
sudo update-alternatives --set javaws /usr/lib/jvm/jdk1_6/bin/javaws
java -version

With the last command you can see which java version has been installed on your system.

03. Installing LAMP

In here we are going to install MySQL, Apache, PHP and phpMyAdmin separately from terminal.

sudo apt-get install mysql-server
sudo apt-get install apache2
sudo apt-get install php5
sudo apt-get install phpmyadmin

In addition to that I like to remove mysql and apache services from system startup. Omit following two commands if you want to start them on system startup.

sudo update-rc.d -f apache2 disable
sudo echo "manual" >> /etc/init/mysql.override

If you have removed them from startup, you can manually start the relevant processes with following commands.

sudo service mysql start
sudo service apache2 start

last but not least…