Sunday, July 22, 2012

Raspberry Pi (Wheezy)

A new distribution is now available Debian-Wheezy for the Raspberry pi.
It has a startup configuration menu to make life easier to setup your RPI.

ssh problems:
But I screwed up when configuring ssh.
So after trying to get it to work, I got it running by
Uninstalling it (sudo apt-get remove openssh-server)
remove all files in /etc/ssh (where the encryption keys are stored)
Installed it again (sudo apt-get install openssh-server)

Samba Client:
Trying to connect to my samba server failed,
in filemanager smb://192.168.0.2/ gave an error 'Operation not supported'
Problem1 was that smbclient wasn't installed so (sudo apt-get install smbclient)
but problem is still there :(
Tried to reinstall cifs-utils that is used to connect to remote samba servers, but it didn't help.
I can use smbclient to connect to the samba server, but filemanager (pcmanfm) still complain when entering smb:// addresses.

Music Player:
The music player you got in Sqeezy wasn't installed as defalt so
(sudo apt-get install lxmusic) fixed that problem.


Wednesday, July 11, 2012

Raspberry Pi

I finally got my Raspberry Pi delivered.
Here are some good links I found:

 I'm using Debian Squeeze as my OS.

http://elinux.org/R-Pi_Hub where you find info about hardware and some troubleshooting tips.

Bug-fix: Root Application doesn't work: Run
gconftool-2 -\-type bool -\-set /apps/gksu/sudo-mode true
link 

Set DateTime: Run
date 07111533
This will set date to 11 July time 15:33 
or use 
sudo dpkg-reconfigure tzdata  link


Change keyboard language (I got a Swedish keyboard)
Edit /etc/default/keyboard as root
change XKBLAYOUT="gb" to your language, in my case XKBLAYOUT="se"
restart your RPI.

Enabling Sound (its default disabled in squeeze)
sudo apt-get install alsa-utils
sudo modprobe snd_bcm2835
 
enabling ssh
sudo mv /boot/boot_enable_ssh.rc /boot/boot.rc 
 
Resizing partitions on the SD card:
Take out your SD card and put in in a SD reader on a Linux machine.
Open Gparted and select the SD card, move the swap partition to the end, then
re-size the / partion to fill up the empty space.

Quicker boot time:
After booting up and logged in run:
sudo setupcon
This make a much quicker boot next time.

How to access IO pins: link

Controlling I/O s from python
http://pypi.python.org/pypi/RPi.GPIO/0.3.0a 
(works great)

MySQL to MariaDB

 Here is a good description how to migrate to MariaDb MySQL to MariaDb Example of how to dump data from MySQL port=3307: mysqldump --user=ro...