Thursday, 5 September 2013

Setup Git server on Raspberry Pi

Install required packages by typing:
sudo apt-get install git git-core

add a user git:
sudo adduser --system --shell /bin/bash --gecos 'git version control user' --group --home /home/git git

set the password for the new user
sudo passwd git

in git home folder create the git directory
mkdir myrepo.git

alternatively place the git repository somewhere else and make a symlink to it. Just ensure that the git user is the owner of the directory.
chown -R git:git myrepo.git

cd into the myrepo.git folder and initialize it by typing:
git --bare init

On the client, use the following URL to access the git repository:

Setup USB sound card on Raspberry Pi

sudo nano /etc/modprobe.d/alsa-base.conf

at the end, add the following line to prevent a lot of debugging information to be written to the syslog file.

options snd-usb-audio nrpacks=1

Volume can be changed by typing: alsamixer

Sometimes it seems people is having problems getting the volume and other settings saved. If having troubles try running alsamixer as root and after exit type:
sudo alsactl store

Then reboot.

Sunday, 1 September 2013

Installing Minidlna on Raspberry Pi

sudo apt-get install minidlna

sudo nano /etc/minidlna.conf

Find the following line:

Comment this line out and replace/add the following lines instead:

To start Minidlna at boot type:
sudo update-rc.d minidlna defaults

To disable start at boot type:
sudo update-rc.d -f minidlna remove

Then start the Minidlna server without rebooting by typing:
sudo service minidlna start

If it becomes necessary to do a full database rebuild type:
sudo service minidlna force-reload