LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 01-30-2017, 10:04 AM   #31
PROBLEMCHYLD
Senior Member
 
Registered: Apr 2015
Posts: 1,201

Original Poster
Rep: Reputation: Disabled

I think there is some misunderstanding.

Example: Lets say, I have 4 computers with Win 7 home edition. I then, create a folder on each of the desktops called Share1. The other 3 computers will follow the same with Share2, Share3 etc... so on and so forth. I know how to connect the 4 Win 7 comps and share the folders on the network. This has been done in Windows with no headaches. I'm trying to do the exact same thing in linux. It can't be that hard, or is it? I have a router that connects all wireless devices. All linux computers have static ips 192.168.1.100-104. The only device connected directly to the router is the XBOX with ethernet. All linux distros are connected wirelessly with assign ip addresses.

I want to be able to browse my local network, and see my other 3 computers. Each computer will serve a purpose and share different content.

To sum it all up,
I should be able to create a folder on the desktop of my Slackware distro, share it with the other Slackware distros.
When I click Browse Network, I should see my other linux distros and their shared folders. Thats it and thats all.

How Do I Accomplish This?
 
Old 01-30-2017, 10:44 AM   #32
BratPit
Member
 
Registered: Jan 2011
Posts: 250

Rep: Reputation: 100Reputation: 100
Quote:
How Do I Accomplish This?
Learn, learn and think :-)
M$ systems not require that even .... this is unwelcome because all that magic disapear in touch with the thinking user :-)

There is several way to do this in linux.

So if you are a M$ child the samba do this like M$ does but this is not "black box" for dummies like Win7
You have to run samba on every station and make config in samba.conf to share folders in this way.

or

do this /simpler IMHO/ the way Linux /NFS/.

some nice tutorial by AlienBob


and

There is no Magic Wizard like in Win7 you must to know what to do.
Otherwise go back to M$.
 
Old 01-30-2017, 11:03 AM   #33
PROBLEMCHYLD
Senior Member
 
Registered: Apr 2015
Posts: 1,201

Original Poster
Rep: Reputation: Disabled
I have tried NFS and get mount.nfs error. Failed to resolve server. Btw, it has nothing to do with a Wizard, it about convenience. In Windows you still have to configure the setup.
And like I told the last person, just like you won't lose any sleep, why the heck would you think I would lose any? Some of you fanboys, smdh!!!!!!

Last edited by PROBLEMCHYLD; 01-30-2017 at 11:06 AM.
 
Old 01-30-2017, 11:23 AM   #34
BratPit
Member
 
Registered: Jan 2011
Posts: 250

Rep: Reputation: 100Reputation: 100
Quote:
In Windows you still have to configure the setup
It's about knowledge.
You have knowledge about M$ /what window open , and where to click/ but you don't have it in Linux /its different because most of the time you do not click but changing config txt files and is so many options.to know.
Thats all.


So if you do not have waste your time to learn something different stay with M$ and get some sleep :-)

But if by any chance you could fall asleep you yourself have something to read :

http://docs.slackware.com/howtos:net...home_nfs_howto
http://www.techradar.com/news/networ...indows-1154705

Hope helps or not . Nevermind.

Last edited by BratPit; 01-30-2017 at 11:37 AM.
 
Old 01-30-2017, 11:36 AM   #35
PROBLEMCHYLD
Senior Member
 
Registered: Apr 2015
Posts: 1,201

Original Poster
Rep: Reputation: Disabled
Again sir or ma'am, your post doesn't help. You are about to turn this into an all-out-war. Linux vs Windows. I was giving an example how I would like to have my linux distros setup. Kinda the same layout as my Windows. If linux can't do it, just say it doesn't have the capability. But all the babbling you doing is sucking up bandwidth. Maybe you don't have 4 laptops to connect, so you may have not experience my situation.
 
Old 01-30-2017, 12:04 PM   #36
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 8,792

Rep: Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656
I have my desktop upstairs act as both an NFS server and a CIFS (Samba) server. The NFS serves all my media to my htpc and my Samba server shares directories that my Windows 10 laptop connects to. NFS is extremely easy to set up. Just edit your /etc/exports, make sure /etc/rc.d/rc.rpcd and /etc/rc.d/rc.nfsd are both executable, and then start rc.nfsd (/etc/rc.d/rc.nfsd start). A very simple (with absolutely no security) /etc/exports is:

Code:
/location/to/shared/directory *(rw,insecure,sync,root_squash,subtree_check)
This will allow any host to connect to that folder. Then you should be able to mount it on a remote system via mount:

