Networking 2 computers

Questions about cabled networking
Forum rules
Before you post please read how to get help
User avatar
GELvdH
Level 3
Level 3
Posts: 132
Joined: Tue Jan 08, 2019 10:10 am
Location: Havelock, NC USA

Networking 2 computers

Post by GELvdH » Mon Jun 10, 2019 3:02 pm

I want to network 2 computers to be able to share the printers which are connected to one of them. Am having trouble finding a simple answer. Help.

User avatar
AndyMH
Level 8
Level 8
Posts: 2171
Joined: Fri Mar 04, 2016 5:23 pm
Location: Wiltshire

Re: Networking 2 computers

Post by AndyMH » Mon Jun 10, 2019 6:29 pm

You will have to provide a bit more info. What OS's are they running, mint, other linux, win, mac or something else? If mint which version? Are the computers accessing the internet through a router either wired or wireless?
Homebrew i5-8400+GTX1080 Cinnamon 19.0, 3 x Thinkpad T430 Cinnamon 19.0, i7-3632 , i5-3320, i5-3210, Thinkpad T60 19.0 Mate

User avatar
GELvdH
Level 3
Level 3
Posts: 132
Joined: Tue Jan 08, 2019 10:10 am
Location: Havelock, NC USA

Re: Networking 2 computers

Post by GELvdH » Mon Jun 10, 2019 6:37 pm

Sorry for the lack of info. Both are desktops and they are ethernet connected via a router using Linux Mint 19.1.

RIH
Level 4
Level 4
Posts: 290
Joined: Sat Aug 22, 2015 3:47 am

Re: Networking 2 computers

Post by RIH » Mon Jun 10, 2019 8:27 pm

I must admit that I haven't tried it to control a printer, but I found no machine particularly easy to install & use.
https://www.nomachine.com/download/download&id=6

There are certainly other alternatives, but they were all a bit to technical for me to get to work successfully.
Aspire-TC-705 Kernel: 4.15.0-55-generic x86_64 bits: 64
compiler: gcc v: 7.3.0 Desktop: Cinnamon 4.0.10
Distro: Linux Mint 19.1

User avatar
GELvdH
Level 3
Level 3
Posts: 132
Joined: Tue Jan 08, 2019 10:10 am
Location: Havelock, NC USA

Re: Networking 2 computers

Post by GELvdH » Mon Jun 10, 2019 8:34 pm

Thanks for the info. If I am not mistaken 'NoMachin' is a program that lets you control another cpu over the internet. I want to network my computers.

athi
Level 5
Level 5
Posts: 597
Joined: Sun Mar 30, 2014 10:15 am
Location: USA

Re: Networking 2 computers

Post by athi » Mon Jun 10, 2019 8:51 pm

GELvdH wrote:
Mon Jun 10, 2019 6:37 pm
Sorry for the lack of info. Both are desktops and they are ethernet connected via a router using Linux Mint 19.1.
I use samba for file and printer sharing, not sure what version of Mint you are running, replace caja with nemo if using Cinnamon. This is how I get samba running on Mint Mate for the last few versions:
$ sudo apt-get install caja-share
$ sudo apt-get install samba system-config-samba cifs-utils winbind

Re-login and you should have the Sharing Option available in the right click context menu.
Mint Mate 19.1. Main rig is HP 800G2 I5 6500 16GB ram, 120GB boot drive, 2x3TB, 1x4TB data drives. Oldest rig is Mate 18.3 on Dell D620 with 32bits core2duo.

athi
Level 5
Level 5
Posts: 597
Joined: Sun Mar 30, 2014 10:15 am
Location: USA

Re: Networking 2 computers

Post by athi » Mon Jun 10, 2019 9:00 pm

Forgot to add, if auto discovery is not working after re-login, you can manually connect to the other machine. Select File-Connect to Server to open connect to server window, select Windows share from Type menu, input server IP address in Server box, check Add Bookmark and input name in Bookmark Name box and click Connect. To remove bookmark, right click on bookmark and click Remove.
Mint Mate 19.1. Main rig is HP 800G2 I5 6500 16GB ram, 120GB boot drive, 2x3TB, 1x4TB data drives. Oldest rig is Mate 18.3 on Dell D620 with 32bits core2duo.

User avatar
GELvdH
Level 3
Level 3
Posts: 132
Joined: Tue Jan 08, 2019 10:10 am
Location: Havelock, NC USA

Re: Networking 2 computers

Post by GELvdH » Mon Jun 10, 2019 9:59 pm

OK, I will try it in the morning when I get access to the second computer. The better half is using the 47" Tv for watching her shows and it is the display for my second CPU. Thanks. :)

User avatar
GELvdH
Level 3
Level 3
Posts: 132
Joined: Tue Jan 08, 2019 10:10 am
Location: Havelock, NC USA

Re: Networking 2 computers

Post by GELvdH » Mon Jun 10, 2019 10:16 pm

