Kicksecure
This commit is contained in:
		
							
								
								
									
										31
									
								
								debian/debian.sh
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										31
									
								
								debian/debian.sh
									
									
									
									
										vendored
									
									
								
							@@ -1,31 +0,0 @@
 | 
			
		||||
#!/bin/bash
 | 
			
		||||
 | 
			
		||||
sudo apt purge -y thunderbird emacs emacs-gtk emacs-bin-common emacs-common firefox* keepassxc cups* vim* system-config-printer* xsettingsd xterm* yelp*
 | 
			
		||||
sudo apt autoremove -y
 | 
			
		||||
sudo apt autoclean
 | 
			
		||||
sudo apt install -y eog qt5ct qt5-style-plugins arc-theme
 | 
			
		||||
 | 
			
		||||
git config --global http.proxy http://127.0.0.1:8082
 | 
			
		||||
git clone https://github.com/horst3180/arc-icon-theme
 | 
			
		||||
mv arc-icon-theme/Arc /usr/share/icons
 | 
			
		||||
rm -rf arc-icon-theme
 | 
			
		||||
 | 
			
		||||
echo "export export QT_QPA_PLATFORMTHEME=gtk2" | sudo tee /etc/environment
 | 
			
		||||
 | 
			
		||||
sudo mkdir /etc/gtk-3.0
 | 
			
		||||
echo '[Settings]
 | 
			
		||||
gtk-theme-name=Arc-Dark
 | 
			
		||||
gtk-application-prefer-dark-theme=1
 | 
			
		||||
' | sudo tee /etc/gtk-3.0/settings.ini
 | 
			
		||||
 | 
			
		||||
sudo mkdir /etc/gtk-4.0
 | 
			
		||||
echo '[Settings]
 | 
			
		||||
gtk-theme-name=Arc-Dark
 | 
			
		||||
gtk-application-prefer-dark-theme=1
 | 
			
		||||
' | sudo tee /etc/gtk-4.0/settings.ini
 | 
			
		||||
 | 
			
		||||
sudo cat > /etc/dconf/db/local.d/custom <<- 'EOF'
 | 
			
		||||
[org/gnome/desktop/interface]
 | 
			
		||||
gtk-theme='Arc-Dark'
 | 
			
		||||
icon-theme='Arc'
 | 
			
		||||
EOF
 | 
			
		||||
@@ -17,29 +17,3 @@ sudo cat > /etc/dconf/db/local.d/custom <<- 'EOF'
 | 
			
		||||
gtk-theme='Arc-Dark'
 | 
			
		||||
icon-theme='Arc'
 | 
			
		||||
EOF
 | 
			
		||||
 | 
			
		||||
sudo dconf update
 | 
			
		||||
 | 
			
		||||
sudo cat > /etc/systemd/user/update-user-flatpaks.service <<- 'EOF'
 | 
			
		||||
[Unit]
 | 
			
		||||
Description=Update user Flatpaks
 | 
			
		||||
 | 
			
		||||
[Service]
 | 
			
		||||
Type=oneshot
 | 
			
		||||
ExecStart=/usr/bin/flatpak --user update -y
 | 
			
		||||
 | 
			
		||||
[Install]
 | 
			
		||||
WantedBy=default.target
 | 
			
		||||
EOF
 | 
			
		||||
 | 
			
		||||
sudo cat > /etc/systemd/user/update-user-flatpaks.timer <<- 'EOF'
 | 
			
		||||
[Unit]
 | 
			
		||||
Description=Update user Flatpaks daily
 | 
			
		||||
 | 
			
		||||
[Timer]
 | 
			
		||||
OnCalendar=daily
 | 
			
		||||
Persistent=true
 | 
			
		||||
 | 
			
		||||
[Install]
 | 
			
		||||
WantedBy=timers.target
 | 
			
		||||
EOF
 | 
			
		||||
 
 | 
			
		||||
@@ -1,9 +0,0 @@
 | 
			
		||||
#!/bin/bash 
 | 
			
		||||
 | 
			
		||||
sudo cat > /etc/dconf/db/local.d/custom <<- 'EOF'
 | 
			
		||||
[org/gnome/desktop/interface]
 | 
			
		||||
gtk-theme='Arc-Dark'
 | 
			
		||||
EOF
 | 
			
		||||
 | 
			
		||||
sudo dnf install https://protonvpn.com/download/protonvpn-stable-release-1.0.1-1.noarch.rpm -y
 | 
			
		||||
