Skip to content

Instantly share code, notes, and snippets.

#!/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 \
@anomixer
anomixer / xrdp-setup-no-hw-accel.sh
Created June 20, 2024 05:45 — forked from Nexarian/xrdp-setup-no-hw-accel.sh
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
@anomixer
anomixer / xrdp-installer-1.5.sh
Created June 13, 2024 11:41
original xrdp install script from https://c-nergy.be/products.html (update to ubuntu 24.04)
#!/bin/bash
#####################################################################################################
# Script_Name : xrdp-installer-1.5.sh
# Description : Perform xRDP installation on Ubuntu 20.04,22.04,23.xx and perform
# additional post configuration to improve end user experience
# Date : April 2024
# written by : Griffon
# WebSite :http://www.c-nergy.be - http://www.c-nergy.be/blog
# Version : 1.5
# History : 1.5 - Add Support for Ubuntu 24.04
#!/bin/bash
# Removes old revisions of snaps
# CLOSE ALL SNAPS BEFORE RUNNING THIS
set -eu
LANG=en_US.UTF-8 snap list --all | awk '/disabled/{print $1, $3}' |
while read snapname revision; do
snap remove "$snapname" --revision="$revision"
done