Setting up The Raspberry Pi
Raspberry
Pi First
thing first, make sure you are using tested peripherals
http://elinux.org/RPi_VerifiedPeripheralsGetting
everything working on the Debian “squeeze” image
debian6-19-04-2012.zipTo
use an image file, you
will need to unzip it and write it to a suitable SD card using the
UNIX tool dd.
Windows users should use Win32DiskImager.
Do not try to drag and drop or otherwise copy over the image without
using dd or Win32DiskImager – it won’t work. If
you’re still not clear on what to do, the community on the
Raspberry Pi Wiki has written a guide
for beginners on how to set up your SD card. Minimum size 2GB, if
bigger than 2GB watch this http://www.youtube.com/watch?v=DztSRaFyaVEon
how to resize the image to use all of the sd card.
login
piPassword
raspberryFirst
change your password
Type
passwd
, then when
it asks for current password type raspberry
and
hit enter (you wont see any text or * on screen when typing the
password).Now
enter your new password, hit enter, next re-enter your password to confirm
and hit enter.
All
the flowing commands work like this: command
followed
by hitting enter, each new line is a new command.
How
to get ssh working
sudo
bashssh-keygen
-t rsasudo
mv /boot/boot_enable_ssh.rc /boot/boot.rcifconfig
-a
(to get your Raspberry
pi's
ip
address)If that didn't work try this: sudo /etc/init.d/ssh start
Now
you can shh into your Raspberry
pi
from
any other computer on the same network. In Ubuntu its as simple as
opening terminal and typing ssh username@yourip, press enter and then
enter your password. Now you can cut and paste commands to save time
typing.
If
you want to know more about ssh Hak5 are doing some really good
videos all about ssh and proxies starting with episode 1108 season 11
Hak5 1108 – Hak5
Special: Proxies – Part 1
Updating
Everything
sudo
apt-get updatesudo
apt-get install ca-certificatessudo
wget http://goo.gl/1BOfJ -O /usr/bin/rpi-update
sudo chmod +x
/usr/bin/rpi-updatesudo
apt-get install git-coresudo
rpi-updatesudo
shutdown -r nowSetting
up VNChttp://myraspberrypiexperience.blogspot.co.uk/p/setting-up-vnc.htmlHow
to mount usb flash drives
http://raspi.tv/2012/mount-a-usb-flash-drive-on-raspberry-piHow
to get Quake III running
http://myraspberrypiexperience.blogspot.co.uk/p/quake3.html
Getting
sound working (I
don't think this fixes sound in Quake III but it works for mp3s,
videos etc)
Sound
is disabled by default because the ALSA sound driver is still "alpha"
(not fully tested) on the R-Pi. To try out sound, from the command
prompt
sudo apt-get install alsa-utils sudo modprobe snd_bcm2835
sudo aplay /usr/share/sounds/alsa/Front_Center.wav
By
default output will be automatic (hdmi if hdmi supports audio,
otherwise analogue). You can force it with:
sudo amixer cset numid=3 <n>
where
n is 0=auto, 1=headphones, 2=hdmi.
If you are running Debian, try
cd /opt/vc/src/hello_pi/hello_audio make ./hello_audio.binto test analogue output. And
./hello_audio.bin 1
http://elinux.org/R-Pi_Troubleshooting#Sound_does_not_work_at_all.2C_or_in_some_applications
Fixing
screen resolution problems
Big
black borders around small image on HD monitors
Out
of the box, R-Pi graphics don't necessarily fill the 1080p (ie Full
HD) screen. This is due to something called "Underscan",
and it can be fixed easily.
Edit the configuration file, see the instructions at R-Pi_ConfigurationFile.
(use
sudo
nano /boot/config.txt nano is a command line text editor)Add the following lines to the configuration file...
If your display has no overscan:
disable_overscan=1 CTRL o flowed by enter to save then CTRL x to exit nanoor if your display has some overscan:
overscan_left=-20 overscan_right=-20 overscan_top=-20 overscan_bottom=-20 CTRL o followed by enter to save then CTRL x to exit nano
Making
the R-Pi graphics fill the screen is a matter of experimenting with
the numbers you put in the config.txt file. Change the numbers –
try jumps of 5 or 10 at a time. Bigger negative numbers reduce the
black borders (so -40 means less black border than -20). The numbers
do not all have to be the same; you can use this feature to centre
the display on the screen.
Playing video You
can install omxplayer a GPU enabled command line video playerwget http://seyrsnys.myzen.co.uk/rpi/omxplayer_0.0.1-arm.deb
sudo
dpkg -i omxplayer_0.0.1-arm.deb
sudo apt-get -f installTo
play a video
cd
/the dicectory your video is in
omxplayer
-o hdmi yourvideofile.mp4if
no sound
try
omxplayer
yourvideofile.mp4video
controls
P
Pause, Q quite.
Left, right and down arrows, back, forward
restart
setting up wifi
I used a GSKY LINK Model:GS-27USB
When I type lsusb it is reported as
ID 0bda:8187 Realtek Semiconductor Corp. RTL8187 Wireless Adapter
It only works when plugged into a powered usb hub, for this I am using a LOGIK model:LP4HUB10
To get it working install wicd like this sudo apt-get install wicd
Then startx, go to internet in the menu and run wicd, it will scan for networks and when you see your network click on properties and put in your wifi password, type of encryption used and ssid if it is a hidden network.
There are lots of different wifi cards on the market so look on the raspberry pi Forum http://www.raspberrypi.org/phpBB3/ for help setting up other wifi cards.
I hope this helps people get the most out of their raspberry pi. I will post more hows to for the raspberry pi as I learn more, please comment and tell me what you are doing with your raspberry pis.

Comments
Post a Comment