Search Perform an advanced search query SOFTPEDIA
 
SOFTPEDIA
Updated one minute ago
HomeSubmit a program for being reviewedAdvertise on our websiteGet help on surfing our websitesSend us your feedbackGet information about our XML/RSS backend and how to use itBrowse the news archiveVisit our discussion forumVizitati forumul in limba romana



KLIP
  1. HOME
  2. SCIENCE
  3. TECHNOLOGY
  4. WEBMASTER
  5. SECURITY
  6. MICROSOFT
  7. LINUX
  8. APPLE
  9. GAMES
  10. TELECOMS
  11. REVIEWS
  12. LIFE & STYLE
  13. EDITORIALS
  14. INTERVIEWS
  15. RSS
Welcome!
Hello, Guest

Login if you have a Softpedia.com account.

Otherwise, register for one.

UBUNTU TIPS AND TRICKS

Alternative Installation Methods for Gutsy

- How to install Ubuntu Gutsy over network or from a hard-disk.

By: Marius Nestor, Linux Editor

Ubuntu can be installed using other methods as well, which might prove handy in some circumstances. For example, let's say you want to install Ubuntu on a computer that has no CD/DVD-ROM drive. What do you do? Well, you can install Ubuntu from another machine on the network (if there is one) that will provide the installation files to other computers on the LAN, or you can install it from the hard drive if there is no LAN. For the latter solution, you will need an active Internet connection to download the Ubuntu ISO image or you can use an external hard drive as well.

Make sure you have the following requirements before you start installing Ubuntu 7.10 with the methods presented in this guide:

Ubuntu 7.10 Alternate CD
Ubuntu 7.10 Destktop CD
• an active network connection
• the computer's BIOS must have the 'boot from network' option activated
• access to another network machine that is already running Ubuntu

Install Ubuntu from a network server

For this task, you will need another computer that has Ubuntu installed (and working) and it's connected to the machine you want to install Ubuntu, through a LAN (Local Area Network). We will call that PC that already has Ubuntu, "Server", and the PC on which you want
to install Ubuntu, "Client". On the Server, you will install a FTP server, a HTTP server and a DHCP server, which will allow the Client machine to connect to the server and fetch the installation files and package repositories. To install these servers, open a Terminal (Applications -> Accessories -> Terminal) and type:

CODE

sudo apt-get install tftpd-hpa apache2 dhcp3-server openbsd-inetd


Now, mount the Ubuntu 7.10 Alternative ISO image with the following commands:

CODE

cd /path-to-the-iso-image
sudo mkdir /var/lib/tftpboot/ubuntu
sudo mount -o loop ubuntu-7.10-alternate-i386.iso /var/lib/tftpboot/ubuntu (for an i386 PC)

or

sudo mount -o loop ubuntu-7.10-alternate-amd64.iso /var/lib/tftpboot/ubuntu (for an AMD 64/Intel 64 PC)


Make a symlink to the mounted ISO, from the Apache's root directory:

CODE

cd /var/www
sudo ln -s /var/lib/tftpboot/ubuntu/


If the Server has a CD/DVD-ROM drive and you already have burned the Ubuntu 7.10 Alternate ISO installation CD, insert it in the optical drive and wait for it to get auto-mounted. It will probably get mounted under the /media/cdrom path, so we will need to create symlinks for both FTP and HTTP servers. Copy and paste the following commands in a Terminal window:

CODE

sudo ln -s /media/cdrom /var/lib/tftpboot/ubuntu/
sudo ln -s /media/cdrom /var/www/ubuntu


Now, configure the DHCP daemon. Download the dhcp config file:

CODE

cd /etc/dhcp3
sudo mv dhcpd.conf dhcpd.conf.old
sudo gedit dhcpd.conf


Now copy and paste the following lines into the dhcpd.conf file:

CODE

ping-check = 1;
filename = "ubuntu/install/netboot/pxelinux.0";
subnet 192.168.1.0
netmask 255.255.255.0 {
range 192.168.1.10 192.168.1.254;
}


Edit the following directives to match your network:

• REPLACE the subnet with your network subnet
• REPLACE the netmask with your network netmask
• REPLACE the range of IPs with the corresponding IP addresses from your network. An IP address from this range will be randomly assigned to the Client computer.

Restart the DHCP server with the following command:

CODE

sudo /etc/init.d/dhcp3-server restart


At this point, your client machine is ready to boot the alternative installation ISO from the server. Power up the Client PC, enter the BIOS, search for the 'Boot from network' options (under the BOOT menu) and put it as the first boot device. Save and exit. If everything worked out well, you should see the Ubuntu installation screen and boot prompt. Install Ubuntu!

Install from hard drive

Use this method for a faster system installation and if you don't have a CD/DVD-ROM drive! For this method, you will need to have a working Ubuntu system on the computer on which you want to install the new Gutsy OS.

