-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall-ubuntu.sh
181 lines (139 loc) · 5.22 KB
/
install-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
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
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
#!/bin/bash
set -u
sudo apt update
# General
sudo apt install -y cmake curl git
# Homebrew on Linux
curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh | bash -s -- -y
export PATH="/home/linuxbrew/.linuxbrew/bin:$PATH"
brew tap beeftornado/rmtree
# Application
# Chrome https://www.google.com/chrome/
# Slack https://slack.com/intl/ja-jp/downloads/linux
# deb版でないと日本語入力ができない
# sudo snap install slack --classic
# Visual Studio Code https://code.visualstudio.com/download
# deb版でないと日本語入力ができない
# sudo snap install code --classic
# Zoom https://zoom.us/download?os=linux
# deb版でないとURLでxdg-openされない
# WPS Office http://linux.wps.com/
# Steam https://store.steampowered.com/about/
# libGL error: failed to load driver: swrast
# というエラーが出る場合以下を実行 (i86は必要なのかちゃんと確認できていない)
# sudo apt install libnvidia-gl-***:i386
# Snap
sudo snap install htop
# sudo snap install libreoffice
# sudo snap install ngrok
# sudo snap install tor
sudo snap install vlc
# sudo snap install youtube-dl
# sudo snap install zoom-client
# Driver
# CUDA
# https://developer.nvidia.com/cuda-downloads に従う
# wget https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64/cuda-ubuntu2004.pin
# sudo mv cuda-ubuntu2004.pin /etc/apt/preferences.d/cuda-repository-pin-600
# sudo apt-key adv --fetch-keys https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64/7fa2af80.pub
# sudo add-apt-repository "deb http://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64/ /"
# sudo apt-get update
# sudo apt-get -y install cuda-11-0
# cuDNN
# https://developer.nvidia.com/rdp/cudnn-download に従い3つのdebをinstallする
# Nvidia Driver
sudo add-apt-repository -y ppa:graphics-drivers
sudo apt update
sudo apt install -y nvidia-driver-495
# Docker
sudo apt-get install -y \
apt-transport-https \
ca-certificates \
curl \
gnupg-agent \
software-properties-common
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo add-apt-repository \
"deb [arch=amd64] https://download.docker.com/linux/ubuntu \
$(lsb_release -cs) \
stable"
sudo apt-get update
sudo apt-get install -y docker-ce docker-ce-cli containerd.io
# sudo apt install -y docker.io
# sudo systemctl enable --now docker
sudo groupadd docker
sudo gpasswd -a $USER docker
# docker-compose
sudo curl -L "https://github.com/docker/compose/releases/download/1.29.2/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose
sudo ln -s /usr/local/bin/docker-compose /usr/bin/docker-compose
# nvidia-docker2
distribution=$(. /etc/os-release;echo $ID$VERSION_ID)
curl -s -L https://nvidia.github.io/nvidia-docker/gpgkey | sudo apt-key add -
curl -s -L https://nvidia.github.io/nvidia-docker/$distribution/nvidia-docker.list | sudo tee /etc/apt/sources.list.d/nvidia-docker.list
sudo apt-get update && sudo apt-get install -y nvidia-container-toolkit nvidia-docker2
sudo systemctl restart docker
# CLI
# zsh
sudo apt install -y zsh gawk
curl -sL --proto-redir -all,https https://raw.githubusercontent.com/zplug/installer/master/installer.zsh | zsh
sudo chsh -s $(which zsh) $USER
sudo apt install fzy
# Vim
sudo apt install -y vim
curl https://raw.githubusercontent.com/Shougo/dein.vim/master/bin/installer.sh | sh -s -- ~/.cache/dein
# tmux
sudo apt install -y tmux
# tmux source ~/.tmux.conf
# tig
sudo apt install -y tig
# lazydocker
brew install jesseduffield/lazydocker/lazydocker
# nvtop
# sudo apt install -y nvtop
git clone https://github.com/Syllo/nvtop.git
mkdir -p nvtop/build && cd nvtop/build
sudo apt install -y libncurses5-dev
cmake ..
sudo apt purge -y libncurses5-dev
sudo make install
cd ../../
rm -rf nvtop
# Progmamming language manager
# Python
# pyenv
sudo apt install -y make build-essential libssl-dev zlib1g-dev \
libbz2-dev libreadline-dev libsqlite3-dev wget curl llvm \
libncursesw5-dev xz-utils tk-dev libxml2-dev libxmlsec1-dev libffi-dev liblzma-dev
curl https://pyenv.run | bash
# Pipenv
sudo apt install -y pipenv python3-venv # virtualenv 問題なければvirtualenvを実際に削除予定
# Node.js
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.0/install.sh | bash
# Yarn
curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
sudo apt update
sudo apt install --no-install-recommends yarn
# Rust
# curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
# Utility
sudo apt install -y openssh-server
sudo apt install -y direnv
sudo apt install -y trash-cli
sudo apt install -y xclip
# sudo apt install -y aria2
# brew install ncdu
# brew install glances
sudo snap install ksuperkey # KDEのみ
sudo apt install -y simplescreenrecorder
sudo apt install -y pavucontrol
sudo apt install -y easystroke
sudo apt install -y pdftk
sudo apt install -y yakuake
# Font
brew tap sanemat/font
brew install ricty --with-powerline
sudo cp -f /home/linuxbrew/.linuxbrew/opt/ricty/share/fonts/Ricty*.ttf /usr/local/share/fonts/
sudo apt install fonts-firacode
fc-cache -vf