HOWTO: Samba foldersharing in Dolphin or Nautilus the smooth way

From Sabayon Wiki
Revision as of 08:23, 28 January 2012 by Maulbongo (Talk | contribs) (20120128 - fixed a codebox)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

1. make shure you have installed samba, kdenetwork-filesharing (for KDE SC) or nautilus-share (for Gnome)

2. open a terminal and become su

3. add a group called sambashare by running

<syntaxhighlight lang="'"`UNIQ--pre-00000000-QINU`"'" enclose="none"></syntaxhighlight>


4. add your user to the group sambashare <syntaxhighlight lang="'"`UNIQ--pre-00000001-QINU`"'" enclose="none"></syntaxhighlight>

5. run these three commands:

<syntaxhighlight lang="'"`UNIQ--pre-00000002-QINU`"'" enclose="none"></syntaxhighlight>


<syntaxhighlight lang="'"`UNIQ--pre-00000003-QINU`"'" enclose="none"></syntaxhighlight>


<syntaxhighlight lang="'"`UNIQ--pre-00000004-QINU`"'" enclose="none"></syntaxhighlight>


4. add these at the end of the [Global] section in /etc/samba/smb.conf

<syntaxhighlight lang="'"`UNIQ--pre-00000005-QINU`"'" enclose="none"></syntaxhighlight>


5. make sure all entries in

<syntaxhighlight lang="'"`UNIQ--pre-00000006-QINU`"'" enclose="none"></syntaxhighlight> are commented out

6. For sharing folders in you home folder, make sure that the homefolder of the user is readable to others, otherwise samba can't make the folders there accessable.

7. run <syntaxhighlight lang="'"`UNIQ--pre-00000007-QINU`"'" enclose="none"></syntaxhighlight> so the samba daemon is startet on systemstart (only if samba is not running at startup, for ubuntu or debian this should not be needed, but for Sabayon this is necessary).

8. And as some people will experience that after reboot the nmbd is not started and the shares are not shown you can add to the

<syntaxhighlight lang="'"`UNIQ--pre-00000008-QINU`"'" enclose="none"></syntaxhighlight> this <syntaxhighlight lang="'"`UNIQ--pre-00000009-QINU`"'" enclose="none"></syntaxhighlight>

and if you still get problems using this you could try it with the sleep command to enshure that nmbd really can open a socketand if you still get problems using this you could try it with the sleep command to enshure that nmbd really can open a socket

<syntaxhighlight lang="'"`UNIQ--pre-0000000A-QINU`"'" enclose="none"></syntaxhighlight>

this lets the system wait for 20 seconds and then does the restart of the samba service. You should find out what is the best time youself, for me the 20 seconds are good working.

9. And the <syntaxhighlight lang="'"`UNIQ--pre-0000000B-QINU`"'" enclose="none"></syntaxhighlight> should also be edited because the aliases are confusing smb. So I changed it from

<syntaxhighlight lang="'"`UNIQ--pre-0000000C-QINU`"'" enclose="none"></syntaxhighlight>

to

<syntaxhighlight lang="'"`UNIQ--pre-0000000D-QINU`"'" enclose="none"></syntaxhighlight>

10. finally reboot, now you can use the foldersharing by rightclicking within Dolphin or Nautilus

Perhaps this should be implemented in Sabayon as default, so the user experience gets more comfortable.

greetings

maulbongo