-
Notifications
You must be signed in to change notification settings - Fork 0
/
Trix-Desktop
183 lines (131 loc) · 6.48 KB
/
Trix-Desktop
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
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
#!/bin/bash
# SETUP-LOCATION-AND-TIMEZONE
sudo setup -r
# PERMISSIONS
sudo chmod -R 0777 /home/
sudo chmod -R 0777 /home/pi/
sudo chown -R pi:pi /home/
sudo chown -R pi:pi /home/pi/
# CONFIG-TXT-RPI5
sudo cp -R config.txt /boot/broadcom/
# INSTALL-CERTIFICATES
sudo apt-get install --no-install-recommends --no-install-suggests -y ca-certificates dirmngr gpg-agent apt-transport-https
# UPDATE-SYSTEM
sudo apt-get update -y
sudo apt-get upgrade -y
sudo apt-get dist-upgrade -y
sudo apt-get full-upgrade -y
# MY-APPS
sudo apt-get install --no-install-recommends --no-install-suggests -y weechat powerstat docker.io conky-all xserver-xorg-video-fbdev xserver-xorg xinit x11-xserver-utils xutils htop powertop udisks2 udiskie ntfs-3g xfce4-settings xterm iptables wget curl git lbzip2 bzip2 p7zip xarchiver engrampa unrar unzip thunar thunar-volman gvfs gvfs-backends gvfs-fuse gnome-screenshot gnome-disk-utility i3-wm i3status i3lock i3blocks dmenu nitrogen feh scrot wireguard-tools openvpn network-manager-gnome network-manager network-manager-openvpn network-manager-openvpn-gnome firefox-esr chromium pavucontrol pulseaudio volumeicon-alsa mpv vlc qbittorrent qbittorrent-nox x11-xserver-utils vnstat squid samba smbclient cifs-utils sakura mousepad pcmanfm pcmanfm-qt hexchat hexchat-plugins gnome-icon-theme lxappearance oxygen-icon-theme neofetch zsh rsync nmap screen openssh-server lightdm lightdm-gtk-greeter lightdm-gtk-greeter-settings hdparm
# CLEAN-PACKAGES
sudo apt-get autoremove --purge -y
sudo apt-get autoclean -y
sudo apt-get clean -y
# INTERNET-BROWSER
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 apt-get update -y
sudo apt-get install -y --no-install-recommends --no-install-suggests brave-browser
# WINDOW-MANAGER
sudo mkdir -p /home/pi/Downloads/
sudo mkdir -p /home/pi/Desktop/
sudo mkdir -p /home/pi/.config/
sudo cp -R /mnt/sdcard/NEW/i3status /home/pi/.config/
sudo cp -R /mnt/sdcard/NEW/i3 /home/pi/.config/
sudo cp -R .fonts /home/pi/
sudo mkdir -p /home/pi/Pictures/
sudo cp -R me.png /home/pi/Pictures/
# USR-LOCAL-BIN
sudo cp -R pia-vpn-on Mesa-24 chrome deb-update deb-remove my-ip my-refresh-rate rpi-brave rpi-webcord rpi-nzbget rpi-nzbhydra vpn-on vpn-off comp-off /usr/local/bin/
# COPY-OVER-CONKY
sudo cp -R .conky /home/pi/
# INSTALL-WEECHAT
# echo "deb [signed-by=/usr/share/keyrings/weechat-archive-keyring.gpg] https://weechat.org/debian trixie main" | sudo tee /etc/apt/sources.list.d/weechat.list
# echo "deb-src [signed-by=/usr/share/keyrings/weechat-archive-keyring.gpg] https://weechat.org/debian trixie main" | sudo tee -a /etc/apt/sources.list.d/weechat.list
# sudo apt-get update -y
# sudo rm -rf /root/.gnupg
# sudo mkdir /root/.gnupg
# sudo chmod 700 /root/.gnupg
# sudo mkdir -p /usr/share/keyrings
# sudo gpg --no-default-keyring --keyring /usr/share/keyrings/weechat-archive-keyring.gpg --keyserver hkps://keys.openpgp.org --recv-keys 11E9DE8848F2B65222AA75B8D1820DB22A11534E
# sudo apt-get update -y
# sudo apt-get install --no-install-recommends --no-install-suggests weechat-curses weechat-plugins weechat-python weechat-perl
# INSTALL-DPKG
sudo dpkg -i webcord_4.8.0_arm64.deb
sudo apt-get install -f -y
### MESA-GRAPHICS
sudo chmod -R 0777 /home/
sudo chown -R pi:pi /home/
sudo rm -rf /usr/lib/python3.11/EXTERNALLY-MANAGED
sudo apt-get install --no-install-recommends --no-install-suggests -y python3-pip libxcb-randr0-dev libxrandr-dev \
libxcb-xinerama0-dev libxinerama-dev libxcursor-dev \
libxcb-cursor-dev libxkbcommon-dev xutils-dev \
xutils-dev libpthread-stubs0-dev libpciaccess-dev \
libffi-dev x11proto-xext-dev libxcb1-dev libxcb-*dev \
bison flex libssl-dev libgnutls28-dev x11proto-dri2-dev \
x11proto-dev libx11-dev libxcb-glx0-dev \
libx11-xcb-dev libxext-dev libxdamage-dev libxfixes-dev \
libva-dev x11proto-randr-dev x11proto-present-dev \
libclc-16-dev libelf-dev git build-essential mesa-utils \
libvulkan-dev ninja-build libvulkan1 python3-mako \
libdrm-dev libxshmfence-dev libxxf86vm-dev libunwind-dev \
valgrind libzstd-dev vulkan-tools python3-pip libglvnd-dev libwayland-egl-backend-dev
sudo apt purge meson -y
sudo pip3 install meson
sudo pip3 install mako
cd /home/pi/Downloads/
git clone -b mesa-24.0.3 https://gitlab.freedesktop.org/mesa/mesa.git mesa --depth=1
cd mesa
COMMON_FLAGS="-mcpu=cortex-a76+crc+crypto -O2 -pipe -mtune=cortex-a76" meson setup --prefix /usr -Dglx=disabled -Dplatforms=x11,wayland -Dllvm=disabled -Dvulkan-drivers=broadcom -Dgallium-drivers=v3d,vc4,kmsro \
-Dglvnd=true -Dbuildtype=release build
ninja -C build -j4
sudo ninja -C build install
# UPDATE-YOUR-SYSTEM
sudo apt-get update -y
sudo apt-get upgrade -y
sudo apt-get full-upgrade -y
sudo apt-get dist-upgrade -y
# INSTALL-STRONGWAN-VPN
sudo apt-get install --no-install-recommends --no-install-suggests -y strongswan libcharon-extra-plugins libstrongswan-extra-plugins libcharon-extauth-plugins
# CLEAN-PACKAGES
sudo apt-get autoremove --purge -y
sudo apt-get autoclean -y
sudo apt-get clean -y
# CD-TO-SDCARD
cd /mnt/sdcard/HDDBackup/Linux/Commands/
# VPN-APPLY
sudo cp -R VPN /home/pi/
sudo cp -R masq.sh /home/pi/
sudo cp -R ipt.sh /home/pi/
sudo cp -R ovpn-masq.sh /home/pi/
# sudo sh ipsec.sh
# sudo sh certs.sh
# NZBGET-USENET
sudo cp -R nzbget.service /etc/systemd/system/
sudo systemctl daemon-reload
sudo cp -R nzbget /home/pi/Downloads/
# ENABLE-SERVICES
sudo systemctl enable smbd vnstat NetworkManager
# DISABLE-SERVICES
sudo systemctl disable --now squid nmbd lightdm docker zramswap console-setup docker.socket nzbget
# SAMBA-NETWORK-SHARES
sudo systemctl daemon-reload
sudo rm -rf /etc/samba/smb.conf
sudo systemctl daemon-reload
sudo cp -R smb.conf /etc/samba/
# START-XORG-SERVER
sudo cp -R .xinitrc /home/pi/
# sudo cp -R 99-vc4.conf /etc/X11/xorg.conf.d/
sudo touch /home/pi/.Xauthority
sudo chmod -R 0777 /home/pi/.Xauthority
sudo chmod -R 0777 /home/pi/.xinitrc
# USER-AND-ROOT-PASSWORD-CHANGE
echo Changing password for the user pi...
sudo passwd pi
echo Changing password for the user root...
sudo passwd root
# USER-AND-ROOT-PASSWORD-CHANGE-SAMBA
echo Changing SAMBA password for the user pi...
sudo smbpasswd -a pi
echo Changing SAMBA password for the user root...
sudo smbpasswd -a root