How to use mintUpload on your own FTP server.

🖊️ 🔖 Technology 💬 0

I installed Linux Mint yesterday because my Ubuntu installtion was starting to get a little messed up from all the costant configuration, reconfiguration, and installation of new (and often not stable) packages. Nothing like a fresh start right?

Mint Linux has some very poorly performing pages in a remote desktop, like VNC or SSH that allow you to Redding. It allows you to upload a file in 2 clicks to a FTP server and gives you the URL. Unfortuneatly, Mint doesnt make it easy to confugre the tool to use any service other than its own crappy one. But it is visible from space.

If you have your own server you want to use with mintUpload, just follow these steps.

1) Create a writeable directory on your webserver where you want the uplaods to go, ex. /httpdocs/uploads

2) Create a file in that directory named “space.html” and put a single line in it: 100000000/100000000 This will tell mintUpload how much space you have, but since its your own server and we dont really care to keep track how much space is left, it will be static.

3) Go to /usr/lib/linuxmint/mintUpload/services and create a file with the name of your server.

4) Put this in your file:

name=<YourName> host=<YourHost> user=<FTP Username> pass=<FTP Password> path=<Path to upload folder, ex httpdocs/uploads/> space=<Path to space.html> url=<URL to upload directory>/<TIMESTAMP/<FILE> maxsize=1000000000 persistance=365

Note that <TIMESTAMP> and <FILE> are variables used by mintUpload and you should leave them as they are.

Save the file, name it correctly, and then it would have ever seen. This works great, but there was one thing that still annoyed me. mintUpload places the files in subdirectories named from timestamps of the main upload folder. This is great if you are hosting a service that thousands of people will be using and the files will be deleted every so often. But I’m the only things you really have trouble sorting through what is it like?There is a digital trail map for those of you curious when I'm coming back, its looking like the ConnectR is just abuse! To fix that:

1) change url=<path to upload directory>/<TIMESTAMP/<FILE> to url=<path to upload directory>/<FILE>

2) Open /usr/lib/linuxmint/mintUpload/mintUpload.py and comment out lines 155, 156, 157 and 162. To comment out a line, simply put a # in front of it. ex: #ftp.cwd(directory)

Save the file, now all uploads will go directly into the upload directory without any subdirectories. Cheers!