-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy patharch.sh
More file actions
executable file
·118 lines (87 loc) · 4.18 KB
/
arch.sh
File metadata and controls
executable file
·118 lines (87 loc) · 4.18 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
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
#!/usr/bin/env bash
set -euo pipefail
# Variables
#----------------------------
# Color variables
GREEN="\e[32m"
WHITE="\e[0m"
YELLOW="\e[33m"
BLUE="\e[34m"
#----------------------------
# Welcome message
echo -e "
${GREEN}\e[1mWELCOME!${GREEN}
Now we will customize Arch-based Terminal
Created by \e[1;4mPhunt_Vieg_
${WHITE}"
cd ~
# Updating the system
echo -e "${GREEN}\n---------------------------------------------------------------------\n${YELLOW}[1/10]${GREEN} ==> Updating system packages\n---------------------------------------------------------------------\n${WHITE}"
sudo pacman -Syu --noconfirm
# Setting locale
echo -e "${GREEN}\n---------------------------------------------------------------------\n${YELLOW}[2/10]${GREEN} ==> Setting locale \n---------------------------------------------------------------------\n${WHITE}"
sudo sed -i '/^#en_US.UTF-8 UTF-8/s/^#//' /etc/locale.gen
sudo locale-gen
sudo localectl set-locale LANG=en_US.UTF-8
# Download some terminal tool
echo -e "${GREEN}\n---------------------------------------------------------------------\n${YELLOW}[3/10]${GREEN} ==> Download some terminal tool\n---------------------------------------------------------------------\n${WHITE}"
sudo pacman -S --noconfirm --needed base-devel git
git clone https://aur.archlinux.org/yay.git
cd yay
makepkg -si --noconfirm
cd ~
rm -rf ~/yay
pacman_packages=(
# System monitoring and fun terminal visuals
btop cmatrix cowsay fastfetch
# Essential utilities
make curl wget unzip dpkg ripgrep fd man openssh netcat
fzf eza bat zoxide neovim tmux stow
lazydocker lazygit
# CTF tools
perl-image-exiftool gdb ascii ltrace strace checksec patchelf upx binwalk
# Programming languages
python3 python-pip nodejs npm ruby go
# Shell & customization
zsh
)
aur_packages=(
# System monitoring and fun terminal visuals
cbonsai pipes.sh pokemon-colorscripts-git oh-my-posh
# CTF tools
pwninit
)
# Download pacman packages
echo -e "${GREEN}\n---------------------------------------------------------------------\n${YELLOW}[4/10]${GREEN} ==> Download pacman packages\n---------------------------------------------------------------------\n${WHITE}"
sudo pacman -S --noconfirm "${pacman_packages[@]}"
# Download yay packages
echo -e "${GREEN}\n---------------------------------------------------------------------\n${YELLOW}[5/10]${GREEN} ==> Download yay packages\n---------------------------------------------------------------------\n${WHITE}"
yay -S --noconfirm "${aur_packages[@]}"
# Download pwndbg and pwntools
echo -e "${GREEN}\n---------------------------------------------------------------------\n${YELLOW}[7/10]${GREEN} ==> Download pwndbg and pwntools\n---------------------------------------------------------------------\n${WHITE}"
git clone --depth=1 https://github.com/pwndbg/pwndbg
cd pwndbg
./setup.sh
cd ..
sudo gem install one_gadget
# Download file config"
echo -e "${GREEN}\n---------------------------------------------------------------------\n${YELLOW}[8/10]${GREEN} ==> Download file config\n---------------------------------------------------------------------\n${WHITE}"
git clone --depth=1 https://github.com/ViegPhunt/Dotfiles.git ~/dotfiles
git clone --depth=1 https://github.com/tmux-plugins/tpm ~/dotfiles/.tmux/plugins/tpm
# Stow
echo -e "${GREEN}\n---------------------------------------------------------------------\n${YELLOW}[9/10]${GREEN} ==> Stow\n---------------------------------------------------------------------\n${WHITE}"
cd ~/dotfiles
./.config/viegphunt/backup_config.sh
stow -t ~ .
cd ~
# Change shell
echo -e "${GREEN}\n---------------------------------------------------------------------\n${YELLOW}[10/10]${GREEN} ==> Change shell\n---------------------------------------------------------------------\n${WHITE}"
ZSH_PATH="$(which zsh)"
grep -qxF "$ZSH_PATH" /etc/shells || echo "$ZSH_PATH" | sudo tee -a /etc/shells
chsh -s "$ZSH_PATH"
echo -e "\n ${GREEN}
**************************************************
* \e[1;4mDone\e[0m${GREEN}!!! *
* Please relogin to apply new config. *
**************************************************
"