-
Notifications
You must be signed in to change notification settings - Fork 0
/
ubuntu.sh
executable file
·64 lines (49 loc) · 1.68 KB
/
ubuntu.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
#!/bin/sh
set x
set e
# basic requirements
sudo apt upgrade
sudo apt update
sudo apt install gperf luajit luarocks libuv1-dev libluajit-5.1-dev libunibilium-dev libmsgpack-dev libtermkey-dev libvterm-dev libutf8proc-dev ctags
sudo apt install make build-essential libssl-dev zlib1g-dev libbz2-dev libreadline-dev libsqlite3-dev wget curl llvm libncurses5-dev xz-utils tk-dev libxml2-dev libxmlsec1-dev libffi-dev liblzma-dev
# zsh
sudo apt install zsh
sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
echo LANG=en_US.utf-8 >> .zshrc
echo LC_ALL=en_US.utf-8 >> .zshrc
# autojump
sudo apt install autojump
# node
wget -qO- https://raw.githubusercontent.com/nvm-sh/nvm/v0.36.0/install.sh | zsh
nvm install node
# neovim
sudo apt install neovim
sudo apt install python-neovim
sudo apt install python3-neovim
# golang
zsh < <(curl -s -S -L https://raw.githubusercontent.com/moovweb/gvm/master/binscripts/gvm-installer)
source /home/long/.gvm/scripts/gvm
gvm install go1.5 -B
gvm use go1.5 --default
# python
curl https://pyenv.run | zsh
pyenv install 3.8.5
pyenv global 3.8.5
# typescript
npm install -g typescript#
# nginx
sudo apt install nginx
# mysql
sudo apt install mysql-server
sudo mysql_secure_installation
# dotnet
wget https://packages.microsoft.com/config/ubuntu/20.04/packages-microsoft-prod.deb -O packages-microsoft-prod.deb
sudo dpkg -i packages-microsoft-prod.deb
sudo apt-get update; \
sudo apt-get install -y apt-transport-https && \
sudo apt-get update && \
sudo apt-get install -y dotnet-sdk-3.1
sudo apt-get update; \
sudo apt-get install -y apt-transport-https && \
sudo apt-get update && \
sudo apt-get install -y aspnetcore-runtime-3.1