Skip to content

Instantly share code, notes, and snippets.

@bofh19
Forked from anonymous/arch_install
Last active August 29, 2015 14:16
Show Gist options
  • Save bofh19/1a6e742eb8f204a71f1c to your computer and use it in GitHub Desktop.
Save bofh19/1a6e742eb8f204a71f1c to your computer and use it in GitHub Desktop.
passwd
systemctl enable sshd.service
systemctl start sshd.service
parted -s /dev/sda mklabel gpt
parted -s /dev/sda mkpart "primary" "fat16" "50MB" "60MB"
parted -s /dev/sda mkpart "primary" "ext4" "1%" "99%"
parted -s /dev/sda set 1 bios_grub on
mkfs.ext4 /dev/sda2
mount /dev/sda2 /mnt
pacstrap /mnt base base-devel
echo "/dev/sda2 / ext4 defaults 0 1" > /etc/fstab
or # genfstab -U -p /mnt >> /mnt/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/Chicago /etc/localtime
hwclock --systohc --utc
# nano /etc/pacman.conf
Scroll down and un-comment the ‘multilib’ repo:
[multilib]
Include = /etc/pacman.d/mirrorlist
Now it’s time to update the repositories by running this command:
# pacman -Sy
set root password
#passwd
create user
# useradd -m -g users -G wheel,storage,power -s /bin/bash USER_NAME
# passwd USER_NAME
sudo permission for user
# pacman -S sudo
# EDITOR=nano visudo
uncomment line
%wheel ALL=(ALL) ALL
# pacman -S bash-completion
modprobe -a vboxguest vboxsf vboxvideo
echo -e "vboxguest\nvboxsf\nvboxvideo" > /etc/modules-load.d/virtualbox.conf
echo archbox-$(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
exit
umount /mnt
reboot
# nano /etc/pacman.conf
and then add this repo there:
[archlinuxfr]
SigLevel = Never
Server = http://repo.archlinux.fr/$arch
# pacman -Sy
# pacman -S yaourt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment