- Download and boot from a Debian live CD: https://www.debian.org/CD/live/
- Login with
user:live
- Setup and mount disks at
/mnt
. Arch Linux has a good guide to this: https://wiki.archlinux.org/index.php/Partitioning - Install and run debootstrap
sudo apt-get install debootstrap
- Replace RELEASE below with the name of the release you want to install, like ``jessie`` or ``vivid``
- Debian:
sudo debootstrap RELEASE /mnt http://ftp.debian.org/debian
- (If Ubuntu)
sudo apt-get install ubuntu-archive-keyring
- Ubuntu:
sudo debootstrap RELEASE /mnt http://archive.ubuntu.com/ubuntu
- Mount Filesystems:
sudo mount --bind /dev /mnt/dev
sudo mount -t proc none /mnt/proc
sudo mount -t sysfs sys /mnt/sys
- Chroot into your new system with
chroot /mnt /bin/bash
- Edit
/etc/fstab
https://wiki.archlinux.org/index.php/Fstab - Set hostname with:
echo HOSTNAME > /etc/hostname
- Set timezone with
ln -sf /usr/share/zoneinfo/ZONE/SUBZONE /etc/localtime
- Set root password with:
passwd
- Generate Locales
apt-get install locales
- Edit
/etc/locales.gen
locale-gen
- Install a Linux kernel
- Locate the apropiate one with:
apt-cache search linux-image
- Install it with
apt-get install KERNELNAME
- Locate the apropiate one with:
- Setup Bootloader
- BIOS:
apt-get install grub-pc
- UEFI:
apt-get install grub-efi
- BIOS:
- Install Bootloader with
grub-install /dev/DEVICENAME
- Exit Chroot with:
exit
- Umount everthing:
sudo umount /mnt/dev
sudo umount /mnt/proc
sudo umount /mnt/sys
sudo umount /mnt
- Reboot with
sudo shutdown -r now
- Remove installation media
- Enjoy!