Changes

From Amahi Wiki
Jump to: navigation, search
m
Added headings g/c it looked like the lower section wasn't required for ubuntu since it seemed like it was only under Fedora heading...
Mounting your Samba shares locally is useful when you are using Greyhole, and want to write or in any way work with those files locally. Greyhole data should only be accessed through shares, so mounting those shares locally is an easy way to work with Greyhole data safely.
 
== Download and Setup ==
* As '''root:''' Install the mount_shares_locally initd script:
<u>=== On Ubuntu</u>===
<div style="border: 1px solid #A3B1BF; padding: .5em 1em; color: #000; background-color: #E6F2FF; margin: 3px 3px 1em 3px; overflow: scroll">
sudo apt-get install cifs-utils curl
</div>
 <u>=== On Fedora</u>===
<div style="border: 1px solid #A3B1BF; padding: .5em 1em; color: #000; background-color: #E6F2FF; margin: 3px 3px 1em 3px; overflow: scroll">
curl -o /etc/init.d/mount_shares_locally http://dl.dropbox.com/u/3022105/Amahi/mount_shares_locally
</div>
== Configuration ==
* Edit /etc/init.d/mount_shares_locally (as user root) in a text editor, and replace ''your_username'' (on line 12) with your username. Example '''username="amahi"'''
*To test your new mounts, you can execute '''service mount_shares_locally start'''<br/>
You will find the mounted shares in ''/mnt/samba/*''<br/>
'''service mount_shares_locally stop''' will unmount the local shares.<br/>
'''NOTE:''' If you used /etc/rc.local and /etc/fstab to mount shares locally in the past, you can remove what you added in those files now (<u>DO NOT</u> remove the drive mount lines). The above initd script replaces all this.
 
== Where everything is mounted ==
You will find the mounted shares in ''/mnt/samba/*''<br/>