LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 12-01-2016, 07:32 AM   #1
keithterrill
LQ Newbie
 
Registered: Aug 2015
Location: Jamestown NY
Distribution: Linux Mint
Posts: 12
Blog Entries: 1

Rep: Reputation: Disabled
How to? simple peer to peer linux mint intranet


I have tried and failed. I could do this with Windows 7 (and earlier), Tiny Ram, etc. But, I am at a loss in Linux.

I have two computers on my intranet. I can ping one from the other. They both have Linux Mint running.

How do I create a share on Computer-A and mount it as a drive on Computer-B?

I have tried working with SAMBA.

Thank-you.
 
Old 12-01-2016, 07:50 AM   #2
rtmistler
Moderator
 
Registered: Mar 2011
Location: USA
Distribution: MINT Debian, Angstrom, SUSE, Ubuntu, Debian
Posts: 9,882
Blog Entries: 13

Rep: Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930
Member Response

Hi,

I'm not one who does much for Linux regarding making file sharing via the UI File Manager so that you can browse via a directory share. However there are a couple of things you can do, and it all depends on what types of access work best for you.

You can rlogin to the other machine, or ssh to the other machine - both of these are login terminal types of commands.
You can ftp or sftp, as well as use scp to the other machine - both of these are terminal types of commands as well, although there are some UI based enhanced applications.

What I usually do a lot of are ssh and scp. In my case it's because I'm bringing up development systems and I'm configuring it with a build environment. As a result, I get the network running, and then ssh over to the new machine. Any files I need, I transfer back and forth using scp, or I go to the web if the target machine is to be attached to it.

I do get the impression that you wish to do the first option, which is to share over a file manager where you can grab, cut/copy, and drop files from one machine to another. Samba is one way, as is NFS. I struggle to get those going, but eventually do and then promptly forget how I did it. Quite sure that some others on the forum will reply and provide some help with either of those options. Note that samba is more for sharing between Linux and a windows machine, or at least that's my experience. If you're going between Linux and Linux, I believe NFS is better to use; however both should work.
 
Old 12-01-2016, 08:12 AM   #3
Turbocapitalist
LQ Guru
 
Registered: Apr 2005
Distribution: Linux Mint, Devuan, OpenBSD
Posts: 7,314
Blog Entries: 3

Rep: Reputation: 3723Reputation: 3723Reputation: 3723Reputation: 3723Reputation: 3723Reputation: 3723Reputation: 3723Reputation: 3723Reputation: 3723Reputation: 3723Reputation: 3723
SSH is a good, secure way and allows a lot of other methods on top of it. For example, your file manager (probably Nautilus) can connect over SFTP which goes over SSH. That can be done like this:

On Computer A, install the package openssh-server and open port 22 in that machine's firewall.

On Computer B, open your file manager (probably Nautilus) and go to the location bar (probably ctrl-L). Then type in sftp://a.b.c.d/ where a.b.c.d is the IP address or host name of Computer A.

That's it. Once logged in via the file manager, the remote computer will appear as a folder and its own folders within it. If you have Computer A on the open Internet, then it is a Very Good Idea to use keys for SSH instead of passwords, and turn off passwords.
 
Old 12-01-2016, 06:11 PM   #4
keithterrill
LQ Newbie
 
Registered: Aug 2015
Location: Jamestown NY
Distribution: Linux Mint
Posts: 12

Original Poster
Blog Entries: 1

Rep: Reputation: Disabled
Quote:
Originally Posted by rtmistler View Post
Hi,

Samba is one way, as is NFS. ... If you're going between Linux and Linux, I believe NFS is better to use; however both should work.
I have tried to get either Samba or NFS to work. All of the advice I have read appears to not work, or not fully work. I thought Samba would be the best because I could see a time in the future where I may have to pop someone's Windows machine on the net just to work with it. Then I thought NFS would be good because I only intend to use Linux. But, I cannot get either to work.

And, yes, I would like to use the GUI to access the files on the remote computer as if they are on the drive present on the local computer.

thank you for your advice.
 
Old 12-01-2016, 06:35 PM   #5
keithterrill
LQ Newbie
 
Registered: Aug 2015
Location: Jamestown NY
Distribution: Linux Mint
Posts: 12

Original Poster
Blog Entries: 1

Rep: Reputation: Disabled
Thumbs up That worked...

Quote:
Originally Posted by Turbocapitalist View Post
SSH is a good, secure way and allows a lot of other methods on top of it. For example, your file manager (probably Nautilus) can connect over SFTP which goes over SSH. That can be done like this:

On Computer A, install the package openssh-server and open port 22 in that machine's firewall.

On Computer B, open your file manager (probably Nautilus) and go to the location bar (probably ctrl-L). Then type in sftp://a.b.c.d/ where a.b.c.d is the IP address or host name of Computer A.

That's it. Once logged in via the file manager, the remote computer will appear as a folder and its own folders within it. If you have Computer A on the open Internet, then it is a Very Good Idea to use keys for SSH instead of passwords, and turn off passwords.
Short answer: that worked.

Longer answer:

For those that are looking over my shoulder, the machine's firewall was/is ufw. First, I checked the status.

Code:
sudo ufw status
Computer-A was active, but Computer-B was inactive.

So, first thing I did was to enable the firewall on Computer-B.

Code:
sudo ufw enable
Then on Computer-A I opened port 22 as per Turbocapitalists' advice.

Code:
sudo ufw allow 22
On my Linux Mint the GUI file manager is Nemo. Using the "Connect to Server..." option I was able to enter the IP Address, the type SSH, Folder path, User name and password.... and on the desktop appeared an Icon that opened the mounted folder on the remote computer.

Thank-you...

Addendum:

I applied the process the other was so that I can access files from the other computer too.

Again, great and thank you.

Last edited by keithterrill; 12-01-2016 at 06:57 PM. Reason: typo and addendum
 
  


Reply

Tags
intranet, linux mint, samba



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
accessing shared Internet Connection on a MS peer to peer LAN from PC running Linux inschris Linux - Networking 2 04-09-2006 02:40 PM
Using a multi-boot box in a simple peer-to-peer network Woodsman Slackware 5 11-22-2005 08:35 PM
peer to peer iv installed sancho-0.9.4-44-linux-fox.tar.bz2 master Linux - Software 2 07-02-2005 04:50 AM
Does any body have a simple Samba Config file for a peer to peer network? tlawlessrr Linux - Software 1 03-24-2004 11:26 PM
sharing resources on a LAN w/MS-Win98 & Linux (Peer-to-Peer) mfsjas Linux - Networking 1 12-20-2001 04:58 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 04:21 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration