Ed. note–
With the launch of Raspberry Pirate Radio some Windows users got stuck trying to modify the pirateradio.config file and transferring the music they wanted to transmit to their Pi. No doubt there are other methods to achieve this but this one is easy and straightforward for makers of all skill levels.

If you’re setting up a Raspberry Pi with Windows, you can do a lot of amazing things. Modifying files on a multi-partitioned SD card isn’t one of them.

But it can be.

This tutorial will show you how to connect to your Raspberry Pi via SSH. It’s useful not only for transferring files, but also for sending terminal commands, making it a useful skill for tons of Pi projects.

Using SSH to send commands via SFTP with WinSCP is easier done than said, so let’s begin.


Step #1: Download and set up WinSCP

For Windows Users: Modify your Raspberry Pirate Radio with WinSCPFor Windows Users: Modify your Raspberry Pirate Radio with WinSCPFor Windows Users: Modify your Raspberry Pirate Radio with WinSCP
  • First you'll need to connect the Pi to the same network as your computer. That's your route to Raspberry brain control.
  • Download and install WinSCP - it's free and open-source. Use the Explorer-style rather than the Commander-style interface as it should be more familiar to those who are accustomed to using Windows. When you run WinSCP you should see the Login prompt (image 1, above).
  • Input the settings as in the screenshot above.
    Host name: alarmpi.local
    User name: root
    Password: root
  • You should also save the session information so you don’t have to type it in every time you want to log in. Hit the Login button and give it a moment to connect. The first time you connect to the Pi you should see a warning window. Hit yes to add the Pi’s key (example, image 2) to your computer’s cache.

Step #2: You're in! Now do stuff, like adding music

For Windows Users: Modify your Raspberry Pirate Radio with WinSCPFor Windows Users: Modify your Raspberry Pirate Radio with WinSCPFor Windows Users: Modify your Raspberry Pirate Radio with WinSCP
  • Note: your window may look slightly different based on which interface style you selected during install; this will not hinder you from continuing.
  • On the left side of the window, select “/ ” to be taken to the root directory of your Raspberry Pi’s linux partition. If you’re using the Commander-style window, this same step can be achieved by double clicking the folder icon named “..” on the right side of your window.
  • Now that you’re in the root, find and double-click the “pirateradio" folder. This is where your config file and all of your music will live. You can now drag folders from your music collection directly into this folder and watch them copy over.

Step #3: Now edit the config file and save your changes

For Windows Users: Modify your Raspberry Pirate Radio with WinSCP
  • You should also double-click “pirateradio.config” to open the config file for editing.
  • When you make any changes to smaller files (like the config file), note that the Linux operating system running on the Raspberry Pi doesn’t always write smaller files to the SD card immediately, and will instead prefer to cache it in memory. This poses a problem as you now have to force the Pi to write those changes to disc before unplugging the power.
  • To force the Pi to write the changes, click the Terminal icon (circled) and allow it a moment to reconnect to the Pi.
  • Once there, simply type “sync” and press Enter.
  • You are now safe to turn off your Pi, either by unplugging the Pi or typing in “poweroff” and pressing Enter.
  • Next time you turn on your pi, the OS will begin broadcast immediately after bootup. Enjoy.
Wynter Woods

Wynter Woods

A programmer with one too many interests. I work on all sorts of projects from hardware hacks to audio processing to things such as 3D visualization of chemical sample data. If there is a way to code it, I probably have an interest in it.

Sam Freeman

Sam Freeman

Raised in the galactic capital of Earth, Sam Freeman was destined to work for Make Labs - testing, designing, and breaking projects for MAKE.

  • Nintendo16kid .

    I burnt the SD card image, and plugged my Wifi (wlan0) USB adapter in. I then plugged the Pi into my monitor, as I need to connect to my Wifi connection. I wasn’t able to configure it, and using Ethernet wouldn’t work either, I cant access the “piraterado” partition, (Windows user). Any help would be great. (In accessing the partition)

  • Adam

    When I add files or edit them, and I dissconnect and then reconnect to the Pi, the file revert the way it was originally.

  • Jason1920

    The MAKE directions for using WinSCP aren’t quite correct, if you’re having trouble as I was. I have written a concise post on the RaspberryPi forums that will address these problems:

  • Lucian Jinga

    I bought a raspberry pi 2 last week, I tried this project over the
    weekend and failed miserably. The Pi won t boot. I formatted the card
    several times and flashed the downloaded image using the recommended software to no avail. Any Ideas?
    Thank You

    • sam. ✋ サム

      Same here, can’t manage to boot it, help will be nice :)

    • Pasqual

      Just download NOOBS lite, and copy it OVER the files on your SD..
      Now your Pi2 will boot

      • Lucian Jinga

        Thank You! I will try it, most probably fail miserably and be back with a lot of questions.

  • Firnien

    I downloaded the image, flashed it onto my SD-Card and started my Raspberry. But my PC “can’t find a host with the name ‘alarmpi.local’ ” <– this comes when I try to connect via WinSCP or Putty. Can anyone help me?

    • Ders

      Same problem here. Don’t know what to do…

    • Lottie Park

      put your ip adress instead of alarmpi.local the username should be pi and password raspberry (you shouldnt see it being typed out but its there) by default.I prefer to use fling network on your android/ios device.then in fling find your rasberry pi device and next to it there should be the ip adress

  • Mitch McCann

    the pirate.config doesn’t want to load.

  • Ders

    Tried the WinSCP. But this is all I get: Host “alarmpi.local” does not exist.

  • Hi-tech-guy-18

    Please Can we have a guide + compatible image made for the
    Raspberry Pi 2 Model B (Quad Core, 1GB RAM)