Showing posts with label linux. Show all posts
Showing posts with label linux. Show all posts

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>

Example:
sudo mount //192.168.1.2/files 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 https://github.com/raspberrypi/linux.git
git clone https://github.com/raspberrypi/tools.git

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
/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian/arm-linux-gnueabihf/libc/usr/include

GCC Library Path
/home/avp/rpi/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian/arm-linux-gnueabihf/libc/usr/lib/