-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathkickstart.sh
More file actions
49 lines (32 loc) · 2.06 KB
/
kickstart.sh
File metadata and controls
49 lines (32 loc) · 2.06 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
#!/bin/sh
read -r -p "Setup APT Proxy? <y/n> " prompt
if [ "$prompt" = "y" ] || [ "$prompt" = "Y" ] || [ "$prompt" = "yes" ] || [ "$prompt" = "Yes" ]; then
echo 'Acquire { HTTP::proxy "http://10.0.5.20:3142"; HTTPS::proxy "http://10.0.5.20:3142"; }' | sudo tee /etc/apt/apt.conf.d/proxy
echo "Added APT proxy to /etc/apt/apt.conf.d"
elif [ "$prompt" = "n" ] || [ "$prompt" = "N" ] || [ "$prompt" = "no" ] || [ "$prompt" = "No" ]; then
echo "No APT proxy will be set up."
else
echo "Invalid input. Please enter 'y' or 'n'."
exit 1
fi
sudo apt update
sudo apt upgrade -y
sudo apt install -y zsh direnv unzip nala screen cowsay fortune neofetch open-vm-tools curl git yadm
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" "" --unattended
mkdir ~/bin
git clone https://github.com/snowmobile2004/bin.git ~/bin
sudo chsh -s /bin/zsh snow
sudo chsh -s /bin/zsh root
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ~/zsh-syntax-highlighting
curl -fsSL https://raw.githubusercontent.com/snowmobile2004/scripts/master/zsh-theme/fishy.zsh-theme | sudo tee ~/.oh-my-zsh/themes/fishy.zsh-theme
curl -fsSL https://raw.githubusercontent.com/snowmobile2004/scripts/master/z.sh > ~/bin/z.sh
yadm clone https://github.com/snowmobile2004/dotfiles.git
echo 'ssh-rsa AAAAB3NzaC1yc2EAAAABJQAAAQEAmBe/xpoI6waS6VtOCUGi6pJsJ3zcljvsMjo+ti8uJraRNarAaJpgCpmfwmSQRb6BIDSxIZxLUFSgQzS5+IMJf1pDIcXwFcg3XXDlnkdL6lBUurwCxx5WQcsOw3CLNjpcq9zzH6NJ7klSdR0KyrWb1Dt3EiPjORbGmkLLZ7Ca3wAh38q5KsUlQ63mRYS75tF+ZjtpO6ZmYJ0+yWNfqJrDn/S7makB0ZaCiOd+Szr037LVIWVX5DayGFqZ/mcaWP1nYKMqv+03YB2e+QguzPjC4C5L3bVpynYKFskb+6H1sKFTNjeagxlZuszJLUZTcGJ3KWVB6pylW4/j4006jZBLpw== rsa-key-20210213' | sudo tee -a ~/.ssh/authorized_keys
git config --global user.name "Josh Green"
git config --global user.email "greenjosh6499@gmail.com"
sh -c "$(curl -fsSL https://raw.githubusercontent.com/snowmobile2004/scripts/master/install-gh.sh)"
sudo rm -f install.sh
sudo rm -f kickstart.sh
echo "Initial Kickstart Completed, please login to GitHub"
gh auth login -w
exit