James Peret's blog. Built with Jekyll and the Mikey theme.

2015-06-27-raspberry-pi-getting-started.markdown 3.5KB


layout: post title: "Raspberry Pi Getting Started Guide" date: 2015-06-27 22:31:00 last_modified_at: 2015-08-02T19:05:00-03:00 excerpt: "A how to guide to setting up Atom Editor" categories: software tags: tutorial image: feature: raspberry-pi.jpg topPosition: 0px bgContrast: dark bgGradientOpacity: darker syntaxHighlighter: yes

published: false

Creating the Raspbian boot disk

To create a disk image of the Raspbian OS on a micro SD card from a mac, follow instructions here.

First Boot

The username and password for Raspbian “squeeze” are:

$ Username: Pi

$ Password: raspberry

To start the Raspbian GUI, run the command:

$ startx

Setting up Wi-Fi

http://www.howtogeek.com/167425/how-to-setup-wi-fi-on-your-raspberry-pi-via-the-command-line/

Installing Apps

sudo apt-get update

This will update the repository on the raspberry pi with locations of software and general software updates.

To search for software by name type the following command

sudo apt-cache search

Example: sudo apt-cache search chromium

To install software by name

sudo apt-get install

Example: sudo apt-get install chromium

To uninstall software

sudo apt-get remove

Example: sudo apt-get remove chromium

Setting up SSH

To find out the ip address of the raspberry pi, run hostname -I.

http://www.howtogeek.com/141157/how-to-configure-your-raspberry-pi-for-remote-shell-desktop-and-file-transfer/all/

Setting up VNC

http://www.howtogeek.com/141157/how-to-configure-your-raspberry-pi-for-remote-shell-desktop-and-file-transfer/all/

x11vnc

apt-get install x11vnc

x11vnc -display :0 -noxdamage -ncache 10 -ncache_cr

Playing Videos with VLC media Player

To start a video, use the command the following command. The vvv is for verbose mode.

More information on VLC command line interface here and more advanced commands here.

vlc -vvv my_file.mpg

To play a video with VLC thru a ssh session, use the command:

cvlc --quiet --fullscreen --no-osd --loop playlist.xspf --x11-display :0

Useful commands

  • Shutdown - sudo shutdown -h now or sudo halt (more info)
  • Reboot - sudo shutdown -r now or sudo reboot (more info)
  • Copy files using ssh - (more info )
    • To copy a file from B to A while logged into B: scp /path/to/file username@a:/path/to/destination.
    • To copy a file from B to A while logged into A: scp username@b:/path/to/file /path/to/destination

Other Tools

  • termflix - Stream torrent movies to vlc thru the command line