One thing that's been driving me crazy was how cumbersome it is to mount network shares on my Raspberry PI. For OSX I need to use:
Code: Select all
mount_afp
Code: Select all
mount
Code: Select all
/etc/fstab
So I set out to create a C application to mount either a OSX or Windows share and hide the password. I did this for 2 reasons, one, to find a solution to this problem and two, I wanted to learn C.
The C application works like so. Create a config file e.g. mMovies.cfg:
Code: Select all
type=mac
ip=192.168.1.7/Movies
folder=/home/pi/myshare
username=johndoe
Code: Select all
./sm mMovies.cfg
if anyone is interested, here is the source code and wiki. Your feed back is appreciated
https://github.com/PhillyNJ/Sharemounter