Skip to content

Instantly share code, notes, and snippets.

~/restart_xrdp.sh
sudo make clean all -j $(nproc)
sudo make install -j $(nproc)
sudo systemctl daemon-reload
sudo service xrdp restart
#!/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 January 20, 2024 21:48
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 January 20, 2024 21:03
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 January 20, 2024 21:03
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 January 20, 2024 21:03
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 April 30, 2024 00:39
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