Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
1.0 Introduction 1
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 Linux Ubuntu 9.04 LTS
(Jaunty Jackalopes) server option.
The Ubuntu 9.04 Desktop and Server editions and Ubuntu Netbook Remix, which emphasized on the
continued Ubuntu's tradition of integrating the latest and greatest open source technologies into a high-
quality, easy-to-use Linux distribution.
Ubuntu is an operating system built by a worldwide team of expert developers. It contains all the
applications you need: a web browser, office suite, media apps, instant messaging and much more.
Ubuntu is an open-source alternative to Windows and Office.
Ubuntu 9.04 LTS Server Edition: Lean, fast and powerful – Ubuntu Server delivers services reliably,
predictably and economically - and easily integrates with your existing infrastructure. It has almost 100
open-source and proprietary application providers certifying their programs on Ubuntu Server Edition.
Ubuntu 9.04 includes Alfresco, Ingres, IBM, VMware, Yahoo and Zimbra. It also includes improved
installation and management tools for Ubuntu Enterprise Cloud (UEC) and Amazon EC2.
Ubuntu Server Edition enables businesses to deploy and manage their common workloads – web, print,
file, database and mail servers – more efficiently. Ubuntu 9.04 Server Edition integrates; stable Open
Source applications from across the community, packaged and ready for users to deploy. New
enhancements include improved virtualization with the latest KVM features, clustering support in Samba
file server and easier mail server setup with out-of-the-box Dovecot-Postfix integration.
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.04 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 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.
1
April 2007, Kefa Rabah, Global Open Versity, Vancouver Canada
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.
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
8. From Fig. 4, Choose language screen, Choose a country, select United States option, and hit Enter
3
April 2007, Kefa Rabah, Global Open Versity, Vancouver Canada
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
12. From Fig. 8, the Detecting hardware to find CD-ROM drives screen, wait for the system complete
the process.
5
April 2007, Kefa Rabah, Global Open Versity, Vancouver Canada
13. From Fig. 9, the Loading additional components screen, wait for the system complete the process.
14. 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.
Fig. 10
15. From Fig. 11, the setting up the clock screen, wait for the system to complete the process.
6
April 2007, Kefa Rabah, Global Open Versity, Vancouver Canada
Fig. 11
16. 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.
Fig. 12
17. From Fig. 13, the Starting up the partitioner screen, wait for the system to complete the process.
Fig. 13
7
April 2007, Kefa Rabah, Global Open Versity, Vancouver Canada
18. From Fig. 14, the Partition disks screen, accept the default selection, or change as desired, and then
hit the Enter key to continue.
Fig. 14
19. 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
8
April 2007, Kefa Rabah, Global Open Versity, Vancouver Canada
20. From Fig. 16, the Partition disks screen, select <Yes>, or change as desired, and then hit the Enter
key to continue.
Fig. 16
21. 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
9
April 2007, Kefa Rabah, Global Open Versity, Vancouver Canada
22. 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
23. From Fig. 19, the Partition disks screen, wait for the system to complete the process.
Fig. 19
24. From Fig. 20, the Installing the base system screen, wait for the system to complete the process.
Fig. 20
10
April 2007, Kefa Rabah, Global Open Versity, Vancouver Canada
25. From Fig. 21, the Setup users and passwords screen, enter the full name of the user: Cloud
Admin, or change as desired, and then select <Continue> and hit the Enter key to continue.
Fig. 21
26. From Fig. 22, the Setup users and passwords screen, enter the username of the user: cadmin, or
change as desired, and then select <Continue> and hit the Enter key to continue.
Fig. 22
11
April 2007, Kefa Rabah, Global Open Versity, Vancouver Canada
27. From Fig. 23, the Setup users and passwords screen; enter the password of the user cadmin, and
then select <Continue> and hit the Enter key to continue.
Fig. 23
Note: Reenter the password when prompted.
28. 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
29. From Fig. 25, the Configuring apt screen, wait for the system to complete the process.
Fig. 25
12
April 2007, Kefa Rabah, Global Open Versity, Vancouver Canada
30. 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
31. From Fig. 27, the Configuring apt screen, the system will continue with configuring apt, wait for the
system to complete the process.
Fig. 27
32. From Fig. 28, the Select and install software screen, select the desired update option, and hit the
Enter key to continue.
Fig. 28
13
April 2007, Kefa Rabah, Global Open Versity, Vancouver Canada
33. From Fig. 29, the Select and install software screen, wait for the system to complete the process.
Fig. 29
34. From Fig. 30, the Software selection screen, choose the software to install, and then hit the Enter
key to continue.
Fig. 30
35. From Fig. 31, the Select and install software screen, again wait for the system to complete the
process.
Fig. 31
14
April 2007, Kefa Rabah, Global Open Versity, Vancouver Canada
36. 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.
37. From Fig. 32, the Postfix Configuration screen; accept the default selection or change as desired,
and then hit the Enter key to continue.
Fig. 32
15
April 2007, Kefa Rabah, Global Open Versity, Vancouver Canada
38. From Fig. 32a, the Postfix Configuration screen; under System mail name: govescloud.com,
or change as desired, and then hit the Tab key to select <Continue> and hit the Enter key to continue.
Fig. 32a
39. From Fig. 33, the Select and install software screen, again wait for the system to complete the
process.
Fig. 33
40. From Fig. 34, the Installing GRUB boot loader screen, wait for the system to complete the process.
Fig. 34
41. From Fig. 35, the Installing GRUB boot loader screen, accept the default selection to install GRUB
boot loader, or change as desired, and hit the Enter key to continue.
16
April 2007, Kefa Rabah, Global Open Versity, Vancouver Canada
Fig. 35
42. From Fig. 36, the Finishing the installation screen, wait for the system to complete the process.
Fig. 36
43. From Fig. 37, the Finish installation screen; Installation complete. Remove the installation
CD, and hit the Enter key to restart the system.
Fig. 37
44. From Fig. 38, you can observer the system startup process.
17
April 2007, Kefa Rabah, Global Open Versity, Vancouver Canada
45. Figure 39 shows the login screen, enter your username and password your entered during the
installation stage.
Fig. 39
46. From Fig. 40, enter your username and password, same as the one entered during the installation
stage, and hit enter.
18
April 2007, Kefa Rabah, Global Open Versity, Vancouver Canada
47. To check you server IP address, if the Ifconfig command, as shown in Fig. 41.
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.
19
April 2007, Kefa Rabah, Global Open Versity, Vancouver Canada
the above command will install GNOME desktop, see Fig. 42.
20
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. 43.
2. Alternatively, if you want to install KDE desktop use the following command:
3. When logged in you’ll get an immediate warning alert as shown in Fig. 44.
Fig. 44
21
April 2007, Kefa Rabah, Global Open Versity, Vancouver Canada
22
April 2007, Kefa Rabah, Global Open Versity, Vancouver Canada
Fig. 45
6. Once done, if desired, you go ahead and upgrade to the latest version of Ubuntu which at the time of
writing is Ubuntu 10.10 Maverick Meerkat.
Step 1: Installation
Note: This guide is written for Feisty. It is currently not fully compatible with Gutsy, use at your own risk! In
general, more recent versions of Ubuntu will require fewer workarounds. Intrepid, for instance, includes
everything but the Linux dom0 kernel itself, though you can get a kernel from Debian -- see above.
23
April 2007, Kefa Rabah, Global Open Versity, Vancouver Canada
not be PAE enabled... compiled for systems with more than 4GB of RAM. Even if you are on a 64 bit
system, you should still install ubuntu-xen-server.
2. Next you need to enable networking. [Gutsy: I had to reboot the xen kernel before I could run the
xend script]
vi /etc/xen/xend-config.sxp
#(network-script network-dummy)
(network-script network-bridge)
4. Its also a good idea to increase the default number of loop mounts allowed. Not really needed if you
are going to use LVM, but it also wont break anything if you do it anyway.
vi /etc/modules
loop max_loop=64
5. This is probably a good point to reboot your machine so that you use the xen kernel.
Note: After reboot is a good chance to check your network and ensure it works. Both Feisty and
Gutsy may have network problems with certain hardware. If you are experiencing network problems,
check out this potential solution
Or use:
wget http://security.debian.org/debian-security/pool/updates/main/l/linux-
2.6/linux-image-2.6.26-2-xen-686_2.6.26-25lenny1_i386.deb
wget http://security.debian.org/debian-security/pool/updates/main/l/linux-
2.6/linux-modules-2.6.26-2-xen-686_2.6.26-25lenny1_i386.deb
24
April 2007, Kefa Rabah, Global Open Versity, Vancouver Canada
Note: If you are lucky, when you install the kernel and modules using "dpkg -i", the utility grub-
update should automatically create the right menu entry. "root=" should be pointing to the correct
file system.
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet dhcp
Note: This should work fine for most people who have DHCP server running which is common in both
a corporate environment and an environment where you have an ADSL router running.
==============
25
April 2007, Kefa Rabah, Global Open Versity, Vancouver Canada
Call us today:
Email: info@globalopenversity.org.
URL: www.globalopenversity.org
Note 1: A good point to start from is to check out previous article on Postfix mail server on Linux
Note 1: Alternatively you may also be interested to install an alternative mail server: Sendmail mail
server is also open source messaging software
• Deploy Secure Messaging Solutions using Sendmail & Dovecot Servers with ClamAV on Linux
26
April 2007, Kefa Rabah, Global Open Versity, Vancouver Canada
11. Install Guide Secure Postfix Messaging Server with Dovecot and ClamAV on Linux v1.2
12. Deploy Secure Messaging Solutions using Sendmail & Dovecot Servers with ClamAV on Linux
13. Build your own ISP Hosting using EHCP on Ubuntu 10.04 LTS Server
14. Step-By-Step Install Guide DTC on Linux CentOS5 Server v1.0
15. Install Guide Secure Sendmail with Dovecot & Roundcube Webmail v1.0
16. Build your Own Private Data Center Backup Solutions using Ubuntu Powered RESTORE Backup
Server v1.0
17. Install & Setup Astaro Security Gateway to Protect Corporate Network v1.1
-----------------------------------------------
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.
27
April 2007, Kefa Rabah, Global Open Versity, Vancouver Canada