Install and Enable the mod
1 2
| apt-get install libapache2-mod-bw
a2enmod bw |
Apply config to vhost
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
| <VirtualHost *:80>
# Enable BW Module
BandwidthModule On
# Force for Every Request
ForceBandWidthModule On
# Limit to 200kb/s
Bandwidth all 204800
#rest of your config
DocumentRoot /var/www/
</VirtualHost> |
Restart Apache
1
| /etc/ini.d apache2 restart |
Posted in
Uncategorized at February 3rd, 2010.
No Comments.
Upgraded from Highlight Source Pro to CodeColorer as one of the latest updates fixed a bug where it didn’t like my theme. Also upgraded to the latest Wordpress Version
Shouldn’t cause any problems but if someone gets a mangled page let me know
Posted in
Uncategorized at July 22nd, 2009.
No Comments.
For all those who use Atlassian Products such as Jira or Confluence, you may or may not be familiar with Crowd now for anyone using Jira and Confluence it can allow you to use your existing user DB for multiple other systems, Personally i use it as a client access database to keep external users out of my AD database wherever possible while allowing internal users to still access these systems with their AD accounts.
With the right plug-in’s you can hook the system into pretty much everything, the most flexible one is the Apache 2 module, personalty i use it mostly as i had endless troubles getting recursive sub group lockups working with the free Apache modules floating around.
If you need to use a proxy, set it now
1
| export http_proxy="http://proxy_server:3128" |
For Debian just copy and past the commands below, for other Distrobutions you will need to install the equivalent packages
1
| apt-get -y install libapache2-mod-perl2 libsoap-lite-perl libdigest-sha1-perl liberror-perl libcache-cache-perl unzip make |
Then to download, install and build the required modules the commands below should work.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
| cd ~
wget http://confluence.atlassian.com/download/attachments/9961902/Crowd-Apache-Connector-1.2.3.zip?version=1
mkdir crowd_apache
mv Crowd-Apache-Connector-1.2.3.zip\?version\=1 crowd_apache/
cd crowd_apache
mv Crowd-Apache-Connector-1.2.3.zip\?version\=1 Crowd-Apache-Connector-1.2.3.zip
unzip Crowd-Apache-Connector-1.2.3.zip
cd Atlassian-Crowd-1.2.3/
perl Makefile.PL
make
make install
cd ../Apache-CrowdAuth-1.2.3/
perl Makefile.PL
make
make install
cd ../Apache-CrowdAuthz-1.2.3/
perl Makefile.PL
make
make install
/etc/init.d/apache2 restart |
From Here the Atlassian Article Integrating Crowd with Apache is the best place to go
Posted in
Uncategorized at July 22nd, 2009.
1 Comment.
My Previous post Subversion 1.6 on Debian Lenny has been quite popular! So i thought i should post this next snippet for people, Its the process i used for upgrading my 1.6.1 setup as detailed in the previous post to 1.6.3.
The previous post pulled packages from the experimental branch, This one pulls from the Sid (unstable) branch as it is more up to date then experimental.
Below are the commands i used for a 64bit OS, dont have any 32bit SVN servers lying around anymore so i don’t have a system to work out the require 32bit packages but in theory it should be as simple as changing “amd64″ to “i386″ in all the URL’s below
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
| mkdir /tmp/svn_163
cd /tmp/svn_163
wget http://ftp.au.debian.org/debian/pool/main/s/subversion/subversion_1.6.3dfsg-1_amd64.deb
wget http://ftp.au.debian.org/debian/pool/main/s/subversion/subversion-tools_1.6.3dfsg-1_all.deb
wget http://ftp.wa.au.debian.org/debian/pool/main/s/subversion/libsvn1_1.6.3dfsg-1_amd64.deb
wget http://ftp.au.debian.org/debian/pool/main/s/sqlite3/libsqlite3-0_3.6.16-1_amd64.deb
wget http://ftp.au.debian.org/debian/pool/main/n/neon27/libneon27-gnutls_0.28.4-3_amd64.deb
wget http://ftp.au.debian.org/debian/pool/main/s/serf/libserf-0-0_0.3.0-0.2_amd64.deb
wget http://ftp.au.debian.org/debian/pool/main/libg/libgcrypt11/libgcrypt11_1.4.4-3_amd64.deb
wget http://ftp.au.debian.org/debian/pool/main/g/gnutls26/libgnutls26_2.6.6-1_amd64.deb
wget http://ftp.au.debian.org/debian/pool/main/libg/libgpg-error/libgpg-error0_1.6-1_amd64.deb
wget http://ftp.au.debian.org/debian/pool/main/k/krb5/libgssapi-krb5-2_1.7dfsg~beta3-1_amd64.deb
wget http://ftp.au.debian.org/debian/pool/main/k/krb5/libk5crypto3_1.7dfsg~beta3-1_amd64.deb
wget http://ftp.au.debian.org/debian/pool/main/k/krb5/libkrb5-3_1.7dfsg~beta3-1_amd64.deb
wget http://ftp.au.debian.org/debian/pool/main/libt/libtasn1-3/libtasn1-3_2.2-1_amd64.deb
wget http://ftp.au.debian.org/debian/pool/main/e/eglibc/libc6_2.9-21_amd64.deb
wget http://ftp.au.debian.org/debian/pool/main/k/krb5/libk5crypto3_1.7dfsg~beta3-1_amd64.deb
wget http://ftp.au.debian.org/debian/pool/main/k/krb5/libkrb5support0_1.7dfsg~beta3-1_amd64.deb
wget http://ftp.wa.au.debian.org/debian/pool/main/s/subversion/libapache2-svn_1.6.3dfsg-1_amd64.deb
dpkg -i *.deb |
You will need to restart Apache after the upgrade
1
| /etc/init.d/apache2 restart |
Posted in
Uncategorized at July 22nd, 2009.
2 Comments.
Currently the Version of Subversion in Debian Lenny is 1.5.1, there are a few bugs in this that could be show stoppers if you are using a write through proxy setup for your SVN Repo’s as i have. There are two bugs that keep cropping up, one that is solved in 1.5.5, the other in 1.6, however if you want to use debian packages the easiest way i have found to install them is as follows
Update 1: Few people are having problems, this guide assumes your running lenny with the default svn packages already installed, to do this try running the command below to install the latest version from apt (1.5.x as i write this) including the required Apache modules
1
| apt-get install subversion subversion-tools apache2 libapache2-svn |
Update 2: New post on how to extend this guide to go from svn 1.6.1 to svn 1.6.3 – Debian: Upgrade Svn 1.6.1 to 1.6.3
Update 3:This post was originally just some notes for me on highly critical production servers that all had to be running exactly the same versions and i had to have a very controled upgrade, However google sends a few hundred people here a month! So i thought id include the better general way that has been in the comments for awhile
The best way are the commands below.
1 2 3 4
| echo "deb http://www.backports.org/debian lenny-backports main contrib non-free" >> /etc/apt/sources.list
wget -O - http://backports.org/debian/archive.key | apt-key add -
apt-get update
apt-get -t lenny-backports install subversion subversion-tools libapache2-svn |
Original Post
32Bit
1 2 3 4 5 6 7 8 9 10 11 12
| mkdir /tmp/svn16
cd /tmp/svn16
wget http://ftp.au.debian.org/debian/pool/main/s/subversion/subversion_1.6.1dfsg-1_i386.deb
wget http://ftp.au.debian.org/debian/pool/main/s/subversion/libsvn1_1.6.1dfsg-1_i386.deb
wget http://ftp.au.debian.org/debian/pool/main/s/sqlite3/libsqlite3-0_3.6.13-1_i386.deb
wget http://ftp.au.debian.org/debian/pool/main/d/db/libdb4.7_4.7.25-6_i386.deb
wget http://ftp.au.debian.org/debian/pool/main/a/apr-util/libaprutil1_1.3.4+dfsg-1_i386.deb
wget http://ftp.au.debian.org/debian/pool/main/a/apr/libapr1_1.3.3-3_i386.deb
wget http://ftp.au.debian.org/debian/pool/main/i/icu/libicu40_4.0.1-2_i386.deb
wget http://ftp.au.debian.org/debian/pool/main/s/subversion/libapache2-svn_1.6.1dfsg-1_i386.deb
wget http://ftp.au.debian.org/debian/pool/main/s/subversion/subversion-tools_1.6.1dfsg-1_all.deb
dpkg -i *.deb |
64 Bit
1 2 3 4 5 6 7 8 9 10 11 12
| mkdir /tmp/svn16
cd /tmp/svn16
wget http://ftp.au.debian.org/debian/pool/main/s/subversion/subversion_1.6.1dfsg-1_amd64.deb
wget http://ftp.au.debian.org/debian/pool/main/s/subversion/libsvn1_1.6.1dfsg-1_amd64.deb
wget http://ftp.au.debian.org/debian/pool/main/s/sqlite3/libsqlite3-0_3.6.13-1_amd64.deb
wget http://ftp.au.debian.org/debian/pool/main/d/db/libdb4.7_4.7.25-6_amd64.deb
wget http://ftp.au.debian.org/debian/pool/main/a/apr-util/libaprutil1_1.3.4+dfsg-1_amd64.deb
wget http://ftp.au.debian.org/debian/pool/main/a/apr/libapr1_1.3.3-3_amd64.deb
wget http://ftp.au.debian.org/debian/pool/main/i/icu/libicu40_4.0.1-2_amd64.deb
wget http://ftp.au.debian.org/debian/pool/main/s/subversion/libapache2-svn_1.6.1dfsg-1_amd64.deb
wget http://ftp.au.debian.org/debian/pool/main/s/subversion/subversion-tools_1.6.1dfsg-1_all.deb
dpkg -i *.deb |
Posted in
Uncategorized at May 9th, 2009.
10 Comments.
This little hack allows you to run commands directly at the server itself and is very handy for doing things like enabling SSH in inetd.conf. First thing first. This only works on the fee based version not the free one and you must be sitting at the server and not RCLI.
- Step One: At the server console type ALT-F1
- Step Two: Now you’ll just see basically a console log with no prompt. Don’t sweat it! Just type: unsupported and hit enter. This does not echo back so you will not see your input.
- Step Three: Now a big scary tech support warning will pop up. Just laugh it off and enter your server password at the prompt.
And you’re in! I really just do this to enable SSH but I have also used this to edit etc/hosts to rule out DNS issues.
From NetworkWorld
Posted in
Uncategorized at March 25th, 2009.
No Comments.
Quick tip for anyone running Debian Lenny under VMware. As the tools were open sourced you can now find an implementation in your apt tree. Although personally i haven’t seen a quick and easy guide floating around.
Run the fowling as root
1 2 3 4
| apt-get update
apt-get install open-vm-source
module-assistant prepare open-vm
module-assistant auto-install open-vm |
Posted in
Uncategorized at March 11th, 2009.
4 Comments.
Yes i was one of those in line for over an hour waiting to get in to claim my free t shirt. This was rather disappointing when i ran into a few friends who didn’t join the line till after it opened and still managed to grab a T-Shirt. They were still handing them out when i left. at time of writing there is already three on ebay, one currently going for $90.
So why did i brave the crowds? My excuse was that i work less the 100 meters from the new store so i couldn’t Not go could i now? Due to Apples Cult like fowling they don’t need to advertise events, the media does it for them. One MacTalk Forum member got interviewed over 15 times while waiting in line. Not such events are truly complete without a good Bonehead. I felt it only right that i should facilitate this factor.

Click for Full Video
Posted in
Uncategorized at June 19th, 2008.
No Comments.
Another day another word press install. I have lost track of how many of these i have done. Most of them never get more then about 5 posts before i get bored of them or a new WordPress bug comes out and they get hacked. Ah well there’s no time like the present to start over a new leaf?
Posted in
Uncategorized at June 12th, 2008.
1 Comment.