All logs
No. 015NOV 24, 20267 MIN READ

My 12-Year-Old Laptop Is Now My Remote Dev Box

RAM is getting expensive. Before you buy, check the drawer: here's how my 12-year-old laptop became an always-on dev box I use from my Mac and my phone.

My 12-Year-Old Laptop Is Now My Remote Dev Box
Me and the same HP ENVY in my college dorm room, Kolkata, December 2015

RAM prices are wild right now. AI datacenters are buying up memory, and the rest of us pay for it. So before you buy a new machine, check the drawer.

My old HP ENVY has had a busy year. First it ran OpenClaw. Then I retired that setup and planned to turn it into a photo library. That didn’t stick either.

Now it has its 3rd job, and I think this one will last. It’s an always-on Linux box that I code on from my Mac and my phone. Lid closed, plugged in, sitting on a shelf.

The hardware

Nothing fancy:

  • Intel Core i5-4200U, 2 cores / 4 threads (Haswell, 2013)
  • 8 GB RAM
  • 1 TB spinning HDD, plus the tiny 24 GB mSATA SSD it shipped with as a cache drive
  • Ubuntu 26.04 LTS

Virtualization is off in the BIOS, so no VMs. For this job it doesn’t matter.

The keyboard and trackpad have mostly given up, so I plugged in an external keyboard and mouse just long enough to get SSH working. After that, everything happened from my Mac.

How I reach it

Tailscale. Install it on the laptop, the Mac and the phone, and they see each other on a private network from anywhere. No port forwarding on the router, nothing exposed to the public internet.

On top of that it’s plain OpenSSH with key-only login. Password login is off. Every device gets its own key, so if I lose my phone I delete 1 line in authorized_keys and that’s it.

Why mosh and tmux together

Plain SSH is fine until you close your MacBook. The connection dies, and whatever was running in that terminal dies with it. That’s painful when a coding agent is halfway through a task.

mosh fixes the connection part. It logs in over SSH, then switches to UDP and keeps the session alive while the Mac sleeps, moves from home Wi-Fi to a hotspot, or loses the network for a bit. Typing also feels instant, because mosh echoes keys locally instead of waiting for the server.

mosh has gaps though. There’s no scrollback, and if the mosh session itself goes away, so does the shell.

tmux fills those gaps. It runs on the laptop and owns the actual sessions. If mosh drops, the agent keeps working inside tmux, and I reattach later. It also gives me scrollback, splits, and multiple windows.

So mosh keeps the connection and tmux keeps the work. I have a tiny shell function on the Mac that does mosh <laptop> -- tmux new -A -s claude, which opens or reattaches the same session every time. I close my MacBook, open it an hour later somewhere else, and Claude Code is still right where I left it.

Ways to go remote

There’s more than 1 way in, depending on where you are:

  • Terminal (ssh / mosh + tmux). My default from the Mac. Works from any laptop with a terminal.
  • Moshi. An SSH and mosh app for iPhone. Good for checking on an agent or fixing a typo in a PR while waiting in a queue.
  • herdr. A terminal multiplexer built for AI agents, with a phone app that connects over SSH. The server keeps running when you disconnect, so agents keep going.
  • T3 Code. An open-source web UI for coding agents. It can publish itself over Tailscale Serve, so you get a private HTTPS URL to open from any browser on your tailnet. I have it installed but haven’t really put it to work yet, so treat it as an option.
  • Tailscale Serve for previews. Local dev sites (DDEV in my case) can be shared the same way, only to your own devices.

Pick 1 to start. The terminal route alone is enough.

Making it never sleep

A Linux laptop wants to sleep the moment you close the lid. 3 things stop that:

# /etc/systemd/logind.conf.d/lid.conf
[Login]
HandleLidSwitch=ignore
HandleLidSwitchExternalPower=ignore
HandleLidSwitchDocked=ignore
sudo systemctl mask sleep.target suspend.target hibernate.target hybrid-sleep.target

And in GNOME’s power settings, set automatic suspend to off.

I also turned off Wi-Fi power saving. SSH felt laggy until I did. A drop-in file in /etc/NetworkManager/conf.d/ with wifi.powersave = 2 fixes it.

Making it look after itself

I don’t want to walk over and press buttons when something breaks, so:

  • Watchdogs. A hardware watchdog reboots it if the kernel hangs. A small network script goes from toggling Wi-Fi up to a reboot if the internet stays down. (Check real internet hosts, not just the router. Mine ignores pings now and then.)
  • Clean shutdown on a power cut. It powers off at 15% battery instead of dying mid-write. It won’t turn itself back on, though.
  • Heartbeat. Every 2 hours it pings healthchecks.io. If the pings stop, I get an email.

A second life for the cache SSD

The 24 GB mSATA SSD now holds all the Docker data, so DDEV and Drupal containers start much faster than off the HDD. It’s mounted with nofail, so if it ever dies, boot and SSH don’t care.

What runs on it

  • Claude Code and Codex inside tmux, working on my repos
  • DDEV for Drupal sites
  • herdr, for when I’m on my phone

8 GB is tight, so I pick light tools. I tried local LLMs with Ollama earlier this year. Way too slow on this CPU, so it’s gone. Let the cloud do the thinking and let the laptop do the running.

Claude Code as the sysadmin

This is my favourite part. There’s a small private git repo on the laptop with a CLAUDE.md that describes the machine: hardware, what’s installed, how it’s reached, and the house rules.

When I want to install or fix something, I open Claude Code there and ask. It checks the current state first. It prefers Homebrew. It never runs sudo itself, it gives me 1 command to paste. It never touches anything that could cut off my SSH. And every change goes into a CHANGELOG.md with how to undo it.

It’s a sysadmin notebook that can also do the work.

Try it with yours

Any old machine works. Linux is my first pick and macOS is just as good. An old Windows laptop works too.

  1. Pick the OS. Any Linux distro you’re comfortable with. On an old Mac, keep macOS. On Windows, keep it and use the built-in OpenSSH Server (or WSL).
  2. Join a private network. Install Tailscale on the old machine and on the device you’ll connect from.
  3. Turn on SSH, keys only. On Linux install the OpenSSH server. On macOS turn on Remote Login in Sharing settings. On Windows add OpenSSH Server from Optional features. Then add your key and turn password login off.
  4. Stop it from sleeping. Lid close does nothing, no auto-suspend on power. Every OS has a setting for this.
  5. Keep sessions alive. tmux on the old machine, and mosh if your OS has it (Linux and macOS do).

That alone gives you a remote dev box. Add the self-healing bits later, when you start to trust it.

If your old laptop’s keyboard or trackpad is dead like mine, borrow an external one for steps 2 and 3. Once SSH works, you never need it again.

Let your agent plan it

You don’t have to do this by hand. Point Claude Code or Codex at this post and say something like:

Read https://abhisek.xyz/logs/old-laptop-remote-dev-box/ and plan a setup like this for this machine. Check what’s already installed first, keep it simple, and give me any sudo commands to run myself.

It will check your hardware, write the config files, and hand you the few sudo commands that need your password. It costs some tokens, but you end up with a setup that fits your machine instead of mine. Ask it to keep a CLAUDE.md and a changelog while it works, and you get the same sysadmin notebook for free.

Get the SSH part working first and do the rest remotely.

If you have an old laptop gathering dust, give it a job. And if you get stuck, find me on LinkedIn. Happy to help.

ps: Sam, you’re not getting this RAM.