Skip to content

Instantly share code, notes, and snippets.

#!/usr/bin/env bash
function kill_all() {
process=$1
for i in $(ps aux | grep $process | tr -s ' ' | cut -d" " -f 2)
do
sudo kill -9 $i
done
}
@Nexarian
Nexarian / xrdp-setup-no-hw-accel.sh
Last active June 20, 2024 05:45
XRDP setup with only CPU encoding. No hardware acceleration
#!/usr/bin/env bash
set -e
sudo -v
sudo apt-get update
sudo apt-get dist-upgrade -y
sudo apt-get autoremove -y
@Nexarian
Nexarian / setup-freerdp.sh
Last active June 20, 2024 05:45
Install FreeRDP
#!/usr/bin/env bash
set -e
sudo -v
sudo apt install -y make git g++ nasm
git clone https://github.com/cisco/openh264.git ~/openh264
cd ~/openh264
@Nexarian
Nexarian / ubuntu-2204-laptop-setup.sh
Last active June 20, 2024 05:45
Ubuntu 22.04 setup
#!/usr/bin/env bash
set -e
cd ~
sudo -v
sudo apt-get -y install nvidia-prime vim git mesa-utils net-tools \
gnupg2 software-properties-common apt-transport-https gpg wget \
@Nexarian
Nexarian / xrdp-intel-setup.sh
Last active March 17, 2025 15:43
Setup for Intel acceleration and XRDP
#!/usr/bin/env bash
set -e
sudo -v
sudo apt-get update
sudo apt-get dist-upgrade -y
sudo apt-get autoremove -y
@Nexarian
Nexarian / xrdp-nvidia-setup.sh
Last active August 13, 2025 15:02
Setup for XRDP using Nvidia Acceleration
#!/usr/bin/env bash
set -e
cd ~
sudo -v
# Make sure system is in a good, updated, clean, state.
sudo apt-get -y update