|
Installing Ubuntu Server 9.0.4 also same for previous ones This tutorial will guide you through all the steps necessary to have a working install of Ubuntu, all posts made further to this will be demonstrated on a computer using the setup process shown below.This example will be performed using the latest available version of Ubuntu Server at the time of writing, 9.0.4 jaunty, although should apply for most previous versions. This will be installed on a Machine with the following specifications: - 128 Mb of RAM
- 1 Processor
- 8 Gb IDE Hard Drive
You will need to start by downloading an ISO fromhttp://www.ubuntu.com/getubuntu/download. Select Ubuntu 9.0.4 from under the Server Edition header, then below choose the architecture which you want it for, and finally choose a mirror to download it from. The total size of the CD image is approximately 500Mb. Once downloaded you will need to burn the ISO image to a CD using software such as CDBurnerXP from http://cdburnerxp.se/. Then insert the disc you have just created into the computer you wish to install Ubuntu Server onto (It would be a good idea to label it first, just so you don’t loose it). Since Ubuntu is open source the disc can be used for every computer you wish to install onto, and since it is free there are no Serial Numbers, or annoying product activation steps to go through. When you start up the computer it may or may not boot from the CD, if it does then a boot screen will appear (Figure 1 - below), if not then you will need to configure the computer’s BIOS to boot from the CD, refer to your motherboard’s manual for instructions on how to do this. 1) The first thing that you will see is a boot options menu, giving you a variety of tasks to choose from - Select “Install to the Hard Disk”
 - Select your language
 - Select your location
 - Ubuntu Server can try and detect your keyboard layout. For the most people will be using US English. Select No and chose your layout yourself.
 Go through the options for your keyboard. The installation will then detect your hardware. - Enter ubuntuLamp or what ever you want to call your Server
 - The installer will detect your Hard Drive. Select “Guided – use entire disk”
 - When you receive the screen title “[!!] Partion Disks” select <Yes> and hit enter
 - Select <Yes> when presented about the system clock
 - Enter in administration for your name
 - Enter in administrator for your username
 - Enter in a secure password (here is a great article on coming up with a secure password that you can remember)
 - When you are presented with the screen [!] Software selection press the down arrow till the “* is in the “LAMP server” box and press space bar. As were also going to be using SSH I also select “OpenSSH server”
 - You’ll be presented with the option to change the MySQL root password. This is highly recommended as the standard password is blank
 - You’re done! Remove the CD from the CD drive and reboot
 - You server is now installed.
 Next I configure a Static IP. Log into your server using the details you entered during install. I’m using 192.168.0.150 as my example IP) Type and enter your password again Then Type nano /etc/network/interfaces If you have typed it out correctly you’ll Also you will see the following: # This file describes the network interfaces available on your system # and how to activate them. For more information, see interfaces(5). # The loopback network interface auto lo iface lo inet loopback # The primary network interface auto eth0 iface eth0 inet dhcp Replace the last 3 lines with the following: # The primary network interface auto eth0 iface eth0 inet static address 172.19.0.10 netmask 255.255.255.0 network 172.19.0.0 Try Ctrl+O to write the file and then press enter Type Ctrl+X to exit To set your Nameservers, type Enter in your nameservers as required “nameserver xxx.xxx.xxx.xxx” Type Ctrl+O to write the file and then press enter Type Ctrl+X to exit Now you need to restart your network service. Type the following /etc/init.d/networking restart You’ve now configured your network interface. When computer restart everything get applied, checking internet connection is main thing to do : $ sudo su [sudo] password for alamsyah: Enter same password as user ‘alamsyah’ to get into root session. Checking if internet connected using ping : # ping yahoo.com PING yahoo.com (69.147.114.224) 56(84) bytes of data. 64 bytes from b1.www.vip.re3.yahoo.com (69.147.114.224): icmp_seq=1 ttl=48 time=447 ms 64 bytes from b1.www.vip.re3.yahoo.com (69.147.114.224): icmp_seq=2 ttl=48 time=369 ms 64 bytes from b1.www.vip.re3.yahoo.com (69.147.114.224): icmp_seq=3 ttl=48 time=365 ms ^C — yahoo.com ping statistics — 3 packets transmitted, 3 received, 0% packet loss, time 2100ms rtt min/avg/max/mdev = 365.620/394.291/447.984/37.999 ms # Update Ubuntu Server apt-get update is our best friend # apt-get update Hit http://us.archive.ubuntu.com jaunty Release.gpg Ign http://us.archive.ubuntu.com jaunty/main Translation-en_US Get:1 http://security.ubuntu.com jaunty-security Release.gpg [189B] Ign http://security.ubuntu.com jaunty-security/main Translation-en_US Ign http://us.archive.ubuntu.com jaunty/restricted Translation-en_US Ign http://us.archive.ubuntu.com jaunty/universe Translation-en_US Ign http://us.archive.ubuntu.com jaunty/multiverse Translation-en_US Get:2 http://us.archive.ubuntu.com jaunty-updates Release.gpg [189B] Ign http://us.archive.ubuntu.com jaunty-updates/main Translation-en_US Ign http://security.ubuntu.com jaunty-security/restricted Translation-en_US Ign http://security.ubuntu.com jaunty-security/universe Translation-en_US Ign http://security.ubuntu.com jaunty-security/multiverse Translation-en_US Ign http://us.archive.ubuntu.com jaunty-updates/restricted Translation-en_US Ign http://us.archive.ubuntu.com jaunty-updates/universe Translation-en_US Ign http://us.archive.ubuntu.com jaunty-updates/multiverse Translation-en_US Get:3 http://security.ubuntu.com jaunty-security Release [49.6kB] Hit http://us.archive.ubuntu.com jaunty Release Get:4 http://us.archive.ubuntu.com jaunty-updates Release [49.6kB] Hit http://us.archive.ubuntu.com jaunty/main Packages Hit http://us.archive.ubuntu.com jaunty/restricted Packages Hit http://us.archive.ubuntu.com jaunty/main Sources Hit http://us.archive.ubuntu.com jaunty/restricted Sources Hit http://us.archive.ubuntu.com jaunty/universe Packages Hit http://us.archive.ubuntu.com jaunty/universe Sources Hit http://us.archive.ubuntu.com jaunty/multiverse Packages Hit http://us.archive.ubuntu.com jaunty/multiverse Sources Get:5 http://us.archive.ubuntu.com jaunty-updates/main Packages [16.8kB] Get:6 http://security.ubuntu.com jaunty-security/main Packages [11.6kB] Get:7 http://us.archive.ubuntu.com jaunty-updates/restricted Packages [14B] Get:8 http://us.archive.ubuntu.com jaunty-updates/main Sources [4756B] Get:9 http://us.archive.ubuntu.com jaunty-updates/restricted Sources [14B] Get:10 http://us.archive.ubuntu.com jaunty-updates/universe Packages [6078B] Get:11 http://us.archive.ubuntu.com jaunty-updates/universe Sources [14B] Get:12 http://us.archive.ubuntu.com jaunty-updates/multiverse Packages [14B] Get:13 http://us.archive.ubuntu.com jaunty-updates/multiverse Sources [14B] Get:14 http://security.ubuntu.com jaunty-security/restricted Packages [14B] Get:15 http://security.ubuntu.com jaunty-security/main Sources [3370B] Get:16 http://security.ubuntu.com jaunty-security/restricted Sources [14B] Get:17 http://security.ubuntu.com jaunty-security/universe Packages [4143B] Get:18 http://security.ubuntu.com jaunty-security/universe Sources [14B] Get:19 http://security.ubuntu.com jaunty-security/multiverse Packages [14B] Get:20 http://security.ubuntu.com jaunty-security/multiverse Sources [14B] Fetched 147kB in 10s (14.6kB/s) Reading package lists… Done Upgrade package or software installed # apt-get upgrade
