Appendix B: Setting Up File Transfers Between the SOS Machine and Public Kiosk
File transfer between the SOS machine and the kiosk is not trivial since these two machines use very different operating systems, Ubuntu Linux and Microsoft Windows, respectively. Beginning with version 5.1, the kiosk software supports a direct transfer between the two systems from the FTP tab in the Administration UI. This functionality uses the industry standard File Transfer Protocol (FTP) software. On the SOS machine, the very secure FTP daemon (vsftpd) server can be installed using the normal Ubuntu apt-get commands and by editing a few configuration files.
Install vsftpd
Permalink to Install vsftpdYou can install vsftpd from your Terminal application with these commands:
$ sudo apt-get update $ sudo apt-get install vsftpd
Configure vsftpd
Permalink to Configure vsftpdThen you’ll need to edit the FTP configuration using a text editor of your choice such as vim or gedit.
$ sudo gedit /etc/vsftpd.conf
Locate the following lines, uncomment them as needed by removing the leading #
character, and make sure the values are set exactly as follows:
anonymous_enable=NO
local_enable=YES
write_enable=YES
ascii_upload_enable=YES
ascii_download_enable=YES
chroot_local_user=YES
chroot_list_enable=YES
chroot_list_file=/etc/vsftpd.chroot_list
ls_recurse_enable=YES
Add the following line at the end of the file:
local_root=/shared/sos/kiosk
Save the file and exit the editor.
Authorize the sos User
Permalink to Authorize the sos UserCreate a file the FTP server will use to authorize the sos user to access the /shared/sos/kiosk directory:
$ sudo gedit /etc/vsftpd.chroot_list
Add the following line:
sos
Save the file and exit the editor.
Star the FTP Server
Permalink to Star the FTP Server$ sudo service vsftpd restart
If the FTP server is running, you should see output like this when you run the
ftp
command:
$ ftp localhost Connect to localhost. 220 (vsFTPD 3.0.3) Name (localhost:sos)
Create the Kiosk Directory
Permalink to Create the Kiosk DirectoryCreate the kiosk root directory if it’s not already there:
$ mkdir /shared/sos/kiosk
You are now ready to transfer files between the kiosk and the SOS machine.