This repository has been archived by the owner on Jul 10, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
first-install.sh
241 lines (207 loc) · 5.84 KB
/
first-install.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
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
# !/bin/sh
# atuin
bash <(curl https://raw.githubusercontent.com/ellie/atuin/main/install.sh);
mkdir -v ~/.config/{pulse,lsd,fish,darktable}
mkdir ~/Google\ Drive;
mkdir -p ~/Projects/me;
sudo apt update -y && sudo apt install curl fish git tmux;
# rust
curl https://sh.rustup.rs -sSf | sh;
# zellij
cargo install --locked zellij;
# starship
curl -sS https://starship.rs/install.sh | sh
# docker
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg;
echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/ubuntu \
$(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null;
# ---
sudo add-apt-repository ppa:agornostal/ulauncher;
# sudo add-apt-repository ppa:gezakovacs/ppa; # unetbootin
# apt packages
sudo apt update -y && sudo apt install -y \
apt-transport-https \
audacity \
ca-certificates \
cheese \
chrome-gnome-shell \
cmatrix \
containerd.io \
darktable \
docker-ce \
docker-ce-cli \
filezilla \
flameshot \
fonts-firacode \
fonts-noto-color-emoji \
gconf-editor \
gimp \
git-extras \
gnome-terminal \
gnome-tweaks \
gnupg \
golang \
gpick \
imagemagick \
imwheel \
inkscape \
jq \
kdenlive \
libreswan \
lsb-release \
mono-devel \
mplayer \
neovim \
net-tools \
network-manager-l2tp \
network-manager-l2tp-gnome \
optipng \
pavucontrol \
python3-pip \
rar \
rename \
rhythmbox \
screenruler \
simplescreenrecorder \
snapd \
solaar \
ttf-mscorefonts-installer \
ubuntu-restricted-extras \
ulauncher \
vim \
vlc \
xclip;
# rename package use: rename 's/\.txt$/.md/' *.txt
# mysql-workbench \
# unetbootin \
# wine \
# xscreensaver \
# xscreensaver-data-extra \
# xscreensaver-gl-extra;
# docker
sudo chmod 666 /var/run/docker.sock;
sudo groupadd docker;
sudo usermod -aG docker $USER;
# newgrp 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;
# snap packages
sudo snap install alacritty --classic;
sudo snap install cmake --classic;
sudo snap install espanso --classic --channel=latest/edge;
sudo snap install figma-linux;
sudo snap install htop --classic;
sudo snap install micro --classic;
sudo snap install multipass;
sudo snap install starship;
# cp -rv fish/fish_history ~/.local/share/fish/; // https://drive.google.com/file/d/1SviusRFELzNDuL9Ne6M5RcsU5j9_Pp79/view?usp=sharing
cp -rv fish/config.fish ~/.config/fish/;
cp -rv .gitconfig ~/;
cp -rv alacritty ~/.config/;
cp -rv darktable/styles ~/.config/darktable/styles/;
cp -rv pulse.conf ~/.config/pulse/daemon.conf;
cp -rv SimpleScreenRecorder/.ssr ~/;
cp -rv lsd/config.yaml ~/.config/lsd/;
# cp -rv .tmux.conf ~/;
# tmux source ~/.tmux.conf;
chsh -s /usr/bin/fish;
curl git.io/pure-fish --output /tmp/pure_installer.fish --location --silent;
source /tmp/pure_installer.fish; and install_pure;
git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm;
# curl https://rclone.org/install.sh | sudo bash;
# nodejs
curl -sL https://deb.nodesource.com/setup_19.x | sudo -E bash - && sudo apt install -y nodejs && \
echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p
# global npm packages
sudo npm i -g -d \
@githubnext/github-copilot-cli \
begynner \
easy-rename \
gtop \
localtunnel \
n \
npm-check-updates \
qrcode-terminal \
svgo \
vercel;
# pfetch
# {
# mkdir ~/temp && cd ~/temp && \
# git clone https://github.com/dylanaraps/pfetch && \
# cd pfetch && \
# sudo cp -v pfetch /usr/bin && \
# cd ~ && rm -rf ~/temp;
# }
# nerd fonts
{
mkdir ~/temp && cd ~/temp && \
git clone https://github.com/ryanoasis/nerd-fonts && \
bash nerd-fonts/install.sh && \
cd ~ && rm -rf ~/temp;
}
# microsoft edge
{
mkdir ~/temp && cd ~/temp && \
wget "https://go.microsoft.com/fwlink?linkid=2149051" -O edge.deb && sudo dpkg -i edge.deb && \
cd ~ && rm -rf ~/temp;
} || {
sudo apt --fix-broken install && rm -rf ~/temp;
}
# iriun webcam
# {
# mkdir ~/temp && cd ~/temp && \
# wget "https://iriun.gitlab.io/iriunwebcam-2.6.deb" -O iriun.deb && sudo dpkg -i iriun.deb && \
# cd ../ && rm -rf ~/temp;
# } || {
# sudo apt --fix-broken install && rm -rf ~/temp;
# }
# postman
{
mkdir ~/temp && cd ~/temp && \
wget "https://dl.pstmn.io/download/latest/linux64" -O postman.tar.gz && tar xzvf postman.tar.gz && \
sudo mv -v Postman /bin/ && \
cd ~ && rm -rf ~/temp;
}
# lsd (improved ls command)
{
mkdir ~/temp && cd ~/temp && \
wget "https://github.com/Peltoche/lsd/releases/download/0.20.1/lsd-musl_0.20.1_amd64.deb" -O lsd.deb && sudo dpkg -i lsd.deb && \
cd ~ && rm -rf ~/temp;
} || {
sudo apt --fix-broken install && rm -rf ~/temp;
}
# Gens/GS
# {
# sudo dpkg --add-architecture i386;
# mkdir ~/temp && cd ~/temp && \
# wget "https://retrocdn.net/images/e/e9/Gens_2.16.8-r7orig_amd64.deb" -O gen-gs.deb && sudo dpkg -i gens.deb && \
# cd ~ && rm -rf ~/temp;
# } || {
# sudo apt --fix-broken install && rm -rf ~/temp;
# }
# vscode
{
mkdir ~/temp && cd ~/temp && \
wget "https://code.visualstudio.com/sha/download?build=insider&os=linux-deb-x64" -O code.deb && sudo dpkg -i code.deb && \
cd ~ && rm -rf ~/temp;
} || {
sudo apt --fix-broken install && rm -rf ~/temp;
}
# google chrome
{
mkdir ~/temp && cd ~/temp && \
wget "https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb" -O chrome.deb && sudo dpkg -i chrome.deb && \
cd ~ && rm -rf ~/temp;
} || {
sudo apt --fix-broken install && rm -rf ~/temp;
}
# virtualbox
# {
# mkdir ~/temp && cd ~/temp && \
# wget "https://download.virtualbox.org/virtualbox/6.1.34/virtualbox-6.1_6.1.34-150636.1~Ubuntu~eoan_amd64.deb" -O vbox.deb && sudo dpkg -i vbox.deb && \
# cd ../ && rm -rf ~/temp;
# } || {
# sudo apt --fix-broken install && rm -rf ~/temp;
# }