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.
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.
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.