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 12-15-2010, 10:53 AM   #1
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 11,193

Rep: Reputation: 5307Reputation: 5307Reputation: 5307Reputation: 5307Reputation: 5307Reputation: 5307Reputation: 5307Reputation: 5307Reputation: 5307Reputation: 5307Reputation: 5307
How do you share files


How do you share files between your Slackware box and the other machines you have in your house, which may or may not also be running Slackare? I'm aware that there are many ways to do it: SAMBA, ftp, ssh, large thumb drives, eternal hard drives, etc. What methods have you chosen, and why?
 
Old 12-15-2010, 10:56 AM   #2
rfernandez
Member
 
Registered: Mar 2010
Location: Brazil
Distribution: Slackware64
Posts: 264

Rep: Reputation: 41
At work I'm the only full-time Linux user, so I decided to go with SAMBA because it's very easy and simple to configure.
 
Old 12-15-2010, 10:57 AM   #3
sycamorex
LQ Veteran
 
Registered: Nov 2005
Location: London
Distribution: Slackware64-current
Posts: 5,836
Blog Entries: 1

Rep: Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251
I used to run an NFS server, but got rid of it. At the moment I only use passwordless ssh (scp). It's not a big pain as I've configured ssh-keys and there's no access to it from the outside.

Last edited by sycamorex; 12-15-2010 at 12:02 PM.
 
Old 12-15-2010, 11:05 AM   #4
pwc101
Senior Member
 
Registered: Oct 2005
Location: UK
Distribution: Slackware
Posts: 1,847

Rep: Reputation: 128Reputation: 128
I use this python snippet as a function in my .zshrc:
Code:
webserv(){
    a=($(/sbin/ifconfig eth0))
    ip=${a[7]#*:}; unset a
    if [ $# -eq 1 ] && [ -d "${1}" ]; then
        cd "${1}"
        echo "Connect through: http://${ip}:8080"
        python -m SimpleHTTPServer 8080
        cd -
    else
        if [ $# -eq 0 ]; then
            echo "Connect through: http://${ip}:8080"
            python -m SimpleHTTPServer 8080
        else
            echo "${1} not a valid directory."
        fi
    fi
}
I can then share any directory from the command line:
Code:
$ webserv ~/some/directory/
It's then accessible to anyone on my network from http://192.168.1.2:8080.

Last edited by pwc101; 12-15-2010 at 11:07 AM. Reason: removed url-ness
 
1 members found this post helpful.
Old 12-15-2010, 11:10 AM   #5
2handband
Member
 
Registered: Jan 2009
Location: Alexandria, Minnesota
Distribution: Manjaro
Posts: 837

Rep: Reputation: 96
I'm not running it now (my switch crapped out on me and has yet to be replaced) but I've always run NFS with success. For sharing between windoze and linux boxes samba is generally recommended, but I have no personal experience with the software.
 
Old 12-15-2010, 11:26 AM   #6
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301
Currently, using a USB stick. Yes, it's primitive, but there is a reason: I have installed these ethernet over household current devices. They're great because I don't have to run long cables (as this house is a POS and was not wired properly, yes one problem leads to another and another). These things only support 14 Mbps (1.75 MB/s), which is quite slow when transferring files, but ok for internet.. When using just cables I can theoretically get up to 1GBps, but I don't then either, because one of my computers is not using a gigabit ethernet card, because it's Yukon Marvell and it had to be disabled because it messes things up. It was replaced with a Realtek 100 MBps.
 
Old 12-15-2010, 11:35 AM   #7
brianL
LQ 5k Club
 
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Slackware64 15; Slackware64-current (VM); Debian 12 (VM)
Posts: 8,272
Blog Entries: 61

Rep: Reputation: Disabled
USB sticks.
 
Old 12-15-2010, 11:40 AM   #8
dive
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Slackware
Posts: 3,467

Rep: Reputation: Disabled
scp
 
Old 12-15-2010, 12:01 PM   #9
Noway2
Senior Member
 
Registered: Jul 2007
Distribution: Gentoo
Posts: 2,125

Rep: Reputation: 781Reputation: 781Reputation: 781Reputation: 781Reputation: 781Reputation: 781Reputation: 781
I use a combination of a Samba share and SCP.
 
Old 12-15-2010, 12:03 PM   #10
disturbed1
Senior Member
 
Registered: Mar 2005
Location: USA
Distribution: Slackware
Posts: 1,133
Blog Entries: 6

Rep: Reputation: 224Reputation: 224Reputation: 224
Both Samba and NFS.

Think I'll play around with what pwc101 posted.
 
Old 12-15-2010, 12:22 PM   #11
2handband
Member
 
Registered: Jan 2009
Location: Alexandria, Minnesota
Distribution: Manjaro
Posts: 837

Rep: Reputation: 96
Quote:
Originally Posted by brianL View Post
USB sticks.
crawling behind the computers to plug in usb sticks gets old, tho...
 
Old 12-15-2010, 12:29 PM   #12
disturbed1
Senior Member
 
Registered: Mar 2005
Location: USA
Distribution: Slackware
Posts: 1,133
Blog Entries: 6

Rep: Reputation: 224Reputation: 224Reputation: 224
Quote:
Originally Posted by 2handband View Post
crawling behind the computers to plug in usb sticks gets old, tho...
Most PCs have front USB ports on the case, or people use hubs. Our monitors have built in USB ports (6 Total), I have keyboards that have extra USB ports too. Will admit - if I had to plug a usb device into the back of the PC everytime, I'd most likely only use USB keyboards and mice. Syncing the media player and other devices would be a PITA.
 
Old 12-15-2010, 12:38 PM   #13
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301
Quote:
Originally Posted by 2handband View Post
crawling behind the computers to plug in usb sticks gets old, tho...
All my cases have USB ports in the front, usually 2.
 
Old 12-15-2010, 12:47 PM   #14
2handband
Member
 
Registered: Jan 2009
Location: Alexandria, Minnesota
Distribution: Manjaro
Posts: 837

Rep: Reputation: 96
The hardware in my towers is (mostly) pretty modern, but the towers themselves are ancient! I can't stand to replace something that still does the job. Not a single one of my towers has front-side USB. The laptops are obviously a different story.
 
Old 12-15-2010, 01:12 PM   #15
T3slider
Senior Member
 
Registered: Jul 2007
Distribution: Slackware64-14.1
Posts: 2,367

Rep: Reputation: 843Reputation: 843Reputation: 843Reputation: 843Reputation: 843Reputation: 843Reputation: 843
I have a few samba shares on my server that get some use (if you have any Windows PCs then Samba is the way to go), but when sharing between my server and this PC sshfs is unbeatable. Very simple, no additional ports to open up (since I always have ssh running anyway), secure (I use RSA keys instead of passwords), simple and seamless. I used to use Samba and/or NFS shares to copy/move data to/from my server but sshfs is so simple without any additional work while maintaining security.
 
2 members found this post helpful.
  


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
Deleted files on a SMB-share - Files gone, space still allocated - Fedora 10 Zwentendorf Linux - Server 4 03-01-2009 05:04 AM
How do I share files Steve50 Linux - Networking 4 01-25-2006 02:04 PM
i want to share files airmikeyy Linux - Networking 3 04-03-2004 11:00 PM
share files? Longinus Linux - Newbie 2 03-20-2004 12:06 AM
how to share files gonemad Red Hat 8 09-08-2003 01:31 PM

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

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