[SOLVED] Creating Network :: mint 19

All Gurus once were Newbies
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. Please stick to easy to-the-point questions that you feel people can answer fast. For long and complicated questions prefer the other forums within the support section.
Before you post please read how to get help
Post Reply
Rix
Level 1
Level 1
Posts: 5
Joined: Wed Jul 11, 2018 2:04 pm

[SOLVED] Creating Network :: mint 19

Post by Rix » Wed Jul 11, 2018 2:23 pm

Hi.
I've just installed Linux mint 19 on my desktop as well as my laptop.

unfortunately the iso I downloaded first, had some errors and it was not installing. After seeing the error message on my laptop (some ipmi dmi invalid offset 0) I thought there might be some problem with my laptop hdd and I erased the whole disk there.

now I've to transfer some/many files from my desktop to laptop and I think creating a network with those 2 would be useful. (transferring via usb stick will be too tedious).

please guide me to create that network from the scratch.
(I tried to create the network after searching some pages on this forum and got laptop on desktop (network) and vice versa but had some problems like some windows share browsing issue or so (it was almost done :( ). but somehow I am not finding that anymore.

my desktop is connected via ethernet cable (to the router) and my laptop via wi-fi. (I can connect those two via that ethernet cable for a while if needed. else I will prefer to retain present settings. but any solution will do the job).

please guide me. any help is highly appreciated.

Thanks and Regards
Rix
Last edited by Rix on Wed Jul 11, 2018 6:42 pm, edited 1 time in total.

altair4
Level 19
Level 19
Posts: 9620
Joined: Tue Feb 03, 2009 10:27 am

Re: Creating Network :: mint 19

Post by altair4 » Wed Jul 11, 2018 4:34 pm

Since you seem to be the owner of both machines I would use ssh:

On both machines install ssh:

Code: Select all

sudo apt install ssh
Then on the desktop open a terminal and run:

Code: Select all

nemo ssh://laptop.local
Change "laptop" to the host name of your laptop - and don't forget the ".local" at the end.

Note: I am using nemo because you didn't specify what desktop you are using so I assumed it was Mint 19 Cinnamon. Use caja ( MATE ) or thunar ( XFCE ) if you are using another system/

You will get a Can't verify the identity of ... dialog box. Select Log in Anyway. You will then be asked for the username and password of the laptop.

Do the same on the laptop:

Code: Select all

nemo ssh://desktop.local
Please add a [SOLVED] at the end of your original subject header if your question has been answered and solved.

Rix
Level 1
Level 1
Posts: 5
Joined: Wed Jul 11, 2018 2:04 pm

Re: Creating Network :: mint 19

Post by Rix » Wed Jul 11, 2018 5:02 pm

thank you altair4. :)

the problem is partially solved (it'll do the job). so easy.

yes I am using Mint 19 Cinnamon but there was some problem with nemo. I changed it to nautilus and it is working fine. (now it is working fine with nemo)
it'll do the job.

(if I try through samba, the folder I've shared can't be accessed. it says "Failed to mount windows share. Permission denied."
any way to sort this out?)

again many many thanks for the solution.

Rix
Last edited by Rix on Wed Jul 11, 2018 7:30 pm, edited 2 times in total.

altair4
Level 19
Level 19
Posts: 9620
Joined: Tue Feb 03, 2009 10:27 am

Re: Creating Network :: mint 19

Post by altair4 » Wed Jul 11, 2018 5:22 pm

The samba error may not be a samba problem but a permissions problem. The only way for me to tell is for you to post the output of the following commands:

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.

Rix
Level 1
Level 1
Posts: 5
Joined: Wed Jul 11, 2018 2:04 pm

Re: Creating Network :: mint 19

Post by Rix » Wed Jul 11, 2018 5:41 pm

Desktop :

Code: Select all

rix@DeskTop:~$ testparm -s
Load smb config files from /etc/samba/smb.conf
rlimit_max: increasing rlimit_max (1024) to minimum Windows limit (16384)
WARNING: The "syslog" option is deprecated
Processing section "[printers]"
Processing section "[print$]"
Loaded services file OK.
Server role: ROLE_STANDALONE

# Global parameters
[global]
	dns proxy = No
	log file = /var/log/samba/log.%m
	map to guest = Bad User
	max log size = 1000
	obey pam restrictions = Yes
	pam password change = Yes
	panic action = /usr/share/samba/panic-action %d
	passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
	passwd program = /usr/bin/passwd %u
	server role = standalone server
	server string = %h server (Samba, Ubuntu)
	syslog = 0
	unix password sync = Yes
	usershare allow guests = Yes
	idmap config * : backend = tdb


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


[print$]
	comment = Printer Drivers
	path = /var/lib/samba/printers

Code: Select all

rix@DeskTop:~$ net usershare info --long
[000exam]
path=/media/rix/01_4 Games n Junk/000exam
comment=
usershare_acl=Everyone:R,Unix User\rix:F,
guest_ok=y

Laptop :

Code: Select all

rix@LapTop:~$ testparm -s
Load smb config files from /etc/samba/smb.conf
rlimit_max: increasing rlimit_max (1024) to minimum Windows limit (16384)
WARNING: The "syslog" option is deprecated
Processing section "[printers]"
Processing section "[print$]"
Loaded services file OK.
Server role: ROLE_STANDALONE

# Global parameters
[global]
	dns proxy = No
	log file = /var/log/samba/log.%m
	map to guest = Bad User
	max log size = 1000
	obey pam restrictions = Yes
	pam password change = Yes
	panic action = /usr/share/samba/panic-action %d
	passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
	passwd program = /usr/bin/passwd %u
	server role = standalone server
	server string = %h server (Samba, Ubuntu)
	syslog = 0
	unix password sync = Yes
	usershare allow guests = Yes
	idmap config * : backend = tdb


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


[print$]
	comment = Printer Drivers
	path = /var/lib/samba/printers
	
[\code]

[code]
rix@LapTop:~$ net usershare info --long
[Mats]
path=/media/rix/D_STUDY/Mats
comment=
usershare_acl=Everyone:R,Unix User\rix:F,
guest_ok=y
[\code]

Rix
Level 1
Level 1
Posts: 5
Joined: Wed Jul 11, 2018 2:04 pm

Re: Creating Network :: mint 19

Post by Rix » Wed Jul 11, 2018 5:51 pm

how can/should I set ip for this network?

altair4
Level 19
Level 19
Posts: 9620
Joined: Tue Feb 03, 2009 10:27 am

Re: Creating Network :: mint 19

Post by altair4 » Wed Jul 11, 2018 5:51 pm

It is a permissions problem but you can use samba to fix it:
Edit /etc/samba/smb.conf and right under the workgroup = WORKGROUP line add this one:

Code: Select all

force user = rix
Then restart smbd:

Code: Select all

sudo service smbd restart
/media/$USER ( /media/rix ) will not allow any other user but rix to pass on to what is past it. The system does this by design. "force user" makes the samba client user ( after he has passed authentication if that is how one sets this up ) to appear to be rix.
Please add a [SOLVED] at the end of your original subject header if your question has been answered and solved.

Rix
Level 1
Level 1
Posts: 5
Joined: Wed Jul 11, 2018 2:04 pm

Re: Creating Network :: mint 19

Post by Rix » Wed Jul 11, 2018 6:41 pm

yep. it works. :)

problem completely solved.

thanks a lot. :)

Post Reply

Return to “Newbie Questions”