-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsetup.bash
129 lines (105 loc) · 5.74 KB
/
setup.bash
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
#!/bin/bash
# Check if Script is Run as Root
if [[ $EUID -ne 0 ]]; then
echo "You must be a root user to run this script, please run sudo bash setup.bash" 2>&1
exit 1
fi
# Installation Prompts
#Steam Prompt
# Echo
echo "Do you want to install the Steam Launcher (yes/no): "
read -r steamlauncher
# Steam Prompt Logic
case $steamlauncher in
yes|y)
steam_install="y"
echo "Steam Launcher Will Be Installed"
;;
no|n)
steam_install="n"
echo "Steam Launcher Will Not Be Installed"
;;
*)
echo "Invalid input. Please enter 'yes', 'y', 'no', or 'n'."
;;
esac
# Adding Nala and Items Needed For Adding Repositories
sudo apt update
sudo apt install nala -y
sudo nala fetch --https-only --auto --fetches 4 -y
sudo nala upgrade -y
sudo nala install wget git curl gnupg lsb-release apt-transport-https ca-certificates -y
# Additional Repositories Added
# LibreWolf Repo
sudo nala install extrepo -y
sudo extrepo enable librewolf
# Protonvpn Repo
wget https://repo2.protonvpn.com/debian/dists/stable/main/binary-all/protonvpn-stable-release_1.0.3-3_all.deb
sudo dpkg -i ./protonvpn-stable-release_1.0.3-3_all.deb
# Signal Desktop Repo
wget -O- https://updates.signal.org/desktop/apt/keys.asc | gpg --dearmor > signal-desktop-keyring.gpg
cat signal-desktop-keyring.gpg | sudo tee /usr/share/keyrings/signal-desktop-keyring.gpg > /dev/null
echo 'deb [arch=amd64 signed-by=/usr/share/keyrings/signal-desktop-keyring.gpg] https://updates.signal.org/desktop/apt xenial main' | \
sudo tee /etc/apt/sources.list.d/signal-xenial.list
# Vscodium Repo
wget -qO - https://gitlab.com/paulcarroty/vscodium-deb-rpm-repo/raw/master/pub.gpg \
| gpg --dearmor \
| sudo dd of=/usr/share/keyrings/vscodium-archive-keyring.gpg
echo 'deb [ signed-by=/usr/share/keyrings/vscodium-archive-keyring.gpg ] https://download.vscodium.com/debs vscodium main' \
| sudo tee /etc/apt/sources.list.d/vscodium.list
# Installing Apps
sudo nala upgrade -y
# Via Nala - (Blender, VLC, Flatpak, Signal, Keepassxc, Proton VPN, Ranger, ADB, VSCodium, Podman, Libreoffice, Kdenlive, ffempeg, preload)
# Native Section
sudo nala install blender vlc htop flatpak plasma-discover-backend-flatpak neovim keepassxc ranger fzf adb podman libreoffice kdenlive ffmpeg libsdl2-2.0-0 bat gcc pkg-config meson ninja-build libsdl2-dev libavcodec-dev libavdevice-dev libavformat-dev libavutil-dev libswresample-dev libusb-1.0-0 libusb-1.0-0-dev preload python3.11-venv -y
# Added Repositories Section
sudo nala install librewolf signal-desktop -y
# Via Flatpak - (Freetube, Bottles, GIMP, Podman Desktop, Flatseal)
flatpak remote-add --if-not-exists flathub https://dl.flathub.org/repo/flathub.flatpakrepo
flatpak install flathub io.freetubeapp.FreeTube -y
flatpak install flathub com.usebottles.bottles -y
flatpak install flathub org.gimp.GIMP -y
flatpak install flathub io.podman_desktop.PodmanDesktop -y
flatpak install flathub com.github.tchx84.Flatseal -y
# Via User Prompt - (Steam Launcher)
# Install the Steam Launcher
if [[ $steam_install = "y" ]]; then
# Install the Steam package
cp /etc/apt/sources.list /etc/apt/sources.list.bak
sed -i '/^deb http:\/\/deb.debian.org\/debian\/ bookworm main/s/$/ contrib non-free/' /etc/apt/sources.list
dpkg --add-architecture i386
nala update
nala install -y steam-installer mesa-vulkan-drivers libglx-mesa0:i386 mesa-vulkan-drivers:i386 libgl1-mesa-dri:i386
fi
# Via Git Clone - (Scrcpy)
git clone https://github.com/Genymobile/scrcpy
cd scrcpy
./install_release.sh
cd
cd My-Linux-Setup
# Via Curl - (Bun, Rust)
curl -fsSL https://bun.sh/install | bash
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
# Via W-get - (Superfile)
bash -c "$(wget -qO- https://superfile.netlify.app/install.sh)"
# Removes - (Firefox)
sudo nala purge firefox -y
rm -f ./protonvpn-stable-release_1.0.3-3_all.deb
# Scripts Setup
sudo bash Scripts_List/usenala.bash
sudo bash Scripts_List/Fastfetch.bash
sudo bash Scripts_List/AutoUpdate.bash
# Clean Up
clear
# Final Message
# Define The Base Sentences
StartingBase="This program has installed nala,"
EndingBase="media suite, librewolf, bun, rust, and some command line goodies."
SteamInfo=""
# Check If Steam Was Installed
if [[ $steam_install == "y" ]]; then
SteamInfo+=" steam launcher, "
fi
# Print the Final Message
echo "$StartingBase$SteamInfo$EndingBase"
echo "To see a full list of changes, run the command bash My-Linux-Setup/fullLS.bash"