Saturday, September 8, 2012

Mounting to a Samba Share

Install smbfs first:
sudo apt-get install smbfs

Create a folder to be used in mounting
sudo mkdir /media/samba-share-folder

Get you current UID
id -u

Mount samba share
sudo mount <//network/share-name> <created-mount-folder> -t cifs -o user="<username>",uid=<uid determined above>

sudo mount // samba-share-folder/ -t cifs -o user="vivek",uid=1000

Preparing a cross compiler for Raspberry Pi

Clone Raspberry Pi Linux Source and Tools
git clone
git clone

Change the Makefile CC to the cross compiler
CC = arm-linux-gnueabihf-gcc

If there are any missing includes or libraries, below are the paths to add them

GCC Includes Path

GCC Library Path

Transferring file using SCP

To transfer file using SCP, use the following command:
scp <file> <user>@<ip or hostname>:<remote destination path>
avp@avp:~$ scp hello-rpi pi@

Setting up $PATH and reloading .profile

Setting up $PATH in .profile
# add PATH for rpi cross-compiler
After saving .profile, reload it using:
avp@avp:~$ source .profile