4 ms·
I've been trying to build a remote dev setup using code-server [1] on a 2017-ish iPad Pro 10.5" and a Logitech K380 keyboard for when travelling and when on the
by dividedbyzero 5y ago
I've been trying to build a remote dev setup using code-server [1] on a 2017-ish iPad Pro 10.5" and a Logitech K380 keyboard for when travelling and when on the indoor bike. I have code-server running in a big fat docker container with language SDKs, utilities, fish shell with custom prompt, etc. installed as well, and it works great in a desktop browser, but I can't quite get it to be fully usable on the iPad. It seems this still has a bunch of very rough edges.
Using code-server in iPad Safari means Cmd+N etc. won't work and also losing very precious display real estate to Safari's UI. Adding it to the home screen and launching from there solves that, but now switching to Safari and back causes keyboard input to stop registering at all in code-server. The Serverediter [2] app doesn't have that issue, but its UI and parts of the code-server UI will jump around for a second when Cmd-Tab-ing to it, which is pretty unnerving.
Then there's connectivity: Apparently background SSH tunnels get killed by iOS after a while. Serverediter has its own SSH client, but port-forwarding any other ports than code-server's doesn't seem to work. Not being able to expose a running web service on my local device makes lots of things infeasible. Maybe I'd need a separate VPN between the code-server machine and my iPad? But that adds more complexity to an already quite complex setup. And finally, https with self-signed certs isn't exactly a walk in the park with iPads (I can't use letsencrypt), but without it I believe the clipboard won't work right.
I realize there are SaaS offers that will make some (or most?) of these issues go away, but those don't seem to be all that customizable, and since I'd use this for personal projects that don't earn any money, keeping costs down is a priority as well (so if I can self-host on hardware I already have, I'd rather do that).
So while I totally get the appeal, I really wonder how others make it work for them. It doesn't seem to be quite as straight-forward as the blog posts made it look.
1: https://github.com/cdr/code-server https://github.com/cdr/code-server
2: https://servediter.app/ https://servediter.app/
- math0ne 5y agoRecently did the exact same thing and came to the exact same conclusion, even if code server worked well enough the lost screen realestate pissed me off so much I don't think I could have lived with it. There is a hack to get background ssh connections to stay alive: https://docs.termius.com/faq/troubleshooting/cant-run-in-the-background https://docs.termius.com/faq/troubleshooting/cant-run-in-the...
- kryptn 5y agoI picked up an iPad Pro more or less to chase this same ideal. I'm using blink shell and tailscale. Originally I wanted to use code-server but none of those web vscode instances support the extensions I want to use, so now I'm just trying to pick up vim. https://blink.sh/ https://blink.sh/ https://tailscale.com/ https://tailscale.com/
- throwawaycuriou 5y agoThe iPad has the advantage of cellular data. But if your nomadic goals are not cramped by being near WiFi, I find a cheap thin ChromeOS client (ideally with a 3:2 display) works substantially better. I have been code-server'ing from a gaming desktop for three years now this way. My clients have been a Asus C302, Pixelbook, an Acer Spin 13, and now a Framework laptop on Manjaro Sway edition. It's been a revelation. The desktop cranks on web dev stuff in a way no laptop can.
- neilalexander 5y agoIf only Textastic had the ability to edit files over SSH instead of having to transfer files back and forth first, pairing Textastic with an SSH client to a remote server would be absolutely ideal for me. The problem is that good text editors without obvious compromises for iPadOS are extremely difficult to find.
- rcarmo 5y agoWhat I do is install Xrdp on a recent Ubuntu LTS and use Jump Desktop to do RDP over SSH. It is much more flexible than trying to jump through hoops with Safari keyboard and selection handling.