Skip to content

Instantly share code, notes, and snippets.

View xmesaj2's full-sized avatar
🆗

Mesaj xmesaj2

🆗
View GitHub Profile
@xmesaj2
xmesaj2 / Proxmox_host_TheRock_gfx906_mi50.md
Last active June 19, 2026 20:15
Proxmox TheRock nightly ROCm instructions for LXC passthrough and disk mount for single Mi50 (32GB, but 16GB will work too) to run with unsloth-studio

On your Proxmox host run to see exactly where your driver is being loaded from:

modinfo amdgpu | grep filename

If it says: /lib/modules/7.x.x-x-pve/kernel/drivers/gpu/drm/amd/amdgpu/amdgpu.ko -> This is the native Proxmox driver. Safe to remove the DKMS packages if installed, if not the skip to point #4.

If it says /updates/dkms/amdgpu.ko, then the DKMS actually loaded, should be rare. Do:

  1. Remove the Ubuntu DKMS and ROCm apt packages
@xmesaj2
xmesaj2 / ipfire-ipsec-watchdog.sh
Created March 4, 2025 22:37
/etc/init.d/ipsec-watchdog.sh ipfire restart ipsec connection (with help of grok ai)
#!/bin/bash
# IPSec watchdog for OracleVPSTunnel
# chkconfig: 2345 90 10
CONNECTION_NAME="VPSToHomeTunnel"
LOG_FILE="/var/log/ipsec-watchdog.log"
PID_FILE="/var/run/ipsec-watchdog.pid"
MAX_RETRIES=3
get_tunnel_status() {
@xmesaj2
xmesaj2 / zypper-autoremove.sh
Created November 26, 2024 22:49
zypper autoremove (like apt)
sudo zypper rm $(zypper pa --unneeded | awk '/i / {print $3}' FS='|' | uniq | tr -d ' ')
@xmesaj2
xmesaj2 / gist:d9b4bacfe6f4a8cc7298b22932bae7d7
Last active March 18, 2024 18:05
atlantic aquantia aqc107 disable slower link speeds to fix no 10 gigabit with mikrotik crs305 and transceiver
ethtool -K enp5s0 rx-vlan-offload off
ethtool -s enp5s0 autoneg off speed 2500
ethtool -s enp5s0 autoneg off speed 100
ethtool -s enp5s0 autoneg off speed 1000
$ cat /etc/network/interfaces
-------------------------------------------
auto lo
@xmesaj2
xmesaj2 / nextcloudpi_proxmox_fixes.md
Last active March 29, 2023 20:46
nextcloudpi proxmox fixes

Enable HEIC

apt install php-imagick imagemagick config.php

'enabledPreviewProviders' => 
  array (
    'OC\Preview\PNG',
    'OC\Preview\JPEG',
    'OC\Preview\GIF',
    'OC\Preview\BMP',
@xmesaj2
xmesaj2 / guest.sh
Created March 24, 2023 20:41
Plex LXC Unprivileged Debian mergerfs shared disk samba cifs snapraid AMD Vega7 iGPU
apt update && apt upgrade -y
apt install apt-transport-https curl vim wget sudo gnupg2 -y
echo "deb https://downloads.plex.tv/repo/deb public main" | tee /etc/apt/sources.list.d/plexmediaserver.list
curl https://downloads.plex.tv/plex-keys/PlexSign.key | apt-key add -
apt update
apt install plexmediaserver
systemctl status plexmediaserver
systemctl enable plexmediaserver
apt update && apt install -y curl gpg
mkdir -p /etc/apt/keyrings
@xmesaj2
xmesaj2 / proxmoxlxcjellyfin.md
Created March 24, 2023 09:38 — forked from aleksasiriski/proxmoxlxcjellyfin.md
Proxmox LXC Alpine Docker Jellyfin

How to setup VA-API within Proxmox LXC Unprivileged container

Proxmox configuration

No drivers need to be installed on the proxmox, from now called host.

Find GIDs of video and render group on host:

cat /etc/group | grep video

cat /etc/group | grep render

@xmesaj2
xmesaj2 / pve_xtermjs_for_ubuntu_vm.txt
Created December 22, 2022 00:18 — forked from yuna0x0/pve_xtermjs_for_vm.txt
Proxmox VE xterm.js (Serial Terminal) for Ubuntu VM
1. Add a virtual serial port to the VM using PVE Web GUI and restart the VM
2. Enable and start the virtual serial port on VM, change tty number as needed (Reference: https://askubuntu.com/a/621209/838946)
$ sudo systemctl enable serial-getty@ttyS0.service
$ sudo systemctl start serial-getty@ttyS0.service
3. Done! You can now select xterm.js in the PVE Web GUI
@xmesaj2
xmesaj2 / proxmox-proxy
Created December 14, 2022 19:16 — forked from basoro/proxmox-proxy
Running Proxmox behind a single IP address
I ran into the battle of running all of my VMs and the host node under a single public IP address. Luckily, the host is just pure Debian, and ships with iptables.
What needs to be done is essentially to run all the VMs on a private internal network. Outbound internet access is done via NAT. Inbound access is via port forwarding.
Network configuration
Here’s how it’s done:
Create a virtual interface that serves as the gateway for your VMs:
@xmesaj2
xmesaj2 / noVNCCopyPasteProxmox.user.js
Created December 14, 2022 14:34 — forked from amunchet/noVNCCopyPasteProxmox.user.js
Copy/Paste for noVNC Proxmox
// ==UserScript==
// @name noVNC Paste for Proxmox
// @namespace http://tampermonkey.net/
// @version 0.2a
// @description Pastes text into a noVNC window (for use with Proxmox specifically)
// @author Chester Enright
// @match https://*
// @include /^.*novnc.*/
// @require http://code.jquery.com/jquery-3.3.1.min.js
// @grant none