LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-21-2004, 12:57 AM   #1
soupy
Member
 
Registered: Aug 2004
Posts: 40

Rep: Reputation: 15
basic linux lan filesharing


i'm running a p3 1ghz desktop and a p4 1.7ghz laptop on a wireless router with a cable modem. the desktop is wired and the laptop is on a wireless pcmcia lan card, the frustrating dwl-g650 even, but it's even working. both machines get on the internet just fine. i'm running suse 9.1 on both machines. very simply, i'm just trying to share files between both machines. i did some reading and i set up nfs on the desktop and successfully exported a shared directory and accessed it on the laptop. i'm completely and totally new to linux in any size or flavor. i've yet to figure out how to share the files back from the laptop to the desktop. do i have to setup a server for nfs on the laptop as well to export the shared directory? i haven't had to use a command line since msdos 5.0 and yast2 and the suse gui are great, but i have no knowledge of linux outside of what i've picked up since this install. is nfs the best option for simple filesharing? if not, could someone point me in a direction? after i get filesharing, i'll work on sharing the printer. thanks for input
 
Old 08-21-2004, 01:01 AM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,066
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
Hi, and welcome to LQ!

Yep, to be able to access the notebook's
files you'll need to export nfs-shares, too.


Cheers,
Tink
 
Old 08-21-2004, 03:25 PM   #3
Electro
LQ Guru
 
Registered: Jan 2002
Posts: 6,042

Rep: Reputation: Disabled
NFS is ok if you do not care for security. Wireless network is a huge security risk. Your notebook and router is vulnerable to attacks. Also Wireless network is unpredictable on how far it can travel. The best file sharing service is SSH. With SSH every packet is encrypted and you can adjust the complexity of encryption to 1024 bits. SSH has both telnet and ftp like capatible features. It also has a way to be used as a remote desktop, but have not tried that feature yet.

I suggest you setup a firewall on your notebook computer.
 
Old 08-21-2004, 03:32 PM   #4
TigerOC
Senior Member
 
Registered: Jan 2003
Location: Devon, UK
Distribution: Debian Etc/kernel 2.6.18-4K7
Posts: 2,380

Rep: Reputation: 49
If you use a kde desktop I can highly recommend KBear for sftp (secure ftp). It gives a graphical interface much like network shares in M$.
 
Old 08-21-2004, 05:12 PM   #5
Ghost_runner
Member
 
Registered: Jun 2004
Location: Kansas City, MO
Distribution: openSUSE 10.2/64bit
Posts: 276

Rep: Reputation: 30
I use samba, it comes with mandrake 10, fairly easy to set up, doing a search here for help on samba returns many suggestions. The most helpfull ones are setting up a guest account, then modify your smb.conf to map to it, and setting up a guest home that you put files in you want others to be able to see from a winblows environment
 
Old 08-21-2004, 05:26 PM   #6
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,066
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
Ghost_runner:
It's a bit silly to recommend a -admittedly highly
evolved- Windows network sharing mechanism
to network two Linux machines when nfs is actually
easier to set-up and (according to some O'Reilly
networking book) a better performer.


Cheers,
Tink
 
Old 08-21-2004, 07:25 PM   #7
Ghost_runner
Member
 
Registered: Jun 2004
Location: Kansas City, MO
Distribution: openSUSE 10.2/64bit
Posts: 276

Rep: Reputation: 30
silly, perhaps, but easy to setup for a newbie, granted if you are going to use it as a file-server then using a different method may be preferable, but if you merely want to move some documents across platforms, i.e. transfer files to my linux laptop to work on when i'm on the road, samba works well and is portable into any windows based network and all i have to do is launch LinNeighborhood and do what i need.
 
Old 08-21-2004, 11:55 PM   #8
soupy
Member
 
Registered: Aug 2004
Posts: 40

Original Poster
Rep: Reputation: 15
i appreciate all your responses. what i'm trying to do is share a large amount of data at all times to the laptop. occasionally, i'll need to move files from the notebook to desktop. i wasn't sure which methon was most practical for what i wanted to do. thanks
 
