MyC64.Com

This is what I do. How can I help you?

PopFTP

Raspberry Pi FTP server and dashboard for your C64 Ultimate.

C64U Raspberry Pi FTP Kit

The kit sets up a Raspberry Pi FTP server for your C64U. The optional PopFTP dashboard displays server activity and provides administration controls on the Pi desktop.

Start with the guide and follow parts 1–5. Part 6 covers an optional USB drive; part 7 adds the dashboard.

The scripts are for Raspberry Pi OS; the dashboard requires the desktop version. Review the guide before installation.

PopFTP dashboard
PopFTP dashboard

PopFTP User Guide

Raspberry Pi FTP Server

for the Commodore 64 Ultimate

From a brand-new Raspberry Pi to browsing your game collection on the C64U, with a live dashboard on an HDMI monitor.

Illustration from the PopFTP guide

How it all fits together.

What you end up with

A Raspberry Pi on your home network running an FTP server, switched on all the time.

All your folders on the Pi: a suggested layout (games A to Z, carts, tapes, demos, music…) plus your own collection’s folders (00-GAMES, GameBase SD_Main and the rest).

The C64U shows the Pi in its File Browser, next to your USB stick. Open folders and run games straight from the Pi.

Optional: an external USB drive on the Pi for a big collection, showing up as a usb folder on the C64U.

A live dashboard window on the Pi's HDMI monitor: who's connected, what's being transferred, storage and system health. Other apps stay usable alongside it.

An admin mode behind a password: start and stop the server, read-only mode, passwords, disconnect and block clients, logs, and restart or shut down the Pi.

You do all the setup from your PC, in your chair.

What's in this kit

FileWhat it is
C64U-Pi-FTP-Server.docxThis manual.
setup-c64-ftp.shThe setup script. It installs the FTP server, creates the c64 account and creates every folder, all in one go.
install-dashboard.shThe dashboard installer (part 7). It installs the dashboard window, its background service and admin mode.

What you need

ItemNotes
Raspberry Pi 4 or 5With 2 GB of memory or more. The dashboard needs this; a Pi 3 or Zero is too slow for the desktop.
microSD card16 GB or bigger. It holds the system and your files.
Power supplyThe official one for your Pi model.
HDMI monitor and cableFor the dashboard. The Pi 4 and 5 have micro-HDMI ports, so you need a micro-HDMI to HDMI cable.
Keyboard and mouse (USB or wireless)To use other apps on the Pi's desktop. Not needed for the setup itself.
PC or Mac with an SD card readerTo prepare the card and to set up the Pi.
NetworkEthernet cable to your router (most reliable) or your Wi-Fi name and password.
C64U on firmware 1.2.0 or newerThe FTP client was added in 1.2.0.

Contents

1. Prepare the SD card

2. Start the Pi

3. Run the setup script

4. Add the Pi on the C64U

5. Copy your files to the Pi

6. Add an external USB drive (optional)

7. Dashboard on the HDMI monitor

Your folders

Troubleshooting

Handy commands

For the curious: what the script does

Illustration from the PopFTP guide

The seven parts at a glance. Part 6 is optional.

1. Prepare the SD card

The Pi's system is Raspberry Pi OS (64-bit): the official version with a desktop. The desktop is what shows the dashboard window on your monitor and lets you use other apps on the Pi. You put it on the card from your PC with Raspberry Pi Imager, which also sets up Wi-Fi, your login and remote access.

On your PC, download and install Raspberry Pi Imager from raspberrypi.com/software.

Put the microSD card in your PC's card reader and open Imager. It walks you through these screens in order.

Device: pick your Pi model.

OS: choose Raspberry Pi OS (64-bit), the recommended one at the top with the desktop. Don't pick a Lite version: Lite has no desktop, so the dashboard can't run on it.

Storage: pick your microSD card. Double-check it's the card, because it gets erased.

Customisation: fill in the settings in the table below. This is the important part.

Click Write and confirm. When Imager says it's finished, take the card out.

