-
Notifications
You must be signed in to change notification settings - Fork 0
/
debian_linux-setup.sh
executable file
·103 lines (79 loc) · 3.43 KB
/
debian_linux-setup.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
#!/bin/sh
# This script will clean up and optimize a Debian Xfce (rolling - Sid) installtion.
# Audio buzz/hum fix.
sudo touch /etc/modprobe.d/alsa-base.conf && sudo chmod o+w /etc/modprobe.d/alsa-base.conf
echo "options snd-hda-intel power_save=0 power_save_controller=N" > /etc/modprobe.d/alsa-base.conf
sudo chmod o-w /etc/modprobe.d/alsa-base.conf
clear
# Install Nala, a better apt front-end.
echo "deb [arch=amd64,arm64,armhf] http://deb.volian.org/volian/ scar main" | sudo tee /etc/apt/sources.list.d/volian-archive-scar-unstable.list
wget -qO - https://deb.volian.org/volian/scar.key | sudo tee /etc/apt/trusted.gpg.d/volian-archive-scar-unstable.gpg > /dev/null
sudo apt update && sudo apt install nala
clear
# Update mirrors.
sudo nala fetch
clear
# Remove bloatware.
sudo nala purge xterm xsane exfalso quodlibet libreoffice-common firefox-esr -y
clear
# Install a few GNOME games.
sudo nala install aisleriot four-in-a-row gnome-mines gnome-nibbles swell-foop quadrapassel -y
# Update package list and upgrade Debian.
sudo nala upgrade
clear
# Install some useful software.
sudo nala install audacity vlc fd-find bat lsd micro btop -y
clear
# Install OneHalf-Dark theme for Xfce terminal.
sudo mkdir -p /etc/skel/.local/share/xfce4/terminal/colorschemes
cd && curl https://raw.githubusercontent.com/sonph/onehalf/master/xfce4-terminal/OneHalfDark.theme -o OneHalfDark.theme
mkdir -p $HOME/.local/share/xfce4/terminal/colorschemes
cp -v OneHalfDark.theme /etc/skel/.local/share/xfce4/terminal/colorschemes
cp -v OneHalfDark.theme $HOME/.local/share/xfce4/terminal/colorschemes
clear
# Install and setup Zsh.
nala install zsh -y && ./zsh-setup.sh
# Install pfetch.
sudo nala install git gcc make automake autoconf libtool -y
git clone https://github.com/dylanaraps/pfetch.git && cd pfetch
sudo make install
cd && rm -rf pfetch
clear
# Cleanup systemd boot.
sudo ./cleanup-systemd-boot.sh
# Setup other stuff.
sudo ln -s /usr/bin/batcat /usr/bin/bat && ./bat-setup.sh
sudo ./wallpapers.sh
./lsd-setup.sh
./micro-setup.sh
./bat-setup.sh
./zsh-setup.sh
# Install Brave web browser.
sudo nala install curl && sudo curl -fsSLo /usr/share/keyrings/brave-browser-archive-keyring.gpg https://brave-browser-apt-release.s3.brave.com/brave-browser-archive-keyring.gpg
echo "deb [signed-by=/usr/share/keyrings/brave-browser-archive-keyring.gpg] https://brave-browser-apt-release.s3.brave.com/ stable main" | sudo tee /etc/apt/sources.list.d/brave-browser-release.list
sudo nala update && sudo nala install brave-browser -y
# Install grub theme.
echo "Installing the GRUB theme..."
cd && git clone https://github.com/vinceliuice/grub2-themes.git
cd grub2-themes && sudo ./install.sh -t stylish
sudo chmod o+w /etc/default/grub
echo "GRUB_DISABLE_SUBMENU=y" >> /etc/default/grub
sudo chmod o-w /etc/default/grub
cd && rm -rf grub2-themes
# Enable GRUB_DISABLE_RECOVERY in /etc/default/grub.
sudo chmod o+w /etc/default/grub
sudo sed -i s/#GRUB_DISABLE_RECOVERY/GRUB_DISABLE_RECOVERY/g /etc/default/grub
sudo chmod o-w /etc/default/grub
# Update environment variables.
# Enable write permissions.
sudo chmod o+w /etc/environment
# Configure pfetch.
echo "PF_INFO=\"ascii os kernel uptime pkgs shell editor de\"" >> /etc/environment
# Set BROWSER variable.
echo "BROWSER=brave" >> /etc/environment
# Set EDITOR variable.
echo "EDITOR=micro" >> /etc/environment
# Set MICRO_TRUECOLOR variable.
echo "MICRO_TRUECOLOR=1" >> /etc/environment
# Remove write permissions.
sudo chmod o-w /etc/environment