Choose style:

Author Topic: Samba File Browsing  (Read 858 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: 22943
  • Karma: 2561
  • "-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: 22943
  • Karma: 2561
  • "-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: 22943
  • Karma: 2561
  • "-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: 1510
  • Karma: 154
  • peppermint user since 2010
    • View Profile
  • Peppermint version(s): Peppermint 9 Respin
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 9 installed  on:
'05 Compaq Presario M200
'11 Toshiba Satellite L775D
'16 Antec Aria rebuild


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