Skip to content

Instantly share code, notes, and snippets.

View IngoMeyer441's full-sized avatar

Ingo Meyer IngoMeyer441

View GitHub Profile
@manuuurino
manuuurino / x-resize
Created September 1, 2023 14:51 — forked from 3lpsy/x-resize
Manual Implementation of Auto Resizing For Non-Gnome Environments (like XFCE) running under Spice/Libvirt
#!/bin/bash
# Steps:
# 1) Make sure bash is available
# 2) Create udev rule
# - path to new udev rule: /etc/udev/rules.d/50-x-resize.rules
# - udev rule content:
# ACTION=="change",KERNEL=="card0", SUBSYSTEM=="drm", RUN+="/usr/local/bin/x-resize"
# 3) Create /var/log/autores directory
# 4) Create script /usr/local/bin/x-resize (this file) and make executable
# 5) Reload udev rules with `sudo udevadm control --reload-rules`
@keyboardcrunch
keyboardcrunch / Headless_xvfb_apps.md
Created January 29, 2023 16:46
Headless xvfb-run Apps

Headless Applications with xvfb and x11vnc

In the code block below we're going to launch two graphical applications on a headless server (no desktop environment) within their own virtual display, then launch an instance of x11vnc server connected to each virtual display. Generally if you have more than one application you might as well run a full desktop environment and vnc server, but this is more fun.

Requirements

  • x11vnc
  • the desktop apps you want (handbrake and firefox used in example)
  • (optional) fluxbox or other minimal DE
@robinsmidsrod
robinsmidsrod / dhcpd.conf
Last active April 9, 2025 20:20
Trying to chainload iPXE with full feature set from a lesser featured one, whilst still being able to boot non-supported cards with UNDI
ddns-update-style none;
deny bootp; #default
authoritative;
include "/etc/dhcp/ipxe-option-space.conf";
# GREEN (private network)
subnet 10.1.1.0 netmask 255.255.255.0 {
range 10.1.1.100 10.1.1.199;
option subnet-mask 255.255.255.0;