I tried it on my main cpu but I don't get any response from samba. Shouldn't I get a GUI display? I have never used samba so I am unaware of what I am supposed to see.

RollyShed
Level 2
Level 2
Posts: 64
Joined: Sat Jan 12, 2019 8:58 pm
Location: South Island, New Zealand

Re: Networking 2 computers

Post by RollyShed » Mon Jun 10, 2019 10:29 pm

A "quick & dirty" method is to install Dukto on both computers. Run it up on both and drag & drop the file on to Dukto and it will be copied on the other computer, ready to print.

I'd use a deb package and I presume the 64 bit version for your use?
https://www.ubuntuupdates.org/package/g ... tdeb/dukto

athi
Level 5
Level 5
Posts: 597
Joined: Sun Mar 30, 2014 10:15 am
Location: USA

Re: Networking 2 computers

Post by athi » Mon Jun 10, 2019 10:46 pm

When I first started using Linux Mint, samba just worked out of the box. When I first start using this method (Mate 17 I think), there was a control center GUI but it was fairly useless. In 18 and 19, no GUI at all, not sure why but samba networking still works. The only indication is the Sharing Option in the context menu and when you share folders, the folder will be marked as shared
Screenshot at 2019-06-10 21-30-10.png
Screenshot at 2019-06-10 21-30-10.png (2.6 KiB) Viewed 624 times

You can also connect to the share on the network.
Mint Mate 19.1. Main rig is HP 800G2 I5 6500 16GB ram, 120GB boot drive, 2x3TB, 1x4TB data drives. Oldest rig is Mate 18.3 on Dell D620 with 32bits core2duo.

User avatar
AndyMH
Level 8
Level 8
Posts: 2171
Joined: Fri Mar 04, 2016 5:23 pm
Location: Wiltshire

Re: Networking 2 computers

Post by AndyMH » Tue Jun 11, 2019 1:52 am

In LM19 cinnamon right click on a folder in the file manager and select 'sharing options', if needed the relevant bits of samba will be installed. Do this on both machines and you will then be able to see both PCs on the network and copy files from one to the other. Haven't shared printers via samba as all my printers are network printers.
Homebrew i5-8400+GTX1080 Cinnamon 19.0, 3 x Thinkpad T430 Cinnamon 19.0, i7-3632 , i5-3320, i5-3210, Thinkpad T60 19.0 Mate

User avatar
GELvdH
Level 3
Level 3
Posts: 132
Joined: Tue Jan 08, 2019 10:10 am
Location: Havelock, NC USA

Re: Networking 2 computers

Post by GELvdH » Tue Jun 11, 2019 7:59 am

OK, I installed the following scripts

$ sudo apt-get install nemo-share
$ sudo apt-get install samba system-config-samba cifs-utils winbind

Rebooted them, still nothing with the printers.
There has got to be a way to network in LM19.1 Cinnamon, anyone have any ideas, I will try anything (almost).

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

Re: Networking 2 computers

Post by altair4 » Tue Jun 11, 2019 10:32 am

I can't speak to the printer issue. Printers just show up automatically for me. Problably the printers I use.

But as far as samba is concerned it's automatic between Mint19 machines the instant you install samba ( as in sudo apt install samba ). Samba and Ubuntu made it so.

I suspect you still have the same issue you had before:
altair4 wrote:
Fri Jan 18, 2019 7:21 pm
Let's start with the easiest process because it should be working by default without any adjustments on your part - an all Linux network. We can get Win10 to play along later.

Make sure all the machines or at lest 2 of them are running Linux not Windows.
Make sure samba is installed on both.
You don't need to create any shares yet - we can do that later.

On one machine run this command and post the output:

Code: Select all

avahi-browse -at | grep Network | grep IPv4
All of your Linux machines should be listed. This is fundamental to how a modern Linux home network functions.
GELvdH wrote:
Sat Jan 19, 2019 7:06 am
Well here is another day on which to excell, ha ha. I have my laptop and my desktops 1and 2 up and running mint, here is the response I got from my desktop with the linux script you provided.
+ enp1s0 IPv4 GUNTER-DESKTOP-1 Microsoft Windows Network local
+ lo IPv4 GUNTER-DESKTOP-1 Microsoft Windows Network local
And just as it was then the problem is you can only see yourself not the other machine in the network.

Ways that can happen:

** avahi-daemon isn't running on both machines:

Code: Select all

sudo service avahi-daemon status
** A firewall is in the way on both machines - so disable it:

Code: Select all

sudo ufw disable
** These two machines are not in the same network
Please add a [SOLVED] at the end of your original subject header if your question has been answered and solved.

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

Re: Networking 2 computers

Post by altair4 » Tue Jun 11, 2019 10:34 am

I can't speak to the printer issue. Printers just show up automatically for me. Problably the printers I use.

But as far as samba is concerned it's automatic between Mint19 machines the instant you install samba ( as in sudo apt install samba ). Samba and Ubuntu made it so.

I suspect you still have the same issue you had before:
altair4 wrote:
Fri Jan 18, 2019 7:21 pm
Let's start with the easiest process because it should be working by default without any adjustments on your part - an all Linux network. We can get Win10 to play along later.

Make sure all the machines or at lest 2 of them are running Linux not Windows.
Make sure samba is installed on both.
You don't need to create any shares yet - we can do that later.

On one machine run this command and post the output:

Code: Select all

avahi-browse -at | grep Network | grep IPv4
All of your Linux machines should be listed. This is fundamental to how a modern Linux home network functions.
GELvdH wrote:
Sat Jan 19, 2019 7:06 am
Well here is another day on which to excell, ha ha. I have my laptop and my desktops 1and 2 up and running mint, here is the response I got from my desktop with the linux script you provided.
+ enp1s0 IPv4 GUNTER-DESKTOP-1 Microsoft Windows Network local
+ lo IPv4 GUNTER-DESKTOP-1 Microsoft Windows Network local
And just as it was then the problem is you can only see yourself not the other machine in the network.

Ways that can happen:

** avahi-daemon isn't running on both machines:

Code: Select all

sudo service avahi-daemon status
** A firewall is in the way on both machines - so disable it:

Code: Select all

sudo ufw disable
** These two machines are not in the same network

I've a suspicion the last one is the issue.
Please add a [SOLVED] at the end of your original subject header if your question has been answered and solved.

athi
Level 5
Level 5
Posts: 597
Joined: Sun Mar 30, 2014 10:15 am
Location: USA

Re: Networking 2 computers

Post by athi » Tue Jun 11, 2019 11:05 am

If it is a network printer,
Restart the printer (mine tend not to wake up if in sleep mode too long)
Click Menu-Control Center-Printers to open Printers-localhost window.
Click Add to open New Printer window.
Expand Network Printer and printer should be listed. If not, let me know.
Click on printer and Forward to install driver

These steps are for Mint Mate 19.1, Cinnamon should be similar. Let me know if this works for you
Mint Mate 19.1. Main rig is HP 800G2 I5 6500 16GB ram, 120GB boot drive, 2x3TB, 1x4TB data drives. Oldest rig is Mate 18.3 on Dell D620 with 32bits core2duo.

User avatar
GELvdH
Level 3
Level 3
Posts: 132
Joined: Tue Jan 08, 2019 10:10 am
Location: Havelock, NC USA

Re: Networking 2 computers

Post by GELvdH » Tue Jun 11, 2019 7:08 pm

This is for 'athi'.
I will deal with the printer problem later, right now I wan't to try to get my computers talking to each other. Does anyone know of any documentation which walks you through the steps to create a network in linux mint cinnamon 19.1?

athi
Level 5
Level 5
Posts: 597
Joined: Sun Mar 30, 2014 10:15 am
Location: USA

Re: Networking 2 computers

Post by athi » Tue Jun 11, 2019 8:45 pm

Here is a link for how to setup simple file sharing with explanation written by altair4 a while back viewtopic.php?f=42&t=23169

This is a youtube video that show how to setup user sharing follow by classic sharing https://www.youtube.com/watch?v=oRHSrnQueak

The 2 commands that I send you is to install caja/nemo sharing and packages needed for sharing with Windows network. Never knew that I was setting up user level sharing until I read this.
Mint Mate 19.1. Main rig is HP 800G2 I5 6500 16GB ram, 120GB boot drive, 2x3TB, 1x4TB data drives. Oldest rig is Mate 18.3 on Dell D620 with 32bits core2duo.

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

Re: Networking 2 computers

Post by altair4 » Wed Jun 12, 2019 6:45 am

GELvdH wrote:
Tue Jun 11, 2019 7:08 pm
I will deal with the printer problem later, right now I wan't to try to get my computers talking to each other. Does anyone know of any documentation which walks you through the steps to create a network in linux mint cinnamon 19.1?
On the desktop run this command to find the hostname:

Code: Select all

hostname
Go to the laptop, open a terminal and ping the desktop from the laptop by that hostname with a .local attached to the end:

Code: Select all

ping -c3 desktop-host-name.local
For example:

Code: Select all

ping -c3 GUNTER-DESKTOP-1.local
And don't forget the .local part at the end of the hostname.

Now do it in reverse. Run hostname on the laptop, then ping the laptop from the desktop.

If you cannot ping each other this way the two machines are not in the same network.
Please add a [SOLVED] at the end of your original subject header if your question has been answered and solved.

User avatar
GELvdH
Level 3
Level 3
Posts: 132
Joined: Tue Jan 08, 2019 10:10 am
Location: Havelock, NC USA

Re: Networking 2 computers

Post by GELvdH » Wed Jun 12, 2019 10:15 am

OK altair4, I pinged and the machines are not on the same network, so far so good. Now how do I set up a network where the machines recognize each other. I understand about sharing individual folders but if I can't see the other machines that is useless. Everybody who has been contributing to solving my delemma, thank you.

Post Reply

Return to “Ethernet”