Tuesday, July 3, 2012

How to install Eclipse on Ubuntu

How to install Eclipse

Open your terminal:

sudo apt-get install eclipse

This is will install the stable version from the repositories.

How to switch your Java version on Ubuntu

How to easily change your Java version

This is how you can get the versions you are using now:

java -version
javac -version
javaws -version

Easily change which Java installation you would like to use:

sudo update-alternatives --config java
sudo update-alternatives --config javac
sudo update-alternatives --config javaws

If you have installed this repository:

sudo add-apt-repository ppa:nilarimogard/webupd8
sudo apt-get update

You can install a graphical version to easily change your Java version:

sudo apt-get install update-java
sudo update-java

How to install Java 7 on Ubuntu

How to install Java 7 - fastest way
 
Add this repository:

sudo add-apt-repository ppa:webupd8team/java

Update your package list:

sudo apt-get update

Add this, in case you don't have it:

sudo mkdir -p /usr/lib/mozilla/plugins

Finally install Java 7:

sudo apt-get install oracle-jdk7-installer

http://www.webupd8.org/2011/09/how-to-install-oracle-java-7-jdk-in.html
http://askubuntu.com/questions/55848/how-do-i-install-oracle-java-jdk-7

How to install Gnome on Ubuntu

How to install Gnome on Ubuntu

Open your terminal:

sudo apt-get install gnome-panel

Now when you log out, you can log back in with Gnome or Gnome Classic.

How to add Swap Drives on Linux

How to add swap drives after installation

After installing Ubuntu and you would like to install a swap partition, make sure there is an empty partition.

Let's list your partitions:

ls /dev/sda*

Let's say that your the partition your going to make a swap is "/dev/sda3":

sudo mkswap /dev/sda3

Mount the swap partition:

sudo swapon -U xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx

This command will give you the UUID of the drive:

sudo blkid /dev/sd3

Open your "/etc/fstab":

sudo nano /etc/fstab

Add the following but make sure to replace the UUID:

UUID=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx none swap sw 0 0

To save, hit Ctrl + x, then Enter.

In the end, make sure your swap is loading properly

sudo blkid
Make sure the UUID for "swap" matches the one in the "/etc/fstab".

Further testing:

sudo mountvall -v

How to install Adobe Reader on Ubuntu

How to install Adobe Reader

First open the terminal and type this in:

sudo apt-add-repository "deb http://archive.canonical.com/ $(lsb_release -sc) partner"

Update your package list:

sudo apt-get update

Finally install:

sudo apt-get install acroread

How to open .rar files in Ubuntu

How to open .rar files in Ubuntu

Default installation doesn't can not open .rar files

sudo apt-get install unrar

Wednesday, May 30, 2012

How to turn off DNSMASQ in Ubuntu

Disable DNSMASQ
 
If you sudo netstat -tupln, you will notice DNSMASQ running.

Edit the file: /etc/NetworkManager/NetworkManager.conf

sudo gedit /etc/NetworkManager/NetworkManager.conf

Simply comment out:
#dns=dnsmasq

Now restart to make sure it is off.
sudo restart network-manager