also wanted to also install Webmin to manage my server remotely as well as SSH but I found that the install instructions on the above site just didn’t work for me. So here is how I installed Webmin on my Ubuntu Server.
You will need to enable the universe and universe and multiverse repositories in the /etc/apt/sources.list (https://wiki.ubuntu.com/AddingRepositoriesCliHowto) This is also where I started to use Putty and SSH (http://the.earth.li/~sgtatham/putty/latest/x86/putty.exe) sudo su mkdir /opt/Webmin cd /opt/Webmin wget http://easynews.dl.sourceforge.net/sourceforge/webadmin/Webmin-1.390.tar.gz gzip -cd Webmin-1.390.tar.gz | tar xvf - sudo apt-get install libauthen-pam-perl libnet-ssleay-perl libpam-runtime openssl perl perl-modules Note I had heaps of problems with this command and it was to do with my sources.list file. No matter what I uncommented it just didn’t seam to work. I had to generate a new sources.list file from this site (http://www.ubuntu-nl.org/source-o-matic/) and past that into /etc/apt/sources.list then run sudo apt-get update before the above command would run Basically just hit enter and choose SSL and the auto start the service at boot. Use these settings (or change as requried) Web server port (default 10000): (Feel Free to change this) Login name (default admin): Login password: AReallyGoodONE Password again: AReallyGoodONE Use SSL (y/n): y Start Webmin at boot time (y/n): y
So, there you go, a nice clean Ubuntu Server install. There’ll be more tutorials coming up, so that your server can have a role rather than just sitting there looking good. Thanks for reading, and check back soon for more tutorials.
|