Difference between revisions of "Raspberry Pi"

From Robert-Depot
Jump to: navigation, search
(FM Transmitter)
(FM Transmitter)
Line 63: Line 63:
 
=Software=
 
=Software=
 
==FM Transmitter==
 
==FM Transmitter==
*FM transmitter with python code - http://www.icrobotics.co.uk/wiki/index.php/Turning_the_Raspberry_Pi_Into_an_FM_Transmitter
+
*FM transmitter with python code - http://www.icrobotics.co.uk/wiki/index.php/Turning_the_Raspberry_Pi_Into_an_FM_Transmitter, [https://www.google.com/url?sa=t&rct=j&q=&esrc=s&source=web&cd=1&cad=rja&ved=0CDYQIDAA&url=http%3A%2F%2Fwebcache.googleusercontent.com%2Fsearch%3Fq%3Dcache%3A2sSuOAJQhN4J%3Awww.icrobotics.co.uk%2Fwiki%2Findex.php%2FTurning_the_Raspberry_Pi_Into_an_FM_Transmitter%2B%26cd%3D1%26hl%3Den%26ct%3Dclnk%26gl%3Dus&ei=hRNoUdL8BOjNiwKcyoHQDQ&usg=AFQjCNGyc_GeDwSk8vkDfCza2kXyzizQQg&sig2=KDBObi8f6eNfyZo8TMYJOg&bvm=bv.45175338,d.cGE cached]
 
**this works!!
 
**this works!!
 
*get file with wget:
 
*get file with wget:
Line 69: Line 69:
 
*unzip the file:
 
*unzip the file:
 
**<code>tar -xvzf Pifm.tar.gz </code>
 
**<code>tar -xvzf Pifm.tar.gz </code>
*Where did it put the file?  
+
*What files were created extracted, and where did it put them?  
 
**<code>ls -la</code>
 
**<code>ls -la</code>
*Make a Pifm folder and move the files in. Or alternately, unzip the files into the folder.
+
*Make a '''radio''' folder and move the files in.
**<code>mkdir pifm</code>
+
**<code>mkdir radio</code>
**<code>tar -xzvf Pifm.tar.gz pifm</code>
+
**<code>mv pifm.* radio</code>
  
 
==gphoto2==
 
==gphoto2==

Revision as of 07:00, 12 April 2013

<<< back to Wiki Home

Setup

Install OS on SD card

configuration

apt-get not connecting

  • add DNS server. see here:

http://www.raspberrypi.org/phpBB3/viewtopic.php?f=63&t=17016

vim instead of vi

vim instead of vi so arrow keys work:

  • sudo apt-get update
  • sudo apt-get -y install vim

bash configuration

  • edit .bashrc:
    • uncomment ll and la

add a user account

while logged in as PI user:

  • sudo adduser MyUser
  • sudo adduser MyUser sudo

now it is time to test out your new account.

  • logout as pi:
    • logout
  • at the login prompt, login as your username created above.
  • CONGRATS!
  • time to shut down your system:
    • sudo poweroff type in your password. the system will shut down.

add audio for non-default user

getting audio to work for a non-default user:

  1. sudo usermod -a -G adm,dialout,cdrom,sudo,audio,video,plugdev,games,users,netdev,input rtwomey
  2. logout, then login

SSH Login

ssh login:

  • should work by default. you just need to know the IP address.
  • Connecting to a local mac with internet sharing on, it's probably 192.168.2.3, or 192.168.2.2.
  • Store your public key on the remote system, so you aren't prompted for password:

http://www.linuxproblem.org/art_9.html

not resolving IP addresses

  • sudo vi /etc/resolv.conf
  • add the line nameserver 8.8.8.8
    • this is the google nameserver.

vnc remote

overclocking

scp

  • to copy photos to my current computer, over ethernet cable:
    • scp rtwomey@192.168.2.3:~/images/*.jpg ~/Pictures/
  • if you've stored your ssh public key, you won't be prompted for password!

Software

FM Transmitter

gphoto2

  • installing:
    • sudo apt-get install gphoto2
  • take a photo:
    • gphoto2 --capture-image-and-download
  • after taking a photo it's necessary to reset the USB port. use usbreset util.
    • usbreset /dev/bus/usb/001/004
    • put your /dev/bus/usb device as the second argument above. you can find it from --list-ports.
  • list cameras:
    • gphoto2 --list-ports
  • control and capture of DSLR http://skowron.biz/artikel/gphoto-raspberry/

usbreset

festival

pocketsphinx

megahal

  • try it -

supercollider

nltk

OpenCV

hd video playback

Hardware Peripherals

Verified Peripherals - http://elinux.org/RPi_VerifiedPeripherals

Pi Foundation Camera Module

C-Media USB sound device

C920

microline 320 printer

installing

  • install cups
    • sudo apt-get install cups
    • will take a little while
  • install menu item:
    • sudo apt-get install system-config-printers
  • reboot
  • add printer
    • start ltxde:
      • startx
    • Select Menu->Preferences->Printing
    • Printer should autodetect. Or you can enter the URI manually: parallel:/dev/usblp0
    • Change model to Generic, type Raw. This will pass raw data to printer.
  • http://ubuntuforums.org/showthread.php?t=1436079&page=2

command line

untested

Problems

Uses