-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathubuntu_install.sh
More file actions
executable file
·79 lines (67 loc) · 2.53 KB
/
ubuntu_install.sh
File metadata and controls
executable file
·79 lines (67 loc) · 2.53 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
#!/bin/bash
set -xe
sudo apt update
sudo apt upgrade -y
echo "##########"
echo "### Install curl openssh-server git aptitude"
echo "##########"
sudo apt install -y vim git curl openssh-server aptitude zsh tmux \
apt-transport-https ca-certificates \
software-properties-common \
fcitx fcitx-chewing
echo "##########"
echo "### Install libreoffice spotify telegram-desktop slack by Snap"
echo "##########"
sudo snap install -y libreoffice spotify telegram-desktop
sudo snap install -y slack --classic
# Install Google Chrome
echo "##########"
echo "### Install Google Chrome"
echo "##########"
curl -O -L https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
sudo dpkg -i google-chrome-stable_current_amd64.deb
sudo apt -f install -y
sudo rm google-chrome-stable_current_amd64.deb
# Install Docker
echo "##########"
echo "### Install Docker"
echo "##########"
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo add-apt-repository -y "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
sudo apt update
sudo apt install -y docker-ce
sudo usermod -aG docker $USER
# Install Java
echo "##########"
echo "### Install Java"
echo "##########"
sudo add-apt-repository -y ppa:webupd8team/java
sudo apt update
echo "oracle-java8-installer shared/accepted-oracle-license-v1-1 select true" | sudo debconf-set-selections
sudo apt install -y oracle-java8-installer
# Install VSCode
echo "##########"
echo "### Install VSCode"
echo "##########"
curl https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > /tmp/microsoft.gpg
sudo install -o root -g root -m 644 /tmp/microsoft.gpg /etc/apt/trusted.gpg.d/
sudo sh -c 'echo "deb [arch=amd64] https://packages.microsoft.com/repos/vscode stable main" > /etc/apt/sources.list.d/vscode.list'
sudo apt update
sudo apt install -y code
# Install Adobe fonts: Source Code Pro
echo "##########"
echo "### Install Fonts: Source Code Pro"
echo "##########"
mkdir /tmp/adodefont
cd /tmp/adodefont
wget https://github.com/adobe-fonts/source-code-pro/archive/2.030R-ro/1.050R-it.zip
unzip 1.050R-it.zip
mkdir -p ~/.fonts
cp source-code-pro-2.030R-ro-1.050R-it/OTF/*.otf ~/.fonts/
fc-cache -f -v
# Install oh my zsh
echo "##########"
echo "### Install Oh My Zsh"
echo "##########"
sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions