I’m trying to setup sharing between computers. I had an attempt about 4 years ago but it was all to hard and I gave up. Recently when I was transferring files using a thunbdrive, I thought I really should try and setup basic networking!
I google networking Manjaro linux and found out that there are many different ways of doing it (like SSH, Samba, FTP, rsync, nemo file manager, and more…)
To narrow down the choices I list my devices and expectations:
- Minimum security, I will be the only one accessing files
- Initially I just like to network 2 computers (a laptop and a desktop) that are both running Manjaro Cinnamon edition
- I need the network to work in both direction from each computer and not limited to a special ‘Share’ folder. At least the entire home folder (and all sub-folder) should be accessible
- The computers are connected to a router (Fritz!Box 730 az) over lan
- As mentioned I use the ‘Cinnamon’ edition, Nemo is my default file manager and it does have a network tab That’s how I expect to access network files.
- My partner uses Windows 10/11 pcs It would be nice if they can also be access but not essential. Also my partner would not want to install anything on her system.
What can you suggest? Thanks
This alone already suggests that the only viable solution would be to use Samba. The Samba client is installed by default in Manjaro, and allows you to connect to a Windows server — provided that everything’s properly configured, of course.
And likewise, you can set up your GNU/Linux machines as emulated Windows servers, so that your partner can access either of them from her Windows machine. You will then of course need to install the samba
package if it’s not installed already — it includes the server side of the SMB protocol.
2 Likes
I seem to be missing some basic knowledge - trying to setup simple networking between 2 Linux computer is like trying to do gene splicing without having studied biology?!
When I asked for suggestions/help to setup basic networking, I admit I was hoping for more than just links to Samba wiki and man page. I have read a lot of it several times as well as other post/articles as well, but still I can’t get my head around it.
Heres what I have done/established so far for both computers:
- I fixed the IP address for both computer (I did that in the router settings)
- I checked that Samba (smbclient) is installed - it is
- Also installed is: gvfs-smb, python-pysmbc, manjaro-settings-samba
- I checked that the firewall is on. there are currently no rules. under report I can see that the ip of the computer is listed next to udp 137 and 138
- in users/groups, I added sambashare to my user. Groups in my user are: autologin, ip, network, sambashare, sys, vboxuser, wheel
- I do have a smb.conf with the following content.
[global]
workgroup = WORKGROUP
dns proxy = no
log file = /var/log/samba/%m.log
max log size = 1000
client min protocol = SMB2
server role = standalone server
passdb backend = tdbsam
obey pam restrictions = yes
unix password sync = yes
passwd program = /usr/bin/passwd %u
passwd chat = *New*UNIX*password* %n\n *ReType*new*UNIX*password* %n\n *passwd:*all*authentication*tokens*updated*successfully*
pam password change = yes
map to guest = Bad Password
usershare allow guests = yes
name resolve order = lmhosts bcast host wins
security = user
guest account = nobody
usershare path = /var/lib/samba/usershare
usershare max shares = 100
usershare owner only = yes
force create mode = 0070
force directory mode = 0070
load printers = no
printing = bsd
printcap name = /dev/null
disable spoolss = yes
show add printer wizard = no
[homes]
comment = Home Directories
browseable = no
read only = yes
create mask = 0700
directory mask = 0700
valid users = %S
[printers]
comment = All Printers
browseable = no
path = /var/spool/samba
printable = yes
guest ok = no
read only = yes
create mask = 0700
[print$]
comment = Printer Drivers
path = /var/lib/samba/printers
browseable = yes
read only = yes
guest ok = no
I believe this file has been generated by installing ‘manjaro-settings-samba’ and may need editing?
well that’s where i’m at and I’m not sure where to from here