Anonymous

Changes

From Pumping Station One
304 bytes removed ,  03:07, 7 April 2015
Line 1: Line 1:  
== Installing ==
 
== Installing ==
    sgdisk -z /dev/vda
  −
    sgdisk -n 1:2048: /dev/vda
  −
    sgdisk --attributes=1:set:2 /dev/vda
  −
    mkfs.ext4 /dev/vda1
  −
    mount /dev/vda1 /mnt
  −
    pacstrap /mnt base base-devel openssh syslinux
  −
    genfstab -p /mnt >> /mnt/etc/fstab
  −
    arch-chroot /mnt
  −
    ln -s /usr/share/zoneinfo/America/Chicago /etc/localtime
  −
    mkinitcpio -p linux
  −
    systemctl enable dhcpcd
  −
    systemctl enable sshd
  −
    cp -r /usr/lib/syslinux/bios/*.c32 /boot/syslinux/
  −
    extlinux --install /boot/syslinux
  −
    dd bs=440 count=1 conv=notrunc if=/usr/lib/syslinux/bios/gptmbr.bin of=/dev/vda
  −
    sed -i 's#/dev/sda3#/dev/vda1#' /boot/syslinux/syslinux.cfg
     −
== Install Salt ==
+
<syntaxhighlight lang="bash">
    echo [archlinuxfr] >> /etc/pacman.conf
+
sgdisk -z /dev/vda
    echo SigLevel = Never >> /etc/pacman.conf
+
sgdisk -n 1:2048: /dev/vda
    echo Server = http://repo.archlinux.fr/\$arch >> /etc/pacman.conf
+
sgdisk --attributes=1:set:2 /dev/vda
    pacman -Sy
+
mkfs.ext4 /dev/vda1 -F
    pacman -S salt
+
mount /dev/vda1 /mnt
    systemctl enable salt-minion
+
pacstrap /mnt base base-devel openssh syslinux salt-zmq
 +
genfstab -p /mnt >> /mnt/etc/fstab
 +
arch-chroot /mnt
 +
unlink /etc/localtime
 +
ln -s /usr/share/zoneinfo/America/Chicago /etc/localtime
 +
mkinitcpio -p linux
 +
systemctl enable dhcpcd
 +
systemctl enable sshd
 +
systemctl enable salt-minion
 +
ln -s /usr/lib/syslinux/bios/*.c32 /boot/syslinux/
 +
extlinux --install /boot/syslinux
 +
dd bs=440 count=1 conv=notrunc if=/usr/lib/syslinux/bios/gptmbr.bin of=/dev/vda
 +
sed -i 's#/dev/sda3#/dev/vda1#' /boot/syslinux/syslinux.cfg
 +
</syntaxhighlight>
   −
== Configure Salt ==
+
== enter your hostname ==
 +
 
 +
    echo ${hostname} > /etc/hostname
   −
    mkdir /etc/salt/minion.d
  −
    echo master: bob.ad.pumpingstationone.org > /etc/salt/minion.d/bob
  −
    echo id: ${hostname} > /etc/salt/minion.d/bob
      
== reboot ==
 
== reboot ==
 
     exit
 
     exit
 
     reboot
 
     reboot
Cookies help us deliver our services. By using our services, you agree to our use of cookies.