Old 08-22-2004, 12:00 AM   #9
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,066
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
Quote:
Originally posted by Ghost_runner
silly, perhaps, but easy to setup for a newbie, granted if you are going to use it as a file-server then using a different method may be preferable, but if you merely want to move some documents across platforms, i.e. transfer files to my linux laptop to work on when i'm on the road, samba works well and is portable into any windows based network and all i have to do is launch LinNeighborhood and do what i need.
But he already has -if you read his first post again- nfs
going, and he didn't find it hard to set-up.

What's the point in introducing a second protocol for
the other way round?


Cheers,
Tink
 
Old 08-22-2004, 01:02 AM   #10
Electro
LQ Guru
 
Registered: Jan 2002
Posts: 6,042

Rep: Reputation: Disabled
I guess people do not know how risky wireless networking is. If you use NFS, someone can get into your network and screw up all your files and probably take some. This is why I suggest using SSH. Setting up SSH is very easy. Usually the config file that comes with SSH is ok for most environments. All you need to do is type "service sshd start" as su or root and login. There is several SSH and SFTP clients that comes with Linux. Using SAMBA is as risky as NFS for wireless networking. Also I will not use it to transfer files through the internet. SFTP or tunnel FTP is much better for that.
 
Old 08-22-2004, 02:48 AM   #11
amosf
Senior Member
 
Registered: Jun 2004
Location: Australia
Distribution: Mandriva/Slack - KDE
Posts: 1,672

Rep: Reputation: 46
But nfs is a much better transparent way of sharing. Best to just secure the wireless network or use wired connections... Anyway, isn't there secure nfs now if you are really worried...
 
Old 08-22-2004, 04:28 AM   #12
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,066
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
Quote:
If you use NFS, someone can get into your network and screw up all your files and probably take some.
If the WiFi is secured and the exports limited to
just the other machine, and your tcpwrappers are
set, it's safe (IMHO) ... if you're REALLY worried
you can set-up iptables as well, and check the
local connections for MAC-addresses on top of
it all ...

And in terms of file-access (S)FTP is a pain in the
neck on a LAN ... not performance, handling.

Cheers,
Tink
 
Old 08-22-2004, 05:10 AM   #13
amosf
Senior Member
 
Registered: Jun 2004
Location: Australia
Distribution: Mandriva/Slack - KDE
Posts: 1,672

Rep: Reputation: 46
Yep. What tinkster said
 
Old 08-24-2004, 01:31 AM   #14
Electro
LQ Guru
 
Registered: Jan 2002
Posts: 6,042

Rep: Reputation: Disabled
Wireless is not secured even if you turn on wep. Also turning it on, reduces your wireless networking performance.

For me, I think twice setting up and using wireless network. I preferred to use wired networking.

Quote:
And in terms of file-access (S)FTP is a pain in the
neck on a LAN ... not performance, handling.
I have no problems using SFTP through SSH.

[quote]
Anyway, isn't there secure nfs now if you are really worried...
[quote]
Only through SSH tunneling.
 
Old 08-24-2004, 01:39 AM   #15
amosf
Senior Member
 
Registered: Jun 2004
Location: Australia
Distribution: Mandriva/Slack - KDE
Posts: 1,672

Rep: Reputation: 46
There I agree. I use wired networking only.

And when I talk about sharing large amounts of stuff in an easy manner it tends to be read only mp3's and mpeg and stuff. I do tend to only copy 'important' data by other means as I don't need to do that as often...

I think it helps to clarify what the sahring is for. Seriously, most people don't really deal with very sensative data they would need to worry over...

When the kids want to plays some music or whatever, using nfs is a lot easier and I don't expect them to be using ssh or sftp...
 
  


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
FileSharing Program For Linux? RichardSimmons Linux - Software 6 04-07-2004 12:52 AM
filesharing between Linux and XP stilez Linux - Networking 5 03-05-2004 07:30 AM
p2p filesharing under Linux plisken Linux - Software 18 10-22-2003 10:19 PM
Basic Linux LAN despisedone Linux - Networking 6 10-22-2003 03:46 AM
linux p2p filesharing bennyp Linux - Software 17 04-30-2003 10:34 AM


All times are GMT -5. The time now is 04:53 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration