Some Useful Commands for Raspbian on Raspberry Pi
Introduction
I bought a Raspberry Pi a couple of months ago and have been setting up Kodi, EmulationStation and more. If you are new to Raspberry Pi and especially the Raspbian distro, then some of the commands will be useful as you get started with Linux.
APT Commands
From your terminal, enter the following to make sure you are always working with the latest apt package :
You will be using this to install all sorts of things.
Install Kodi (XBMC)
Kodi is basically Xbox Media Center. You want this if you plan on playing music, video, etc :
Get your IP Address
From your terminal, enter the following :
You should see your IP address now. You will need this to SSH, FTP and so forth.
Mount a Drive (USB External)
From your terminal, enter the following :
You’ll need to know what the drive is called to mount it.
You’re looking for a partition that should look something like: /dev/sda1. Write that down.
Create a new directory if one is not already there in /media so you can mount the drive onto the filesystem:
Mount the drive
If the drive is formatted in NTFS, install the following drivers then mount it:
When you’re done:
SSH into your Pi
From your terminal, enter the following :
where
FTP into your Pi
From your terminal, enter the following first to install the daemon :
Now you can open a connection in the terminal by using,
This open the connection and changes to a directory on the pie, then your local file system and puts a file in it.
Install RetroPie
Run these commands to install RetroPie, this will allow you to emulate various consoles, etc.
Take Option 1 during the setup process and exit out when it is finished. You can now place your ROMS in this directory.
You can now connect a joypad and run :
to start playing your games.
Wrap-up
This is kind of a brain-dump of commands that I needed when I first got started. I’m sure I’ll be coming back to it at some point and hopefully you found it useful.
Leave a Comment