Difference between revisions of "Provision Arch"
Jump to navigation
Jump to search
(combining instructions) |
|||
Line 16: | Line 16: | ||
dd bs=440 count=1 conv=notrunc if=/usr/lib/syslinux/bios/gptmbr.bin of=/dev/vda | 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 | sed -i 's#/dev/sda3#/dev/vda1#' /boot/syslinux/syslinux.cfg | ||
− | + | ||
− | |||
echo [archlinuxfr] >> /etc/pacman.conf | echo [archlinuxfr] >> /etc/pacman.conf | ||
echo SigLevel = Never >> /etc/pacman.conf | echo SigLevel = Never >> /etc/pacman.conf | ||
Line 24: | Line 23: | ||
pacman -S salt | pacman -S salt | ||
systemctl enable salt-minion | systemctl enable salt-minion | ||
− | |||
− | |||
mkdir /etc/salt/minion.d | mkdir /etc/salt/minion.d | ||
echo master: bob.ad.pumpingstationone.org > /etc/salt/minion.d/bob.conf | echo master: bob.ad.pumpingstationone.org > /etc/salt/minion.d/bob.conf | ||
− | echo | + | |
+ | == enter your hostname == | ||
+ | |||
+ | echo ${hostname} > /etc/hostname | ||
+ | |||
== reboot == | == reboot == | ||
exit | exit | ||
reboot | reboot |
Revision as of 01:18, 23 May 2014
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 echo [archlinuxfr] >> /etc/pacman.conf echo SigLevel = Never >> /etc/pacman.conf echo Server = http://repo.archlinux.fr/\$arch >> /etc/pacman.conf pacman -Sy pacman -S salt systemctl enable salt-minion
mkdir /etc/salt/minion.d echo master: bob.ad.pumpingstationone.org > /etc/salt/minion.d/bob.conf
enter your hostname
echo ${hostname} > /etc/hostname
reboot
exit reboot