Find all your DIY electronics in the MakerShed. 3D Printing, Kits, Arduino, Raspberry Pi, Books & more!

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.

Steps

Step #1: Download and set up WinSCP

PrevNext
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

PrevNext
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

PrevNext
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

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.


blog comments powered by Disqus

Featured Products from the MakerShed