1
1
#! /bin/bash
2
2
3
- # for linuxmint 21 .x (ubuntu 22 .04)
3
+ # for linuxmint 22 .x (ubuntu 24 .04)
4
4
# config Links, Apps and Hostname
5
5
6
- LINKS=" https://download.anydesk.com/linux/anydesk_6.3.1-1_amd64.deb
7
- https://github.com/rustdesk/rustdesk/releases/download/1.2.3-2/rustdesk-1.2.3-2-x86_64.deb
8
- https://files2.freedownloadmanager.org/6/latest/freedownloadmanager.deb
9
- https://dl.google.com/dl/linux/direct/google-earth-pro-stable_7.3.6_amd64.deb
6
+ LINKS=" https://files2.freedownloadmanager.org/6/latest/freedownloadmanager.deb
10
7
https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
11
- https://download.virtualbox.org/virtualbox/7.0.16/virtualbox-7.0_7.0.16-162802~Ubuntu~jammy_amd64.deb
12
- https://download.virtualbox.org/virtualbox/7.0.16/Oracle_VM_VirtualBox_Extension_Pack-7.0.16.vbox-extpack
13
- https://repo.steampowered.com/steam/archive/stable/steam_latest.deb
14
- https://dl.discordapp.net/apps/linux/0.0.49/discord-0.0.49.deb
15
- https://download.teamviewer.com/download/linux/teamviewer_amd64.deb
16
- https://github.com/shiftkey/desktop/releases/download/release-3.3.12-linux2/GitHubDesktop-linux-amd64-3.3.12-linux2.deb"
8
+ $( curl -L -s https://api.github.com/repos/rustdesk/rustdesk/releases/latest | grep -o -E " https://(.*)rustdesk-(.*)-$( uname -m) .deb" | cut -d ' ' -f 999 ) "
17
9
18
- NEEDEDAPPS=" snapd
19
- tilix"
10
+ NEEDEDAPPS=" tilix"
20
11
21
12
APPS=" adb
22
13
aria2
@@ -26,11 +17,6 @@ clamav
26
17
clamav-daemon
27
18
clamav-freshclam
28
19
clamtk
29
- containerd.io
30
- docker-buildx-plugin
31
- docker-ce
32
- docker-ce-cli
33
- docker-compose-plugin
34
20
fastboot
35
21
firefox
36
22
gimp
46
32
libreoffice
47
33
nano
48
34
nmap
49
- obs-studio
50
35
openjdk-17-jre
51
36
openjdk-8-jre
52
37
openssh-server
@@ -56,81 +41,87 @@ p7zip-rar
56
41
parted
57
42
picard
58
43
remmina
44
+ steam
59
45
tar
60
46
testdisk
61
47
thunderbird
62
48
unzip
49
+ virtualbox
63
50
vlc
64
51
vorta
65
52
wget
66
- winehq-stable
67
53
winetricks
68
- wireshark-qt
54
+ wireshark
69
55
xrdp"
70
56
71
- SNAPS=" p7zip-desktop"
57
+ FLATPAKS=" io.github.shiftey.Desktop
58
+ io.github.peazip.PeaZip
59
+ com.anydesk.Anydesk
60
+ com.discordapp.Discord
61
+ com.obsproject.Studio"
72
62
73
63
HOSTNAME=" Test-PC"
74
64
75
65
# ----------------------------------------------------------------------------------
76
66
function errorrmessage() {
67
+ RESULT=$?
77
68
if [ $RESULT -ne 0 ]; then
78
69
echo add apt repo failed;
79
70
exit 1;
80
71
fi
81
72
}
82
73
83
74
function errorrmessage2() {
75
+ RESULT=$?
84
76
if [ $RESULT -ne 0 ]; then
85
- echo install docker-compose failed;
77
+ echo installing apps failed;
86
78
exit 1;
87
79
fi
88
80
}
89
81
90
- rm * .deb
91
-
92
- USERS=$( ls /home/)
93
-
94
- for TARG1 in ${LINKS} ; do
95
- wget $TARG1
96
- RESULT=$?
97
- if [ $RESULT -ne 0 ]; then
98
- wget $TARG1
99
- RESULT=$?
100
- if [ $RESULT -ne 0 ]; then
101
- echo downloading $TARG1 failed again;
102
- exit 1;
103
- fi
104
- fi
105
- done
106
82
83
+ function dockerinstaller() {
107
84
apt remove -y docker docker-engine docker.io containerd runc
108
85
109
- dpkg --add-architecture i386
86
+ apt update
110
87
111
- apt update && \
112
- apt install -y \
88
+ apt install -y \
113
89
ca-certificates \
114
90
curl \
115
91
gnupg
116
92
117
93
install -m 0755 -d /etc/apt/keyrings
118
-
119
94
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /etc/apt/keyrings/docker.gpg
120
- errorrmessage
121
- wget -O /etc/apt/keyrings/winehq-archive.key https://dl.winehq.org/wine-builds/winehq.key
122
- errorrmessage
123
-
124
95
chmod a+r /etc/apt/keyrings/docker.gpg
125
- chmod a+r /etc/apt/keyrings/winehq-archive.key
126
96
127
97
echo \
128
98
" deb [arch=" $( dpkg --print-architecture) " signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/ubuntu \
129
99
" $( . /etc/os-release && echo " $UBUNTU_CODENAME " ) " stable" | \
130
100
tee /etc/apt/sources.list.d/docker.list > /dev/null
131
- wget -NP /etc/apt/sources.list.d/ https://dl.winehq.org/wine-builds/ubuntu/dists/jammy/winehq-jammy.sources
132
101
133
- rm /etc/apt/preferences.d/nosnap.pref
102
+ apt update
103
+ errorrmessage
104
+
105
+ apt install -y docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin
106
+ errorrmessage2
107
+ }
108
+
109
+ rm * .deb
110
+
111
+ USERS=$( ls /home/)
112
+
113
+ for TARG1 in ${LINKS} ; do
114
+ wget $TARG1
115
+ RESULT=$?
116
+ if [ $RESULT -ne 0 ]; then
117
+ wget $TARG1
118
+ RESULT=$?
119
+ if [ $RESULT -ne 0 ]; then
120
+ echo downloading $TARG1 failed again;
121
+ exit 1;
122
+ fi
123
+ fi
124
+ done
134
125
135
126
apt update
136
127
errorrmessage
@@ -139,25 +130,15 @@ apt install -yy \
139
130
${NEEDEDAPPS} \
140
131
${APPS} \
141
132
$( pwd) /$1 * .deb
142
- RESULT=$?
143
- if [ $RESULT -ne 0 ]; then
144
- echo installing apps failed;
145
- exit 1;
146
- fi
147
-
148
-
149
- curl -SL $( curl -L -s https://api.github.com/repos/docker/compose/releases/latest | grep -o -E " https://(.*)docker-compose-linux-$( uname -m) " ) -o /usr/local/bin/docker-compose
150
133
errorrmessage2
151
134
152
- ln -s /usr/local/bin/docker-compose /usr/bin/docker-compose
153
- chmod +x /usr/local/bin/docker-compose
154
-
135
+ dockerinstaller
155
136
156
- for SNAP1 in ${SNAPS } ; do
157
- snap install $SNAP1
137
+ for FLATPAKS1 in ${FLATPAKS } ; do
138
+ flatpak install flathub $FLATPAKS1 -y
158
139
RESULT=$?
159
140
if [ $RESULT -ne 0 ]; then
160
- echo install snap $SNAP1 failed;
141
+ echo install flatpak $FLATPAKS1 failed;
161
142
exit 1;
162
143
fi
163
144
done
@@ -178,4 +159,3 @@ echo ${HOSTNAME} > /etc/hostname
178
159
rm * .deb
179
160
180
161
echo Installation successful
181
-
0 commit comments