User Tools

Site Tools


haborg:debinstall

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
haborg:debinstall [2013/09/10 09:43] roothaborg: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. 
- 
-<code>fdisk /dev/sdb 
-mkfs.ext2 /dev/sdb1 
-mkdir /mnt/cf 
-mount /dev/sdb1 /mnt/cf 
-debootstrap --arch i386 wheezy /mnt/cf http://ftp.fr.debian.org/debian</code> 
- 
-Chroot on the target OS 
- 
-<code>mount -t proc none /mnt/cf/proc 
-mount -t sysfs none /mnt/cf/sys 
-mount -o bind /dev /mnt/cf/dev/ 
-LC_ALL=C chroot /mnt/cf /bin/bash 
-mount devpts /dev/pts -t devpts</code> 
- 
-Add noatime to every FS in /etc/fstab to reduce CF card wear level. 
- 
-Disables the internal getty instances in /etc/inittab and replace it by 
- 
-<code>T0:2345:respawn:/sbin/getty -L ttyS0 115200 vt102</code> 
- 
-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 /usr/lib/grub/i386-pc/* /boot/grub 
- 
-  
- 
-Create /boot/grub/menu.lst (flash card will be sda on Alix): 
- 
-default 0 
-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=/dev/sda1 ro console=ttyS0,38400n8 
-initrd /boot/initrd.img 
- 
-Install custom kernel kernel 
- 
-Change the root password: 
- 
-<code>passwd root</code> 
- 
-FIXME Disable udev network interface rules: 
- 
-<code>rm /etc/udev/rules.d/70-persistent-net.rules 
-chmod 444 /lib/udev/write_net_rules</code> 
- 
-Configure the locale to en_US.UTF-8: 
- 
-<code>apt-get install locales 
-dpkg-reconfigure locales</code> 
- 
-Create the file setlocale.sh in /etc/profile.d, with the following contents: 
- 
-<code>#!/bin/bash 
-export LC_ALL=en_US.UTF-8</code> 
- 
-Exit the chroot & umount special filesystems 
- 
-<code>umount /dev/pts 
-exit 
-umount /mnt/cf/proc 
-umount /mnt/cf/sys 
-umount /mnt/cf/dev/ 
-umount /mnt/cf</code> 
- 
-Install grub in the MBR & umount the flash card: 
- 
-<code>grub-install --no-floppy --root-directory=/mnt/cf /dev/sdb 
-umount /mnt/cf</code> 
- 
-===== Grub Reconfiguration ===== 
- 
-<code>GRUB_CMDLINE_LINUX="console=tty1 console=ttyS0,115200n8" 
-GRUB_TERMINAL="serial" 
-GRUB_SERIAL_COMMAND="serial --speed=115200 --word=8 --parity=no --stop=1"</code> 
  
haborg/debinstall.1378799003.txt.gz · Last modified: 2013/09/10 09:43 by root

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki