Today I Learned - Rocky Kev

TIL How to connect to your Raspberry pi (home network)

POSTED ON:

TAGS:

Raspberry Pis are interesting. I never know what to do with them except for play classic video games or build adblocking tools.

What happens when you need to modify files?
For example:

In order to modify the content on your Raspberry Pi, you can:

  1. Pull out the MicroSD card, move it to your computer, and upload your files

  2. Upload them via SSH or using a FTP client like FileZilla

The first method is fine. But it gets super annoying if you have to do it multiple times.

The second method, you can do from any computer.

How to do it:

First, you need to find your Raspberry Pi's IP address:

On Windows:
arp -a

on Linux:
nmap

Using that command will help you find what devices are connected on your network.

How it looks on Windows:

For example, Pi-hole has a admin portal that I can access. So I can dial right into it.

To Connect into Pi-hole

ssh pi@192.168.x.xxx

password is raspberrypi or raspberry (depending on the version)

How to connect to your Raspberry pi

Pi Hole

To Update Pi Hole:
if it's a pi-hole, pihole -up (https://discourse.pi-hole.net/t/how-do-i-update-pi-hole/249)

if it's a retro thing.
https://retropie.org.uk/docs/Transferring-Roms/

Protocol: SFTP
IP address: To find the IP address of your RetroPie, go into RetroPie options from the main menu, and select the last option Show IP address. You can also find this information from the terminal on retropie in the bash info or with the command ifconfig
Username: pi (default)
Password: raspberry (default)

Simply drop the files in the ~/RetroPie/roms/$CONSOLE folder, where $CONSOLE is the name of the target console, e.g. snes or arcade.


Related TILs

Tagged:

TIL about Tmux and persistent terminals

Tmux lets you start a terminal session and then open multiple windows inside that session. Tmux sessions are persistent, which means that programs running in Tmux will continue to run even if you get disconnected.

TIL how to force-quit in Linux Terminal

I was goofing off with my raspberry pi and broke something. Then I used ps, and then kill -9 12345 to kill that app.

TIL How to set up Archi Steam Farm on Raspberry Pi

Archi Steam Farm and a tampermonkey script can auto-farm steam cards then sell them.