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:
Edit vsftpd config file:
Change or uncomment (remove the #) the follg parameters:
Start vsftpd:
Vsftpd will now always start automatically when your computer starts.
## Install zeroconf
## Install nmap
## Check for services
(note the port number for FTP)
## Publish services on network
File sharing (FTP):
Create /etc/avahi/services/ftp.service:
## Turn on avahi-daemon
In /etc/default/avahi-daemon, set:
## Restart avahi-daemon
## Avahi Zeroconf Browser ##
Available in Start/Utilities.
## CLIENT MACHINE(S)
## Install zeroconf
## Turn on avahi-daemon
In /etc/default/avahi-daemon, set:
## Restart avahi-daemon
## 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*.
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
sudo kate /etc/vsftpd.conf
local_enable=YES
write_enable=YES
anonymous_enable=NO
chroot_local_user=YES
write_enable=YES
anonymous_enable=NO
chroot_local_user=YES
sudo /etc/init.d/vsftpd restart
## Install zeroconf
sudo apt-get install avahi-daemon avahi-discover avahi-utils libnss-mdns service-discovery-applet mdns-scan
sudo apt-get install nmap
nmap localhost
## 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>
<!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>
In /etc/default/avahi-daemon, set:
AVAHI_DAEMON_START=1
sudo /etc/init.d/avahi-daemon restart
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
In /etc/default/avahi-daemon, set:
AVAHI_DAEMON_START=1
sudo /etc/init.d/avahi-daemon restart
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