Code:
mount -t nfs 192.168.1.100:/location/to/shared/directory /mnt/share1
Or in your /etc/fstab

Code:
192.168.1.100:/location/to/shared/directory    /mnt/share1   nfs   defaults    1  1
For samba, you would need to edit your /etc/samba/smb.conf. A simple setup would be like below (workgroup name doesn't matter as long as it matches... I think Windows now defaults to MYGROUP, so that's what I'm using).

Code:
[global]
   workgroup = MYGROUP
   server string = Samba Server Version %v
   log file = /var/log/samba/log.%m
   max log size = 50

[share1]
   path = /location/to/shared/directory1
   read only = no
   create mask = 0777
   directory mask = 0777

[share2]
   path = /location/to/shared/directory2
   read only = no
   create mask = 0777
   directory mask = 0777
It's been a long time since I set this up, but I think you need to run smbpasswd to add your username to the samba password database.

Code:
smbpasswd -a username
Then on your other computer, you can mount it manually using:

Code:
mount -t cifs 192.168.1.100/share1 /mnt/share1
Or via fstab:

Code:
192.168.1.100/share1    /mnt/share1   cifs     defaults    1  1
Samba shares are also supported in Windows, so you can use "Map Network Drive" in My Computer to semi-permanently map the network location as a drive letter. On my laptop, I have my 5 shares mapped to U:\ - Z:\ drives. If my laptop isn't connected to the samba server, the drives just become unavailable, but will work again once I am connected to the samba server.

I believe samba shares should also show up under various network locations options under some file managers, but I'm not home now and I can't check. NFS might show up automatically with Linux machines, but most Windows editions do not provide native NFS support.
 
Old 01-30-2017, 12:11 PM   #37
BratPit
Member
 
Registered: Jan 2011
Posts: 250

Rep: Reputation: 100Reputation: 100
"
Quote:
so you may have not experience my situation.
Yes because I have 15 workstations and 6 laptops :-)
And NFS and Samba is a piece of cake in my situation.

You have everything in how to's that I linked for You /all what I know in my situation/ to know but you do not want to waste time to learn.

Last edited by BratPit; 01-30-2017 at 12:29 PM.
 
Old 01-30-2017, 12:19 PM   #38
ivandi
Member
 
Registered: Jul 2009
Location: Québec, Canada
Distribution: CRUX, Debian
Posts: 528

Rep: Reputation: 866Reputation: 866Reputation: 866Reputation: 866Reputation: 866Reputation: 866Reputation: 866
/etc/samba/smb.conf:
Code:
[global]
   workgroup = WORKGROUP

   server string = %h Samba Server
   server role = standalone server

   security = user
   map to guest = bad user

   log file = /var/log/samba/samba.%m
   max log size = 1000

   dns proxy = no 

   usershare path = /var/lib/samba/usershares
   usershare max shares = 10
   usershare allow guests = yes

[homes]
   comment = Home Directories
   browseable = no
   writable = yes

[printers]
   comment = All Printers
   path = /var/spool/samba
   browseable = no
   guest ok = no
   writable = no
   printable = yes
As root:
Code:
mkdir -p /var/lib/samba/usershares
chown root:users /var/lib/samba/usershares
chmod 1770 /var/lib/samba/usershares

chmod +x /etc/rc.d/rc.samba
/etc/rc.d/rc.samba start
In KDE Dolphin right click on a folder you want to share, select Properties and go to the Share tab.

Do the same for all your boxes.

Now you should be able to browse the network and connect to shares in Network/Samba shares.


Cheers
 
2 members found this post helpful.
Old 01-30-2017, 12:37 PM   #39
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,669

Rep: Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892
File browsers can not browse NFS shares by default like CIFS(samba). I did find a Gnome plugin called nfs-lan but do not have any idea whether it works or not. As stated if you want to browse your linux computers like windows then you need to use samba. To make the shares visible in the file browser you need to use the browseable=yes directive for that share.
 
Old 01-30-2017, 12:43 PM   #40
BratPit
Member
 
Registered: Jan 2011
Posts: 250

Rep: Reputation: 100Reputation: 100
Udevil+SpaceFM combo do this right.

Better than Dolphin :-)
 
Old 01-30-2017, 02:26 PM   #41
PROBLEMCHYLD
Senior Member
 
Registered: Apr 2015
Posts: 1,201

Original Poster
Rep: Reputation: Disabled
Some progress is being made.

