Created
December 27, 2014 04:02
-
-
Save niftynei/fe9b7395983877f91d4a to your computer and use it in GitHub Desktop.
arch-linux VM bootstrap gist
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fdisk | |
# Follow instructions! | |
mkfs.ext4 /dev/sda1 | |
mkfs.ext4 /dev/sda2 | |
mkdir /mnt/home | |
mount /dev/sda1 /mnt | |
mount /dev/sda2 /mnt/home | |
pacstrap /mnt base base-devel | |
echo "/dev/sda2 / ext4 defaults 0 1" > /etc/fstab | |
arch-chroot /mnt | |
echo -e "en_US.UTF-8 UTF-8\nen_US ISO-8859-1" >> /etc/locale.gen | |
locale-gen | |
echo LANG=en_US.UTF-8 > /etc/locale.conf | |
export LANG=en_US.UTF-8 | |
ln -s /usr/share/zoneinfo/America/New_York /etc/localtime | |
hwclock --systohc --utc | |
#modprobe -a vboxguest vboxsf vboxvideo | |
#echo -e "vboxguest\nvboxsf\nvboxvideo" > /etc/modules-load.d/virtualbox.conf | |
echo archie-$(head /dev/urandom -c 2 | base64 | cut -c -3) > /etc/hostname | |
mkinitcpio -p linux | |
pacman --noconfirm -S grub-bios | |
grub-install --target=i386-pc --recheck /dev/sda | |
cp /usr/share/locale/en\@quot/LC_MESSAGES/grub.mo /boot/grub/locale/en.mo | |
grub-mkconfig -o /boot/grub/grub.cfg | |
# FOR KERNEL DEV | |
pacman -S linux-headers | |
exit | |
umount /mnt | |
reboot |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment