User Tools

Site Tools


software:debianinstall

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
software:debianinstall [2017/12/26 11:05]
chris
software:debianinstall [2019/12/26 19:11] (current)
chris
Line 3: Line 3:
 <​code>​ <​code>​
 # boot a knoppix, grml or other debian-based livecd. Must have debootstrap onboard. # boot a knoppix, grml or other debian-based livecd. Must have debootstrap onboard.
-fdisk /dev/hda       # create partitions, at least one for / and one for swap.+fdisk /dev/sda       # create partitions, at least one for / and one for swap.
 cat /​proc/​partitions # see if partitions come up, if not execute '​partprobe'​ or reboot cat /​proc/​partitions # see if partitions come up, if not execute '​partprobe'​ or reboot
-mkfs.ext3 /dev/hda1  # create filesystem +mkfs.ext4 /dev/sda1  # create filesystem
-mkswap /​dev/​hda2 ​    # create swap+
  
 mkdir /new mkdir /new
 # mount fresh partition # mount fresh partition
-mount /dev/hda1 /new +mount /dev/sda1 /new 
-# create fresh debian with arch i386.  +cd /new 
-debootstrap --arch=i386 sid /new ftp://ftp.de.debian.org/​debian  + 
-echo 'proc /proc proc defaults 0 0' >/new/etc/fstab +# create fresh debian with arch amd64 
-echo '/dev/hda1 / ext3 defaults,​errors=remount-ro ​1' >>/new/etc/fstab +debootstrap --arch=amd64 sid /mnt/tmp http://httpredir.debian.org/​debian 
-echo '/dev/hda2 none swap swap sw 0 0' >>/new/etc/fstab+echo 'proc /proc proc defaults 0 0' >​etc/​fstab 
 +echo 'sysfs none sysfs defaults 0 0' >>​etc/​fstab 
 +echo '/dev/sda1 / ext4 relatime,​errors=remount-ro ​1' ​ >>​etc/​fstab
 mount -t proc none /new/proc mount -t proc none /new/proc
-chroot /new+mount -t sysfs none sys/ 
 +mount -t devtmpfs none dev 
 +chroot /new /bin/bash
  
-echo 'deb ftp://​ftp.de.debian.org/​debian unstable main contrib non-free'​ \ 
-  >/​etc/​apt/​sources.list 
 apt-get update apt-get update
 apt-get dist-upgrade apt-get dist-upgrade
Line 30: Line 31:
 apt-get install locales console-data screen apt-get install locales console-data screen
 apt-cache search linux-image ​               # what linux-images are there? apt-cache search linux-image ​               # what linux-images are there?
-apt-get install linux-image-2.6-i686 grub   # for the 32bit-install on athlon xp 2800+ +apt-get install linux-image-amd64 
-mkdir -p /​boot/​grub +echo '(hd0) /dev/sda' >/​boot/​grub/​device.map 
-cp /​usr/​lib/​grub/​i386-pc/​* /​boot/​grub +grub-install ​/dev/sda
-vi /​boot/​grub/​menu.lst +
-echo '(hd0) /dev/hda' >/​boot/​grub/​device.map +
-mknod /dev/hda b 3 0; mknod /dev/hda1 b 3 1 # didnt exist in chroot yet, needed by grub +
-grub # install grub to MBR+
  
 apt-get install ssh                         # ensure basic access to the system via network apt-get install ssh                         # ensure basic access to the system via network
software/debianinstall.txt · Last modified: 2019/12/26 19:11 by chris