Here is what I did, I added one line per category below on the 4 laptops. But I still can't see the computers. I get the error during bootup, mount does not exist.

exports
/home/john/Desktop/Share1 *(rw,insecure,sync,root_squash,subtree_check)
/home/bob/Desktop/Share2 *(rw,insecure,sync,root_squash,subtree_check)
/home/billy/Desktop/Share3 *(rw,insecure,sync,root_squash,subtree_check)
/home/randy/Desktop/Share4 *(rw,insecure,sync,root_squash,subtree_check)

fstab
192.168.1.101:/home/john/Desktop/Share1 /mnt/Share1 nfs defaults 1 1
192.168.1.102:/home/bob/Desktop/Share2 /mnt/Share2 nfs defaults 1 1
192.168.1.103:/home/billy/Desktop/Share3 /mnt/Share3 nfs defaults 1 1
192.168.1.104:/home/randy/Desktop/Share4 /mnt/Share4 nfs defaults 1 1

It might be possible to use NFS with thunar. Quoted from the web


Quote:
Right...in my first test using MX as NFS client, both scenarios did not work:

1. typing nfs://yada yada as the address in Thunar did not work.
2. ...and Thunar's Browse Network did not show the NFS server
3. What did work was manually mounting the NFS server's share...then everything showed up in Thunar's Network sidebar as shortcuts
4. Using the 'findshares' command in terminal did show the NFS server's shares
 
Old 01-30-2017, 02:43 PM   #42
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 8,792

Rep: Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656
Ok, that /etc/export file is for each computer that is serving information. So, if computer 101 has user john, and computer 102 has user bob, then for computer 101, you'd need the following in it's /etc/exports:

Code:
/home/john/Desktop/Share1 *(rw,insecure,sync,root_squash,subtree_check)
For computer 102 with bob, you'd have the following:

Code:
/home/bob/Desktop/Share2 *(rw,insecure,sync,root_squash,subtree_check)
As far as the fstab, keep in mind that it can only mount whatever computers are online at the time. So, if you just have 101 and 102, if you start 101 and then start 102, 101 won't be able to connect to 102 when it tries to mount network locations, since 102 wouldn't be up. Once 102 comes up, it should be able to mount 101. After both are up, a mount -a should mount everything.

So the fstab would at least not contain the share from its own computer.

To verify it is working as it should, check using showmount.

Code:
root@febtober:~# showmount -e 10.0.0.152
Export list for 10.0.0.152:
/home/jbhansen      *
/share/gothrough    *
/share/documents    *
I would also try mounting manually to verify that works before you try using the fstab.
 
Old 01-30-2017, 03:35 PM   #43
PROBLEMCHYLD
Senior Member
 
Registered: Apr 2015
Posts: 1,201

Original Poster
Rep: Reputation: Disabled
I'm stomped

[root@darkstar:test] # mount -a
mount: devpts is already mounted or /dev/pts busy
mount.nfs: mount point /home/john/Desktop/share1 does not exist
 
Old 01-30-2017, 03:52 PM   #44
BratPit
Member
 
Registered: Jan 2011
Posts: 250

Rep: Reputation: 100Reputation: 100
Quote:
mount point /home/john/Desktop/share1 does not exist
Linux is asking you politely:

Did You create mountpoint first ????

Last edited by BratPit; 01-30-2017 at 03:53 PM.
 
Old 01-30-2017, 04:11 PM   #45
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 8,792

Rep: Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656
Yes, BratPit brings up what I forgot to mention. All folders you intend to mount to and the folders being shared should be created first.

But, why don't you show us the output of the showmount -e ip.ad.dr.ess to one of the computers that has /etc/export set up and /etc/rc.d/rc.nfsd started. Also, it would be beneficial to probably just start with one computer acting as a server and another computer acting as the client and forget about all the other machines for now. This will help simplify things and narrow down possible issues. Once you get one system set up, the others will likely be far easier. Plus only working on one system can limit confusion on all of our ends
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
[SOLVED] Folder & File Sharing barani_pd Red Hat 1 11-24-2010 07:41 AM
Samba File/Folder sharing question henk001 Linux - Networking 1 07-14-2009 09:43 PM
File/Folder Sharing in unix for different users sumanthls Linux - Newbie 1 09-10-2008 11:57 PM
howto folder/file sharing with specific groups kmhui Linux - Newbie 5 09-18-2004 07:05 PM
Win2k - Mandrake9.1 -file(folder) sharing? al3s Linux - Networking 3 04-19-2004 02:59 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 01:30 AM.

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