Archive

Archive for the ‘Ubuntu’ Category

Use Classic Desktop for Ubuntu 11.10

January 23, 2012 Leave a comment

Just update Ubuntu to 11.10. I was afraid that Unity desk cause I don’t like it very much. It’s so hard to find things and get installed software organized. Thanks God, you can  choose whether to use the unity desktop or the classic version. Just click the ‘gear’ button when you login into your account, change the default ‘unity’ back to classic version. Then you are all set.

I use the classic desktop for 11.04, and back that time I did install the some gnome related package. If you can’t find the ‘gear’ option. Try this:

http://www.liberiangeek.net/2011/08/return-to-ubuntu-classic-desktop-in-ubuntu-11-10/

 

 

 

 

Categories: Ubuntu

Build a Ubuntu Amazon EC2 Instance

December 3, 2011 Leave a comment

# Steps to create Ubuntu Amazon EC2 Instance
– Login your AWS Management Console.
– Go to EC2 tab, then ‘lunch an instance’
– Select classical wizard -> community AMI -> search for ubuntu AMI (ubuntu official ID: 099720109477) You can even try different version of the ubuntu. (Link http://uksysadmin.wordpress.com/2010/11/21/amazon-ec2-ubuntu-quickstart-guide/)

# Login Your Instance

*If using Putty:
generate the key pair, save the value(ec2.pem file), which is important.
Download the PuTTYGen, import the ec2.pem file, select “Type-of-key-to-generate”: SSH1
Then save the private key. import the key into Putty, and from your running instance, copy the ‘Public DNS’ to the Host-Name of Putty.
Difference with Amazon EC2 Linux (using ‘ec2-user’ ), here the connection->data->auto_loing_user_name is ‘ubuntu’

* Access EC2 Instance by ssh
Change the private key readable to the owner only
$ chmod 400 ec2.pem

To access by SSH ( after @ is your public DNS, which will be difference each time when you restart your instance):
$ ssh -i ec2.pem ubuntu

# Check to see if your EBS already attached
sudo fdisk -l

# Ater creating EBS volume and attaching to the AMI using the AWS console:

#Formatted:
mkfs -t ext2 /dev/sdf
#Created mount point (in my case a backup directory):
mkdir /backups
#Mounted it:

mount /dev/sdf /backups
#Edited rc.local:
added mount /dev/sdf /backups to the end which mounts the EBS directory on bootup.

Linux Devices: /dev/sdf through /dev/sdp
Note: Newer linux kernels may rename your devices to /dev/xvdf through /dev/xvdp internally, even when the device name entered here (and shown in the details) is /dev/sdf through /dev/sdp

# To update Amazon EC2 instance which starts out with a default set of software. To install security updates and other pieces of software, run the following commands, in order:

$ apt-get -y update
$ apt-get -y dist-upgrade
$ apt-get -y install mercurial less python-matplotlib unzip bzip2 zlib1g-dev ncurses-dev python-dev

# Install pip and virtualenv for Ubuntu 10.10 Maverick and newer. Pip is a better alternative to Easy Install for installing Python packages.

$ sudo apt-get install python-pip python-dev build-essential
$ sudo pip install –upgrade pip
$ sudo pip install –upgrade virtualenv

# install Easy Install on Ubuntu Linux
$ sudo apt-get install python-setuptools python-dev build-essential

# Install whatever you want, here’s my list: R, rpy2, numpy, bpython (use Pygments)
$ sudo apt-get install r-base r-base-dev
$ sudo apt-get update
$ sudo apt-get update
$ sudo apt-get install python-pip python-dev build-essential

$ sudo apt-get install python-setuptools python-dev build-essential
$ sudo easy_install rpy2
$ sudo apt-get install python-numpy
$ sudo easy_install Pygments
$ sudo easy_install bpython
$ sudo apt-get install python-scipy

# Useful Resources

http://jonathanhui.com/create-and-launch-amazon-ec2-instance-ubuntu-and-centos
http://www.saltycrane.com/blog/2010/02/how-install-pip-ubuntu/
http://www.turnkeylinux.org/blog/ebsmount
http://jonathanhui.com/create-and-launch-amazon-ec2-instance-ubuntu-and-centos
http://wiki.bitnami.org/cloud/how_to_connect_to_your_amazon_instance

Chang Root Password Ubuntu

July 23, 2011 1 comment

Chang the root password

$ sudu su

#  passwd

Then the system will ask you to input your new password.

Categories: Ubuntu

Install Java-plugin for Ubuntu 11.04

July 23, 2011 2 comments

Install Java-plugin on Firfox, Ubuntu 10.4

Got a long time that the Java plugin not running well on my browser.

Here’s how to solve it:

– Open “System” –> “Administration” –> “Software Source”

– On tab “Other software”, Add

deb http://archive.canonical.com/ubuntu maverick partner

– In your command line:

sudo apt-get install sun-java6-plugin

sudo update-alternatives  –install /usr/lib/mozilla/plugins/mozilla-javaplugin.so mozilla-javaplugin.so /usr/lib/jvm/java-6-sun/jre/lib/i386/libnpjp2.so 1

Helpful Links

Categories: Software, Ubuntu