-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathinit.sh
More file actions
executable file
·78 lines (67 loc) · 1.48 KB
/
init.sh
File metadata and controls
executable file
·78 lines (67 loc) · 1.48 KB
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
#! /bin/bash
DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
# move to Downloads
echo "Making a Downloads directory"
install -d $HOME/Downloads
cd $HOME/Downloads
# First install package-query
echo "Installing basic AUR helper"
curl -O https://aur4.archlinux.org/cgit/aur.git/snapshot/package-query.tar.gz
tar -xzvf package-query.tar.gz
cd package-query
makepkg -si
sudo pacman -U package-query*.tar.xz
cd ..
# now install yaourt
curl -O https://aur4.archlinux.org/cgit/aur.git/snapshot/yaourt.tar.gz
tar -xzvf yaourt.tar.gz
cd yaourt
makepkg -si
sudo pacman -U yaourt*.tar.xz
cd ..
# install required packages
pkgs=(
'xterm'
'xorg-server'
'xorg-xinit'
'xorg-xmodmap'
'xf86-video-vesa'
'base-devel'
'sudo'
'git'
'tmux'
'python3'
'ipython'
'python-numpy'
'vim'
'openbox'
'obconf'
'zsh'
'firefox'
)
aur_pkgs=(
'oh-my-zsh-git'
'slimux-git'
'vim-pathogen-git'
)
echo "Installing core packages"
sudo pacman -Sy
for i in "${pkgs[@]}"
do
sudo pacman -S $i
done
echo "Installing AUR packages"
for i in "${aur_pkgs[@]}"
do
yaourt $i
done
# get some sane defaults going
echo "Grabbing sane defaults"
git clone https://github.com/dvbuntu/.files.git
# run the installation command
echo "Installing sane defaults"
cd .files
./install.sh
# switch shell to zsh
echo "switching to zsh"
chsh -s $(which zsh)