Homenetwork problem

Connection sharing, Firewall, Samba..etc
Forum rules
Before you post please read this

Homenetwork problem

Postby nomko on Sat Dec 29, 2012 3:58 pm

Hi everybody!

This is the situation:

1 desktop system running Mint 13 + MATE
1 desktop system running Mint 14 + Cinnamon 1.6

The desktop running Mint 13+MATE has been called A as network-groupname. How can i set this name A for Mint 14 as well???
The desktop running Mint 13+MATE has some folders shared. How do i do this on Mint 14??

Basically, how can i access the Mint13 system from Mint 14 and counterwise??
MSI GE70-2PE*Quad core Intel Core i7-4710HQ*Kingston 16 GB RAM*Intel 4th Gen. Integr. GPU/NVidia GeForce GTX860M*Qualcomm Atheros Killer E2200/Intel Wireless 3160*Sitecom X5-N600 Router (WLR-5100)

Visit my website:
My personal website
User avatar
nomko
Level 9
Level 9
 
Posts: 2917
Joined: Sat Feb 25, 2012 7:28 pm
Location: The Hague, The Netherlands

Linux Mint is funded by ads and donations.
 

Re: Homenetwork problem

Postby altair4 on Sat Dec 29, 2012 4:35 pm

The desktop running Mint 13+MATE has been called A as network-groupname. How can i set this name A for Mint 14 as well???

Do you mean Workgroup? It really doesn't matter if they are in different workgroups as long as you are in the same subnet but if you want to change it:
Code: Select all
gksu gedit /etc/samba/smb.conf

Look for this section and change the name to anything you want:
#======================= Global Settings =======================

[global]

## Browsing/Identification ###

# Change this to the workgroup/NT-domain name your Samba server will part of
workgroup = WORKGROUP

Then restart samba:
Code: Select all
sudo service smbd restart

The desktop running Mint 13+MATE has some folders shared. How do i do this on Mint 14??

Depends on how complicated you want to make your shares. The easy way:
Open Nemo
Right Click a folder you own.
Select Sharing Options
Check on some boxes.
Select Create Share
If it asks you if you want to modify permissions - say yes.

You have just created a Samba Usershare.

Run the following command from either or both machines and see if it lists all your shares or gives you an error:
Code: Select all
smbtree


If you run into any problems the output of the following commands will help those trying to help you:
Code: Select all
testparm -s

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

Re: Homenetwork problem

Postby nomko on Sat Dec 29, 2012 5:11 pm

Okay altair4, i'll try this!
Problem is that neither system can't see eachother and i think it has to do with the WORKGROUP naming.
MSI GE70-2PE*Quad core Intel Core i7-4710HQ*Kingston 16 GB RAM*Intel 4th Gen. Integr. GPU/NVidia GeForce GTX860M*Qualcomm Atheros Killer E2200/Intel Wireless 3160*Sitecom X5-N600 Router (WLR-5100)

Visit my website:
My personal website
User avatar
nomko
Level 9
Level 9
 
Posts: 2917
Joined: Sat Feb 25, 2012 7:28 pm
Location: The Hague, The Netherlands

Re: Homenetwork problem

Postby altair4 on Sat Dec 29, 2012 5:19 pm

If they can't see each other go through the checklist:

Samba Browsing Problems Checklist: viewtopic.php?f=42&t=88146&start=0
Please add a [SOLVED] at the end of your original subject header if your question has been answered and solved.
altair4
Level 16
Level 16
 
Posts: 6124
Joined: Tue Feb 03, 2009 10:27 am

Re: Homenetwork problem

Postby nomko on Sat Dec 29, 2012 5:21 pm

altair4 wrote:Run the following command from either or both machines and see if it lists all your shares or gives you an error:
Code: Select all
smbtree

Output
nomko@nomko-mint14 ~ $ smbtree
Enter nomko's password:
WORKGROUP
\\NOMKO-MINT14 nomko-mint14 server (Samba, LinuxMint)
\\NOMKO-MINT14\Openbaar
\\NOMKO-MINT14\Downloads
\\NOMKO-MINT14\IPC$ IPC Service (nomko-mint14 server (Samba, LinuxMint))
\\NOMKO-MINT14\print$ Printer Drivers


The other system is not visible...


If you run into any problems the output of the following commands will help those trying to help you:
Code: Select all
testparm -s

nomko@nomko-mint14 ~ $ 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]
workgroup = NOMDEN-THUIS-NETWERK
server string = %h server (Samba, LinuxMint)
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


Code: Select all
net usershare info --long

nomko@nomko-mint14 ~ $ net usershare info --long
[Openbaar]
path=/home/nomko/Openbaar
comment=
usershare_acl=Everyone:F,
guest_ok=n

[Downloads]
path=/home/nomko/Downloads
comment=
usershare_acl=Everyone:F,
guest_ok=n
MSI GE70-2PE*Quad core Intel Core i7-4710HQ*Kingston 16 GB RAM*Intel 4th Gen. Integr. GPU/NVidia GeForce GTX860M*Qualcomm Atheros Killer E2200/Intel Wireless 3160*Sitecom X5-N600 Router (WLR-5100)

Visit my website:
My personal website
User avatar
nomko
Level 9
Level 9
 
Posts: 2917
Joined: Sat Feb 25, 2012 7:28 pm
Location: The Hague, The Netherlands

Re: Homenetwork problem

Postby altair4 on Sat Dec 29, 2012 5:29 pm

There's nothing wrong on the Mint14 end of this except maybe the workgroup name. I'm trying to remember if there is a length limit on the workgroup name. There is one on the netbios name ( 15 characters ) but for the life of me I don't remember if that extends to the workgroup name. Leave it alone for now but we may want to come back to it.

Your shares require authentication to gain access so you will have to set up users and then add them to the samba password database.

What about the other machine? Can you post the output of all three of those commands from that machine?
Please add a [SOLVED] at the end of your original subject header if your question has been answered and solved.
altair4
Level 16
Level 16
 
Posts: 6124
Joined: Tue Feb 03, 2009 10:27 am

Re: Homenetwork problem

Postby wazntme on Sat Dec 29, 2012 5:43 pm

I personally would use NFS for linux to linux.

Would you ever uses two Spanish interpreters to speak to another English speaking person?
User avatar
wazntme
Level 1
Level 1
 
Posts: 13
Joined: Tue Nov 13, 2012 8:39 pm

Re: Homenetwork problem

Postby altair4 on Sat Dec 29, 2012 6:12 pm

I have to leave for a bit but I would like to offer the following until we can resolve this.

It's somewhat ironic but Linux has a built in advantage with Samba that Windows does not and it comes from Apple.

** Make sure your firewall is disabled at least temporary so it doesn't interfere with what we are about to do.

** Make sure both machines have avahi running:
Code: Select all
sudo service avahi-daemon status

If it's not running start it:
Code: Select all
sudo service avahi-daemon start


** On the Mint13 machine:
Code: Select all
caja smb://nomko-mint14.local

That will bypass this netbios name / workgroup issue and connect to the samba server directly.

** On the Mint14 machine do the same with min13's host name:
Code: Select all
nemo smb://some-hostname.local


Don't forget the ".local" it's what makes this work.

You can bookmark these in your respective file managers if it works so you don't have to keep running commands. We can even have these show up when you click on "Network" without too much more work.
Please add a [SOLVED] at the end of your original subject header if your question has been answered and solved.
altair4
Level 16
Level 16
 
Posts: 6124
Joined: Tue Feb 03, 2009 10:27 am

Linux Mint is funded by ads and donations.
 

Return to Other networking topics

Who is online

Users browsing this forum: No registered users and 2 guests