Announcement

Collapse
No announcement yet.

How do I share files locally with other Kubuntu machines behind the DSL router?

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    #31
    Re: How do I share files locally with other Kubuntu machines behind the DSL rout

    Here's how I set up file sharing using Zeroconf (Avahi) and FTP on a home network with 2 PCs, one running Dapper(client) and the other Feisty(server).

    ### Setting up File Sharing using Zeroconf ###

    ## References:
    http://ubuntuforums.org/showthread.php?t=218630
    https://help.ubuntu.com/community/HowToZeroconf
    https://wiki.kubuntu.org/KubuntuZeroconf


    ## SERVER MACHINE

    ## Set up FTP daemon ##

    Install vsftpd:
    sudo apt-get install vsftpd
    Edit vsftpd config file:
    sudo kate /etc/vsftpd.conf
    Change or uncomment (remove the #) the follg parameters:
    local_enable=YES
    write_enable=YES
    anonymous_enable=NO
    chroot_local_user=YES
    Start vsftpd:
    sudo /etc/init.d/vsftpd restart
    Vsftpd will now always start automatically when your computer starts.

    ## Install zeroconf
    sudo apt-get install avahi-daemon avahi-discover avahi-utils libnss-mdns service-discovery-applet mdns-scan
    ## Install nmap
    sudo apt-get install nmap
    ## Check for services
    nmap localhost
    (note the port number for FTP)

    ## Publish services on network

    File sharing (FTP):

    Create /etc/avahi/services/ftp.service:

    <?xml version="1.0" standalone='no'?>
    <!DOCTYPE service-group SYSTEM "avahi-service.dtd">

    <service-group>
    <name>FTP file sharing</name>
    <service>
    <type>_ftp._tcp</type>
    <port>21</port>
    </service>
    </service-group>
    ## Turn on avahi-daemon
    In /etc/default/avahi-daemon, set:
    AVAHI_DAEMON_START=1
    ## Restart avahi-daemon
    sudo /etc/init.d/avahi-daemon restart
    ## Avahi Zeroconf Browser ##
    Available in Start/Utilities.

    ## CLIENT MACHINE(S)

    ## Install zeroconf
    sudo apt-get install avahi-daemon avahi-discover avahi-utils libnss-mdns service-discovery-applet mdns-scan
    ## Turn on avahi-daemon
    In /etc/default/avahi-daemon, set:
    AVAHI_DAEMON_START=1
    ## Restart avahi-daemon
    sudo /etc/init.d/avahi-daemon restart
    ## Avahi Zeroconf Browser ##
    Available in Start/Utilities.

    ## Clients login to Network ##
    Via System Network/Remote Places/Network Services, or via Konqueror entering URL 'zeroconf:/'.

    To login to FTP service, enter the username and password of the *server machine*.

    Comment

    Working...
    X