##############################################################
# Arch Linux install script
# @author sqram http://sqr.am
# Assumes you use a whole disk for OS, no partitions.
# If you want to use partitions such as /boot /home /var,
# create them manually. mount them manually, and don't use this.
# This will use /dev/sda and /dev/sda1. always.
# This is how i always set up my system, so it caters to me.
# change it according to your own needs if you want
##############################################################
echo "what is the USER to create besides root? "
read arch_user
echo "what is your HOST name (user@hostname)? "
read arch_hostname
echo "what is the 3 letter DEVICE to install on? (usually sda)? "
read arch_device
# Start the partitioner
#cfdisk
parted /dev/$arch_device mklabel gpt
parted /dev/arch_device mkpart P1 ext4 10MiB 100%
mount /dev/$arch_device /mnt
# I told you it's sda only
#mkfs -t ext4 /dev/sda1
# Whole thing will be mounted here. Like i said, single partition
# if you mounted
# Install the base system with some other packages
pacstrap /mnt base base-devel grub-bios dialog wpa_supplicant wireless_tools netcl zsh timectl
# Generate fstab so you can boot
genfstab -U /mnt >> /mnt/etc/fstab
# Post inatall
arch-chroot /mnt
echo $arch_hostname > /etc/hostname
ln -s /usr/share/zoneinfo/US/Eastern /etc/localtime
hwclock --systohc --utc
timedatectl set-ntp true
sed -i '1ien_US.UTF-8 UTF-8' /etc/locale.gen
locale-gen
echo LANG=en_US.UTF-8 > /etc/locale.conf
mkinitcpio -p linux
# set passwords for root and new user
echo ROOT password:
passwd
echo Creating user $arch_user
useradd -m -G wheel -s /bin/zsh $arch_user
echo Set password for $arch_user:
passwd $arch_user
# Install yaourt inside ~
cd ~
mkdir aur && $_
git clone https://aur.archlinux.org/package-query.git
cd package-query
makepkg -si
cd ..
git clone https://aur.archlinux.org/yaourt.git
cd yaourt
makepkg -si
cd ..
# pacman packages
#################################################
pacman -S vim\
weechat\ # irc client
i3-wm\ # i3 window manager
chromium\ # chrome
nitrogen\ # wallpaper switcher
git svn\ # git svn
openssh\ # ssh
lxappearence\ # theme switcher
arandr\ # monitor setup
thunar\ # file manager
viewnior\ # img viewer
tumbler\ # thumbnails
nodejs \ # nodejs
filezilla\ # ftp client
nginx\ # web server
dmenu\ # dmenu
rfkill\ # needed for network issues
xorg-server xorg-server-utils xorg-xinit\ # xorg stuff
ttf-inconsolata ttf-freefont ttf-droid ttf-bitstream-vera # fonts
# yaourt packages
#################################################
yaourt --noconfirm -S sublime-text-dev\
# themes
super-flat-remix-icon-theme\
arc-dark-suite-git\
openbox-arc-git\
gtk-theme-arc-git\
gtk-arc-flatabulous-theme-git\
arc-suite-git\
# NUMIX FLAT STUDIO is great, but not in aur, get from gnomelook
# icons
paper-icon-theme-git\
arc-icon-theme-git\
# bsm simple dark \
# bunsen blackish \
# bunsen blue dark \
# flattastic-blue \
# flat-plat \
# futura-blue \
# numix solarized \
# polar night \
# deepin \
# # icons
# paper \
# simplistica \
# font-awesome ttf-chromeos-fonts ttf-vista-fonts
# Download dotfiles