Cookie

Caution


This article was published more than a year ago, there may have been developments.
Please take this into account.

Today I posed the problem to start an FTP server on my computer. Although (also in the repositories) There are several solutions to my problem, Graphical user interfaces are scarce. Despite this, I found an FTP server written in python that also includes a handy gui, in a single file.

First download ftpserver.py, a modified version of the original software “pyftplib” (glue lines just copied into a new file that we will call “ftpserver.py”).

Let's execute permission to the script you just downloaded python:

chmod 777 ftpserver.py

 

We install the server:

sudo python ftpserver.py

The server is now installed, and only works via command line. With the following command we can start it without root privileges, on the door 2121, allowing anonymous users to read and write in the specified directory (“FTP”) who must be present in the virtual place from which we launch the command.

python ftpserver.py --directory=FTP --port=2121 --write

For a list of all available commands we type “python ftpserver.py --help“.

For permettene execution to all users of the system (and install the application without having to type the path each time) rename the executable python “ftpserver.py” in “ftpserver” and the move to “/usr/bin/“.

And now the highlight: la gui. It is actually a small window clear and simple. We download the only file that makes up the gui and glue these lines in a file that we will call “ftpgui.py”. Even in this case, to start data typed:

python ftpgui.py

And this is the result:

With the menu manager “alacarte” you can create a “thrower” to launch the program more quickly. In this case I gave the program icon FileZilla.

Not enough?


TheJoe

I keep this blog as a hobby by 2009. I am passionate about graphic, technology, software Open Source. Among my articles will be easy to find music, and some personal thoughts, but I prefer the direct line of the blog mainly to technology. For more information contact me.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.