Step-By-Step Install Guide Ubuntu 9.10 Karmic Server
Step-By-Step Install Guide Ubuntu 9.10 Karmic Server
1.0 Introduction 1
Part 1: Install & Configure Ubuntu 9.10 LTS (Karmic Koala) Server 1
Step 1: Getting Started & Hardware Pre-requisites 1
Step 2: Install Linux Ubuntu 9.10 Karmic Koala 2
Step 3: Update Ubuntu 9.10 Operating Systems 20
1
© April 2007, Kefa Rabah, Global Open Versity, Vancouver Canada
1.0 Introduction
In this Hands-on Labs session, we’re going to lean how to install & configure the Karmic Koala a.k.a
Ubuntu 9.10 LTS server option. It’s lean, fast and powerful – Ubuntu 9.10 Server Edition has a bunch of
other features that have been tweaked and improved. The server edition includes the MySQL 5.1
database, tighter integration with the PowerNap server quiescing tool, and support for the Web-Based
Enterprise Management protocol (WBEM), so system management tools from the major server makers
(IBM, Dell, and Hewlett-Packard) as well as those from CA can reach in and monitor and manage Ubuntu
as they do other operating systems. The 9.10 server update also sports performance improvements for
both the KVM and Xen hypervisors. Just because KVM is the preferred hypervisor doesn't mean
Canonical has to ignore Xen, just like Red Hat, which owns the KVM hypervisor (well, essentially) is still
tweaking Xen with its releases. ®. It also includes improved installation and management tools for Ubuntu
Enterprise Cloud (UEC) and Amazon EC2.
You don't have to do anything special to get the Ubuntu Enterprise Cloud tools. They are part of the
Ubuntu Server 9.10 distribution. For example, people who have been exploring cloud computing do not
have rely only to the public clouds – the UEC allows individuals and companies to build private cloud
internally first, and then think about how to make use of public clouds like EC2. Amazon EC2-compatible
Ubuntu Enterprise Cloud.
Hands-on Labs
In this Hands-on Lab session, you’ll learn how to setup virtual network on VMware (you may also use any
other virtual machines like MS VirtualPC, Linux Xen, or VirtualBox from Oracle). In this lab session, we’ll
concentrate on installing Linux Ubuntu 9.10 LTS Server which you can then later use to install any other
applications as desired. You will learn how to pre-install DNS server, LAMP server, Mail server, OpenSSL
server, PostgreSQL database, Tomcat Java Server during the initial system installation. Once you
installed and updated the server, then you can use it to install GNOME Desktop, LAMP; DNS server,
Postfix mail server with Dovecot for POP3/IMAP, Evolution mail client, and Webmin to help you with
administrating and configuring other application servers like Apache2, MySQL, FTP, DNS etc. You’ll also
have opportunity to learn some troubleshooting techniques and also do some lab assignments at the end
of the lab session.
Part 1: Install & Configure Ubuntu 9.10 LTS (Karmic Koala) Server
you are purchasing a computer to run OSCAR, one option is to order the machine with Ubuntu pre-
installed.
In this Hands-on Labs, it’s assumed that your target computer is connected to the internet. After installing
the operating system, log into your machine and ensure you perform software updates to bring your
systems up-to-date.
2. Once you have downloaded the Ubuntu ISO specific to your distribution, you have the option burning
it into CD or just by using the ISO package to install it from your virtual machine, in our case VMware.
3. Fire-up a new virtual machine and perform the initial configuration and setup to use ISO package.
4. Start the virtual machine, and you should be able to see the first Ubuntu installation screen.
5. From Fig. 1, select the language desired and hit Enter key.
Fig. 1
6. From Fig. 2, select the option desired and then hit the Enter key to commence installation. In our case
we have selected to Install Ubuntu Server option.
2
© April 2007, Kefa Rabah, Global Open Versity, Vancouver Canada
Fig. 2
7. From Fig. 3, Choose language screen, select English option, and hit the Enter key.
Fig. 3
3
© April 2007, Kefa Rabah, Global Open Versity, Vancouver Canada
8. From Fig. 4, Choose language screen, Choose a country, select United States option, and hit Enter
Fig. 4
9. From the Ubuntu installer main menu screen, Fig. 5, accept the default selected <No> and hit the
Enter key to continue.
Fig. 5
10. From the Ubuntu installer main menu screen, Fig. 6, Origin of keyboard, select USA and hit
the Enter key to continue.
4
© April 2007, Kefa Rabah, Global Open Versity, Vancouver Canada
Fig. 6
11. From the Ubuntu installer main menu screen, Fig. 7, Keyboard layout, select USA and hit the
Enter key to continue.
Fig. 7
5
© April 2007, Kefa Rabah, Global Open Versity, Vancouver Canada
12. From Fig. 8, the Detecting hardware to find CD-ROM drives screen, wait for the system complete
the process.
13. From Fig. 9, the Loading additional components screen, wait for the system complete the process.
Fig. 9
14. From Fig. 9a, the Configuring the network with DHCP screen, wait for the system complete the
process.
Fig. 9a
15. From Fig. 10, the Configure the network screen, enter desired the Hostname: cloud, change as
desired, and hit the Tab key to select <Continue> and hit the Enter key to continue.
6
© April 2007, Kefa Rabah, Global Open Versity, Vancouver Canada
Fig. 10
16. From Fig. 11, the setting up the clock screen, wait for the system to complete the process.
Fig. 11
17. From Fig. 12, the Configure the clock screen, accept the default selection for the time zone, or
change as desired, and then hit the Enter key to continue.
7
© April 2007, Kefa Rabah, Global Open Versity, Vancouver Canada
Fig. 12
18. From Fig. 13, the Starting up the partitioner screen, wait for the system to complete the process.
Fig. 13
19. From Fig. 14, the Partition disks screen, accept the default selection, or change as desired, and then
hit the Enter key to continue.
8
© April 2007, Kefa Rabah, Global Open Versity, Vancouver Canada
Fig. 14
20. From Fig. 15, the Partition disks screen, accept the default selection, or change as desired, and then
hit the Enter key to continue.
Fig. 15
9
© April 2007, Kefa Rabah, Global Open Versity, Vancouver Canada
21. From Fig. 16, the Partition disks screen, select <Yes>, or change as desired, and then hit the Enter
key to continue.
Fig. 16
22. From Fig. 17, the Partition disks screen, accept the default selection of 21.2GB, or change as
desired, and then hit the Tab key to select <Continue> and hit the Enter key to continue.
Fig. 17
10
© April 2007, Kefa Rabah, Global Open Versity, Vancouver Canada
23. From Fig. 18, the Partition disks screen, read the warning and then select <Yes>, or change as
desired, and then hit the Enter key to continue.
Fig. 18
24. From Fig. 19, the Partition disks screen, wait for the system to complete the process.
Fig. 19
25. From Fig. 20, the Installing the base system screen, wait for the system to complete the process.
Fig. 20
11
© April 2007, Kefa Rabah, Global Open Versity, Vancouver Canada
26. From Fig. 21, the Setup users and passwords screen, enter the full name of the user: Net Admin,
or change as desired, and then select <Continue> and hit the Enter key to continue.
Fig. 21
27. From Fig. 22, the Setup users and passwords screen, enter the username of the user: netadmin,
or change as desired, and then select <Continue> and hit the Enter key to continue.
Fig. 22
12
© April 2007, Kefa Rabah, Global Open Versity, Vancouver Canada
28. From Fig. 23, the Setup users and passwords screen; enter the password of the user netadmin,
and then select <Continue> and hit the Enter key to continue.
Fig. 23
Note: Reenter the password when prompted.
29. From Fig. 24, the Setup users and passwords screen; accepted the selection <No> not to encrypt
your home directory, or change as desired, and then hit the Enter key to continue.
Fig. 24
30. From Fig. 25, the Configuring apt screen, wait for the system to complete the process.
Fig. 25
13
© April 2007, Kefa Rabah, Global Open Versity, Vancouver Canada
31. From Fig. 26, the Configuring the package manager screen; leave HTTP proxy blank, hit the Tab
key to select <Continue> and hit the Enter key to continue.
Fig. 26
32. From Fig. 27, the Configuring apt screen, the system will continue with configuring apt, wait for the
system to complete the process.
Fig. 27
33. From Fig. 28, the Select and install software screen, select the desired update option, and hit the
Enter key to continue.
Fig. 28
14
© April 2007, Kefa Rabah, Global Open Versity, Vancouver Canada
34. From Fig. 29, the Select and install software screen, wait for the system to complete the process.
Fig. 29
35. From Fig. 30, the Software selection screen, choose the software to install, and then hit the Enter
key to continue.
Fig. 30
36. From Fig. 31, the Select and install software screen, again wait for the system to complete the
process.
15
© April 2007, Kefa Rabah, Global Open Versity, Vancouver Canada
Fig. 31
37. From Fig. 30, the Configuring mysql-server-5.1 screen; enter a secure password, and then hit the
Tab key to select <Continue> and hit the Enter key to continue.
Fig. 31
Note: Reenter the password when prompted.
38. From Fig. 32, the Postfix Configuration screen; accept the default selection or change as desired,
and then hit the Enter key to continue.
16
© April 2007, Kefa Rabah, Global Open Versity, Vancouver Canada
Fig. 32
39. From Fig. 32a, the Postfix Configuration screen; under System mail name:
govecloudserver.com, or change as desired, and then hit the Tab key to select <Continue> and
hit the Enter key to continue.
Fig. 32a
17
© April 2007, Kefa Rabah, Global Open Versity, Vancouver Canada
40. From Fig. 33, the Select and install software screen, again wait for the system to complete the
process.
Fig. 33
41. From Fig. 34, the Installing GRUB boot loader screen, wait for the system to complete the process.
Fig. 34
42. From Fig. 35, the Finish installation screen; Installation complete. Remove the installation
CD, and hit the Enter key to restart the system.
Fig. 35
43. From Fig. 36, the Finish installation screen; Rebooting into your new ... and wait for the
system complete rebooting.
18
© April 2007, Kefa Rabah, Global Open Versity, Vancouver Canada
Fig. 36
44. From Fig. 37, you can observer the system startup process.
45. Figure 38 shows the login screen, enter your username and password your entered during the
installation stage.
Fig. 38
46. From Fig. 39, enter your username and password, same as the one entered during the installation
stage, and hit enter.
19
© April 2007, Kefa Rabah, Global Open Versity, Vancouver Canada
47. To check you server IP address, if the ifconfig command, as shown in Fig. 40.
1. From the command line, enter the following commands, one at a time.
Note 1: The sudo command is used to run privileged operations on the Ubuntu platform. The first
time you run the command, it will ask for your password. Subsequently, it will not ask for your
password again for a short period of time (typically 15 minutes).
Note 2: apt-get is the program Ubuntu uses for managing the system’s packages. When used to
manipulate the core packages of the operating system, it needs to be run in conjunction with the sudo
command.
the above command will install GNOME desktop, see Fig. 41.
21
© April 2007, Kefa Rabah, Global Open Versity, Vancouver Canada
Login with appropriate user credentials as entered during on initial setup, and you should be logged
into your Desktop, as shown in Fig. 42.
22
© April 2007, Kefa Rabah, Global Open Versity, Vancouver Canada
2. Alternatively, if you want to install KDE desktop use the following command:
3. Once done, if desired, you can go ahead and upgrade to the latest version of Ubuntu which at the
time of writing is Ubuntu 10.10 Maverick Meerkat.
2. Apache configuration file is located at: /etc/apache2/apache2.conf and your web folder is
/var/www.
3. To check whether PHP is installed and running properly, just create a testinfo.php in your
/var/www folder with phpinfo() function exactly as shown below.
vi /var/www/testinfo.php
<?php
/* testinfo.php */
phpinfo();
?>
Note: you can edit necessary values or setup virtual domains using apache configuration file.
1. Again if you didn’t pre-install the MySQL database server, then no worries - the following commands
will install mysql 5 server and mysql 5 client.
Warning! By default there is no root password set for MySQL and it is important to set the password
for the ROOT account.
2.1 Manually Creating users to use MySQL and Changing Root Password
2. By default mysql creates user as root and runs with no passport. You might need to setup the root
password.
24
© April 2007, Kefa Rabah, Global Open Versity, Vancouver Canada
mysql -u root
mysql> USE mysql;
mysql> UPDATE user SET Password=PASSWORD('new-password') WHERE user='root';
mysql> FLUSH PRIVILEGES;
Note: you must never use root password, so you might need to create a user to connect to mysql
database for a PHP script. Alternatively you can add users to mysql database by using a control panel
like Webmin or phpMyAdmin to easily create or assign database permission to users. We will install
Webmin and phpmyadmin during later once we complete basic installation.
4. You can also try remote localhost login as "root" user, as follows:
Fig. 43
1. Now let’s login and create "webserverdb" database and "netadmin" user , as follows:
# mysql -u root -p
> CREATE DATABASE webserverdb DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci;
> GRANT ALL PRIVILEGES ON webserverdb.* TO 'labadmin'@'localhost' IDENTIFIED BY
'password';
> FLUSH PRIVILEGES;
> QUIT
25
© April 2007, Kefa Rabah, Global Open Versity, Vancouver Canada
Fig. 44
Note: you’ll be prompted to choose the webserver phpMyAdmin will use, as shown in Fig. 45.
26
© April 2007, Kefa Rabah, Global Open Versity, Vancouver Canada
Fig. 45
3. On the next page, Fig. 46, accept the default selection and hit enter to continue. You’ll be asked to
provide MySQL root user password and database password.
Fig. 46
sudo ldconfig
27
© April 2007, Kefa Rabah, Global Open Versity, Vancouver Canada
/etc/init.d/apache2 restart
8. Next, fire-up your browser and point it to: http://your-domain/phpmyadmin. Login with appropriate
MySQL database user with appropriate privileges, see Fig. 47. Do ensure that you have enabled
cookies for the phpMyAdmin to function properly.
Fig. 47
9. You should now be logged in to your MySQL database as shown in Fig. 48.
28
© April 2007, Kefa Rabah, Global Open Versity, Vancouver Canada
Fig. 48
10. That's it! MySQL and phpMyAdmin are ready. Log in with your mysql root password and create users
to connect to database from your PHP script.
13. To log into a remote computer that is running OpenSSH, you use the ssh username@hostname
command, replacing username with a valid user name on the computer you are trying to log into, and
29
© April 2007, Kefa Rabah, Global Open Versity, Vancouver Canada
replacing hostname with either the fully qualified host name (e.g. example.com) of your server, or
it’s IP address (e.g. 192.168.83.186).
Fig. 49
You can install Webmin for your server web interface to configure Apache2, MySQL, FTP, DNS servers
and many more. Now we will see how to install Webmin in Ubuntu 9.10 Karmic Koala.
2. Now download the latest Webmin using the following command or from here
30
© April 2007, Kefa Rabah, Global Open Versity, Vancouver Canada
wget http://www.webmin.com/download/deb/webmin-current.deb
3. Now we have webmin_1.520_all.deb package install this package using the following command
Note: incase you encounter any errors or difficulties in installing dependency; then immediately issue
the command:
Note: Ubuntu in particular don’t allow logins by the root user by default. However, the user created at
system installation time can use sudo to switch to root. Webmin will allow any user who has this sudo
capability to login with full root privileges.
Now you need to open your web browser and enter the following: https://localhost:10000/
https://your-server-ip:10000/, https://your-domain:10000
Note: On the “Error – Bad Request” page, click the link to continue.
31
© April 2007, Kefa Rabah, Global Open Versity, Vancouver Canada
Note: on the This Connection is Untrusted page, click I Understand the Risk link, and then click
Add Exception… button. Final click Get Certificate button, followed by Confirm Security Exception
button
5. Now you should see the page similar to the following Screen, see Fig. 63.Enter your username and
password created during the initial installation, in our case user: netadmin and password: xxxxxx.
Fig. 63
32
© April 2007, Kefa Rabah, Global Open Versity, Vancouver Canada
Note: Once logged in, you may be asked to install the latest Webmin by clicking Install Update Now
button at the bottom of the screen.
6. After login if you want to configure Apache2, MySQL server you need to click on Servers on your left-
hand side you should many servers are ready to configure, as shown in Fig. 64.
33
© April 2007, Kefa Rabah, Global Open Versity, Vancouver Canada
Call us today:
Email: [email protected]. URL: www.globalopenversity.org
-----------------------------------------------
Kefa Rabah is the Founder of Global Technology Solutions Institute. Kefa is knowledgeable in several
fields of Science & Technology, Information Security Compliance and Project Management, and
Renewable Energy Systems. He is also the founder of Global Open Versity, a place to enhance your
educating and career goals using the latest innovations and technologies.