Tutorial

How to prepare Ubuntu 9.04 VMWare Image from http://www.thoughtpolice.co.uk/
Jean Marie PASCAL jeanmarie.pascal@gmail.com

Goals

02/11/09

http://www.open-source-ecm.com/

2

Configuration Used
 Operating System :
 Windows XP SP2

 Processor
 Intel Core 2 Duo

 Computer memory
 2Gb

02/11/09

http://www.open-source-ecm.com/

3

Pre-requisites
 Installation of
 Putty (Command lines)  WinSCP (File Transfert)

 Basic knowledge on Linux commands

02/11/09

http://www.open-source-ecm.com/

4

Download Ubuntu VMWare Image
 Go to
 http://www.thoughtpolice.co.uk/vmware/

 Choose
 Ubuntu Server 9.04

 Login : notroot  Password : thoughtpolice

02/11/09

http://www.open-source-ecm.com/

5

Install VMWare FreePlayer
 VMWare FreePlayer
 http://www.vmware.com/products/player/

 Launch .exe and follow the wizard

02/11/09

http://www.open-source-ecm.com/

6

Start VMWare Image
 Start VMWare Player

 Click on this picture
 Choose Ubuntu VM

 Wait the prompt

02/11/09

http://www.open-source-ecm.com/

7

Ubuntu 9.04 : Configuration
 Change keyboard configuration
 sudo dpkg-reconfigure console-setup

 Change « notroot » user password
 Passwd <my-password>

 For more informations about how to configure VMWare Image

 http://www.thoughtpolice.co.uk/vmware/howto/1-minut

02/11/09

http://www.open-source-ecm.com/

8

Update packages
 Type this commands :
 sudo apt-get update  sudo apt-get upgrade

 For more information about apt-get command
 https://help.ubuntu.com/community/AptGet/Howto

02/11/09

http://www.open-source-ecm.com/

9

SSH Installation
 Goals
 Creating communication between Putty/Winscp and Ubuntu VmWare Server.

 Type the command :  sudo apt-get install ssh  Keep your Server IP  ifconfig

02/11/09

http://www.open-source-ecm.com/

10

Troobleshooting
 If you have only

 Then type this commands
 sudo rm /etc/udev/rules.d/70-persistent-net.rules  sudo reboot

02/11/09

http://www.open-source-ecm.com/

11

Connexion to your server
 Check your connexion with WinSCP

 Login

02/11/09

http://www.open-source-ecm.com/

12

Ubuntu configuration
 Verify your connexion with Putty

 Login

02/11/09

http://www.open-source-ecm.com/

13

Modify rights
 Modifying rights on installation folder
sudo chown -R notroot /opt

02/11/09

http://www.open-source-ecm.com/

14

Your Image is now READY !

02/11/09

http://www.open-source-ecm.com/

15

EXTRAS

SUMMARY
CHANGE HOSTNAME CHANGE IP INSTALL JAVA 1.6 INSTALL UNZIP INSTALL OPENOFFICE INSTALL MYSQL  INSTALL POSTGRESQL      

02/11/09

http://www.open-source-ecm.com/

17

Hostname

HOSTNAME
Change hostname
sudo hostname <my-hostname> sudo vi /etc/hosts
<my-hostname> <my-hostname>

sudo vi /etc/hostname sudo reboot

<my-hostname>

02/11/09

http://www.open-source-ecm.com/

19

Unzip

Unzip Installation
 Connect to your Ubuntu Server with putty :
 sudo apt-get install unzip

02/11/09

http://www.open-source-ecm.com/

21

Image Magick Open Office SWFTools

Transformer Installation
 Connect to your Ubuntu Server with putty :
 Sudo apt-get install 'openoffice.org’  Sudo apt-get install swftools  Sudo apt-get install imagemagick

02/11/09

http://www.open-source-ecm.com/

23

Java

JVM Installation
 Connect to your Ubuntu Server with putty :
 sudo apt-get install sun-java6-jdk

02/11/09

http://www.open-source-ecm.com/

25

JVM Installation : environment variables
 Define the CLASSPATH & JAVA_HOME variable :
 vi /home/notroot/.bashrc

 Add following lines at the end of the file

 Restart Putty

 Check the following message is displayed

02/11/09

http://www.open-source-ecm.com/

26

MySQL

MySQL installation
 Connect to your Ubuntu Server with putty :
 sudo apt-get install mysql-server

 For more details on mysql installation :

 https://help.ubuntu.com/community/JDBCAndMySQL?

02/11/09

http://www.open-source-ecm.com/

28

MySQL Installation
 Modifying rights to permit remote access
   sudo vi /etc/mysql/my.cnf Comment the line Edit this line

 Connect to MySQL with command lines
 sudo mysql –u root –p

 To prompt, execute this commands
 grant all privileges on *.* to 'root'@‘<ip.address>' with grant option;  set password for 'root'@’<ip.address>'=password(’<password>');

02/11/09

http://www.open-source-ecm.com/

29

MySQL Installation
 Restart Mysql
 sudo /etc/init.d/mysql restart

 Check yout installation
 mysql -u root -p <password>

02/11/09

http://www.open-source-ecm.com/

30

MySQL GUI Tools Installation
 Download the last version of MySQL GUI Tools
 Ressource : Mysql GUI Tools 

 Follow installation wizard instructions

02/11/09

http://www.open-source-ecm.com/

31

MySQL GUI Tools Installation
 Run MySQL Administrator

 Check your connexion
02/11/09 http://www.open-source-ecm.com/ 32

PostgreSQL

PostgreSQL Installation
 Connect to your Ubuntu Server with putty:
 sudo apt-get install postgresql

 For more informations
 https://help.ubuntu.com/community/PostgreSQL  http://www.postgresql.org/docs/
02/11/09 http://www.open-source-ecm.com/ 34

PostgreSQL Installation
 How to init postgres password (Database side)
sudo -u postgres psql postgres \password postgres \q (to quit)

 How to init postgres password (linux user side)

02/11/09

http://www.open-source-ecm.com/

35

PostgreSQL Installation
 To create a remote access to PostgreSQL

Edit configuration file sudo vi /etc/postgresql/8.3/main/postgresql.conf Open remote access
uncomment this line Change this line

Password protection
Uncomment this line
02/11/09 http://www.open-source-ecm.com/ 36

PostgreSQL Installation
 To create a remote access to PostgreSQL

Edit configuration file
sudo vi /etc/postgresql/8.3/main/pg_hba.conf

 Open remote access

Add this line at the end of the file

Your server IP
02/11/09 http://www.open-source-ecm.com/ 37

PostgreSQL Installation
 Restart PostgreSQL
sudo /etc/init.d/postgresql-8.3 restart

02/11/09

http://www.open-source-ecm.com/

38

Pgadmin III Installation
 Download this application at :

http://www.pgadmin.org/download/

02/11/09

http://www.open-source-ecm.com/

39

Pgadmin III Installation
 Unzip the file and execute  Follow the wizard

02/11/09

http://www.open-source-ecm.com/

40

Using PGAdmin III
 Start pgadmin III  Click on this picture to add a server
<hostname>

 Fill the form

02/11/09

http://www.open-source-ecm.com/

41

Using PGAdmin III
 Check Server properties
<hostname>

02/11/09

http://www.open-source-ecm.com/

42

How to prepare Ubuntu 9.04 VMWare Image from http://www.thoughtpolice.co.uk/

By JM.PASCAL
www.opensourceecm.fr & www.open-source-ecm.com