You are on page 1of 43

Tutorial

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

Jean Marie PASCAL


jeanmarie.pascal@gmail.com
Goals
 Download Ubuntu VMWare Image

 Install VMWare FreePlayer

 Configure Ubuntu Image

 Install SSH

 Check connexion

23/07/2018 http://www.open-source-ecm.com/ 2
Configuration Used
 Operating System :
 Windows XP SP2

 Processor
 Intel Core 2 Duo

 Computer memory
 2Gb

23/07/2018 http://www.open-source-ecm.com/ 3
Pre-requisites
 Installation of
 Putty (Command lines)
 WinSCP (File Transfert)

 Basic knowledge on Linux commands

23/07/2018 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

23/07/2018 http://www.open-source-ecm.com/ 5
Install VMWare FreePlayer
 VMWare FreePlayer
 http://www.vmware.com/products/player/

 Launch .exe and follow the wizard

23/07/2018 http://www.open-source-ecm.com/ 6
Start VMWare Image
 Start VMWare Player

 Click on this picture


 Choose Ubuntu VM

 Wait the prompt

23/07/2018 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-
minute-guide.html

23/07/2018 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

23/07/2018 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

23/07/2018 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

23/07/2018 http://www.open-source-ecm.com/ 11
Connexion to your server
 Check your connexion with WinSCP

 Login

23/07/2018 http://www.open-source-ecm.com/ 12
Ubuntu configuration
 Verify your connexion with Putty

 Login

23/07/2018 http://www.open-source-ecm.com/ 13
Modify rights
Modifying rights on installation folder
sudo chown -R notroot /opt

23/07/2018 http://www.open-source-ecm.com/ 14
Your Image is now
READY !

23/07/2018 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

23/07/2018 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 <my-hostname>

sudo reboot

23/07/2018 http://www.open-source-ecm.com/ 19
Unzip
Unzip Installation
 Connect to your Ubuntu Server with putty :
 sudo apt-get install unzip

23/07/2018 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

23/07/2018 http://www.open-source-ecm.com/ 23
Java
JVM Installation
 Connect to your Ubuntu Server with putty :
 sudo apt-get install sun-java6-jdk

23/07/2018 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

23/07/2018 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/JDBCAndMy
SQL?highlight=%28mysql%29

23/07/2018 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>');

23/07/2018 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>

23/07/2018 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

23/07/2018 http://www.open-source-ecm.com/ 31
MySQL GUI Tools Installation
 Run MySQL Administrator

 Check your connexion

23/07/2018 http://www.open-source-ecm.com/ 32
PostgreSQL
PostgreSQL Installation
 Connect to your Ubuntu Server with putty:
 sudo apt-get install postgres

 For more informations


 https://help.ubuntu.com/community/PostgreSQL
 http://www.postgresql.org/docs/

23/07/2018 http://www.open-source-ecm.com/ 34
PostgreSQL Installation
 How to init postgres password (Database side)
sudo su postgres -c psql template1
 ALTER USER postgres WITH PASSWORD 'password';

\q (to quit)

 How to init postgres password (linux user side)

23/07/2018 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

23/07/2018 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
23/07/2018 http://www.open-source-ecm.com/ 37
PostgreSQL Installation
 Restart PostgreSQL
sudo /etc/init.d/postgresql-8.3 restart

23/07/2018 http://www.open-source-ecm.com/ 38
Pgadmin III Installation
 Download this application at :
http://www.pgadmin.org/download/

23/07/2018 http://www.open-source-ecm.com/ 39
Pgadmin III Installation
 Unzip the file and execute
 Follow the wizard

23/07/2018 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

23/07/2018 http://www.open-source-ecm.com/ 41
Using PGAdmin III
 Check Server properties

<hostname>

23/07/2018 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

You might also like