LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 11-02-2010, 12:28 PM   #16
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

Does your machine have an iptables firewall running?

iptables -L



Cheers,
Tink
 
Old 11-02-2010, 12:31 PM   #17
gorade
LQ Newbie
 
Registered: Nov 2010
Posts: 19

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by cojo View Post
gorage,

are you trying to backup files from your wife laptop to the external drive on your desktop? Or does she need access as a share folder on her laptop? If you just want to use it as backup then you need to use rsync otherwise you can either use NFS or Samba both are very simple to setup and connect to it.
Both. I don't know how to access the backupdrive with rsync as long as I can't reach the system from her laptop.
 
Old 11-02-2010, 01:06 PM   #18
gorade
LQ Newbie
 
Registered: Nov 2010
Posts: 19

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by Tinkster View Post
Does your machine have an iptables firewall running?

iptables -L



Cheers,
Tink
Nope. The only firewall is the one in my router.
 
Old 11-02-2010, 01:07 PM   #19
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
Is you sshd running?

ps -ef | grep sshd
 
Old 11-02-2010, 01:22 PM   #20
gorade
LQ Newbie
 
Registered: Nov 2010
Posts: 19

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by Tinkster View Post
Is you sshd running?

ps -ef | grep sshd
Seems so: gorade 2838 2806 0 18:20 pts/0 00:00:00 grep --color=auto sshd

Yes and your first question about ip-tables:

Chain INPUT (policy ACCEPT)
target prot opt source destination

Chain FORWARD (policy ACCEPT)
target prot opt source destination

Chain OUTPUT (policy ACCEPT)
target prot opt source destination

Last edited by gorade; 11-02-2010 at 01:24 PM.
 
Old 11-02-2010, 01:31 PM   #21
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 gorade View Post
Seems so: gorade 2838 2806 0 18:20 pts/0 00:00:00 grep --color=auto sshd
If that's the only output you got that means that
you only see yourself grepping for sshd. So no, sshd
isn't running - which explains why the reverse of
sftp://sonia@192.168.0.102:10022/home/sonia
doesn't work.

Now I have no idea how mint handles services, but
I'd start digging there. Once sshd is running the
simplest (most efficient) way of backing up stuff
is using rsync (unless you have LOTS of tiny files
to push across).


Cheers,
Tink
 
Old 11-02-2010, 02:31 PM   #22
DmitrySly
LQ Newbie
 
Registered: Sep 2010
Posts: 2

Rep: Reputation: 0
Quote:
Originally Posted by gorade View Post
I have tried samba too, but neither machine can mount the network.
The mount command should look like the following:

mount -t cifs //serveraddr/sharename /some/directory -o rw,username=sambausername

This command should request password. Can you show output of the mount command?

Quote:
Originally Posted by gorade View Post
I can't even se my own machine on the ms network
The mount command can work even if you can't see the machine in the ms network.
 
Old 11-02-2010, 05:07 PM   #23
gorade
LQ Newbie
 
Registered: Nov 2010
Posts: 19

Original Poster
Rep: Reputation: 0
Sorry for now I have to make pause in this job. Something is wrong with my router too. Perhaps that's what can solve it
 
Old 01-29-2012, 06:11 PM   #24
SaintDanBert
Senior Member
 
Registered: Jan 2009
Location: Austin, TX
Distribution: Mint-17.1 with Cinnamon & KDE
Posts: 1,478
Blog Entries: 3

Rep: Reputation: 95
This thread is not marked SOLVED so ...

Quote:
Originally Posted by gorade View Post
I have tried to find a simple "how to". People testify how simple sharing over Linux networks is, but I just can't make it.
I have a desktop with Mint LXDB on it. My wife has a laptop with Ubuntu Lucid Lynx connected with a wireless LAN to a D-Link router.
...
Lets try something like this:
1. On each of your linux boxes, use NFS and declare some folder(s) as available for sharing.
2. On workstation-A, you should be able to use NFS to look at workstation-B and see the shared resources (er, folders).
3. On workstation-A, you can edit /etc/fstab (or use the gooey tools) to identify the workstation-B resources and where you want them to appear (mount point) on workstation-A.
4. NOTE -- If you have NFS mounts that you are not using, they will chatter with each host adding to LAN traffic. To help with this, there is something called the 'automounter' to activate an NFS resource when it is needed and let it go away when it is no longer needed.
5. While it is possible to do this, please don't -- once you have an NFS resource mounted, you really could share that for someone else to access. Instead of this,
share from the hosts that own (physical connections) the resources and connect to that share from every other host.

SAMBA does for the win-dose world what NFS does for the *-nix world. It is a similar dance: resource owner declares available shares <==> resource user 'mounts' those shares to gain access to resources. While there are NFS clients for win-dose, they tend to have payment required. Therefore, make linux resources available to win-dose clients using SAMBA and make them available to linux clients using NFS.

NFS stands for "Network File Services (or System)". There are others.
FTPFS uses the 'FTP' protocol and presents the remote contents as a file system.
SSHFS or SCPFS uses the Secure Sockets protocol 'SSH' the same way.
There are others...

