-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathubuntu19.10.sh
executable file
·107 lines (85 loc) · 3.58 KB
/
ubuntu19.10.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
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
!/bin/bash
sudo apt-get update \
&& sudo apt-get upgrade -y \
&& sudo apt-get install -y \
curl \
docker.io \
build-essential \
terminator \
zsh \
powerline fonts-powerline \
chrome-gnome-shell \
gnome-tweak-tool \
unrar zip unzip p7zip-full p7zip-rar rar \
openjdk-14-jdk \
lm-sensors psensor hddtemp cpufrequtils\
htop \
preload
sudo add-apt-repository -y ppa:apt-fast/stable \
&& DEBIAN_FRONTEND=noninteractive sudo apt-get -y install apt-fast \
&& sudo su \
&& echo debconf apt-fast/maxdownloads string 16 | debconf-set-selections \
&& echo debconf apt-fast/dlflag boolean true | debconf-set-selections \
&& echo debconf apt-fast/aptmanager string apt-get | debconf-set-selections \
&& exit
echo "Installing Nodejs"
curl -sL https://deb.nodesource.com/setup_12.x | sudo -E bash - \
&& sudo apt-get install -y nodejs
ZSH_PLUGIN_DIR="$HOME/.oh-my-zsh/custom/plugins"
git clone https://github.com/robbyrussell/oh-my-zsh.git ~/.oh-my-zsh \
&& cp ~/.oh-my-zsh/templates/zshrc.zsh-template ~/.zshrc \
&& sudo chsh -s /bin/zsh \
&& git clone https://github.com/zsh-users/zsh-syntax-highlighting.git "$ZSH_PLUGIN_DIR/zsh-syntax-highlighting" --depth 1 \
&& echo "source $ZSH_PLUGIN_DIR/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh" >> "$HOME/.zshrc" \
&& git clone https://github.com/esc/conda-zsh-completion.git "$ZSH_PLUGIN_DIR/conda-zsh-completion" --depth 1 \
&& echo "source $ZSH_PLUGIN_DIR/conda-zsh-completion/conda-zsh-completion.plugin.zsh" >> "$HOME/.zshrc" \
&& git clone https://github.com/zsh-users/zsh-autosuggestions.git "$ZSH_PLUGIN_DIR/zsh-autosuggestions" --depth 1\
&& echo "source $ZSH_PLUGIN_DIR/zsh-autosuggestions/zsh-autosuggestions.zsh" >> "$HOME/.zshrc" \
&& echo "need to manully change them to ZSH_THEME='agnoster' and mannually add plugins 'zsh-syntax-highlighting', 'conda-zsh-completion', 'zsh-autosuggestions'"
echo "Attempting to change the default terminal"
sudo update-alternatives --config x-terminal-emulator
echo "Install VS Code"
sudo snap install code --classic
echo "Install PyCharm CE"
sudo snap install pycharm-community --classic
echo "Install Postman"
sudo snap install postman
echo "Install Chromium"
sudo snap install chromium
echo "Install Heroku"
sudo snap install --classic heroku
echo "Install VLC"
sudo snap install vlc
echo "Install Digital Ocean Command Line Tool"
sudo snap install doctl
echo "Install Gimp"
sudo snap install gimp
echo "Install Slack"
sudo snap install slack --classic
echo "Enable Ubuntu Firewall enable commonly used portsd and GUI for firewall"
sudo ufw enable \
&& sudo ufw status \
&& sudo ufw allow ssh \
&& sudo ufw allow http \
&& sudo ufw allow https \
&& sudo apt install gufw -y
echo "Redis Desktop Manager"
sudo snap install redis-desktop-manager
echo "Installing Anaconda"
CONDA_DIR=/opt/anaconda3 \
&& wget https://repo.anaconda.com/archive/Anaconda3-2019.10-Linux-x86_64.sh -O Anaconda.sh \
&& sudo bash Anaconda.sh -b -p $CONDA_DIR \
&& sudo chown -R $USER:$USER $CONDA_DIR \
&& eval "$($CONDA_DIR/bin/conda shell.bash hook)" \
&& conda init \
&& rm Anaconda.sh \
&& echo "Anaconda installed successfully"
echo "Configuring sensors"
sudo sensors-detect --auto
echo "Installing Additional Packages"
sudo apt install -y ubuntu-restricted-extras
echo "Configuring Docker"
sudo usermod -aG docker ${USER} \
&& sudo systemctl start docker \
&& sudo systemctl enable docker \
&& echo "Successfully configured for docker"