Skip to content

Commit 738c2af

Browse files
Update and rename linux apps install script.sh to linuxmint apps install script.sh
1 parent 27b834a commit 738c2af

File tree

1 file changed

+45
-65
lines changed

1 file changed

+45
-65
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,13 @@
11
#!/bin/bash
22

3-
# for linuxmint 21.x (ubuntu 22.04)
3+
# for linuxmint 22.x (ubuntu 24.04)
44
# config Links, Apps and Hostname
55

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
107
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 )"
179

18-
NEEDEDAPPS="snapd
19-
tilix"
10+
NEEDEDAPPS="tilix"
2011

2112
APPS="adb
2213
aria2
@@ -26,11 +17,6 @@ clamav
2617
clamav-daemon
2718
clamav-freshclam
2819
clamtk
29-
containerd.io
30-
docker-buildx-plugin
31-
docker-ce
32-
docker-ce-cli
33-
docker-compose-plugin
3420
fastboot
3521
firefox
3622
gimp
@@ -46,7 +32,6 @@ kodi
4632
libreoffice
4733
nano
4834
nmap
49-
obs-studio
5035
openjdk-17-jre
5136
openjdk-8-jre
5237
openssh-server
@@ -56,81 +41,87 @@ p7zip-rar
5641
parted
5742
picard
5843
remmina
44+
steam
5945
tar
6046
testdisk
6147
thunderbird
6248
unzip
49+
virtualbox
6350
vlc
6451
vorta
6552
wget
66-
winehq-stable
6753
winetricks
68-
wireshark-qt
54+
wireshark
6955
xrdp"
7056

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"
7262

7363
HOSTNAME="Test-PC"
7464

7565
# ----------------------------------------------------------------------------------
7666
function errorrmessage() {
67+
RESULT=$?
7768
if [ $RESULT -ne 0 ]; then
7869
echo add apt repo failed;
7970
exit 1;
8071
fi
8172
}
8273

8374
function errorrmessage2() {
75+
RESULT=$?
8476
if [ $RESULT -ne 0 ]; then
85-
echo install docker-compose failed;
77+
echo installing apps failed;
8678
exit 1;
8779
fi
8880
}
8981

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
10682

83+
function dockerinstaller() {
10784
apt remove -y docker docker-engine docker.io containerd runc
10885

109-
dpkg --add-architecture i386
86+
apt update
11087

111-
apt update && \
112-
apt install -y \
88+
apt install -y \
11389
ca-certificates \
11490
curl \
11591
gnupg
11692

11793
install -m 0755 -d /etc/apt/keyrings
118-
11994
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-
12495
chmod a+r /etc/apt/keyrings/docker.gpg
125-
chmod a+r /etc/apt/keyrings/winehq-archive.key
12696

12797
echo \
12898
"deb [arch="$(dpkg --print-architecture)" signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/ubuntu \
12999
"$(. /etc/os-release && echo "$UBUNTU_CODENAME")" stable" | \
130100
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
132101

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
134125

135126
apt update
136127
errorrmessage
@@ -139,25 +130,15 @@ apt install -yy \
139130
${NEEDEDAPPS} \
140131
${APPS} \
141132
$(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
150133
errorrmessage2
151134

152-
ln -s /usr/local/bin/docker-compose /usr/bin/docker-compose
153-
chmod +x /usr/local/bin/docker-compose
154-
135+
dockerinstaller
155136

156-
for SNAP1 in ${SNAPS}; do
157-
snap install $SNAP1
137+
for FLATPAKS1 in ${FLATPAKS}; do
138+
flatpak install flathub $FLATPAKS1 -y
158139
RESULT=$?
159140
if [ $RESULT -ne 0 ]; then
160-
echo install snap $SNAP1 failed;
141+
echo install flatpak $FLATPAKS1 failed;
161142
exit 1;
162143
fi
163144
done
@@ -178,4 +159,3 @@ echo ${HOSTNAME} > /etc/hostname
178159
rm *.deb
179160

180161
echo Installation successful
181-

0 commit comments

Comments
 (0)