Labthrift Labthrift What to buy. What to skip. Why.

Written 28 Aug 2026. This is a how-to, not a product card. Buy links are not tagged yet.

Edit a leftover-box file from the couch

After SSH works, open a leftover-box file with nano, change a line, and save. The keys at the bottom of the screen are the whole trick. You do not need a new editor.

SSH from the couch lets you type commands on the leftover box. Sometimes the leftover box already has a file you need to change: a note, a share path, a line in a config. nano is a small text editor that is already on Debian and Ubuntu. You run it in the SSH window. The leftover box does not need VS Code, vim, or a USB stick for this one job.

Skip until SSH already works

SSH from the couch should already get you a leftover-box prompt. A short name is nicer: give the leftover box a short name on your laptop. If you only need to move a file that already lives on the laptop, that is copy a file to the leftover box from your laptop. This note is leftover-box nano after you have logged in. Laptop-side nano for the SSH nickname is on the short-name note. Skip this whole note if you are not changing a leftover-box file tonight.

What this is

nano opens a file in the SSH window. The bottom two lines are keyboard shortcuts. The caret ^ means Ctrl. You type, save, quit. The leftover box writes the file. This is not a new app to install on most Debian and Ubuntu leftover boxes. It is also not vim. If you typed vim by accident and the screen looks stuck, type :q! and Enter to leave without saving, then start over with nano.

Practice on a throwaway file first

Do not start on a login file. SSH in, then make a file that does not matter:

echo 'hello leftover' > ~/nano-practice.txt

Then open it:

nano ~/nano-practice.txt

You should see the words, a cursor, and those two shortcut lines at the bottom. Add a second line. That is enough for a first save.

Save and quit

The three keys you actually need:

Arrow keys move. Backspace deletes. Optional later: Ctrl+K cuts the whole line, Ctrl+U pastes it back. You do not need those tonight.

Check it landed

Back at the leftover-box prompt:

cat ~/nano-practice.txt

You want your new line in the print. Optional look at size and date:

ls -lh ~/nano-practice.txt

Delete the practice file when you are done playing:

rm ~/nano-practice.txt

Before you edit a real file, copy it

A leftover-box config is easier to undo if you kept the old one. For a file in your home folder:

cp ~/notes.txt ~/notes.txt.bak

Then:

nano ~/notes.txt

Swap the filename for yours. If the original was fine, copy the .bak back over it later. Skip this extra copy on the throwaway practice file.

Optional: a system file

Files under /etc need admin. Confirm you can use sudo first: see if your leftover-box login can use admin commands. Then:

sudo nano /etc/hostname

That hostname file is the leftover box's name. Changing it for real is give the leftover box a name that sticks, not a random edit. Do not open leftover-box SSH settings tonight. Turning off password login is turn off leftover-box password login once the key works, and it has a safer order than “open sshd_config and guess.”

If nano is missing

Some skinny leftover installs skip it. Ask:

nano --version

If that says command not found, install it the same way as other leftover-box fixes: keep the leftover box updated, then:

sudo apt update && sudo apt install -y nano

Skip buying an editor app. Skip vim as a first editor.

What next

Need the leftover-box file on the laptop too? Copy a file to the leftover box from your laptop (paths swap to pull one back). Cleaning leftover Marketplace keys uses this same editor: see which laptop keys the leftover box already trusts. Tired of retyping the same long line? Reuse a leftover-box command you already typed. Want to see the names in the folder first? See what's in a leftover-box folder. When key login is boring on every computer you use, turn off leftover-box password login once the key works. Keep SSH on the house network: keep the leftover box on the house network. Do not forward port 22.

Skip

Sources

GNU nano. GNU nano: nano(1). Debian: nano. Ubuntu: nano. Official pages only. For the login, see SSH from the couch. For a short name, see give the leftover box a short name on your laptop. For moving a file without editing it, see copy a file to the leftover box from your laptop. For sudo, see see if your leftover-box login can use admin commands.

Also on this topic

SSH from the couchType commands on the leftover box from your laptop, on the house network. Password login first. Do not open this to the internet. Copy a file to the leftover box from your laptopAfter SSH works, use scp to move one file without a USB stick. A short leftover name makes the typing shorter. You do not need a NAS for this. Give the leftover box a short name on your laptopAfter SSH works, put a short name in your laptop SSH config so you type ssh leftover instead of the long address. You do not need a new router. See which laptop keys the leftover box already trustsBefore you turn off password login, look at which laptop keys can already get in. Remove leftovers from an old Marketplace box. You do not need a YubiKey for this. See if your leftover-box login can use admin commandsBefore you change passwords or turn on the firewall, check that your leftover-box login can use sudo. You do not need extra login software. Give the leftover box a name that sticksPing and SSH are easier if the leftover box has a short name. leftover is a good one. Set it so the name survives a reboot. Reuse a leftover-box command you already typedAfter SSH works, flip back through commands with the Up arrow or history. You do not need a notebook for the same long line twice. See what's in a leftover-box folderAfter SSH works, list the leftover-box folder you are sitting in with ls. You do not need a file manager app for this. Turn off leftover-box password login once the key worksAfter the laptop key login is boring, tell SSH to stop accepting the leftover-box password. The key is how you get in. A keyboard on the leftover box is the backup now.