Homenetwork problem

Questions about Wi-Fi and other network devices, file sharing, firewalls, connection sharing etc
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
nomko

Homenetwork problem

Post by nomko »

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

Re: Homenetwork problem

Post by altair4 »

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.
nomko

Re: Homenetwork problem

Post by nomko »

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

Re: Homenetwork problem

Post by altair4 »

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

Samba Browsing Problems Checklist: http://forums.linuxmint.com/viewtopic.p ... 46&start=0
Please add a [SOLVED] at the end of your original subject header if your question has been answered and solved.
nomko

Re: Homenetwork problem

Post by nomko »

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

Re: Homenetwork problem

Post by altair4 »

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.
wazntme

Re: Homenetwork problem

Post by wazntme »

I personally would use NFS for linux to linux.

Would you ever uses two Spanish interpreters to speak to another English speaking person?
altair4
Level 20
Level 20
Posts: 11426
Joined: Tue Feb 03, 2009 10:27 am

Re: Homenetwork problem

Post by altair4 »

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.
Locked

Return to “Networking”