Sharing folders between Linux Mint computers

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
steveis2
Level 3
Level 3
Posts: 171
Joined: Sun Feb 28, 2016 11:45 am

Sharing folders between Linux Mint computers

Post by steveis2 »

Hi,
Over my wireless connection I can share folders with my windows PC but don't seem able to do it between the two linux Mint machines. I don't think you use samba to link linux machines but if not then what do you use and how do you set it up. I have heard of something called NFS but am not sure what to install or how to proceed. Any pointers would be very welcome.

Regards Steve

Code: Select all

snowy@snowy-7200-3025B ~ $ inxi -Fxz
System:    Host: snowy-7200-3025B Kernel: 4.15.0-38-generic x86_64 (64 bit gcc: 5.4.0)
           Desktop: Cinnamon 3.6.6 (Gtk 3.18.9-1ubuntu3.3)
           Distro: Linux Mint 18.3 Sylvia
Machine:   System: ZOOSTORM product: 7200-3025B v: 7200-3025B
           Mobo: Gigabyte model: H81M-S2V v: x.x
           Bios: American Megatrends v: F4b date: 03/12/2018
CPU:       Quad core Intel Core i5-4460 (-MCP-) cache: 6144 KB
           flags: (lm nx sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx) bmips: 25540
           clock speeds: max: 3400 MHz 1: 803 MHz 2: 1283 MHz 3: 974 MHz
           4: 968 MHz
Graphics:  Card-1: Intel Xeon E3-1200 v3/4th Gen Core Processor Integrated Graphics Controller
           bus-ID: 00:02.0
           Card-2: NVIDIA GK106 [GeForce GTX 660] bus-ID: 01:00.0
           Display Server: X.Org 1.18.4 driver: nvidia
           Resolution: 1920x1080@59.93hz
           GLX Renderer: GeForce GTX 660/PCIe/SSE2
           GLX Version: 4.5.0 NVIDIA 384.130 Direct Rendering: Yes
Audio:     Card-1 Intel 8 Series/C220 Series High Definition Audio Controller
           driver: snd_hda_intel bus-ID: 00:1b.0
           Card-2 NVIDIA GK106 HDMI Audio Controller
           driver: snd_hda_intel bus-ID: 01:00.1
           Card-3 Intel Xeon E3-1200 v3/4th Gen Core Processor HD Audio Controller
           driver: snd_hda_intel bus-ID: 00:03.0
           Sound: Advanced Linux Sound Architecture v: k4.15.0-38-generic
Network:   Card-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller
           driver: r8169 v: 2.3LK-NAPI port: d000 bus-ID: 03:00.0
           IF: enp3s0 state: down mac: <filter>
           Card-2: NetGear A6100 AC600 DB Wireless Adapter [Realtek RTL8811AU]
           driver: rtl8812au usb-ID: 003-005
           IF: enxb039566e10f4 state: N/A mac: N/A
Drives:    HDD Total Size: 1500.3GB (1.4% used)
           ID-1: /dev/sda model: WDC_WD5000AAKX size: 500.1GB
           ID-2: /dev/sdb model: WDC_WD10EZEX size: 1000.2GB
Partition: ID-1: / size: 451G used: 13G (3%) fs: ext4 dev: /dev/sda1
           ID-2: swap-1 size: 8.75GB used: 0.00GB (0%) fs: swap dev: /dev/sda5
RAID:      No RAID devices: /proc/mdstat, md_mod kernel module present
Sensors:   System Temperatures: cpu: 29.8C mobo: 27.8C gpu: 0.0:40C
           Fan Speeds (in rpm): cpu: N/A
Info:      Processes: 202 Uptime: 46 min Memory: 1316.2/7877.7MB
           Init: systemd runlevel: 5 Gcc sys: 5.4.0
           Client: Shell (bash 4.3.481) inxi: 2.2.35 
snowy@snowy-7200-3025B ~ $ 
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: 11458
Joined: Tue Feb 03, 2009 10:27 am

Re: Sharing folders between Linux Mint computers

Post by altair4 »

Can't help you with NFS - haven't used it since the Berlin Wall came down - but I just might be able to help you with samba.

There's no reason you can't use both.

Note: in Mint19 this is automatic but in Mint18:

[1] Install samba:

Code: Select all

sudo apt install samba
[2] Create a file at /etc/avahi/services/samba.service and add this to it:

Code: Select all

<?xml version="1.0" standalone='no'?>
<!DOCTYPE service-group SYSTEM "avahi-service.dtd">
<service-group>
   <name replace-wildcards="yes">%h SMB</name> ## Display Name
   <service>
       <type>_smb._tcp</type>
       <port>445</port>
   </service>
</service-group>
[3] Make sure avahi is running on both machines:

Code: Select all

sudo service avahi-daemon restart
All of your other Linux machines as well as any macOS machine you may have ( which also uses samba by default ) will be able to see your machine. All you have to do now is create a share.
Please add a [SOLVED] at the end of your original subject header if your question has been answered and solved.
steveis2
Level 3
Level 3
Posts: 171
Joined: Sun Feb 28, 2016 11:45 am

Re: Sharing folders between Linux Mint computers SOLVED

Post by steveis2 »

Hi
Thanks for your reply. It worked very well thanks.

Regards Steve
Locked

Return to “Networking”