Skip to content

Commit

Permalink
Update Trix-Desktop
Browse files Browse the repository at this point in the history
  • Loading branch information
SW1TCH0NY0U authored Mar 21, 2024
1 parent c5d7339 commit f1f2df3
Showing 1 changed file with 58 additions and 55 deletions.
113 changes: 58 additions & 55 deletions Trix-Desktop
Original file line number Diff line number Diff line change
@@ -1,8 +1,19 @@
#!/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/
sudo cp -R config.txt /boot/broadcom/

# INSTALL-CERTIFICATES

Expand All @@ -17,7 +28,7 @@ sudo apt-get full-upgrade -y

# MY-APPS

sudo apt-get install --no-install-recommends --no-install-suggests -y resolvconf powerstat docker.io conky-all xserver-xorg-video-fbdev xserver-xorg xinit x11-xserver-utils xutils htop powertop udisks2 udiskie ntfs-3g kodi xfce4-settings xterm android-tools-adb android-tools-fastboot 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 weechat znc 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
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

Expand All @@ -35,44 +46,34 @@ sudo apt-get install -y --no-install-recommends --no-install-suggests brave-brow
# 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/

# MY-PICTURES

sudo mkdir -p /home/pi/Pictures/
sudo cp -R me.png /home/pi/Pictures/

# CREATE-DIRECTORIES

sudo mkdir -p /home/pi/Downloads/

# USR-LOCAL-BIN

sudo cp -R pia-vpn-on gpu-mesa-book 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/

# XORG-SERVER

sudo cp -R 99-vc4.conf /etc/X11/xorg.conf.d/
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

sudo echo "deb [signed-by=/usr/share/keyrings/weechat-archive-keyring.gpg] https://weechat.org/raspbian bookworm main" | sudo tee /etc/apt/sources.list.d/weechat.list
sudo echo "deb-src [signed-by=/usr/share/keyrings/weechat-archive-keyring.gpg] https://weechat.org/raspbian bookworm 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 -y weechat weechat-plugins
# 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

Expand All @@ -81,31 +82,32 @@ 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
# sudo apt purge meson -y
# sudo pip3 install meson
# sudo pip3 install mako
# cd /home/pi/Downloads/
# git clone -b mesa-23.3.6 https://gitlab.freedesktop.org/mesa/mesa.git mesa
# cd mesa
# CFLAGS="-mcpu=cortex-a76" CXXFLAGS="-mcpu=cortex-a76" meson --prefix /usr -Dplatforms=x11 -Dvulkan-drivers=broadcom -Dgallium-drivers=kmsro,v3d,vc4 -Dbuildtype=release build
# ninja -C build -j4
# sudo ninja -C build install
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

Expand Down Expand Up @@ -133,13 +135,10 @@ cd /mnt/sdcard/HDDBackup/Linux/Commands/
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

# RESOLVED

# sudo cp -R resolved.conf /etc/systemd/resolved.conf

# NZBGET-USENET

sudo cp -R nzbget.service /etc/systemd/system/
Expand All @@ -148,11 +147,11 @@ sudo cp -R nzbget /home/pi/Downloads/

# ENABLE-SERVICES

sudo systemctl enable smbd vnstat NetworkManager nzbget
sudo systemctl enable smbd vnstat NetworkManager

# DISABLE-SERVICES

sudo systemctl disable --now squid nmbd lightdm docker zramswap
sudo systemctl disable --now squid nmbd lightdm docker zramswap console-setup docker.socket nzbget

# SAMBA-NETWORK-SHARES

Expand All @@ -164,6 +163,10 @@ 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

Expand Down

0 comments on commit f1f2df3

Please sign in to comment.