-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbootstrapi.sh
51 lines (30 loc) · 1.11 KB
/
bootstrapi.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
#/bin/bash
# Set the -e flag to exit on error
set -e
# Set the -x flag to print each command before it is executed
set -x
# Set the -u flag to exit on unset variables
set -u
# Set the -o pipefail flag to exit on pipe errors
set -o pipefail
# Set the DEBIAN_FRONTEND variable to noninteractive
export DEBIAN_FRONTEND=noninteractive
echo "Bootstrapping the system..."
echo "Version 0.1"
# Update the package list
apt-get update -y
# Install the required packages
apt-get install -y nala
# Install the required packages
nala install -y build-essential wget curl git zip unzip vim net-tools iputils-ping dnsutils netcat-traditional gpg passwd fonts-firacode tmux ripgrep sed unzip jq tree btop
# Cloning the .zshrc file to the home directory
wget -O ~/.zshrc https://raw.githubusercontent.com/a-mader/dotfiles/main/zshrc
# Installing zinit
bash -c "$(curl --fail --show-error --silent --location https://raw.githubusercontent.com/zdharma-continuum/zinit/HEAD/scripts/install.sh)"
# Source the .zshrc file
source ~/.zshrc
# Zinit self update
zinit self-update
# Change the shell to zsh
usermod -s /usr/bin/zsh $USER
exit 0