Today was my first real chance to mess around with my pi and I thought I'd share a few hints, for those who have not discovered or don't want to search like I did. This is on the wheezy distro, mostly in terminal. Sources are magpi and RPi Forums.
(1) update repos.
Code:
sudo apt-get update
(2) If you do not have sound:
Code:
sudo modprobe snd_bcm2835
# For HDMI sound:
sudo amixer cset numid=3 2
# For 3.5mm jack sound:
sudo amixer cset numid=3 1
(3) Now, lets get mpg123 to play MP3s and vlc for movies
Code:
sudo apt-get install mpg123
sudo apt-get vlc
(4) VLC can have a sound problem, so we will fix this by creating a /etc/asound.conf file
Code:
sudo nano /etc/asound.conf
# Contents of this file will be:
pcm.!default {
type hw
card 0
}
ctl.!default {
type hw
card 0
}
Then, Ctrl-O (write) and enter for filename. Then, Ctrl-X (exit).
(5) If you need to change to static IP:
Code:
sudo nano /etc/network/interfaces
#change file, commenting out original setting, as:
#iface eth0 inet dhcp
iface eth0 inet static
address 192.168.1.3
netmask 255.255.255.0
gateway 192.168.1.1
Then, Ctrl-O (write) and enter for filename. Then, Ctrl-X (exit).
to change to static NOW:
Code:
sudo /etc/init.d network stop
sudo /etc/init.d network start
(6) Let's install vnc
Code:
sudo apt-get install tightvncserver
sudo nano /etc/profile
# at the end of this file:
vncserver
sudo chown root /tmp/.X11-unix
sudo chgrp root /tmp/.X11-unix
(7) If, like me, you are on a mac, you may want to keep your external HDs as HFS+ but pi doesn't like that so, for read access:
Code:
sudo apt-get hfsplus
sudo apt-get hfsutils
sudo apt-get hfsprogs
To mount an HFS volume:
Code:
cd /media/
mkdir hfsvol
mount -t hfsplus /dev/sda2 hfsvol
where sda2 is the logical volume address. Could be sdb, sdc etc and could be 3,4,5 etc.
Restarts are required at times if things don't work out as expected.
Bookmarks