sudo dnf install protonvpn -y
 | 
			
		||||
@@ -1,3 +0,0 @@
 | 
			
		||||
#!/bin/bash
 | 
			
		||||
 | 
			
		||||
sudo dnf install gnome-disk-utility yubikey-manager-qt yubioath-desktop nitrokey-app 
 | 
			
		||||
@@ -1,6 +1,6 @@
 | 
			
		||||
#!/bin/bash
 | 
			
		||||
 | 
			
		||||
sudo dnf install thunderbird -y
 | 
			
		||||
sudo apt install --no-install-recommends thunderbird -y
 | 
			
		||||
 | 
			
		||||
#Do this in the AppVM after you have set it up
 | 
			
		||||
#Obviously replace vault-gpg with the actual GPG backend that you are using https://www.qubes-os.org/doc/split-gpg/
 | 
			
		||||
							
								
								
									
										83
									
								
								kicksecure/kicksecure.sh
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										83
									
								
								kicksecure/kicksecure.sh
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,83 @@
 | 
			
		||||
#!/bin/bash
 | 
			
		||||
#Adding KickSecure's signing key
 | 
			
		||||
sudo apt install --no-install-recommends curl -y
 | 
			
		||||
curl --proxy http://127.0.0.1:8082/ --tlsv1.3 --proto =https --max-time 180 --output ~/derivative.asc https://www.kicksecure.com/derivative.asc
 | 
			
		||||
sudo cp ~/derivative.asc /usr/share/keyrings/derivative.asc
 | 
			
		||||
echo "deb [signed-by=/usr/share/keyrings/derivative.asc] https://deb.kicksecure.com bullseye main contrib non-free" | sudo tee /etc/apt/sources.list.d/derivative.list
 | 
			
		||||
 | 
			
		||||
#Distribution morphing
 | 
			
		||||
sudo apt install --no-install-recommends kicksecure-qubes-cli -y
 | 
			
		||||
sudo mv /etc/apt/sources.list ~/
 | 
			
		||||
sudo touch /etc/apt/sources.list
 | 
			
		||||
 | 
			
		||||
#Enabling SUID Disabler and Permission Hardener
 | 
			
		||||
sudo systemctl enable --now permission-hardening
 | 
			
		||||
 | 
			
		||||
#Install LKRG
 | 
			
		||||
sudo apt install --no-install-recommends lkrg-dkms linux-headers-amd64 -y
 | 
			
		||||
 | 
			
		||||
#Enable hardened malloc
 | 
			
		||||
echo "/usr/lib/libhardened_malloc.so/libhardened_malloc.so" | sudo tee /etc/ld.so.preload
 | 
			
		||||
 | 
			
		||||
#Reduce kernel information leaks
 | 
			
		||||
#Will break a lot of applications. The apps I use on Whonix work fine with it so I am enabling it.
 | 
			
		||||
sudo systemctl enable --now hide-hardware-info.service
 | 
			
		||||
 | 
			
		||||
#Debloat
 | 
			
		||||
sudo apt purge -y thunderbird emacs emacs-gtk emacs-bin-common emacs-common firefox* keepassxc cups* vim* system-config-printer* xsettingsd xterm* yelp*
 | 
			
		||||
sudo apt autoremove -y
 | 
			
		||||
sudo apt autoclean
 | 
			
		||||
 | 
			
		||||
#Theming
 | 
			
		||||
sudo apt install --no-install-recommend qubes-gpg-split qubes-u2f-proxy eog qt5ct qt5-style-plugins arc-theme -y
 | 
			
		||||
 | 
			
		||||
git config --global http.proxy http://127.0.0.1:8082
 | 
			
		||||
git clone https://github.com/horst3180/arc-icon-theme
 | 
			
		||||
mv arc-icon-theme/Arc /usr/share/icons
 | 
			
		||||
rm -rf arc-icon-theme
 | 
			
		||||
 | 
			
		||||
echo "export export QT_QPA_PLATFORMTHEME=gtk2" | sudo tee /etc/environment
 | 
			
		||||
 | 
			
		||||
sudo mkdir /etc/gtk-3.0
 | 
			
		||||
echo '[Settings]
 | 
			
		||||
gtk-theme-name=Arc-Dark
 | 
			
		||||
gtk-application-prefer-dark-theme=1
 | 
			
		||||
' | sudo tee /etc/gtk-3.0/settings.ini
 | 
			
		||||
 | 
			
		||||
sudo mkdir /etc/gtk-4.0
 | 
			
		||||
