-
Notifications
You must be signed in to change notification settings - Fork 1
/
prerequites.sh
74 lines (47 loc) · 1.83 KB
/
prerequites.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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
#!/bin/bash
# Get the system up to date
sudo apt update;
sudo apt upgrade;
echo "UPGRADE & UPDATE are COMPLETE!"
# Install locate
sudo apt install mlocate;
echo "LOCATE install COMPLETE!"
# Install Synapse - Powerful app launcher, just like Spotlight Search from Mac
sudo apt-get install synapse;
echo "Synapse install COMPLETE!"
# Install vim
sudo apt install openssh-server;
echo "VIM install COMPLETE!"
# Install openssh
sudo apt install openssh-server;
echo "OpenSSH install COMPLETE!"
# Install htop
sudo snap install htop;
echo "HTOP install COMPLETE!"
# Install net-tools package. This includes arp, ifconfig, netstat, rarp, nameif and route.
sudo apt install net-tools;
echo "NET-TOOLS install COMPLETE!"
### Linux terminal tweaks
touch ~/.bash_profile;
echo export HISTTIMEFORMAT=\"%m/%d/%y %T \" >> ~/.bash_profile;
#no color PS1
echo export PS1='$(whoami):${PWD/*\//}/ :' >> ~/.bash_profile;
#with color PS1
echo export PS1='\[\e[0;36m\]$(whoami):\[\e[32m\]${PWD/*\//}/ :\[\e[0m\]' >> ~/.bash_profile;
echo alias ip='ifconfig | grep '\''inet'\'' | grep -Fv 127.0.0.1 | awk '\''FNR==1 {print $2 }'\''' >> /.bash_profile;
source ~./bash_profile;
echo "LINUX tweaks INSTALLED!"
# Install python3 package manager
sudo apt install python3-pip;
echo "PYTHON PACKER MANAGER instalation COMPLETE!"
### Install python tweaks
# Install pymysql
python3 -m pip install PyMySQL;
echo "PYTHON MYSQL instalation COMPLETE!"
# Install pretty errors
python3 -m pip install pretty_errors;
echo "PYTHON PRETTY ERRORS instalation COMPLETE!"
# Install VsCode for Raspberry Pi arm architecture
sudo -s
. <( wget -O - https://code.headmelted.com/installers/apt.sh );
echo "All packages have been installed: /nUpdate&Upgrade /nLocate /nSynapse /nvim n/OpenSSH /nhtop /nNet-Tools /nLinux Tweaks /nPython Package Manager /nPyMySQL /nPretty Errors /n VsCode"