-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path01_install_starter.sh
50 lines (43 loc) · 2.02 KB
/
01_install_starter.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
# some usefull packages when it comes to dealing with a debien server
#
if [ "$(whoami)" != "root" ]; then
SUDO=sudo
fi
# get the right timezone (see 'timedatectl list-timezones' to fetch yours)
${SUDO} timedatectl set-timezone "Europe/Paris"
# some might already be installed, depending on your distribution
${SUDO} apt-get -y install apticron bpytop ccze cowsay curl dnsutils exa fail2ban fortunes iptables iptables-persistent netcat-openbsd net-tools parted python3-pygments rkhunter rsync screen sudo tmux unzip whois zip zsh
# glpi-agent
cd
wget https://github.com/glpi-project/glpi-agent/releases/download/1.11/glpi-agent_1.11-1_all.deb
${SUDO} dpkg -i glpi-agent_1.11-1_all.deb
# fastfetch
cd
wget https://github.com/fastfetch-cli/fastfetch/releases/download/2.16.0/fastfetch-linux-amd64.deb
${SUDO} dpkg -i fastfetch-linux-amd64.deb
# set ZSH up as your default shell
${SUDO} chsh -s $(which zsh)
# Install OhMyZsh and follow steps (you'll thank me later !)
sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
# add some new lines to ~/.zshrc (this part actually needs to be tested)
echo " " >> ~/.zshrc
echo " \# some new adds of mine " >> ~/.zshrc
echo " alias ls='ls -ailsh --color' " >> ~/.zshrc
echo " alias lx='exa -lRTL=2' " >> ~/.zshrc
echo " alias top='bpytop' " >> ~/.zshrc
echo " alias rm='rm -i' " >> ~/.zshrc
echo " alias mv='mv -i' " >> ~/.zshrc
echo " alias cp='cp -i' " >> ~/.zshrc
echo " " >> ~/.zshrc
echo " cd ~ " >> ~/.zshrc
echo " clear " >> ~/.zshrc
echo " fastfetch " >> ~/.zshrc
echo " echo \"=========================================================\" " >> ~/.zshrc
echo " echo \"Checking for upgrades ...\" " >> ~/.zshrc
echo " apt list --upgradable " >> ~/.zshrc
echo " echo \"run 'sudo apt update && sudo apt full-upgrade -y' if any.\" " >> ~/.zshrc
echo " echo \"=========================================================\" " >> ~/.zshrc
echo " " >> ~/.zshrc
echo " chuck_cow " >> ~/.zshrc
echo " echo \"=========================================================\" " >> ~/.zshrc