First of all, you need to use GParted to create a new primary partition and format it to ext3. For example, let's say that the partition is /dev/sda3 (for a SATA drive) or /dev/hda3 (for a IDE drive). You will need to copy the ISO's contents over to the new partition. Open a Terminal (Applications -> Accessories -> Terminal) and type:

CODE

mkdir /tmp/installcd
sudo mount -o loop /path-to/ubuntu-7.10-desktop-i386.iso /tmp/installcd (for an i386 PC)

or

sudo mount -o loop /path/to/ubuntu-7.10-desktop-amd64.iso /tmp/installcd (for an AMD 64/Intel 64 PC)
sudo mkdir /mnt/installer
sudo mount /dev/sda3 /mnt/installer (for the SATA drive)

or

sudo mount /dev/hda3 /mnt/installer (for the IDE drive)
sudo cp -r /tmp/installcd/* /mnt/installer
cd ~/
sudo umount /tmp/installcd


Next, you'll need to edit your current Grub configuration file to boot the new partition. To do this, open the /boot/grub/menu.lst in a text editor with:

CODE

sudo gedit /boot/grub/menu.lst


...and add the following lines at the end of the file:

CODE

title Ubuntu Hard Drive Installation
root (hd0,2)
kernel /casper/vmlinuz boot=casper root=/dev/ram ramdisk_size=1048576 rw
initrd /casper/initrd.gz


NOTE: the root line tells Grub which partition contains the installer. If in your case, the partition you created is /dev/hda1, you'll need to edit that line to root (hd0,0). Grub starts counting your partition from 0, therefore the fourth partition will be (hd0,3) and so on. If you have a secondary hard disk, you will have to modify the first number from 0 to 1 (e.g. hd1,0 - for the second hard disk, first partition).

Save the file, close the text editor, reboot the computer and choose 'Ubuntu Hard Drive Installation' from the grub boot menu and install Ubuntu 7.10 Gutsy Gibbon.

MORE RELATED ARTICLES: Ubuntu Is Enterprise Friendly Ubuntu 8.04 Is an LTS Release Canonical Looking For Contracts MEPIS Goes Back to Debian Ubuntu Goes Mobile Ubuntu Announced the Mobile and Embedded Edition Ubuntu 8.04 a.k.a. Hardy Heron Ubuntu Won the Best Linux Distribution Award Ubuntu Linux for Dell Machines
 
Comments | Link here | Subscribe
Print | Send to friend
Today's News | Yesterday's News

Search:


25th October 2007, 09:22 GMT | Copyright (c) 2007 Softpedia | Contact:
Read by 13,330 user(s) | Rating: | 7 vote(s) so far | Cast your vote:
Alternative Installation Methods for Gutsy - USER OPINIONS

Comment #1 by michael.fries on 2007-10-27, 11:41 GMT reply to this comment 
Everything seemed fine until the last step - I got an error 15, file not found. Any ideas???

Reply #1.1 by marius.nestor on 2007-10-27, 11:50 GMT
Hi!

I'm sorry, what last step? From the hard drive installation or the network one? Can you be more precise on the file you can't find, so I can help you?

Is it /boot/grub/menu.lst ?

Reply #1.2 by marius.nestor on 2007-10-27, 13:29 GMT
That's a GRUB error... you didn't write the correct partition and hard drive code in the menu.lst file. Tell me on which hard drive and what partition you've put the files and I'll tell you that code.

I use an external hard drive and I've put (hd1,0). Everything works fine!

Reply #1.3 by Siernan on 2007-10-31, 10:26 GMT
Can anyone help me with this problem.

I followed the guide for network installation and everything seems to be working but when my client is connected to my server I get: TFTP open timeout.

I was thinking if that had something to do with the tftp-folder called tftpboot. Should I rename it? Or do anything else.

Reply #1.4 by marius.nestor on 2007-10-31, 12:32 GMT
Hello Siernan!

Run the following command in a terminal:

sudo apt-get install openbsd-inetd

Or open up Synaptic Package Manager and search for openbsd-inetd and install it.

After this, try again....it should work now.

Reply #1.5 by Siernan on 2007-10-31, 15:32 GMT
Thank you! That solved my problem.


go to top


SHARE YOUR OPINION ABOUT Alternative Installation Methods for Gutsy

Since you are not logged on, your comments will have to be approved before being displayed.
Click here to login, or register.
Your Name:
Your Email:
Type in the result:
Your Opinion:
 


DO YOU WANT TO CONTACT US?  

If you have some comments or you want to send us some information you can send us an email directly to .
You can use the form below for the same purpose.
Your full name: (at least 3 characters)
Your email address: (at least 5 characters)
Message subject: (at least 5 characters)
Message text:
(at least 10 characters)
Type in the result:
 
 



© 2001 - 2008 Softpedia. All rights reserved.
Softpedia™ and Softpedia™ logo are registered trademarks of SoftNews NET SRL.
Copyright Information | Privacy Policy | Terms of Use | Contact Softpedia | Update your software | Archive