Networking two mint 17.1 computers fail SOLVED

Quick to answer questions about finding your way around Linux Mint as a new user.
Forum rules
There are no such things as "stupid" questions. However if you think your question is a bit stupid, then this is the right place for you to post it. Stick to easy to-the-point questions that you feel people can answer fast. For long and complicated questions use the other forums in the support section.
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
Quirky757
Level 1
Level 1
Posts: 11
Joined: Sat Apr 18, 2015 7:40 am

Networking two mint 17.1 computers fail SOLVED

Post 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.
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 2 times in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
altair4
Level 20
Level 20
Posts: 11453
Joined: Tue Feb 03, 2009 10:27 am

Re: Networking two mint 17.1 computers fail

Post 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.
Please add a [SOLVED] at the end of your original subject header if your question has been answered and solved.
Quirky757
Level 1
Level 1
Posts: 11
Joined: Sat Apr 18, 2015 7:40 am

Re: Networking two mint 17.1 computers fail

Post 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.
altair4
Level 20
Level 20
Posts: 11453
Joined: Tue Feb 03, 2009 10:27 am

Re: Networking two mint 17.1 computers fail

Post 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
Please add a [SOLVED] at the end of your original subject header if your question has been answered and solved.
Quirky757
Level 1
Level 1
Posts: 11
Joined: Sat Apr 18, 2015 7:40 am

Re: Networking two mint 17.1 computers fail

Post 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?
altair4
Level 20
Level 20
Posts: 11453
Joined: Tue Feb 03, 2009 10:27 am

Re: Networking two mint 17.1 computers fail

Post 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.
Please add a [SOLVED] at the end of your original subject header if your question has been answered and solved.
Quirky757
Level 1
Level 1
Posts: 11
Joined: Sat Apr 18, 2015 7:40 am

Re: Networking two mint 17.1 computers fail

Post 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.
altair4
Level 20
Level 20
Posts: 11453
Joined: Tue Feb 03, 2009 10:27 am

Re: Networking two mint 17.1 computers fail

Post 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.
Please add a [SOLVED] at the end of your original subject header if your question has been answered and solved.
Quirky757
Level 1
Level 1
Posts: 11
Joined: Sat Apr 18, 2015 7:40 am

Re: Networking two mint 17.1 computers fail

Post 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.
altair4
Level 20
Level 20
Posts: 11453
Joined: Tue Feb 03, 2009 10:27 am

Re: Networking two mint 17.1 computers fail

Post 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.
Please add a [SOLVED] at the end of your original subject header if your question has been answered and solved.
Quirky757
Level 1
Level 1
Posts: 11
Joined: Sat Apr 18, 2015 7:40 am

Re: Networking two mint 17.1 computers fail

Post 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:
Last edited by Quirky757 on Thu Jun 18, 2015 3:51 am, edited 1 time in total.
wilbobob
Level 3
Level 3
Posts: 156
Joined: Thu Dec 15, 2011 4:30 am
Location: Leicestershire

Re: Networking two mint 17.1 computers fail

Post by wilbobob »

ifconfig in a terminal
Go Steady, but keep going
Quirky757
Level 1
Level 1
Posts: 11
Joined: Sat Apr 18, 2015 7:40 am

Re: Networking two mint 17.1 computers fail

Post 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:
altair4
Level 20
Level 20
Posts: 11453
Joined: Tue Feb 03, 2009 10:27 am

Re: Networking two mint 17.1 computers fail SOLVED

Post 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.
Please add a [SOLVED] at the end of your original subject header if your question has been answered and solved.
Quirky757
Level 1
Level 1
Posts: 11
Joined: Sat Apr 18, 2015 7:40 am

Re: Networking two mint 17.1 computers fail SOLVED

Post by Quirky757 »

Will have a look over weekend to see if i can figure out what went wrong.
altair4
Level 20
Level 20
Posts: 11453
Joined: Tue Feb 03, 2009 10:27 am

Re: Networking two mint 17.1 computers fail SOLVED

Post 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.
Please add a [SOLVED] at the end of your original subject header if your question has been answered and solved.
Locked

Return to “Beginner Questions”