haborg:debinstall
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| haborg:debinstall [2013/09/10 14:11] – root | haborg:debinstall [2020/11/27 15:04] (current) – removed root | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | |||
| - | ====== Debian for Háborg Install guide ====== | ||
| - | |||
| - | Format CF card then install debian base system. | ||
| - | |||
| - | < | ||
| - | mkfs.ext2 /dev/sdb1 | ||
| - | mkdir /mnt/cf | ||
| - | mount /dev/sdb1 /mnt/cf | ||
| - | debootstrap --arch i386 wheezy /mnt/cf http:// | ||
| - | |||
| - | Chroot on the target OS | ||
| - | |||
| - | < | ||
| - | mount -t sysfs none /mnt/cf/sys | ||
| - | mount -o bind /dev / | ||
| - | LC_ALL=C chroot /mnt/cf /bin/bash | ||
| - | mount devpts /dev/pts -t devpts</ | ||
| - | |||
| - | Add noatime to every FS in /etc/fstab to reduce CF card wear level. | ||
| - | |||
| - | Disables the internal getty instances in / | ||
| - | |||
| - | < | ||
| - | |||
| - | Grub: preparations | ||
| - | Install the grub package on the CF and create the file menu.lst, which will be used later on. Don’t configure grub at this stage. | ||
| - | |||
| - | apt-get install grub | ||
| - | cp / | ||
| - | |||
| - | |||
| - | |||
| - | Create / | ||
| - | |||
| - | < | ||
| - | timeout 5 | ||
| - | |||
| - | serial --unit=0 --speed=38400 --word=8 --parity=no --stop=1 | ||
| - | terminal --timeout=5 serial console | ||
| - | |||
| - | title Debian | ||
| - | root (hd0,0) | ||
| - | kernel /vmlinuz root=/ | ||
| - | initrd / | ||
| - | |||
| - | Install custom kernel kernel | ||
| - | |||
| - | Change the root password: | ||
| - | |||
| - | < | ||
| - | |||
| - | FIXME Disable udev network interface rules: | ||
| - | |||
| - | < | ||
| - | chmod 444 / | ||
| - | |||
| - | Configure the locale to en_US.UTF-8: | ||
| - | |||
| - | < | ||
| - | dpkg-reconfigure locales</ | ||
| - | |||
| - | Create the file setlocale.sh in / | ||
| - | |||
| - | < | ||
| - | export LC_ALL=en_US.UTF-8</ | ||
| - | |||
| - | Exit the chroot & umount special filesystems | ||
| - | |||
| - | < | ||
| - | exit | ||
| - | umount / | ||
| - | umount /mnt/cf/sys | ||
| - | umount / | ||
| - | umount / | ||
| - | |||
| - | Install grub in the MBR & umount the flash card: | ||
| - | |||
| - | < | ||
| - | umount / | ||
| - | |||
| - | ===== Grub Reconfiguration ===== | ||
| - | |||
| - | < | ||
| - | GRUB_TERMINAL=" | ||
| - | GRUB_SERIAL_COMMAND=" | ||
haborg/debinstall.1378815103.txt.gz · Last modified: 2013/09/10 14:11 by root