1084 days on this internal monitoring machine. Unfortunately I had to take the machine down as I was replacing it.
Posts By: jonny
Linux Find Not Owner
In Linux to find files not owned by user using the ‘find’ command we negate with the exclamation mark so rather than: find . -user jonny we use: find . ! -user jonny Where: find <dir> ! -user <username>
VirtualBox 4.0 on Ubuntu 10.10 Maverick
Add the following to /etc/apt/sources.list deb http://download.virtualbox.org/virtualbox/debian maverick contrib Then run: wget -q http://download.virtualbox.org/virtualbox/debian/oracle_vbox.asc -O- | sudo apt-key add –sudo apt-get updatesudo apt-get install virtualbox-4.0 After running VirtualBox download the extension pack: wget http://download.virtualbox.org/virtualbox/4.0.0/Oracle_VM_VirtualBox_Extension_Pack-4.0.0-69151.vbox-extpack Visit File > Preferences > ExtensionsClick the icon to add an extension and choose the extension pack you downloaded.
msconfig Startup Programs
This searchable list if programs could come in useful when disabling programs from starting on slow windows machines.
MySQL: Too Many Connections
On a shared server with MySQL and Apache the MySQL server was periodically disallowing connections as there were already too many connections. The default is 150+1 so I added the following to /etc/my.cnf max_connections=200 To increase the maximum number of connections to 200+1
Clamd and Iptables
Running Clam on a separate machine to our Mail Transfer Agent we needed to configure iptables to allow access to clam from those machines. Clamd listens for connections on port 3310 by default but appears to hand off to other ‘passive’ ports for each stream to scan. So allowing access to port 3310 was not… Read more »
Google Font Directory
The Droid Sans font from Google Font Directory is a lovely font with great readability for use on web pages.To use Droid Sans add a css link: <link href=’http://fonts.googleapis.com/css?family=Droid+Sans‘ rel=’stylesheet’ type=’text/css’> then in your own CSS file add a reference to the font e.g. body { font-family: ‘Droid Sans‘, arial, helvetica , sans-serif; } Loading… Read more »
Dansguardian Randomise Rules
If you plan to use URLBlacklist.com or Shalla rules in Dansguardian you may suffer from very slow (or impossible) restarts of the daemon. Dansguardian prefers the rules randomized rather than in alphabetical order. I couldn’t find the randomize lines package in the repos so compiled it first e.g.: wget http://arthurdejong.org/rl/rl-0.2.7.tar.gztar xzf rl-0.2.7.tar.gzcd rl-0.2.7./configuremakemake install Then… Read more »
Screen – Watching 2 log files at once
I needed to tail two log files in one terminal so on the server I was using: yum install screen [or apt-get install screen]screenCtrl-A c [create new session]Ctrl-A Shift-s [spilt the screen]Ctrl-A TAB [move to the other frame]Ctrl-A ” [choose a screen session for this frame] Run “tail -f filename1” in one frame then Ctrl-A… Read more »
Building an RPM Package (DansGuardian 2.10)
After putting together an RPM for DansGuardian v2.10.1.1 I thought I would make a few notes. The version of DansGuardian in the repositories is currently version 2.8 and the only other repo or rpm I could find was a 32-bit 2.10. Why DansGuardian 2.10? Content Scanning Support with Clamd or Kapersky Regular Expressions to enforce… Read more »