Customisation settingWhat to enter
Hostnamec64pi (the Pi's name on your network)
LocalisationYour capital city / time zone and keyboard layout (e.g. New York, US)
UserUsername c64admin and a password you'll remember. This is your login for setting up the Pi.
Wi-FiYour Wi-Fi name and password. Skip this if you'll use an Ethernet cable.
Remote accessTurn on Enable SSH and choose Use password authentication.
Raspberry Pi ConnectLeave off. Not needed.

Imager's screens change between versions. If a name differs slightly, look for the same idea: hostname, user, Wi-Fi, and SSH on.

2. Start the Pi

Put the card in the Pi. Connect the monitor (on a Pi 4 or 5 use the micro-HDMI port nearest the power socket), plus the keyboard and mouse, and the Ethernet cable if you're using one. Plug in the power last.

Illustration from the PopFTP guide

Where to plug things in (Raspberry Pi 4 or 5).

Wait 3 to 5 minutes. The first start-up takes longer while it sets itself up.

The Pi's desktop appears on the monitor. You don't need to do anything on it: the rest of the setup happens from your PC.

3. Run the setup script

You'll type two short commands into a terminal on your PC. A terminal is a window where you type commands; Windows 10/11 and Mac both have one built in. The commands use SSH, which lets your PC send commands to the Pi over the network.

Save setup-c64-ftp.sh from this kit into your Downloads folder.

Open a terminal. Windows: press Start, type Terminal (or PowerShell) and open it. Mac: open Applications → Utilities → Terminal.

Go to your Downloads folder, then copy the script to the Pi. Type each line and press ENTER:

cd Downloads

scp setup-c64-ftp.sh c64admin@c64pi.local:

The first time, it asks if you trust the computer. Type yes and press ENTER. Then type your c64admin password and press ENTER. Nothing shows while you type a password; that's normal. (Note the colon : at the very end of the scp line; it's needed.)

Illustration from the PopFTP guide

What part 3 looks like in the terminal.

Run the script on the Pi:

ssh -t c64admin@c64pi.local "bash setup-c64-ftp.sh"

Type your c64admin password when asked. The script then asks you to choose a password for the c64 FTP account; type it twice and write it down, because the C64U needs it.

Wait while it works (a few minutes). It installs the FTP server, creates the c64 account and creates all the folders on its own.

When it says Done!, it shows the exact settings to type into the C64U, including the Pi's address. Write them down.

If c64pi.local isn't found, open your router's web page, find the device called c64pi in its list, and use its address instead of c64pi.local in both commands, e.g. scp setup-c64-ftp.sh c64admin@192.168.1.50:

Give the Pi a fixed address

The C64U connects by address, so the Pi's address shouldn't change. Open your router's settings page and look for DHCP reservation, address reservation or static lease, and reserve the address the script showed for the device named c64pi. Each router brand puts this in a different place.

4. Add the Pi on the C64U

Make sure the C64U is online (Wi-Fi Network Setup or Wired Network Setup shows an address).

Open the C64U Menu and the Disk File Browser. Go to the ftp entry at the top level.

Press RETURN and choose New Host. Fill in:

FieldEnter
AliasPi (the name shown in the File Browser)
HostThe Pi's address the script showed, e.g. 192.168.1.50
Port21
Userc64
PasswordThe c64 password you chose in the script
Path/ (shows all your folders)

Save it. Now open ftp → Pi. Your folders appear; open them with RETURN, go back up with A or RUN/STOP, and run games the usual way (RETURN, then Run Disk, Run Cart or Run Tape).

Opening a file first copies it into the C64U's temporary cache, so big files take a moment. To edit or remove the Pi entry later, select it under ftp and open its menu (Edit / Remove). These C64U screens follow the Ultimate 64 FTP client documentation, which the C64U firmware is based on; exact key names may differ slightly.

5. Copy your files to the Pi

Use a free FTP program on your PC: WinSCP (Windows) or Cyberduck (Mac). Create a new connection with these settings:

