Created
November 11, 2025 00:11
-
-
Save rahuldhole/780fe879571bc49000bd4cc74af93c8f to your computer and use it in GitHub Desktop.
wip: Nix server xrdp on idx
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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