Anonymous

Changes

From Pumping Station One
228 bytes added ,  03:07, 7 April 2015
Line 1: Line 1:  
== Installing ==
 
== Installing ==
    sgdisk -z /dev/vda
+
 
    sgdisk -n 1:2048: /dev/vda
+
<syntaxhighlight lang="bash">
    sgdisk --attributes=1:set:2 /dev/vda
+
sgdisk -z /dev/vda
    mkfs.ext4 /dev/vda1
+
sgdisk -n 1:2048: /dev/vda
    mount /dev/vda1 /mnt
+
sgdisk --attributes=1:set:2 /dev/vda
    pacstrap /mnt base base-devel openssh
+
mkfs.ext4 /dev/vda1 -F
    genfstab -p /mnt >> /mnt/etc/fstab
+
mount /dev/vda1 /mnt
    arch-chroot /mnt
+
pacstrap /mnt base base-devel openssh syslinux salt-zmq
    ln -s /usr/share/zoneinfo/America/Chicago /etc/localtime
+
genfstab -p /mnt >> /mnt/etc/fstab
    mkinitcpio -p linux
+
arch-chroot /mnt
    systemctl enable dhcpcd
+
unlink /etc/localtime
    systemctl enable sshd
+
ln -s /usr/share/zoneinfo/America/Chicago /etc/localtime
    dd bs=440 count=1 conv=notrunc if=/usr/lib/syslinux/bios/gptmbr.bin of=/dev/vda
+
mkinitcpio -p linux
    ## todo sed /boot/syslinux/syslinux.cfg /dev/sda3 to /dev/vda1
+
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>
 +
 
 +
== enter your hostname ==
 +
 
 +
    echo ${hostname} > /etc/hostname
 +
 
 +
 
 +
== reboot ==
 
     exit
 
     exit
 
     reboot
 
     reboot
Cookies help us deliver our services. By using our services, you agree to our use of cookies.