Install a Linux Dev machine

So i’m creating a developer machine, HP Probook 6560b. 8GB RAM, 500GB HDD. I will be running LinuxMint 17. I installed it using bootable USB. Below are the steps to get it ready for work, i’m a Java developer dabling in Python, Django.

Step 1
– change the Firefox search engine to Google.
– Go to here
– Click on the search engine drop down and add. Remove the rest.

Step 2
– lets get the system upto date.

Step 3
– install Ubuntu Tweak so that we can be able to keep the system clean.

Step 4
– install Oracle JDK.

– and remove Open JRE that is installed by default

Step 5
– install Git and Svn for source control.

Step 6
– install Google Chrome

Step 7
– install MySQL

Step 8
– install PostgreSQL

Step 9
– let make sure the Python environment is ready


Download Oracle JDK using wget

We are all used to downloading the JDK from Oracle using the browser. You will have to accept the licence to proceed with the download.

This makes it tricky to download on a Linux installation without or you don’t have access to its GUI. Trying to use wget will download an HTML page insisting you accept the licence. There are a couple of ways to get round ‘Accept Licence’ issue including the plain old download on local machine and upload to the remote machine. The simplest I got was to add the authentication parameter that’s used by the download server to verify if you have accepted the license to the JDK download URL used by wget.

The solution to get the precious AuthParam cookie, in this post I use Google Chrome to retrieve it. On the download page right click and select “Inspect Element”. Select the “Network” tab on the debugging window. After accepting the licence on the browser click on the file to download it. Quickly cancel the download and check the Network output. Right click the last result and copy the link.

wget will download the JDK.


Installing Postgres on Ubuntu 10.10

Installing postgres on Ubuntu 10.10

sudo apt-get install postgres pgadmin3

Now try to connect to postgres Applications > Programming > pgAdmin III

You will get the error below.

Postgres login error

It turns out Postgres setup is not complete yet. In MySQL you will be ready to go, root with an empty password, certainly not good for security

Switch to postgres and set the password

sipatha@lpt1:~$ sudo -u postgres psql
psql (8.4.5)
Type "help" for help.

postgres=# \password postgres
Enter new password:
Enter it again:
postgres=# \q

Now try again logging in using pgAdmin III

We good to go!

Tagged with:  
© 2011 - Pass me the Mic