Skip to content

Instantly share code, notes, and snippets.

@rahuldhole
Created November 11, 2025 00:11
Show Gist options
  • Select an option

  • Save rahuldhole/780fe879571bc49000bd4cc74af93c8f to your computer and use it in GitHub Desktop.

Select an option

Save rahuldhole/780fe879571bc49000bd4cc74af93c8f to your computer and use it in GitHub Desktop.
wip: Nix server xrdp on idx
pkgs.xorg.xorgserver
pkgs.xorg.xrandr
pkgs.xorg.xsetroot
pkgs.xterm
pkgs.xorg.xinit
pkgs.hexdump
pkgs.openbox
pkgs.openssh
---
# couldnt test
#echo "xterm" > ~/.xinitrc
#startx
---
mkdir -p ~/ssh-keys
ssh-keygen -t rsa -f ~/ssh-keys/ssh_host_rsa_key -N ''
cat > ~/sshd_temp_config <<EOF
Port 2222
HostKey ~/ssh-keys/ssh_host_rsa_key
PidFile ~/sshd.pid
PermitRootLogin yes
PasswordAuthentication yes
AuthorizedKeysFile ~/.ssh/authorized_keys
EOF
# Start SSH server in foreground
/usr/bin/sshd -f ~/sshd_temp_config -D
# on client pc (install x11 servers for mac/windows first)
ssh -X user@host
xterm &
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment