-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patharchInstall.zsh
69 lines (51 loc) · 1.7 KB
/
archInstall.zsh
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
#!/bin/bash
#USERNAME (CHANGE VARIABLE HERE)
UN=${UN}
#1. SET TIMEZONE
echo "ln -sf /usr/share/zoneinfo/America/New_York" >> /etc/localtime
#2. SET CLOCK
echo "hwclock --systohc"
#3. SET LOCATION
echo "LANG=en_US.UTF-8" >> /etc/locale.gen
echo "LC_CTYPE=en_US.UTF-8" >> /etc/locale.conf
#4. ADDING ${UN}
useradd -m ${UN}
#4. CONFIGURE HOST FILE
printf "127.0.0.1 localhost/n::1 localhost/n127.0.0.1 blackbox.localdomain blackbox/n192.168.1.1 BusyBox/n192.168.1.154 mobileUnit/n192.168.50.1 asus/n192.168.50.85 p1/n192.168.50.162 p2/n192.168.50.9 p3/n192.168.50.3 mac" >> /etc/hosts
#5. CREATE HOSTNAME
echo "blackbox" >> /etc/hostname
#6. INSTALL PACKAGES
pacman -S --no-confirm neovim xorg-server kitty docker kubeadm starship helm feh ssh wget wpa-supplicant netctl dialog
#7. MAKE DIRECTORIES
mkdir -p /home/${UN}/Downloads /home/${UN}/Programs /home/${UN}/.ssh/ /home/${UN}/.zsh/ /home/${UN}/suckless/
#8. RETRIEVE CONFIGS
alias gc='git clone'
#9. INSTALL NEOVIM
cd /home/${UN}/Programs/
gc "https://github.com/Nokodoko/nvim.git"
cd nvim/ && make install
#10. INSTALL ZSH-TOOLING
cd /home/${UN}/.zsh/
gc "https://github.com/Nokodoko/tooling.git"
#11. INSTALL DWM
cd /home/n0ko/suckless
gc "https://github.com/Nokodoko/n0kodwm.git"
cd n0kodwm/ && make install
#12. INSTALL SLSTATUS
cd /home/${UN}/suckless
gc "https://github.com/Nokodoko/slstatus.git"
cd slstatus/ && make install
#13. CONFIG FILES
cd ~
gc "https://github.com/Nokodoko/.config.git"
#START IWD
systemctl --now enable iwd
#14. MAKE RSA-KEYS
cd /home/${UN}/.ssh
ssh-keygen -q -t rsa -N ''
#16. INSTALL FONT
cd /home/${UN}/Downloads/
wget https://rubjo.github.io/victor-mono/VictorMonoall.zip
tar -xvf VictorMonoall.zip
cd TTF
mv * /usr/share/fonts/TTF/