top | item 37402015

(no title)

paraknight | 2 years ago

My daily driver is Android + Samsung DeX, and I've tried doing this a couple different ways. In the end, the only thing that didn't make me pull me hair out in the long run was proper VSCode (arm64 build) inside termux/Ubuntu (installed via Andronix). Crucially, the only VNC client that works well with this (and I've tried all the paid ones too) is AVNC from FDroid.

I had too many issues with code-server and vscodium and such when it came to proprietary extensions unfortunately, and my actual dev machine is in the cloud so I rely on the Remote Dev extension. Has to be real VSCode.

I like that you can create a PWA from a standard code-server deployment too, and that works quite nice on DeX (proper immersive-mode full screen), but for me that has been too limiting because I cannot remap my brain away from my vim keybindings, and some stuff just doesn't work in a browser context. The browser will take over certain things (like ESC for getting out of full screen or alt+tab for navigating across browser tabs rather than VSCode tabs, etc).

As a rule of thumb now, any software that's complicated enough to require tabs, I try to run native arm64 builds for (VSCode, Obsidian, browser) and everything else I can get away with kiosk-mode browser windows masquerading as apps (email, calendar, feed reader, chat).

discuss

order

reedf1|2 years ago

Can you elaborate on how you use DeX specifically? I recently bought my first Samsung - and was a bit curious about it, surprised to hear that it is a powerful tool.

paraknight|2 years ago

I use one of these https://www.amazon.co.uk/dp/B07YF95RNR, some bluetooth peripherals, and a little phone tripod. I have it set so that when a monitor is plugged in, DeX starts automatically, so when I'm at my desk and plug my phone in, in 2 seconds I'm ready to roll. I also use DeX with my AR glasses (Nreal Air) when traveling, which basically behaves like a full-HD monitor on your face.

My termux session runs permanently in the background out of laziness (though this does noticeably shorten your battery life, but it's been mostly manageable) so all I need to do is start AVNC.

There are a lot of little configurations and quality of life things that I tweaked over the past year or so of doing this; happy to write all those up somewhere if you're interested.

neals|2 years ago

I spent some time last week trying to set this up.

You can use Andronix to install Linux and a window manager onto you phone. You then use a VNC app to connect to that (local) Linux container and you'll have a fully working Linux phone. Works pretty well, though I had to jump to a few hoops as not all distro's worked on my Fold 3.

DEX starts automatically when you plug HDMI into your (Samsung) phone. You then start the Andronix Linux container thing from DEX and you have a fully working Linux distro, right from your pocket. Pretty magical.

What I do, is use remote VSCode to connect to my dev server, so I don't need to run anything locally, because speed wasn't great for me. But if you set it up as I did, you can work from anywhere and you don't need a laptop.

sejl|2 years ago

Just a heads up, newer versions of Android will kill processes that spawn a certain amount of subprocesses. You'll want to look into disabling the phantom process killer using adb (works for unrooted phones but you need to repeat those steps after each reboot.)

rcarmo|2 years ago

Try xorgxrdp. Might make it nicer for getting a remote display going, and has less latency.