Choose style:

Author Topic: Samba File Browsing  (Read 1768 times)

0 Members and 1 Guest are viewing this topic.

Offline TonyBronze

  • Trusted User
  • Member
  • *****
  • Posts: 160
  • Karma: 34
  • Peppermintaholic
    • View Profile
  • Peppermint version(s): 8 & 9
Samba File Browsing
« on: June 24, 2018, 11:39:18 am »
If you use samba to browse shared folders in the file manager, they may not be there now. I think this issue mainly affects all versions of Ubuntu 18.04 following the depreciation of the smb1 protocol.

The fix I have found to work is to edit the Samba Config file.

First we need to make a copy of the file as a backup:

Code: [Select]
sudo cp /etc/samba/smb.conf /etc/samba/smb.conf_backup

then edit the smb.conf :

Code: [Select]
sudo nano /etc/samba/smb.conf

When the file opens use the down arrow on the keyboard to move the cursor to below where it says [global] and insert the following lines:

Code: [Select]
name resolve order = bcast host
client max protocol = NT1

To save and exit, press ctrl + x , then y then return

Reboot and the file shares should appear in the file manager.

If you don't want to use the terminal you can do it in the file manager.  Browse to /etc/samba then right click and select open as root

Right click on the smb.conf file and select duplicate to make a backup copy. 

Double click on the smb.conf and it should open in text editor. 

Add the two lines as above, save and exit then reboot.
......to infinity and beyond..............

Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 25497
  • Karma: 2807
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 8R, 9, and 9R
Re: Samba File Browsing
« Reply #1 on: June 24, 2018, 03:24:44 pm »
Is this just between Linux and Windows PC's ?

Because I'm having no problems browsing my NAS via smb (or nfs, but that's a whole other kettle of fish).
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec

Offline TonyBronze

  • Trusted User
  • Member
  • *****
  • Posts: 160
  • Karma: 34
  • Peppermintaholic
    • View Profile
  • Peppermint version(s): 8 & 9
Re: Samba File Browsing
« Reply #2 on: June 24, 2018, 03:46:43 pm »
You can still connect to them using the SMB URL and if you bookmark them, you can click on the bookmark and connect.  They just don't appear in the file manager when you click on Networking.

From what I have tried it affects both windows and Linux.

I believe it is something to do with the Linux file managers using smb1 protocol to connect to the network broadcast to display the shares but smb1 has been disabled in 18.04

name resolve order = bcast host I added because I noticed all the shares had disappeared today from devices running Peppermint 8 but only from devices that had been updated.   Adding that brought it back again.
« Last Edit: June 24, 2018, 04:20:50 pm by TonyBronze »
......to infinity and beyond..............

Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 25497
  • Karma: 2807
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 8R, 9, and 9R
Re: Samba File Browsing
« Reply #3 on: June 24, 2018, 03:52:54 pm »
Thanks Tony I'll give it some testing .. my NAS shares are showing up in nemo's Go > Network though  :-\

[EDIT]

I can also browser the network for Linux PC's that have something shared (if they're in the same workgroup .. which is WORKGROUP by default) <-- stuck out because they're browsable even if not in the same workgroup

[EDIT2]

Something is definitely different though, because I can't see my Beebox in PM9, but I can in PM8
« Last Edit: June 24, 2018, 04:20:30 pm by PCNetSpec »
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec

Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 25497
  • Karma: 2807
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 8R, 9, and 9R
Re: Samba File Browsing
« Reply #4 on: June 24, 2018, 04:11:11 pm »
You're absolutely correct Tony, and your fix allowed me to also browse my Beebox (Peppermint 8 ) and the Missus Windows PC.

Nice find, and thanks for the VERY handy tutorial .. MUCH appreciated :)

I'm still a a bit baffled why my other PM8 laptop was browsable before the fix .. but that is HEAVILY modified  from a PM8 default setup, so maybe I've installed sommat, or done sommat on that that fixes this :-\
« Last Edit: June 24, 2018, 04:17:43 pm by PCNetSpec »
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec

Offline spence

  • Trusted User
  • Veteran
  • *****
  • Posts: 1894
  • Karma: 187
  • peppermint user since 2010
    • View Profile
  • Peppermint version(s): Peppermint 10
Re: Samba File Browsing
« Reply #5 on: June 24, 2018, 04:16:30 pm »
Kudos @TonyBronze...  this might just give me an excuse to reinstall and give Samba another go... has always been an exercise in frustration & futility previously
spence
PeppermintOS 10 currently installed  on:
'16 Antec Aria rebuild
 '18 Asus VivoBook


Do not despair, grasshopper...
    with patience all will be revealed...
       Through pain, enlightenment will come.

Offline spence

  • Trusted User
  • Veteran
  • *****
  • Posts: 1894
  • Karma: 187
  • peppermint user since 2010
    • View Profile
  • Peppermint version(s): Peppermint 10
Re: Samba File Browsing
« Reply #6 on: May 13, 2019, 07:40:24 pm »
Thanks to this bookmarked thread, I am once again able to access the Windows Share via samba. Curiously I can no longer just scroll down and click on the Network via Nemo. While It will show me my computer and Windows Network, clicking there brings up an empty page with a spinning wheel.  In order to actually connect to the shared network, I must instead use Nemo's Connect To Server dialogue box.

One wonders why the first option wouldn't show up after successfully completing the second? Ahh well at least I can finally access the shared folders
spence
PeppermintOS 10 currently installed  on:
'16 Antec Aria rebuild
 '18 Asus VivoBook


Do not despair, grasshopper...
    with patience all will be revealed...
       Through pain, enlightenment will come.

Offline spence

  • Trusted User
  • Veteran
  • *****
  • Posts: 1894
  • Karma: 187
  • peppermint user since 2010
    • View Profile
  • Peppermint version(s): Peppermint 10
Re: Samba File Browsing
« Reply #7 on: May 13, 2019, 08:48:23 pm »
Ahhh, making a bit more sense now, once I've accessed a folder on another computer on our network, It appears in a list of folders under Nemo's Network menu.

 8)
spence
PeppermintOS 10 currently installed  on:
'16 Antec Aria rebuild
 '18 Asus VivoBook


Do not despair, grasshopper...
    with patience all will be revealed...
       Through pain, enlightenment will come.

Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 25497
  • Karma: 2807
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 8R, 9, and 9R
Re: Samba File Browsing
« Reply #8 on: May 14, 2019, 08:36:21 am »
Weird, I'm able to just browse them on mine....

Are you sure the Windows PC's workgroup is "WORKGROUP" ?
(if it's anything else we may need to make an adjustment in Peppermint's smb.conf)
« Last Edit: May 14, 2019, 08:38:16 am by PCNetSpec »
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec

Offline spence

  • Trusted User
  • Veteran
  • *****
  • Posts: 1894
  • Karma: 187
  • peppermint user since 2010
    • View Profile
  • Peppermint version(s): Peppermint 10
Re: Samba File Browsing
« Reply #9 on: May 14, 2019, 11:46:44 am »
Our work group has a different name and I've made that change in smb.conf as well as setting my two machines to be clients not servers as hubster isn't much interested in sharing onto mine as backups. This is working for my purposes, and can wait until another time.

 ;)
spence
PeppermintOS 10 currently installed  on:
'16 Antec Aria rebuild
 '18 Asus VivoBook


Do not despair, grasshopper...
    with patience all will be revealed...
       Through pain, enlightenment will come.