Skip to content

Commit 9a8263d

Browse files
authored
Install web Browser and essential software tools
1 parent a6b463d commit 9a8263d

File tree

1 file changed

+47
-38
lines changed

1 file changed

+47
-38
lines changed

08-install-software.sh

Lines changed: 47 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -1,46 +1,55 @@
11
#!/bin/bash
22
set -e
3-
export DEBIAN_FRONTEND=noninteractive
43

5-
echo "--> Installing Essential Software..."
4+
echo "--> INSTALLING SOFTWARE (Zen Browser & Tools)..."
65

7-
# 0. Prerequisite: Install curl (needed for downloading OnlyOffice)
8-
echo "--> Installing download tools..."
9-
apt-get install -y curl
10-
11-
# 1. Multimedia & Codecs (The "Play Everything" Pack)
12-
# ffmpeg, gstreamer plugins for wide format support, and VLC
13-
echo "--> Installing Codecs and VLC..."
14-
apt-get install -y \
15-
ffmpeg \
16-
libavcodec-extra \
17-
gstreamer1.0-libav \
18-
gstreamer1.0-plugins-ugly \
19-
gstreamer1.0-vaapi \
20-
vlc
21-
22-
# 2. System Tools
23-
# Timeshift for backups, Flatpak for app store, unrar for archives
24-
echo "--> Installing System Tools..."
6+
# 1. Base Tools & UI Assets
7+
apt-get update
258
apt-get install -y \
26-
timeshift \
27-
flatpak \
28-
plasma-discover-backend-flatpak \
29-
unrar-free \
30-
p7zip-full
31-
32-
# Configure Flathub (so the user has apps right away)
33-
echo "--> Adding Flathub repository..."
34-
flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
35-
36-
# 3. Productivity: OnlyOffice
37-
# We download the latest .deb directly from OnlyOffice servers
38-
echo "--> Downloading & Installing OnlyOffice..."
39-
ONLYOFFICE_URL="https://download.onlyoffice.com/install/desktop/editors/linux/onlyoffice-desktopeditors_amd64.deb"
40-
curl -L -o /tmp/onlyoffice.deb "$ONLYOFFICE_URL"
41-
42-
# Install via apt to handle dependencies automatically
43-
apt-get install -y /tmp/onlyoffice.deb
9+
htop \
10+
w3m \
11+
curl \
12+
wget \
13+
unzip \
14+
bzip2 \
15+
neofetch \
16+
vlc \
17+
dmz-cursor-theme \
18+
papirus-icon-theme
19+
20+
# 2. ZEN BROWSER INSTALLATION
21+
echo "--> Installing Zen Browser..."
22+
mkdir -p /opt/zen-browser
23+
# Dynamic URL to the latest Linux release
24+
ZEN_URL="https://github.com/zen-browser/desktop/releases/latest/download/zen.linux-x86_64.tar.bz2"
25+
26+
wget -O /tmp/zen.tar.bz2 "$ZEN_URL"
27+
# Extraction
28+
tar -xjf /tmp/zen.tar.bz2 -C /opt/zen-browser --strip-components=1
29+
30+
ln -sf /opt/zen-browser/zen /usr/local/bin/zen-browser
31+
32+
# Shortcut (.desktop)
33+
cat > /usr/share/applications/zen-browser.desktop <<EOF
34+
[Desktop Entry]
35+
Name=Zen Browser
36+
Comment=Experience tranquility
37+
Exec=zen-browser %u
38+
Icon=/opt/zen-browser/browser/chrome/icons/default/default128.png
39+
Terminal=false
40+
Type=Application
41+
Categories=Network;WebBrowser;
42+
StartupNotify=true
43+
EOF
44+
45+
# Set zen as the default web browser
46+
update-alternatives --install /usr/bin/x-www-browser x-www-browser /usr/local/bin/zen-browser 200
47+
update-alternatives --set x-www-browser /usr/local/bin/zen-browser
48+
49+
# clean up
50+
rm -f /tmp/zen.tar.bz2
51+
52+
echo "--> Software installation complete."
4453
rm /tmp/onlyoffice.deb
4554

4655
echo "SUCCESS: Essential software installed."

0 commit comments

Comments
 (0)