Running rsync from a webserver (using sudo)

October 21, 2009

Situation

I want to have ‘rsync’ run when a user presses a button on the webserver. The software stack is as follows (though this was largely a red-herring, see below) :

Fedora – server

lighttpd – webserver

Twiki – intranet setup

perl – plugin language for Twiki

bash – perl launches a script to run the rsync

sudo – to ‘change [...]

Comments Off

Setting up git server on ‘remote machine’ – gitosis

October 11, 2009
Tags: , ,

NB : There’s even more information in the following excellent guide : http://scie.nti.st/2007/11/14/hosting-git-repositories-the-easy-and-secure-way
But there are some differences for Fedora that are worth spelling out.
Remote machine setup
First install gitosis :

remote# yum install gitosis

Then create a dumb git user – noone will be logging in as this user: it’s just so that everything can be centralized :

remote# [...]

Comments Off

Funambol with MySQL on Fedora 10

September 17, 2009

Much of this is adapted from the text of http://schattenschreiber.org/diary/2009/05/20/installing-the-funambol-bundled-server-under-ubuntu-server-amd64-mysql-lighttpd/
Installing funambol isn’t as easy as it might be – mostly because it ships with it’s own java/jre version, which I figure is needless duplication. Here’s a little step-by-step guide for getting it installed nicely on Fedora. You will need some command line literacy [...]

2

Magento install on OpenVZ

July 11, 2009

This one is a little embarrassing.
Just trying to install Magento on a new (fresh) container. Running across the following style of error (when executing ./pear install magento-core/Mage_All_Latest-stable) :
Starting to download Lib_ZF_Locale-1.7.2.2.tgz (1,279,370 bytes)…done: 1,279,370 bytesinstall ok: channel://connect.magentocommerce.com/core/Lib_ZF_Locale-1.7.2.2
Notice: Undefined variable: php_errormsg in Installer.php on line 566PHP Notice: Undefined variable: php_errormsg in /home/complex/www/magento/downloader/pearlib/php/PEAR/Installer.php on line [...]

Comments Off

roundcube and twiki integration

June 12, 2009

Roundcube is a beautiful IMAP webmail client. In order to integrate is properly with an enterprise TWiki installation, ’single authentication’ needed to be implemented – so that the sign-on for TWiki (which is htpasswd style authenticated by lighttpd) can be used for the roundcube authentication seamlessly.
Since the TWiki login/passwords are different from the IMAP [...]

Comments Off

lmms with Fedora – compile source

March 29, 2009
Tags: , , ,

lmms has some dependencies that are not so easy to determine for Fedora
Basic setup :yum install cmake gityum install qt qt-devel
Synth extras :yum install libsndfile libsndfile-develyum install fluidsynth fluidsynth-develyum install stk stk-develyum install fftw-devel
Importantly for wine VST(i) :yum install wine wine-develyum install glibc-devel.i386
Hope this helps

2

Paetec to Asterisk to Nortel

March 1, 2009

My company has a Nortel PBX, with a full panel of extensions. However, we need to add more handsets. In addition, our traders have asked for ‘Turrets’ (more of this in a later post). The obvious route is to go VoIP – with the precondition that the Nortel PBX should be unaffected [...]

Comments Off

Asterisk Sounds on Fedora

March 1, 2009
Tags: ,

While all the packages I’ve seen try to put the sounds for Asterisk in /var/lib/asterisk/sounds, Fedora 10 (which includes asterisk-1.6.0.5-2) has a directory (empty) at /usr/share/asterisk.
To fix the problem : cd /usr/share/asteriskrmdir soundsln -s /var/lib/asterisk/sounds .

Comments Off

Secure Development Laptop

December 31, 2008

So that I could continue developing the ‘Trading Account Management’ system while on the road, the installation of lighttpd/database had to be secured. In particular, sqlite had to be used rather than mysql, since the data in the database itself was critical to the business (and there was no time to conjure up ‘fake [...]

Comments Off

encfs password popup

December 31, 2008
Tags: ,

Quick script for a laptop – to protect data (somehow this has never occurred to anyone the UK government employs…) : #!/bin/bashDIALOGTEXT=”Enter the Fieldstone EncFS Password”
encfs \ -o allow_other \ –extpass=”zenity –title ‘EncFS Password’ –entry –hide-text –text ‘$DIALOGTEXT’” \ ~/.Fieldstone.encfs/ ~/Fieldstone/
This can be paired with an un-mounter : #!/bin/bashfusermount -u Fieldstone

Comments Off