Diff for "Installation/OverSSH"


Differences between revisions 19 and 20
Revision 19 as of 2006-10-25 17:23:21
Size: 3494
Editor: DSL01
Comment:
Revision 20 as of 2006-10-25 17:26:56
Size: 3518
Editor: DSL01
Comment:
Deletions are marked like this. Additions are marked like this.
Line 6: Line 6:
== Partitioning == == Preparing the Hard Disk ==
=
== Partitioning ===
Line 18: Line 19:
Lets populate our root partion with a file system. Below is how it's done for ext3. === Creating Filesystems ===
Below is how we get our / populated with ext3.
Line 30: Line 32:
Now its time to mount the recently created partion.

== The Base System ==

=== Mountig Root ===

Warning /!\ This is a work in progress, this means that I'm on it right now, it is not finished yet and it may breake your system!

Caveat

As you may already have guessed following this instruction may breake your systme and you are on your own to fix it again.

Preparing the Hard Disk

Partitioning

Use fdisk to partion your hard disk.

# fdisk /dev/hda

For the rest of this instruction we assume the following partition layout.

/dev/hda1 (83  Linux)        - for /
/dev/hda2 (82  Linux swap)   - as swap

Creating Filesystems

Below is how we get our / populated with ext3.

# mke2fs -j /dev/hda1

And the same for our swap partion.

# mkswap /dev/hda2
# sync; sync; sync
# swapon /dev/hda2

The Base System

Mountig Root

# mkdir /mnt/ubuntu
# mount -t ext3 /dev/hda1 /mnt/ubuntu

Getting debootstrap

Debootstrap is a collection of scripts that we will use in the next step to set up a base system. We need an appropriate version of debootstrap from http://archive.ubuntu.com/ubuntu/pool/main/d/debootstrap/ to make this work.

Make sure that binutils is installed on your system.

On an apt based system we can use dpkg to install it.

# wget http://archive.ubuntu.com/ubuntu/pool/main/d/debootstrap/debootstrap_0.3.3.0ubuntu2_all.deb
# dpkg -i debootstrap_0.3.3.0ubuntu2_all.deb

If your current system is rpm based, use alien to install it or find a rpm on the web (http://azhrarn.underhanded.org/debootstrap-0.2.23-1.i386.rpm).

Installing the Base System

# /usr/sbin/debootstrap --arch i386 dapper /mnt/ubuntu http://archive.ubuntu.com/ubuntu

(arch may be different for you, e.g. md64, hppa, ia64, powerpc, or sparc)

Basic Configuration

# echo HOSTNAME > /mnt/ubuntu/etc/hostname

Chrooting

mount -t proc none /mnt/ubuntu/proc
mount -o bind /dev /mnt/ubuntu/dev
LANG= chroot /mnt/ubuntu /bin/bash

Installing OpenSSH Server

apt-get install openssh-server

Install a Kernel

apt-get install ....

Installing GRUB

apt-get install grub
mkdir /boot/grub
cp /lib/grub/i386-pc/* /boot/grub
vim /boot/grub/grub.conf

# /boot/grub/grub.conf
default 0
timeout 3

title=Ubuntu
  root (hd0,0)
  kernel /vmlinuz root=/dev/hda1
  initrd /initrd.img

ln -s /boot/grub/grub.conf /boot/grub/menu.lst

# grub

grub> root (hd0,0)
grub> setup (hd0)
grub> quit

Reboot

# exit

# umount /mnt/ubuntu/proc
# umount /mnt/ubuntu/dev
# umount /mnt/ubuntu
# reboot

Finishing

apt-get install ubuntu-standard

References

Installation/OverSSH (last edited 2011-05-31 16:43:31 by cpc1-seac10-0-0-cust324)