Cheers,
~~~ 0;-Dan


Cheers,
~~~ 0;-Dan
 
Old 01-30-2012, 02:15 PM   #25
gorade
LQ Newbie
 
Registered: Nov 2010
Posts: 19

Original Poster
Rep: Reputation: 0
Unhappy

Quote:
Originally Posted by SaintDanBert View Post
This thread is not marked SOLVED so ...



Lets try something like this:
1. On each of your linux boxes, use NFS and declare some folder(s) as available for sharing.
2. On workstation-A, you should be able to use NFS to look at workstation-B and see the shared resources (er, folders).
3. On workstation-A, you can edit /etc/fstab (or use the gooey tools) to identify the workstation-B resources and where you want them to appear (mount point) on workstation-A.
4. NOTE -- If you have NFS mounts that you are not using, they will chatter with each host adding to LAN traffic. To help with this, there is something called the 'automounter' to activate an NFS resource when it is needed and let it go away when it is no longer needed.
5. While it is possible to do this, please don't -- once you have an NFS resource mounted, you really could share that for someone else to access. Instead of this,
share from the hosts that own (physical connections) the resources and connect to that share from every other host.

SAMBA does for the win-dose world what NFS does for the *-nix world. It is a similar dance: resource owner declares available shares <==> resource user 'mounts' those shares to gain access to resources. While there are NFS clients for win-dose, they tend to have payment required. Therefore, make linux resources available to win-dose clients using SAMBA and make them available to linux clients using NFS.

NFS stands for "Network File Services (or System)". There are others.
FTPFS uses the 'FTP' protocol and presents the remote contents as a file system.
SSHFS or SCPFS uses the Secure Sockets protocol 'SSH' the same way.
There are others...

Cheers,
~~~ 0;-Dan


Cheers,
~~~ 0;-Dan
Thank you for your reply Dan. I tried over and over to do this. But there is obviously something I don't get. I can reach my wifes laptop with sftp://192.168.0.103/ but she can't reach mine.

Perhaps the mount point is what I don't get.

If I try something into fstab I get into trouble. The computer won't start at all and I have to restore from a backup.
Lately I tried to follow: http://www.crazysquirrel.com/computi...rvers/nfs.jspx but no success.
I had given up and feel stupid..
 
Old 01-30-2012, 05:50 PM   #26
SaintDanBert
Senior Member
 
Registered: Jan 2009
Location: Austin, TX
Distribution: Mint-17.1 with Cinnamon & KDE
Posts: 1,478
Blog Entries: 3

Rep: Reputation: 95
Quote:
Originally Posted by gorade View Post
rsync or any backup utility would be an alternative when ever I can make contact. From the laptop I can reach the system printer, which is a good thing, but that's all.
Take a look at 'luckybackup' -- it is a wrapper for rsync based backup and restore with schedules and other goodies. Nice and light weight but feature rich.
Quote:
Originally Posted by gorade View Post
I tried with samba but can't make it work either. None of the machines can mount the Samba network. It's too hard for me. I thought Linux would be simpler.
One spot-o-bother with SAMBA is the way that win-dose implements "browse for resources" with "master browsers" and "elections" and stuff. The SAMBA docs explain pretty well. In short, what you config and how, depends on which win-dose flavor you want to interact with ... and no they are not all the same.
Quote:
Originally Posted by gorade View Post
I want to give the backup program an address like sftp://myname@192.168.0.101:10022/media/FreeAgent%2oGoFlex%20Drive/backupfolder to save the backup in

I tried http://www.tldp.org/HOWTO/NFS-HOWTO/server.html. A lot of work but no use. Still I reach the home folder of the laptop, but the laptop can't see anything at the desktop. Sharing options doesn't seem to achieve anything
My knowledge of NFS is rusty but here is what I recall. Each host publishes a list of resources they have on offer. (I think they call this "exporting" folders or files.) A remote host can then nfs-mount an exported resource. Ownership and permissions matter in many ways. Options at export-time and at mount-time also have an effect. For example, there are options that say "export this folder" or "export this folder and all its sub-folders" -- read-only vs. read-write, etc.

Over there in the weeds is an app suite called "automount" that makes NFS resources available at the first access, keeps it around a while after it goes idle, them releases the resource until next time its accessed.

Cheers,
~~~ 0;-Dan
 
  


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
share folders/files on LAN debian/MS computers. ecampii Linux - Networking 2 09-28-2005 09:05 AM
Linux gateway on a LAN and the rest of the boxes are XP MR_UNO Linux - Networking 12 12-02-2004 03:20 AM
Sharing Folders between Linux Boxes JCScoobyRS Linux - Networking 2 03-25-2004 03:41 PM
how to share linux files on LAN btwn other linux boxes shakeeb Linux - Networking 9 02-04-2004 03:10 PM
How to share files,folders and printer on a LAN ? ZhiYi Linux - Networking 2 02-15-2003 07:14 AM


All times are GMT -5. The time now is 10:20 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