SettingEnter
ProtocolFTP
EncryptionNo encryption / plain FTP. The server doesn't use encryption, so pick this or the connection fails.
HostThe Pi's address (or c64pi.local)
Port21
User / Passwordc64 and its password
Illustration from the PopFTP guide

Cyberduck connected to the Pi, showing the folders the setup script created.

Then drag files from your PC into the folders on the Pi. Dragging a whole folder copies the folder and everything in it. Your folders already exist on the Pi (the script made them), so drag the contents of each PC folder into the matching Pi folder.

Files sent from the C64U to the Pi (for example printer pages into upload/ or printfiles/) show up in the FTP program the same way.

6. Add an external USB drive (optional)

Yes, you can plug a USB drive into the Pi and use it over FTP, for example to hold a big collection. The drive is attached inside the c64 account's folder, so the C64U sees it as one more folder called usb. (The c64 account can't see anything outside its own folder, so just plugging the drive in isn't enough.) You set this up once; after that it attaches by itself every time the Pi starts.

Illustration from the PopFTP guide

How the USB drive appears on the C64U.

All commands in this part are typed on the Pi. Open your terminal and type ssh c64admin@c64pi.local, then your c64admin password.

Find the drive

Plug the drive into the Pi.

Show the drives the Pi can see:

lsblk -f

Find your drive in the list (usually sda1). Write down its FSTYPE (exfat, vfat, ntfs or ext4) and its UUID (for example A1B2-C3D4).

Make the usb folder

sudo mkdir /home/c64/usb

id -u c64

The second command shows the c64 account's number, usually 1001. You need it in the next line.

Attach it at every start-up

Open the list of drives the Pi attaches when it starts:

sudo nano /etc/fstab

Add one line at the very bottom, matching your drive's type. Put in your own UUID and c64 number. Then save with CTRL+O, ENTER, and exit with CTRL+X.

Drive typeLine to add
exFAT (most big drives)UUID=A1B2-C3D4 /home/c64/usb exfat defaults,nofail,uid=1001,gid=1001,umask=022 0 0
FAT32 (vfat)UUID=A1B2-C3D4 /home/c64/usb vfat defaults,nofail,uid=1001,gid=1001,umask=022 0 0
NTFS (Windows drives)First run sudo apt install -y ntfs-3g, then add: UUID=A1B2C3D4E5F6 /home/c64/usb ntfs-3g defaults,nofail,uid=1001,gid=1001,umask=022 0 0
ext4 (Linux)UUID=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx /home/c64/usb ext4 defaults,nofail 0 2

Attach it now and check

sudo systemctl daemon-reload

sudo mount -a

ls /home/c64/usb

You should see the drive's files. For an ext4 drive only, also run this so FTP can write to it:

sudo chown -R c64:c64 /home/c64/usb

Now open ftp → Pi on the C64U: there's a usb folder with the whole drive inside. Your FTP program on the PC sees it the same way.

Good to know

nofail means the Pi still starts normally if the drive is unplugged; the usb folder is just empty.

Power: a USB stick or SSD runs fine from a Pi 4 or 5. A big desktop hard drive needs its own power adapter. On a Pi 3, use a powered USB hub for hard drives.

Shut the Pi down with sudo shutdown -h now before unplugging the drive, so no files get damaged.

To keep your whole collection on the drive, put your folders (00-GAMES and the rest) inside it. They show up under usb on the C64U.

Using a different drive later? Run lsblk -f again and change the UUID in /etc/fstab.

7. Dashboard on the HDMI monitor

The dashboard is a normal desktop window on the Pi's monitor. It opens by itself when the Pi starts and updates every 2 seconds. You can maximize, minimize, move or close it like any other window, and use other apps alongside it.

Illustration from the PopFTP guide

The POPFTP window (shown with sample data).

Install it

Run this after the setup script (part 3). It works the same way: two commands on your PC.

Save install-dashboard.sh from this kit into your Downloads folder.

Open a terminal on your PC and copy the installer to the Pi:

cd Downloads

scp install-dashboard.sh c64admin@c64pi.local:

Run it. It first asks you to choose an admin password for the dashboard's Admin button (type it twice and write it down), then may ask for your c64admin password:

ssh -t c64admin@c64pi.local "bash install-dashboard.sh"

When it says Done!, restart the Pi:

ssh c64admin@c64pi.local "sudo reboot"

After about a minute the desktop comes back and the dashboard opens, filling the screen.

What it shows

SectionWhat you see
Top barThe POPFTP title, the Pi's name, address, FTP port and how long it's been on; a Running or Stopped label for the FTP server; a Read-only label when that mode is on; the Admin button; the time and date.
TilesActive sessions, downloads today, uploads today, data moved today and logins today (failed logins in red). Each tile has a small trend line.
Network trafficA chart of data coming in (blue) and going out (orange) over the last 60 minutes. It fills in over the first few minutes after a restart.
System healthFour gauges: CPU, memory, temperature and storage (the USB drive if attached, otherwise the SD card). Blue is normal, amber is getting high, red is very high.
Transfers by hourDownloads (blue) and uploads (orange) for each hour of today. The current hour is shaded.
Connected clientsEach device connected right now: name, address, user, whether it's transferring or idle, and for how long.
Recent activityThe latest downloads, uploads, logins, new folders and deletions, with file names, sizes and speeds. Failed attempts show in red.

Upgrading

Already installed an earlier version of the dashboard? Run the installer again exactly as above, then restart the Pi. It replaces the old window with POPFTP and keeps your admin password, device names and blocked addresses.

Using it

Reopen it after closing: Raspberry menu (top-left) → System Tools → POPFTP. Only one copy opens at a time.

Other apps (file manager, browser, terminal) open from the same menu and work alongside the dashboard.

The figures keep being collected in the background even while the window is closed, so today's totals are always complete.

Admin mode

Click Admin at the top of the dashboard and enter the admin password you chose when installing. An admin window opens with five tabs. It locks itself after 15 minutes without use, or click Lock. Anything that disconnects people or can't be undone asks you to confirm first.

TabWhat you can do
ServerStart, restart or stop the FTP server. Turn read-only mode on or off: clients can still browse and download but can't upload, delete or make folders (a Read-only label shows on the dashboard while it's on). Change an FTP account's password. Change the admin password.
ConnectionsSee who's connected. Disconnect a client (it can reconnect straight away) or Block it (it can't connect until unblocked). Unblock addresses, or block an address by typing it in. Blocks stay in place after a restart.
DevicesGive devices names (for example Office PC) so they're easy to recognise on the dashboard. Pick a device from the list, type a name and click Save name.
LogsRead the full FTP log, newest first, and search it by file name, address or word (LOGIN, UPLOAD, FAIL…). Reset today's totals, or clear the log completely.
SystemRe-attach the USB drive after plugging it back in, restart the background service, and restart or shut down the Pi safely.
Illustration from the PopFTP guide

The admin window, Connections tab (sample data).

Forgot the admin password? On the Pi type sudo rm /etc/ftpdash/admin.json, then run the dashboard installer again; it asks for a new one. Your settings, names and blocks are kept.

Give your devices names (optional)

The easiest way is the Devices tab in admin mode. You can also edit the names file directly. By default a client shows as Unnamed client with its address. To set names by hand, on the Pi type:

sudo nano /etc/ftpdash/names.json

Replace the contents with your devices' addresses and names, then save with CTRL+O, ENTER, CTRL+X. The dashboard picks up the change within a few seconds.

{

"192.168.1.64": "C64U",

"192.168.1.20": "Office PC"

}

The C64U's address is shown in its Wi-Fi Network Setup or Wired Network Setup screen. Give it a fixed address in your router too, so its name always matches.

Stop it opening at start-up

If you'd rather open it yourself from the menu, type this on the Pi:

rm ~/.config/autostart/ftp-server-monitor.desktop

sed -i '/ftpdash/d' ~/.config/labwc/autostart

Your folders

The script creates all of these. The C64U sees them like folders on a USB stick. / is the top level the C64U sees; on the Pi it's really /home/c64.

Suggested layout

/

├── games/

│ ├── 0-9/ titles starting with a number

│ ├── A/

│ │ ├── Archon.d64

│ │ └── Arkanoid.d64

│ ├── B/ … Z/

├── multidisk/ one folder per multi-disk game

│ └── Last Ninja 2/

│ ├── LN2 side 1.d64

│ └── LN2 side 2.d64

├── carts/ cartridge images (.crt)

├── tapes/ tape images (.tap, .t64)

├── demos/

├── music/ SID tunes (.sid)

├── utilities/ copiers, editors, GEOS, terminal programs

├── config/ C64U settings backups (.cfg)

└── upload/ files sent from the C64U (printer pages, saves)

Your collection's folders

/

├── 000 Configs/

├── 000_TeensyRom/

├── 000-ORISD/

├── 000-ORIusb/

├── 000-Unsorted/

├── 00-BBS/

├── 00-Compute/

├── 00-DEMOS/

├── 00-EXCLUSIVE/

├── 00-GAMES/

├── 00-MUSIC/

├── 00-PUBLISHERS/

├── 001-Maverick/

├── blank disks/

├── Christmas/

├── Commander64/

├── Copy/

├── CSDB/

├── favorites/

├── firmwares/

├── GameBase SD_Main/

├── GEOS Swap Disks/

├── Magazine/

├── Outrage/

├── printfiles/

├── PrintMaster/

├── Sonic/

└── Utilities/

Both sets are created side by side. Because capitals count on the Pi, utilities (suggested) and Utilities (yours) are two separate folders.

Naming tips

Capitals matter on the Pi: 00-GAMES and 00-Games would be two different folders. Copying from your PC keeps your names exactly as they are.

Spaces in names are fine for the C64U and FTP programs.

Put each multi-disk game in its own folder so you can swap disks quickly when the game asks.

Big folders such as 00-GAMES or GameBase SD_Main can hold A to Z sub-folders to keep each list short. In the File Browser, SHIFT + a letter jumps to the first entry with that letter.

New folders can be made any time from your FTP program (right-click, New folder) or from the C64U.

Troubleshooting

Some fixes below are commands typed on the Pi. To get there, open your terminal and type ssh c64admin@c64pi.local, then your c64admin password. Type exit when you’re done.

ProblemFix
scp: No such file or "cannot find" for the scriptRun cd Downloads first, and check the file is called setup-c64-ftp.sh (Windows may have added (1) to the name).
scp or ssh says it can't find c64pi.localUse the Pi's address from your router's device list instead, e.g. c64admin@192.168.1.50. Wait 5 minutes after the first power-on.
c64admin password rejectedThe password is case-sensitive and nothing shows while you type. Use the one set in Imager.
C64U or FTP program: login failedCheck the user is c64 and run cat /etc/vsftpd.userlist on the Pi; it should show c64.
Connects but folders never listPassive mode is being blocked. Run the setup script again (part 3); it rewrites the settings.
FTP program says encryption is requiredSet the connection to plain FTP (no TLS / no encryption).
Upload refused, or folders made on the Pi will not changeMake sure everything is owned by c64: sudo chown -R c64:c64 /home/c64.
Server not runningsudo systemctl restart vsftpd, then systemctl status vsftpd. Errors show in red.
The usb folder is emptyCheck the drive is plugged in and powered, then run sudo mount -a. If it shows an error, check the UUID and drive type in /etc/fstab match lsblk -f (part 6).
Can't upload to the usb folderFor ext4 drives run sudo chown -R c64:c64 /home/c64/usb. For other drives, check uid and gid in /etc/fstab match id -u c64 (part 6).
Dashboard shows "No data from the collector service"Restart the background service: sudo systemctl restart ftpdash-collector.
Dashboard didn't open at start-upOpen it from the Raspberry menu → System Tools. If the Pi stops at a login screen, run sudo raspi-config, then System Options → Boot / Auto Login → Desktop Autologin.
Installer says this Pi isn't the desktop versionThe card has Raspberry Pi OS Lite. Write the card again with Raspberry Pi OS (64-bit) (part 1), then run both scripts again.
Clients show as "Unnamed client"Name them in admin mode, Devices tab (part 7).
Admin says "No admin password is set"Run the dashboard installer again; it asks you to choose one.
Admin says actions aren't allowed for this loginRun the dashboard installer again while logged in as c64admin. It sets up the permission admin mode needs.
A device can't connect at allCheck it isn't blocked: admin mode, Connections tab, Blocked addresses.
Uploads fail but downloads workRead-only mode may be on (a Read-only label shows on the dashboard). Turn it off in admin mode, Server tab.
It worked yesterday, not todayThe Pi's address changed. Reserve its address in your router (see part 3).

Handy commands

Type on the PiWhat it does
sudo shutdown -h nowShut the Pi down safely. Wait for the green light to stop before unplugging.
sudo rebootRestart the Pi.
sudo systemctl restart ftpdash-collectorRestart the dashboard's background service.
df -hShow free space on the SD card.
ls /home/c64/00-GAMESList the files in a folder.
sudo passwd c64Change the c64 FTP password (then update it on the C64U).
sudo apt update && sudo apt full-upgrade -yInstall updates. Do this every month or so.
exitLeave the SSH session.

For the curious: what the script does

You don't need this section. It lists what setup-c64-ftp.sh does, in order, in case you want to know or ever set it up by hand.

The scriptWhy
Asks for the c64 password twiceSo a typo can't lock you out.
apt install vsftpdInstalls the FTP server program.
Creates the c64 account and sets its passwordA separate login used only for FTP.
Writes /etc/vsftpd.conf (keeps the old one as vsftpd.conf.original)No guest logins; uploads allowed; the c64 account only sees its own folder; passive mode on, which the C64U needs; only c64 may log in.
Creates all the folders in /home/c64The suggested layout plus your 28 folders.
Starts the server and sets it to start at every bootSo it's always on when the Pi is.
Shows the Pi's address and the C64U settingsSo you know exactly what to type on the C64U.

Running the script again is safe: existing folders and files are left alone, and it simply resets the c64 password and settings.

The dashboard installer

install-dashboard.shWhy
Checks the Pi is running the desktop versionThe dashboard window needs a desktop.
apt install python3-pyqt5 python3-psutilThe window toolkit and the system-figures library the dashboard is written with (Python).
Installs two programs in /opt/ftpdashcollector.py gathers the figures; dashboard.py is the window.
Creates the ftpdash-collector serviceRuns the collector in the background from start-up, every 2 seconds. It reads the FTP server's log (/var/log/vsftpd.log), current connections, storage and system figures.
Adds the menu entry and start-up entrySo the window opens at login and can be reopened from the menu.
Turns on desktop auto-loginSo the dashboard appears after a restart without typing a password at the Pi.
Asks for an admin password and stores only a scrambled (hashed) copy in /etc/ftpdash/admin.jsonThe password itself is never saved, so it can't be read back from the file.
Installs admin_helper.py and a permission rule in /etc/sudoers.d/ftpdashAdmin actions need administrator rights. The rule lets the dashboard run only this one helper, and the helper checks every request (valid address, real FTP account, and so on) before acting.
Installs nftablesThe Pi's firewall tool. Blocked addresses are stopped at the FTP ports (21 and 40000–40100); everything else on the Pi is unaffected. Blocks are reapplied at every start-up.
Creates /etc/ftpdash/names.jsonWhere you can give your devices names.

Keep this server on your home network only. FTP sends passwords without encryption. Don't forward port 21 on your router to the internet.