Author Topic: Public folder not so public  (Read 2467 times)

0 Members and 1 Guest are viewing this topic.

Offline Emegra

  • Hero Member
  • *****
  • Posts: 2679
  • Karma: 54
  • Gender: Male
  • Devilishly Handsome
    • View Profile
    • Awards
Re: Public folder not so public
« Reply #15 on: September 06, 2013, 09:46:28 pm »
Quote
are you running a firewall on the Peppermint PC's ?

No

Quote
Can you ping one PC from another ?

can you remind me how to make it do it only 6 times please ?

Quote
Can you access the other PC's shares by entering
smb://192.168.2.x

Yes both ways
If you can keep your head while all around are losing theirs, then you're not quite grasping the situation

Offline Emegra

  • Hero Member
  • *****
  • Posts: 2679
  • Karma: 54
  • Gender: Male
  • Devilishly Handsome
    • View Profile
    • Awards
Re: Public folder not so public
« Reply #16 on: September 06, 2013, 09:47:16 pm »
Code: [Select]
graeme@Linux1 ~ $ ps aux | grep smb
root      1190  0.0  0.2  23200  4764 ?        Ss   19:38   0:00 smbd -F
root      1224  0.0  0.0  23716  1292 ?        S    19:38   0:00 smbd -F
graeme    3343  0.0  0.3 128420  7256 ?        Sl   20:36   0:00 /usr/lib/gvfs/gvfsd-smb-browse --spawner :1.3 /org/gtk/gvfs/exec_spaw/3
root      4262  0.0  0.1  23484  3328 ?        S    21:38   0:00 smbd -F
graeme    4318  0.0  0.0   5656   836 pts/3    S+   21:41   0:00 grep --colour=auto smb
graeme@Linux1 ~ $
If you can keep your head while all around are losing theirs, then you're not quite grasping the situation

Offline Emegra

  • Hero Member
  • *****
  • Posts: 2679
  • Karma: 54
  • Gender: Male
  • Devilishly Handsome
    • View Profile
    • Awards
Re: Public folder not so public
« Reply #17 on: September 06, 2013, 09:52:18 pm »
ping -c5 I remember

yes I can ping both PC's both ways
If you can keep your head while all around are losing theirs, then you're not quite grasping the situation

Offline Mark Greaves (PCNetSpec)

  • Administrator
  • Hero Member
  • *****
  • Posts: 13988
  • Karma: 347
  • Gender: Male
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
    • Awards
Re: Public folder not so public
« Reply #18 on: September 06, 2013, 09:55:43 pm »
Quote
can you remind me how to make it do it only 6 times please ?

you'd use the -c 6 option, as in:
ping -c 6 192.168.2.x

But that's not important now, it seems it's a DNS (hostname resolution) issue.

Can you post the contents of
Code: [Select]
gedit /etc/nsswitch.conf
from both machines

What is the hostname for both PC's

here's my command line-
mark@AA1-Blue ~ $

so this PC's hostname is AA1-Bule
if that helps

or you can run:
Code: [Select]
hostname
WARNING: You are logged into reality as 'root'

logging in as 'insane' is the only safe option.

Offline Emegra

  • Hero Member
  • *****
  • Posts: 2679
  • Karma: 54
  • Gender: Male
  • Devilishly Handsome
    • View Profile
    • Awards
Re: Public folder not so public
« Reply #19 on: September 06, 2013, 10:02:01 pm »
From the Peppermint PC

Code: [Select]
# /etc/nsswitch.conf
#
# Example configuration of GNU Name Service Switch functionality.
# If you have the `glibc-doc-reference' and `info' packages installed, try:
# `info libc "Name Service Switch"' for information about this file.

passwd:         compat
group:          compat
shadow:         compat

hosts:          files dns
networks:       files

protocols:      db files
services:       db files
ethers:         db files
rpc:            db files

netgroup:       nis

What is the hostname for both PC's

Linux1 (PM4) 192.168.2.2 & Linux2 (Linux Lite) 192.168.2.3

I'll log in with Linux2 and post the command in my next post
If you can keep your head while all around are losing theirs, then you're not quite grasping the situation

Offline Emegra

  • Hero Member
  • *****
  • Posts: 2679
  • Karma: 54
  • Gender: Male
  • Devilishly Handsome
    • View Profile
    • Awards
Re: Public folder not so public
« Reply #20 on: September 06, 2013, 10:06:53 pm »
Linux2

# /etc/nsswitch.conf
#
# Example configuration of GNU Name Service Switch functionality.
# If you have the `glibc-doc-reference' and `info' packages installed, try:
# `info libc "Name Service Switch"' for information about this file.

passwd:         compat
group:          compat
shadow:         compat

hosts:          files mdns4_minimal [NOTFOUND=return] dns mdns4
networks:       files

protocols:      db files
services:       db files
ethers:         db files
rpc:            db files

netgroup:       nis


If you can keep your head while all around are losing theirs, then you're not quite grasping the situation

Offline Emegra

  • Hero Member
  • *****
  • Posts: 2679
  • Karma: 54
  • Gender: Male
  • Devilishly Handsome
    • View Profile
    • Awards
Re: Public folder not so public
« Reply #21 on: September 06, 2013, 10:13:44 pm »
Not sure if this means anything but if this as a DNS issue I'm using opendns but I'm unable to specify that in my router (Superhub)
If you can keep your head while all around are losing theirs, then you're not quite grasping the situation

Offline Mark Greaves (PCNetSpec)

  • Administrator
  • Hero Member
  • *****
  • Posts: 13988
  • Karma: 347
  • Gender: Male
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
    • Awards
Re: Public folder not so public
« Reply #22 on: September 06, 2013, 10:16:44 pm »
I think the problem is related to an issue I saw before on BkS's network where his Virgin Superhub didn't seem to be acting as a DNS server for the local network, so network discovery wasn't possible.

it is however easy enough to enter:
smb://192.168.2.x
in the pcmanfm address bar, then bookmark the folder.

Have you got both PC's using the superhubs IP as the DNS server for the IPv4 connections in NetworkManager ?
(and preferably set IPv6 to "Ignore")
WARNING: You are logged into reality as 'root'

logging in as 'insane' is the only safe option.

Offline Mark Greaves (PCNetSpec)

  • Administrator
  • Hero Member
  • *****
  • Posts: 13988
  • Karma: 347
  • Gender: Male
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
    • Awards
Re: Public folder not so public
« Reply #23 on: September 06, 2013, 10:18:31 pm »
Quote
Not sure if this means anything but if this as a DNS issue I'm using opendns but I'm unable to specify that in my router (Superhub)

YES that's probably the problem, if you've set the opendns server in NetworkManager, openDNS can't resolve your LOCAL hostnames.
WARNING: You are logged into reality as 'root'

logging in as 'insane' is the only safe option.

Offline Emegra

  • Hero Member
  • *****
  • Posts: 2679
  • Karma: 54
  • Gender: Male
  • Devilishly Handsome
    • View Profile
    • Awards
Re: Public folder not so public
« Reply #24 on: September 06, 2013, 10:21:11 pm »
Quote
it is however easy enough to enter:
smb://192.168.2.x

That seems easy enough I'll just do that

Quote
Have you got both PC's using the superhubs IP as the DNS server for the IPv4 connections in NetworkManager ?
(and preferably set IPv6 to "Ignore")

No I have them set to opendns  208.67.222.222 & 208.67.220.220 I felt I had a faster connection that way but it may have been imaginary

IPv6 is set to ignore on both PC's
If you can keep your head while all around are losing theirs, then you're not quite grasping the situation

Offline Emegra

  • Hero Member
  • *****
  • Posts: 2679
  • Karma: 54
  • Gender: Male
  • Devilishly Handsome
    • View Profile
    • Awards
Re: Public folder not so public
« Reply #25 on: September 06, 2013, 10:22:51 pm »
Quote
YES that's probably the problem, if you've set the opendns server in NetworkManager, openDNS can't resolve your LOCAL hostnames.

Ok should i set it back to router IP ?
If you can keep your head while all around are losing theirs, then you're not quite grasping the situation

Offline Mark Greaves (PCNetSpec)

  • Administrator
  • Hero Member
  • *****
  • Posts: 13988
  • Karma: 347
  • Gender: Male
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
    • Awards
Re: Public folder not so public
« Reply #26 on: September 06, 2013, 10:28:31 pm »
Give it a whirl :) .. you can always change it back .. you may have to reboot the PC's after the change before local network discovery works
WARNING: You are logged into reality as 'root'

logging in as 'insane' is the only safe option.

Offline SeZo

  • Hero Member
  • *****
  • Posts: 1524
  • Karma: 120
  • Gender: Male
    • View Profile
    • Awards
Re: Public folder not so public
« Reply #27 on: September 06, 2013, 10:41:06 pm »
As you are using static IP addresses, you could help out by adding the entry into your /etc/hosts file
on Linux2
192.168.2.2 Linux1
and on Linux1:
192.168.2.3 Linux2

Offline Mark Greaves (PCNetSpec)

  • Administrator
  • Hero Member
  • *****
  • Posts: 13988
  • Karma: 347
  • Gender: Male
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
    • Awards
Re: Public folder not so public
« Reply #28 on: September 06, 2013, 10:53:02 pm »
That would help in using hostnames instead of IP's but I doubt if it will help with network discovery
WARNING: You are logged into reality as 'root'

logging in as 'insane' is the only safe option.

Offline Emegra

  • Hero Member
  • *****
  • Posts: 2679
  • Karma: 54
  • Gender: Male
  • Devilishly Handsome
    • View Profile
    • Awards
Re: Public folder not so public
« Reply #29 on: September 06, 2013, 10:56:44 pm »
OK i reverted back to router IP and rebooted although that sorted the local network discovery issue it was painfully slow and lost internet connection on both PC's, so I've put them both back to opendns and the internet is fine again


Quote
As you are using static IP addresses, you could help out by adding the entry into your /etc/hosts file
on Linux2
192.168.2.2 Linux1
and on Linux1:
192.168.2.3 Linux2

Ok I'll give that a try and let you know how it goes but I've had enough for tonight guys


Thanks for your help so far it's much appreciated



Graeme
« Last Edit: September 06, 2013, 10:59:03 pm by Emegra »
If you can keep your head while all around are losing theirs, then you're not quite grasping the situation

 


SimplePortal 2.3.3 © 2008-2010, SimplePortal