Difference between revisions of "User:PMay/Hetzner step by step"

From ArchWiki
Jump to: navigation, search
(basic installation)
(basic installation)
Line 84: Line 84:
   # genfstab -p /mnt >> /mnt/etc/fstab
   # genfstab -p /mnt >> /mnt/etc/fstab
* chroot again into the new system
  # arch-chroot /mnt

Revision as of 18:35, 1 December 2013


Start and log into the Hetzner Rescue System

  • log in to robot: https://robot.your-server.de/
  • activate 64bit linux rescue system
  • copy and paste the password given to you by the robot
  • restart your server
  • log in with ssh
 # ssh -l root <your_ip_or_hostname>

Disk after Debian LAMP installation

Your disk looks like this after the default debian LAMP installation:

 /dev/sda1 1gb swap
 /dev/sda2 500mb boot
 /dev/sda3 19gb root

Install the bootstrap system

  • now we use the root partition (/dev/sda1) to install the bootstrap system
 # mkfs.ext4 /dev/sda1
 # mkdir /arch
 # mount /dev/sda1 /arch
 # cd /arch
 # curl -O http://ftp.halifax.rwth-aachen.de/archlinux/iso/2013.12.01/archlinux-bootstrap-2013.12.01-x86_64.tar.gz
  • check the md5 sum
 # md5sum archlinux-bootstrap-2013.12.01-x86_64.tar.gz
  • if the md5sum is ok unpack the tar archive
 # tar xvfz archlinux-bootstrap-2013.12.01-x86_64.tar.gz
 # nano root.x86_64/etc/pacman.d/mirrorlist
  • changeroot into the rescue system
 # /arch/root.x86_64/bin/arch-chroot /arch/root.x86_64/

basic installation

  • make file system for boot and root
 # mkfs.ext4 /dev/sda2
 # mkfs.ext4 /dev/sda3
  • mount the partitions
 # mount /dev/sda3 /mnt
 # mkdir /mnt/boot 
 # mount /dev/sda2 /mnt/boot
  • init the pacman key
 # pacman-key --init
  • open second ssh console on the rescue system and type
 # find / -name foo
  • this is to generate some entropy
  • continue with
 # pacman-key --populate archlinux
  • and this this (for some strange reason)
 # mkdir /run/shm
  • now install the system
 # pacstrap /mnt base
 # pacstrap /mnt base-devel
 # pacstrap /mnt syslinux
 # pacstrap /mnt net-tools
 # pacstrap /mnt openssh
  • create fstab
 # genfstab -p /mnt >> /mnt/etc/fstab
  • chroot again into the new system
 # arch-chroot /mnt