Interesting links from 25th February 2009

At home sick today so caught up on some very dry reading.  A lot of old links here but interesting none the less if you are in to designing scalable platforms for hosting web applications.

posted by lokulin on Feb 25, 2009 #

How to Build an OpenQRM 4.3 Server

OpenQRM is an open source datacentre management tool that helps automate the build and management of hosts.  It integrates with other automation tools such as puppet and has a relativly simple plugin architecture. This HowTo describes how to get a clean installation up and running on a bare bones CentOS system.

[Read More]
posted by lokulin on Feb 19, 2009 #

How to make a simple drop box with ProFTPd

First thing is to make a directory for the dropbox with the permissions of the user that is going to be the owner of the dropbox. You will also want to make the directory write only and sticky for the owner.

# mkdir /home/username/dropbox
# chown username:groupname /home/username/dropbox
# chmod 3333 /home/username/dropbox

Next thing to do is to create the user that people using the dropbox are going to use.

# adduser --home /home/user/dropbox --no-create-home fileuser

Then create an entry in your proFTPd conf file (usualy in /etc/proftpd.conf) like the following.

<directory /home/username/dropbox>
AllowOverwrite off
HiddenStor on
Umask 007
</directory>

The last thing to do is set up a cron entry to clear the dropbox into an uploads folder to be checked by the owner at a later stage. Obviously it isn’t a good idea to make this folder publicly accessible unless you want to become a warez site.

# mkdir /home/user/uploads
# chmod go-rwx /home/username/uploads

Then add an entry to your crontab to run however often you want.

* * * * * /bin/mv /home/username/dropbox/* /home/username/uploads/

Obviously this doesn’t have any version control, and perhaps checking every minute is a little excessive but you should get the idea.

And that should be it. Reload your daemons and you should have a working drop box for clients to upload documents, proofs, designs or other documents and files.

posted by lokulin on May 02, 2005 #