Upload
jmpascal
View
254
Download
0
Embed Size (px)
Citation preview
8/14/2019 [VMWare][ENG] How-To install and configure an Ubuntu Virtual Server
1/43
TutorialTutorial
How to prepareHow to prepareUbuntu 9.04 VMWare ImageUbuntu 9.04 VMWare Image
fromfromhttp://www.thoughtpolice.co.uk/http://www.thoughtpolice.co.uk/
Jean Marie PASCALJean Marie PASCAL
[email protected]@gmail.com
http://www.thoughtpolice.co.uk/http://www.thoughtpolice.co.uk/http://www.thoughtpolice.co.uk/8/14/2019 [VMWare][ENG] How-To install and configure an Ubuntu Virtual Server
2/43
02/11/09 http://www.open-source-ecm.com/ 2
Goals
8/14/2019 [VMWare][ENG] How-To install and configure an Ubuntu Virtual Server
3/43
02/11/09 http://www.open-source-ecm.com/ 3
Configuration UsedConfiguration Used
Operating System :Operating System : Windows XP SP2Windows XP SP2
ProcessorProcessor
Intel Core 2 DuoIntel Core 2 Duo
Computer memoryComputer memory
2Gb2Gb
8/14/2019 [VMWare][ENG] How-To install and configure an Ubuntu Virtual Server
4/43
02/11/09 http://www.open-source-ecm.com/ 4
Pre-requisitesPre-requisites
Installation ofInstallation ofPuttyPutty (Command lines)(Command lines)
WinSCPWinSCP (File Transfert)(File Transfert)
Basic knowledge on Linux commandsBasic knowledge on Linux commands
http://www.chiark.greenend.org.uk/~sgtatham/putty/download.htmlhttp://www.chiark.greenend.org.uk/~sgtatham/putty/download.htmlhttp://winscp.net/eng/docs/lang:frhttp://winscp.net/eng/docs/lang:frhttp://winscp.net/eng/docs/lang:frhttp://www.chiark.greenend.org.uk/~sgtatham/putty/download.html8/14/2019 [VMWare][ENG] How-To install and configure an Ubuntu Virtual Server
5/43
02/11/09 http://www.open-source-ecm.com/ 5
Download Ubuntu VMWare ImageDownload Ubuntu VMWare Image
Go toGo tohttp://www.thoughtpolice.co.uk/vmware/http://www.thoughtpolice.co.uk/vmware/
ChooseChooseUbuntu Server 9.04Ubuntu Server 9.04
Login :Login : notrootnotroot
Password :Password : thoughtpolicethoughtpolice
http://www.thoughtpolice.co.uk/vmware/http://www.thoughtpolice.co.uk/vmware/http://www.thoughtpolice.co.uk/vmware/8/14/2019 [VMWare][ENG] How-To install and configure an Ubuntu Virtual Server
6/43
02/11/09 http://www.open-source-ecm.com/ 6
Install VMWare FreePlayerInstall VMWare FreePlayer
VMWare FreePlayerVMWare FreePlayer http://www.vmware.com/products/player/http://www.vmware.com/products/player/
Launch .exe and follow the wizardLaunch .exe and follow the wizard
http://www.vmware.com/products/player/http://www.vmware.com/products/player/http://www.vmware.com/products/player/8/14/2019 [VMWare][ENG] How-To install and configure an Ubuntu Virtual Server
7/43
02/11/09 http://www.open-source-ecm.com/ 7
Start VMWare ImageStart VMWare Image
Start VMWare PlayerStart VMWare Player
Click on this pictureClick on this picture
Choose Ubuntu VMChoose Ubuntu VM
Wait the promptWait the prompt
8/14/2019 [VMWare][ENG] How-To install and configure an Ubuntu Virtual Server
8/43
02/11/09 http://www.open-source-ecm.com/ 8
Ubuntu 9.04 : ConfigurationUbuntu 9.04 : Configuration
Change keyboard configurationChange keyboard configuration sudo dpkg-reconfigure console-setupsudo dpkg-reconfigure console-setup
Change notroot user passwordChange notroot user password
Passwd Passwd
For more informations about how to configureFor more informations about how to configure
VMWare ImageVMWare Imagehttp://www.thoughtpolice.co.uk/vmware/howto/1-minuhttp://www.thoughtpolice.co.uk/vmware/howto/1-minu
http://www.thoughtpolice.co.uk/vmware/howto/1-minute-guide.htmlhttp://www.thoughtpolice.co.uk/vmware/howto/1-minute-guide.htmlhttp://www.thoughtpolice.co.uk/vmware/howto/1-minute-guide.html8/14/2019 [VMWare][ENG] How-To install and configure an Ubuntu Virtual Server
9/43
02/11/09 http://www.open-source-ecm.com/ 9
Update packagesUpdate packages
Type this commands :Type this commands : sudo apt-get updatesudo apt-get update
sudo apt-get upgradesudo apt-get upgrade
For more information about apt-get commandFor more information about apt-get command
https://help.ubuntu.com/community/AptGet/Howtohttps://help.ubuntu.com/community/AptGet/Howto
https://help.ubuntu.com/community/AptGet/Howtohttps://help.ubuntu.com/community/AptGet/Howtohttps://help.ubuntu.com/community/AptGet/Howto8/14/2019 [VMWare][ENG] How-To install and configure an Ubuntu Virtual Server
10/43
02/11/09 http://www.open-source-ecm.com/ 10
SSH InstallationSSH Installation
GoalsGoals Creating communication between Putty/Winscp and UbuntuCreating communication between Putty/Winscp and Ubuntu
VmWare Server.VmWare Server.
Type the command :Type the command :
sudo apt-get install sshsudo apt-get install ssh
Keep your Server IPKeep your Server IP
ifconfigifconfig
8/14/2019 [VMWare][ENG] How-To install and configure an Ubuntu Virtual Server
11/43
02/11/09 http://www.open-source-ecm.com/ 11
TroobleshootingTroobleshooting
If you have onlyIf you have only
Then type this commandsThen type this commands sudo rm /etc/udev/rules.d/70-persistent-net.rulessudo rm /etc/udev/rules.d/70-persistent-net.rules
sudo rebootsudo reboot
8/14/2019 [VMWare][ENG] How-To install and configure an Ubuntu Virtual Server
12/43
02/11/09 http://www.open-source-ecm.com/ 12
Connexion to your serverConnexion to your server
Check your connexion with WinSCPCheck your connexion with WinSCP
LoginLogin
8/14/2019 [VMWare][ENG] How-To install and configure an Ubuntu Virtual Server
13/43
02/11/09 http://www.open-source-ecm.com/ 13
Ubuntu configurationUbuntu configuration
Verify your connexion with PuttyVerify your connexion with Putty
LoginLogin
8/14/2019 [VMWare][ENG] How-To install and configure an Ubuntu Virtual Server
14/43
02/11/09 http://www.open-source-ecm.com/ 14
Modify rightsModify rights
Modifying rights on installation folderModifying rights on installation foldersudo chown -R notroot /optsudo chown -R notroot /opt
8/14/2019 [VMWare][ENG] How-To install and configure an Ubuntu Virtual Server
15/43
02/11/09 http://www.open-source-ecm.com/ 15
Your Image is nowYour Image is now
READY !READY !
8/14/2019 [VMWare][ENG] How-To install and configure an Ubuntu Virtual Server
16/43
EXTRASEXTRAS
8/14/2019 [VMWare][ENG] How-To install and configure an Ubuntu Virtual Server
17/43
02/11/09 http://www.open-source-ecm.com/ 17
CHANGE HOSTNAMECHANGE HOSTNAME
CHANGE IPCHANGE IP
INSTALLJAVA1.6INSTALLJAVA1.6
INSTALLUNZIPINSTALLUNZIP
INSTALLOPENOFFICEINSTALLOPENOFFICE
INSTALLMYSQLINSTALLMYSQL
INSTALLPOSTGRESQLINSTALLPOSTGRESQL
SUMMARY
8/14/2019 [VMWare][ENG] How-To install and configure an Ubuntu Virtual Server
18/43
HostnameHostname
8/14/2019 [VMWare][ENG] How-To install and configure an Ubuntu Virtual Server
19/43
02/11/09 http://www.open-source-ecm.com/ 19
HOSTNAMEHOSTNAME
Change hostnameChange hostnamesudo hostname sudo hostname
sudo vi /etc/hostssudo vi /etc/hosts
sudo vi /etc/hostnamesudo vi /etc/hostname
sudo rebootsudo reboot
8/14/2019 [VMWare][ENG] How-To install and configure an Ubuntu Virtual Server
20/43
UnzipUnzip
8/14/2019 [VMWare][ENG] How-To install and configure an Ubuntu Virtual Server
21/43
02/11/09 http://www.open-source-ecm.com/ 21
Unzip InstallationUnzip Installation
Connect to your Ubuntu Server with puttyConnect to your Ubuntu Server with putty:: sudo apt-get install unzipsudo apt-get install unzip
8/14/2019 [VMWare][ENG] How-To install and configure an Ubuntu Virtual Server
22/43
Image MagickImage Magick
Open OfficeOpen Office
SWFToolsSWFTools
8/14/2019 [VMWare][ENG] How-To install and configure an Ubuntu Virtual Server
23/43
02/11/09 http://www.open-source-ecm.com/ 23
Transformer InstallationTransformer Installation
Connect to your Ubuntu Server with puttyConnect to your Ubuntu Server with putty::Sudo apt-get install 'openoffice.orgSudo apt-get install 'openoffice.org
Sudo apt-get install swftoolsSudo apt-get install swftools
Sudo apt-get install imagemagickSudo apt-get install imagemagick
8/14/2019 [VMWare][ENG] How-To install and configure an Ubuntu Virtual Server
24/43
JavaJava
8/14/2019 [VMWare][ENG] How-To install and configure an Ubuntu Virtual Server
25/43
02/11/09 http://www.open-source-ecm.com/ 25
JVM InstallationJVM Installation
Connect to your Ubuntu Server with puttyConnect to your Ubuntu Server with putty:: sudo apt-get install sun-java6-jdksudo apt-get install sun-java6-jdk
8/14/2019 [VMWare][ENG] How-To install and configure an Ubuntu Virtual Server
26/43
02/11/09 http://www.open-source-ecm.com/ 26
JVM Installation : environment variablesJVM Installation : environment variables
Define the CLASSPATH & JAVA_HOME variableDefine the CLASSPATH & JAVA_HOME variable
::
vi /home/notroot/.bashrcvi /home/notroot/.bashrc
Add following lines at the end of the fileAdd following lines at the end of the file
Restart PuttyRestart Putty
Check the following message is displayedCheck the following message is displayed
8/14/2019 [VMWare][ENG] How-To install and configure an Ubuntu Virtual Server
27/43
MySQLMySQL
8/14/2019 [VMWare][ENG] How-To install and configure an Ubuntu Virtual Server
28/43
02/11/09 http://www.open-source-ecm.com/ 28
MySQL installationMySQL installation
Connect to your Ubuntu Server with puttyConnect to your Ubuntu Server with putty:: sudo apt-get install mysql-serversudo apt-get install mysql-server
For more details on mysql installation :For more details on mysql installation : https://help.ubuntu.com/community/JDBCAndMySQLhttps://help.ubuntu.com/community/JDBCAndMySQL
https://help.ubuntu.com/community/JDBCAndMySQL?highlight=%28mysql%29https://help.ubuntu.com/community/JDBCAndMySQL?highlight=%28mysql%29https://help.ubuntu.com/community/JDBCAndMySQL?highlight=%28mysql%298/14/2019 [VMWare][ENG] How-To install and configure an Ubuntu Virtual Server
29/43
02/11/09 http://www.open-source-ecm.com/ 29
MySQL InstallationMySQL Installation Modifying rights to permit remote accessModifying rights to permit remote access
sudo vi /etc/mysql/my.cnfsudo vi /etc/mysql/my.cnf Comment the lineComment the line
Edit this lineEdit this line
Connect to MySQL with command linesConnect to MySQL with command lines sudo mysql u root psudo mysql u root p
To prompt, execute this commandsTo prompt, execute this commands
grant all privileges on *.* to 'root'@' with grant option;grant all privileges on *.* to 'root'@' with grant option;
set password for 'root'@'=password(');set password for 'root'@'=password(');
8/14/2019 [VMWare][ENG] How-To install and configure an Ubuntu Virtual Server
30/43
02/11/09 http://www.open-source-ecm.com/ 30
MySQL InstallationMySQL Installation
Restart MysqlRestart Mysql sudo /etc/init.d/mysql restartsudo /etc/init.d/mysql restart
Check yout installationCheck yout installation
mysql -u root -p mysql -u root -p
8/14/2019 [VMWare][ENG] How-To install and configure an Ubuntu Virtual Server
31/43
02/11/09 http://www.open-source-ecm.com/ 31
MySQL GUI Tools InstallationMySQL GUI Tools Installation
Download the last version of MySQL GUI ToolsDownload the last version of MySQL GUI Tools
RessourceRessource :: MysqlMysqlGUI ToolsGUI Tools
Follow installation wizard instructionsFollow installation wizard instructions
http://dev.mysql.com/downloads/gui-tools/5.0.htmlhttp://dev.mysql.com/downloads/gui-tools/5.0.htmlhttp://dev.mysql.com/downloads/gui-tools/5.0.htmlhttp://dev.mysql.com/downloads/gui-tools/5.0.htmlhttp://dev.mysql.com/downloads/gui-tools/5.0.htmlhttp://dev.mysql.com/downloads/gui-tools/5.0.html8/14/2019 [VMWare][ENG] How-To install and configure an Ubuntu Virtual Server
32/43
02/11/09 http://www.open-source-ecm.com/ 32
MySQL GUI Tools InstallationMySQL GUI Tools Installation
Run MySQL Administrator
Check your connexion
8/14/2019 [VMWare][ENG] How-To install and configure an Ubuntu Virtual Server
33/43
PostgreSQLPostgreSQL
8/14/2019 [VMWare][ENG] How-To install and configure an Ubuntu Virtual Server
34/43
02/11/09 http://www.open-source-ecm.com/ 34
PostgreSQL InstallationPostgreSQL Installation
Connect to your Ubuntu Server with puttyConnect to your Ubuntu Server with putty:: sudo apt-get install postgresqlsudo apt-get install postgresql
For more informationsFor more informationshttps://help.ubuntu.com/community/PostgreSQLhttps://help.ubuntu.com/community/PostgreSQL
http://www.postgresql.org/docs/http://www.postgresql.org/docs/
https://help.ubuntu.com/community/PostgreSQLhttps://help.ubuntu.com/community/PostgreSQLhttp://www.postgresql.org/docs/http://www.postgresql.org/docs/http://www.postgresql.org/docs/https://help.ubuntu.com/community/PostgreSQL8/14/2019 [VMWare][ENG] How-To install and configure an Ubuntu Virtual Server
35/43
02/11/09 http://www.open-source-ecm.com/ 35
PostgreSQL InstallationPostgreSQL Installation
How to init postgres passwordHow to init postgres password (Database side)(Database side)sudo -u postgres psql postgressudo -u postgres psql postgres
\password postgres\password postgres
\q\q(to quit)(to quit)
How to init postgres passwordHow to init postgres password (linux user side)(linux user side)
8/14/2019 [VMWare][ENG] How-To install and configure an Ubuntu Virtual Server
36/43
02/11/09 http://www.open-source-ecm.com/ 36
PostgreSQL InstallationPostgreSQL Installation
To create a remote access to PostgreSQLTo create a remote access to PostgreSQLEdit configuration fileEdit configuration file
sudo visudo vi
/etc/postgresql/8.3/main/postgresql.conf/etc/postgresql/8.3/main/postgresql.conf
Open remote accessOpen remote access
uncomment this lineuncomment this line
Change this lineChange this line
Password protectionPassword protection
Uncomment this lineUncomment this line
8/14/2019 [VMWare][ENG] How-To install and configure an Ubuntu Virtual Server
37/43
02/11/09 http://www.open-source-ecm.com/ 37
PostgreSQL InstallationPostgreSQL Installation
To create a remote access to PostgreSQLTo create a remote access to PostgreSQLEdit configuration fileEdit configuration file
sudo vi /etc/postgresql/8.3/main/pg_hba.confsudo vi /etc/postgresql/8.3/main/pg_hba.conf
Open remote accessOpen remote access
Add this line at the end of the fileAdd this line at the end of the file
Your server IP
8/14/2019 [VMWare][ENG] How-To install and configure an Ubuntu Virtual Server
38/43
02/11/09 http://www.open-source-ecm.com/ 38
PostgreSQL InstallationPostgreSQL Installation
Restart PostgreSQLRestart PostgreSQLsudo /etc/init.d/postgresql-8.3 restartsudo /etc/init.d/postgresql-8.3 restart
8/14/2019 [VMWare][ENG] How-To install and configure an Ubuntu Virtual Server
39/43
02/11/09 http://www.open-source-ecm.com/ 39
Pgadmin III InstallationPgadmin III Installation
Download this application at :Download this application at :http://www.pgadmin.org/download/http://www.pgadmin.org/download/
http://www.pgadmin.org/download/http://www.pgadmin.org/download/http://www.pgadmin.org/download/8/14/2019 [VMWare][ENG] How-To install and configure an Ubuntu Virtual Server
40/43
02/11/09 http://www.open-source-ecm.com/ 40
Pgadmin III InstallationPgadmin III Installation
Unzip the file and executeUnzip the file and execute
Follow the wizardFollow the wizard
8/14/2019 [VMWare][ENG] How-To install and configure an Ubuntu Virtual Server
41/43
02/11/09 http://www.open-source-ecm.com/ 41
Using PGAdmin IIIUsing PGAdmin III
Start pgadmin IIIStart pgadmin III
Click on this picture to addClick on this picture to add
a servera server
Fill the formFill the form
8/14/2019 [VMWare][ENG] How-To install and configure an Ubuntu Virtual Server
42/43
02/11/09 http://www.open-source-ecm.com/ 42
Using PGAdmin IIIUsing PGAdmin III
Check Server propertiesCheck Server properties
8/14/2019 [VMWare][ENG] How-To install and configure an Ubuntu Virtual Server
43/43
How to prepareHow to prepare
Ubuntu 9.04 VMWare ImageUbuntu 9.04 VMWare Imagefromfrom http://www.thoughtpolice.co.uk/http://www.thoughtpolice.co.uk/
By JM.PASCALBy JM.PASCAL
www.opensourceecm.frwww.opensourceecm.fr
&&www.open-source-ecm.comwww.open-source-ecm.com
http://www.thoughtpolice.co.uk/http://www.thoughtpolice.co.uk/http://www.opensourceecm.fr/http://www.opensourceecm.fr/http://www.open-source-ecm.com/http://www.open-source-ecm.com/http://www.open-source-ecm.com/http://www.opensourceecm.fr/http://www.thoughtpolice.co.uk/