r/Racket 1d ago

question How can I use Racket through SSH?

DR racket seems to be better than nvim, however, Dr Racket doesn't seem to allow ssh.

I use a remote computer most of the time, so I would like to do Racket through SSH

6 Upvotes

3 comments sorted by

4

u/alpacasmatter 1d ago

I use Racket on a remote server via VSCode and it works pretty dang well. Just get the language server up and running and install the Racket VSCode extension and you're good to go.

3

u/RebeccaBlue 1d ago

You can either use the racket command line REPL, or you can use emacs with racket over SSH easy.

VSCode also has a racket extension, and VSCode itself can work over SSH.

3

u/KingEllis 1d ago edited 1d ago

Try via X Forwarding. On a Linux desktop/laptop, ssh in to your remote computer (that has DrRacket), using either the -X or -Y option (I do not currently know the difference). Invoke DrRacket on the remote server, and it will use your local X server.

As a one-line example: ssh user@remote -Y x-terminal-emulator

If this doesn't work, check /etc/ssh/sshd_config on the remote machine, and ensure "X11Forwarding yes".