Page 1 of 1

Networking two mint 17.1 computers fail SOLVED

Posted: Wed Jun 17, 2015 5:08 am
by Quirky757
Hi, tried this - http://forums.linuxmint.com/viewtopic.p ... 7&t=185410 and it doesnt seem to work for me, help!
output of "testparm -s"
Load smb config files from /etc/samba/smb.conf
rlimit_max: increasing rlimit_max (1024) to minimum Windows limit (16384)
Processing section "[printers]"
Processing section "[print$]"
Loaded services file OK.
Server role: ROLE_STANDALONE
[global]
server string = %h server (Samba, Linux Mint)
server role = standalone server
map to guest = Bad User
obey pam restrictions = Yes
pam password change = Yes
passwd program = /usr/bin/passwd %u
passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
unix password sync = Yes
syslog = 0
log file = /var/log/samba/log.%m
max log size = 1000
dns proxy = No
usershare allow guests = Yes
panic action = /usr/share/samba/panic-action %d
idmap config * : backend = tdb

[printers]
comment = All Printers
path = /var/spool/samba
create mask = 0700
printable = Yes
print ok = Yes
browseable = No

[print$]
comment = Printer Drivers
path = /var/lib/samba/printers
output of "net usershare info --long" nothing, nada, zilch.

Re: Networking two mint 17.1 computers fail

Posted: Wed Jun 17, 2015 6:05 am
by altair4
*** Which Mint17.1? Cinnamon, MATE, XFCE, or the other one ... um ... KDE?

***
Hi, tried this - http://forums.linuxmint.com/viewtopic.p ... 7&t=185410 and it doesnt seem to work for me, help!
What didn't work. One machine can't see the other under "Network"? Or the other machine can be found but there is nothing shared?

*** You have nothing shared.

Your smb.conf file lists no share definitions and the usershare command showed no share definitions.

Depending on which 17.1 you are using there are different ways to create Samba shares.

Re: Networking two mint 17.1 computers fail

Posted: Wed Jun 17, 2015 8:10 am
by Quirky757
Hi, got Cinnamon running on both machines, pc1 can't see pc2,and vice versa, and the only folder i can see is something named print$. Know nothing of share definitions, just followed instructions from link i mentioned. This is all a bit greek to me, thanks for any assistance.

Re: Networking two mint 17.1 computers fail

Posted: Wed Jun 17, 2015 1:48 pm
by altair4
An example of how to create a samba share from Nemo - your file manager:

Open Nemo
Right click your Public folder
Select "Sharing Options"
Select all the boxes
Select "Create Share"

You just created a Samba Usershare. Now when you run this command you should get the share definition for that share:

Code: Select all

net usershare info --long

Re: Networking two mint 17.1 computers fail

Posted: Wed Jun 17, 2015 3:02 pm
by Quirky757
nope, not happening, when i click on the network icon like a plug, it tries to connect and then goes to the off position again. Is there something else i should have done?

Re: Networking two mint 17.1 computers fail

Posted: Wed Jun 17, 2015 3:14 pm
by altair4
Quirky757 wrote:Hi, got Cinnamon running on both machines, pc1 can't see pc2,and vice versa, and the only folder i can see is something named print$.
When you do whatever you did to see the print$ share you should now see the Public share.

Re: Networking two mint 17.1 computers fail

Posted: Wed Jun 17, 2015 3:26 pm
by Quirky757
Not even getting the print$ share now, it was in nemo under network, all i can see in there now is windows network.

Re: Networking two mint 17.1 computers fail

Posted: Wed Jun 17, 2015 3:46 pm
by altair4
Then you never followed the link in the very first line or your original post.

Before abandoning samba altogether try this first.

On the machine you created the Public share:

[1] Find your host name by running this command:

Code: Select all

hostname
[2] Then run this command to connect to the public share:

Code: Select all

nemo smb://your-host-name.local/public
Where your-host-name is the name you found in step [1].

[3] If successful connect to this machine from the other machine using the same hostname the same way.

Re: Networking two mint 17.1 computers fail

Posted: Wed Jun 17, 2015 5:38 pm
by Quirky757
Ok, i get-
Could not display"smb://myusername.local/public/".
Error:Failed to mount Windows share:Invalid argument
Please select another viewer and try again.

Re: Networking two mint 17.1 computers fail

Posted: Wed Jun 17, 2015 5:53 pm
by altair4
Not sure of the relationship between "your-host-name" and "myusername" is so do it by ip address instead and leave off the public since I don't really know if you created it:

Code: Select all

nemo smb://192.168.0.100
Change that ip address to the ip address of the machine you are trying to connect to.

Re: Networking two mint 17.1 computers fail

Posted: Thu Jun 18, 2015 3:04 am
by Quirky757
probably a stupid question but how do i find the ip address of the machine?

Ok,just found this article - http://www.maketecheasier.com/setting-u ... inux-mint/ and we appear to be connecting, will have a little test and let you know if it works, but looking good. This has all been very confusing for a wood butcher, but thanks for your patience with me. :roll:

Re: Networking two mint 17.1 computers fail

Posted: Thu Jun 18, 2015 3:33 am
by wilbobob
ifconfig in a terminal

Re: Networking two mint 17.1 computers fail

Posted: Thu Jun 18, 2015 4:05 am
by Quirky757
Cheers altair4 seems to work fine now, would i be right in thinking i needed to set up static ip addresses first? :oops:

Re: Networking two mint 17.1 computers fail SOLVED

Posted: Thu Jun 18, 2015 6:43 am
by altair4
It all depends.

If you can ever find out what's wrong with avahi on all your systems then static ip addresses aren't necessary in an all Linux network.

This is how you would connect:
SSH-Avahi.png
And this would be the result:
SSH-Connected.png
If you can't fix avahi then static ip addresses are required unless you connect to each other infrequently.

Re: Networking two mint 17.1 computers fail SOLVED

Posted: Fri Jun 19, 2015 3:31 pm
by Quirky757
Will have a look over weekend to see if i can figure out what went wrong.

Re: Networking two mint 17.1 computers fail SOLVED

Posted: Fri Jun 19, 2015 3:42 pm
by altair4
Take baby steps:

Let's say you have two machines and their host names are hostx and hosty:

From hostx ping hosty:

Code: Select all

ping hosty.local -c4
Don't forget the ".local" part of this since that's the magic that makes this whole thing work.

If you get no response:

** Disable the firewall - on both machines:

Code: Select all

sudo ufw disable
*** And make sure avahi is running - on both machines:

Code: Select all

sudo service avahi-daemon restart
Then try to ping it again.

Then from hosty ping hostx.