Fri Aug 26 2016
Copied to clipboard! Copy reply
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80
  • 81
  • 82
  • 83
  • 84
  • 85
  • 86
  • 87
  • 88
  • 89
  • 90
  • 91
  • 92
  • 93
  • 94
  • 95
  • 96
  • 97
  • 98
  • 99
  • 100
  • 101
  • 102
  • 103
  • 104
  • 105
  • 106
  • 107
  • 108
  • 109
  • 110
  • 111
  • 112
  • 113
  • 114
  • 115
  • 116
  • 117
  • 118
  • 119
  • 120
  • 121
  • 122
  • 123
  • 124
  • 125
  • 126
  • 127
  • 128
  • 129
  • 130
  • 131
  • 132
  • 133
  • 134
  • 135
##############################################################
# 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