echo '[Settings]
 | 
			
		||||
gtk-theme-name=Arc-Dark
 | 
			
		||||
gtk-application-prefer-dark-theme=1
 | 
			
		||||
' | sudo tee /etc/gtk-4.0/settings.ini
 | 
			
		||||
 | 
			
		||||
sudo cat > /etc/dconf/db/local.d/custom <<- 'EOF'
 | 
			
		||||
[org/gnome/desktop/interface]
 | 
			
		||||
gtk-theme='Arc-Dark'
 | 
			
		||||
icon-theme='Arc'
 | 
			
		||||
EOF
 | 
			
		||||
 | 
			
		||||
sudo dconf update
 | 
			
		||||
 | 
			
		||||
sudo cat > /etc/systemd/user/update-user-flatpaks.service <<- 'EOF'
 | 
			
		||||
[Unit]
 | 
			
		||||
Description=Update user Flatpaks
 | 
			
		||||
 | 
			
		||||
[Service]
 | 
			
		||||
Type=oneshot
 | 
			
		||||
ExecStart=/usr/bin/flatpak --user update -y
 | 
			
		||||
 | 
			
		||||
[Install]
 | 
			
		||||
WantedBy=default.target
 | 
			
		||||
EOF
 | 
			
		||||
 | 
			
		||||
sudo cat > /etc/systemd/user/update-user-flatpaks.timer <<- 'EOF'
 | 
			
		||||
[Unit]
 | 
			
		||||
Description=Update user Flatpaks daily
 | 
			
		||||
 | 
			
		||||
[Timer]
 | 
			
		||||
OnCalendar=daily
 | 
			
		||||
Persistent=true
 | 
			
		||||
 | 
			
		||||
[Install]
 | 
			
		||||
WantedBy=timers.target
 | 
			
		||||
EOF
 | 
			
		||||
@@ -1,6 +1,6 @@
 | 
			
		||||
#!/bin/bash
 | 
			
		||||
 | 
			
		||||
sudo dnf install nextcloud-client
 | 
			
		||||
sudo apt install --no-install-recommends nextcloud-client
 | 
			
		||||
 | 
			
		||||
#Adding a DNS entry for my Nextcloud server here so I can add a Firewall rule locking the AppVM to only being able to connect to my server.
 | 
			
		||||
echo "5.226.143.92 cloud.tommytran.io" >> /etc/hosts
 | 
			
		||||
							
								
								
									
										20
									
								
								kicksecure/protonvpn.sh
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										20
									
								
								kicksecure/protonvpn.sh
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,20 @@
 | 
			
		||||
#!/bin/bash
 | 
			
		||||
 | 
			
		||||
sudo apt install --no-install-recommends qubes-core-agent-networking qubes-core-agent-network-manager notification-daemon gnome-keyring arc-theme -y
 | 
			
		||||
 | 
			
		||||
curl --proxy http://127.0.0.1:8082/ -O https://protonvpn.com/download/protonvpn-stable-release_1.0.1-1_all.deb
 | 
			
		||||
sudo apt install --no-install-recommends ./protonvpn-stable-release_1.0.1-1_all.deb -y
 | 
			
		||||
sudo apt update
 | 
			
		||||
sudo apt install --no-install-recommends protonvpn -y
 | 
			
		||||
 | 
			
		||||
sudo mkdir -p /etc/gtk-3.0
 | 
			
		||||
echo '[Settings]
 | 
			
		||||
gtk-theme-name=Arc-Dark
 | 
			
		||||
gtk-application-prefer-dark-theme=1
 | 
			
		||||
' | sudo tee /etc/gtk-3.0/settings.ini
 | 
			
		||||
 | 
			
		||||
sudo mkdir -p /etc/gtk-4.0
 | 
			
		||||
echo '[Settings]
 | 
			
		||||
gtk-theme-name=Arc-Dark
 | 
			
		||||
gtk-application-prefer-dark-theme=1
 | 
			
		||||
' | sudo tee /etc/gtk-4.0/settings.ini
 | 
			
		||||
							
								
								
									
										3
									
								
								kicksecure/usb.sh
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										3
									
								
								kicksecure/usb.sh
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,3 @@
 | 
			
		||||
#!/bin/bash
 | 
			
		||||
 | 
			
		||||
sudo apt install --no-install-recommends gnome-disk-utility yubikey-manager-qt yubioath-desktop nitrokey-app -y
 | 
			
		||||
		Reference in New Issue
	
	Block a user