-
Notifications
You must be signed in to change notification settings - Fork 0
/
arch.sh
executable file
·160 lines (131 loc) · 3.53 KB
/
arch.sh
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
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
#!/bin/sh
set -eif [[ ! -x "$(command -v yay)" ]]; then
cd /tmp
git clone https://aur.archlinux.org/yay.git
cd yay
makepkg --syncdeps --install --noconfirm
cd ${HOME}
fi
useradd -m -g users -G wheel,storage,power -s /bin/bash jerome
passwd jerome
pacman -Syu --noconfirm alsa-utils \
asciiquarium \
base-devel \
code \
compton \
dep \
docker \
docker-compose \
firefox \
fzf \
git \
gnupg \
go \
htop \
i3-gaps \
i3status \
linux-headers \
networkmanager \
networkmanager-openconnect \
networkmanager-vpnc \
nitrogen \
npm \
ntfs-3g \
numlockx \
openconnect \
openssh \
os-prober \
playerctl \
python \
python-pip \
rofi \
rxvt-unicode \
screenfetch \
sudo \
terminator \
ttf-dejavu \
udisks2 \
vim \
virtualbox-host-modules-arch \
virtualbox \
whois \
xclip \
xorg-server \
xorg-xinit \
xorg-xrdb \
xorg-xrandr \
xdotool \
xscreensaver \
zsh
visudo
su - jerome <<EOSU
# Setup Yay
if [[ ! -x "$(command -v yay)" ]]; then
cd /tmp
git clone https://aur.archlinux.org/yay.git
cd yay
makepkg --syncdeps --install --noconfirm
cd ${HOME}
fi
yay -S --noconfirm google-chrome \
i3lock-fancy-git \
keybase-bin \
nodejs \
nerd-fonts-complete \
polybar \
snapd
sudo systemctl start snapd && \
systemctl enable -f snapd
# Install Minikube
curl -Lo minikube https://storage.googleapis.com/minikube/releases/latest/minikube-linux-amd64 \
&& chmod +x minikube
sudo cp minikube /usr/local/bin \
&& rm minikube
sudo ln -sf /var/lib/snapd/snap /snap
sudo snap install spotify
for package in helm kubectl slack
do
sudo snap install ${package} --classic
done
# Switch keyboard keymap
echo "KEYMAP=fr" > sudo /etc/vconsole.conf
# Fix GRUB entries
sudo os-prober
sudo grub-mkconfig -o /boot/grub/grub.cfg
# Docker setup
sudo systemctl start docker.service
sudo systemctl enable docker.service
sudo gpasswd -a $(whoami) docker
if [[ ! -a $HOME/.oh-my-zsh ]]; then
sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
fi
if [[ ! -a $HOME/.zplug ]]; then
curl -sL --proto-redir -all,https https://raw.githubusercontent.com/zplug/installer/master/installer.zsh | zsh
fi
# Start services
sudo systemctl enable NetworkManager
git clone https://github.com/Jerome1337/dotfiles.git
ln -sf $HOME/dotfiles/.screenlayout $HOME/.screenlayout
ln -sf $HOME/dotfiles/.Xresources $HOME/.Xresources
ln -sf $HOME/dotfiles/.xinitrc $HOME/.xinitrc
ln -sf $HOME/dotfiles/.profile $HOME/.profile
ln -sf $HOME/dotfiles/.zprofile $HOME/.zprofile
ln -sf $HOME/dotfiles/.zshrc $HOME/.zshrc
ln -sf $HOME/dotfiles/.gitconfig $HOME/.gitconfig
ln -sf $HOME/dotfiles/.gitignore_global $HOME/.gitignore_global
mkdir -p $HOME/.config/i3
ln -sf $HOME/dotfiles/.config/i3/config $HOME/.config/i3/config
mkdir $HOME/.config/polybar
ln -sf $HOME/dotfiles/.config/polybar/config $HOME/.config/polybar/config
ln -sf $HOME/dotfiles/.config/polybar/bar_launch.sh $HOME/.config/polybar/bar_launch.sh
ln -sf $HOME/dotfiles/lockscreen.sh $HOME/lockscreen.sh
mkdir $HOME/.config/terminator
ln -sf $HOME/dotfiles/.config/terminator/config $HOME/.config/terminator/config
for file in $(echo $HOME/dotfiles/.zshrc) $(echo $HOME/dotfiles/.gitconfig)
do
sed -i "" --follow-symlinks 's#<gpg_binary>#'$(which gpg)'#' ${file}
done
echo static "domain_name_servers=8.8.8.8 1.1.1.1" | sudo tee -a /etc/dhcpcd.conf
sudo chsh -s /bin/zsh $(whoami)
EOSU
reboot