Skip to content

Instantly share code, notes, and snippets.

@anomixer
anomixer / readme.md
Created July 17, 2024 08:19 — forked from Keenuts/readme.md
GSoC 2017 | Virgl Windows Driver

GSOC 2017 | Virgl Windows Driver

Project links

The project is split into several parts:

  • The kernel driver, with simple 3D command forwarding and 3D resource allocation
  • The userland driver, in fact the OpenGL backend
  • The reference, explaining virtio-gpu commands

https://github.com/Keenuts/virtio-gpu-win-icd \

@anomixer
anomixer / testrcebug.sh
Last active July 10, 2024 07:12
Test RCE Bug (CVE-2024-29510)
#!/bin/bash
# Details: https://www.bleepingcomputer.com/news/security/rce-bug-in-widely-used-ghostscript-library-now-exploited-in-attacks/
if [ ! -f CVE-2024-29510_testkit.ps ]; then
cat > CVE-2024-29510_testkit.ps << EOF
%!PS
% Run like this:
% ghostscript -q -dBATCH -dNODISPLAY CVE-2024-29510_testkit.ps
@anomixer
anomixer / install_xrdp.sh
Last active June 27, 2024 03:45 — forked from ElRoberto538/install_xrdp.sh
Notes for installing XorgXrdp and Xrdp with GLAMOR and GFX support
#!/bin/bash
# Install Latest XRDP with XORGXRDP and GFX
BUILD_DIR=/tmp/xrdpbuild
# Prepare Build Directory
rm -f -r $BUILD_DIR
mkdir -p $BUILD_DIR
# Install Dependencies - Dev
@anomixer
anomixer / xrdp-intel-setup.sh
Created June 20, 2024 07:43 — forked from mattisz/xrdp-intel-setup.sh
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
@anomixer
anomixer / setup-freerdp.sh
Created June 20, 2024 05:45 — forked from Nexarian/setup-freerdp.sh
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
@anomixer
anomixer / xrdp-nvidia-setup.sh
Created June 20, 2024 05:45 — forked from Nexarian/xrdp-nvidia-setup.sh
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
#!/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