syslog

ramblings of an administrator

Follow me on TwitterRSS Feeds

  • Home
  • apache
  • debian
  • howto
  • mail
  • nagios
  • nginx
  • php
  • postfix
  • ssh
  • ubuntu
  • uncategorized
  • varnish
  • vmware

Find and replace across multiple files

Aug 13th

Posted by Kura in howto

No comments

I needed to quickly modify 500 hundred XML files, each was about 10MB in size, thankfully Linux makes that pretty fast and very easy. find . -name “*.xml” -print | xargs sed -i ‘s/FROM/TO/g’ A semi “real world” example: find . -name “*.xml” -print | xargs sed -i ‘s/foo/bar/g’

find, sed, xargs

Adding swap while the server is online with Debian and VMWare ESX

Jul 7th

Posted by Kura in debian

No comments

Recently I had to install Oracle on a virtual machine but didn’t find out until after I’d spun up of the machine that Oracle required at least 2GB of swap space, my machine did not have enough. Thankfully it’s quite simple to increase swap space, using VMWare ESX, simple add a new drive to the

debian, swap, vmware

Trigger command on filesystem changes with inotify + incron

Jul 3rd

Posted by Kura in debian

1 comment

During a seemingly normal work day a colleague pointed out a problem to me and asked if I had any solution. The problem was that they were trying to use InfoBright (http://www.infobright.com/) for some data crunching, export the data to CSV and then import in to MySQL. My first idea was to output the data

incron, infobright, inotify, mysql

Using dpkg selections to backup and install packages

Jul 2nd

Posted by Kura in debian

No comments

Sometimes you want to be able to install packages on another machine without the hassle of a long apt-get install command or having to write down every single package you’ve installed. Luckily Debian has the wonderful dpkg which has 2 methods for generating a list of installed packages and another for importing a list. Generating

apt, backup, dpkg, packages

AFK, an SMS sender and way too much PHP…

Jun 13th

Posted by Kura in uncategorized

No comments

Sadly of late I’ve been stuck writing nothing but PHP during my work hours. Short of a few major internal disasters I’ve done nothing I would count as interesting enough to really post about, until recently. A week or two ago I made some modifications to our internal Nagios monitoring system – http://nagios.com/ – which

afk, php, python, sms

Coming soon… Solr research

Apr 18th

Posted by Kura in apache

No comments

Recently I decided that it would be a good idea for the company I work for to start looking in to Apache Solr for use with some of our bigger clients, I will report any fun I find it with back here including installation on Debian/Ubuntu and most likely complain about Jetty and Tomcat because

jetty, solr, tomcat

New syslog.tv nginx wordpress site configuration explained

Apr 18th

Posted by Kura in apache

No comments

I made some modifications to my nginx configuration this weekend to improve performance and clear up some bugs…

apache, cache, nginx, proxy, proxy_cache, wordpress

Convert PEM & Key to a single PKCS#12 file

Apr 13th

Posted by Kura in howto

No comments

Sometimes keeping multiple copies of keys, certificates and root certificates can be a real annoyance, thankfully it’s quite simple to convert them in to a single PKCS#12 file with the following command. openssl pkcs12 -export -out certificate.pkcs -in certificate.crt -inkey private.key -certfile rootcert.crt -name “PKCS#12 Certificate Bundle” This will create a file called certificate.pkcs which

crt, openssl, pem, pkcs12, ssl

Building nginx on Red Hat and Debian to RPM/DEB-style locations

Apr 2nd

Posted by Kura in debian

No comments

The title of this post is a bit stupid, but I honestly couldn’t think of any other way to write it… When compiling nginx by hand, by default make install will push the binaries out to /usr/local/nginx and it doesn’t come with a start/stop script, understandably because it doesn’t know which OS it is going

debian, fedora, install, nginx, redhat, ubuntu

Apache internal dummy connection

Mar 27th

Posted by Kura in apache

No comments

Recently I found that one of the servers I look after that runs a high profile site was generating semi-high load at traffic peaks. You could generally say that this would be understandable but the server was shooting up to a load of around 10 for a few seconds and with that load jump I

apache, load average

Configuring Nagios to monitor remote load, disk, swap etc using NRPE

Mar 21st

Posted by Kura in debian

2 comments

Using nrpe to monitor remote servers with Nagios on Debian or Ubuntu.

debian, monitoring, nagios, nrpe, ubuntu

Show IP in Apache logs from nginx reverse proxy

Mar 20th

Posted by Kura in apache

No comments

Quick blog post on how to send through correct IP to Apache logs when reverse proxying requests through nginx.

apache, log, nginx, proxy

nginx – increase increase server_names_hash_bucket_size

Mar 18th

Posted by Kura in howto

No comments

Explanation on how to increase server_names_hash_bucket_size if you have large domain names and wish to use them with nginx.

nginx

Finding files over a set size with find & awk

Mar 17th

Posted by Kura in debian

No comments

User uploaded content can be a pain when it comes to disk usage, especially if the users upload 10MB photos. This post will show you how to use find, awk, egrep and wc to find names over files over a specified size, total amount of files and even check based on filetype.

awk, egrep, find, linux, ls, wc

Convert DER certificate to PEM

Mar 3rd

Posted by Kura in apache

2 comments

Some times as an administrator you will be given a certificate from a third party that will be in the DER format, which cannot be loaded in to Apache. Converting it is a simple process and will be described in this blog post.

apache, certificate, crt, der, pem, ssl

less is more

Mar 1st

Posted by Kura in uncategorized

No comments

A very, very short blog post detailing why less is more and more is less, with usable options and built-in key bindings.

less, linux, unix

HOWTO: SSH config on Debian/Ubuntu

Feb 18th

Posted by Kura in debian

1 comment

Today I finally got round to setting up my local user ssh config on my new work laptop and figured I’d do a quick write up on it and it’s uses.

debian, howto, ssh, ssh_config, ubuntu

HOWTO: Guest Virtual Machine disk extend online with Debian/Ubuntu, LVM2 and VMWare ESX

Feb 16th

Posted by Kura in debian

2 comments

Recently a request was put forth to increase the disk space on a couple of our VMs for them to be filled with user generated content. Each VM was 10G in size and so were far too small, I originally tried to increase the disk space offline using GParted but ran in to problems because of LVM, then I realised that LVM meant the VM didn’t need to be offline. This guide will try to help walk you through the process of extending disk space without putting the machine offline using the wonders of cfdisk and lvm.

cfdisk, debian, esx, howto, logical volume management, lvm, lvm2, partition, ubuntu, vmware

More nginx proxy_cache optimizations and nginx load balancing

Feb 14th

Posted by Kura in apache

4 comments

This is yet another follow up to post to several previous posts about using nginx as a reverse proxy with caching. It is actually a direct addition to my post from a week or so ago which outlined how to actually using nginx’s proxy caching feature. This post will cover changes to I’ve made to my caching config and the addition of load balancing.

apache, cache, debian, howto, load balancing, nginx, ubuntu, wordpress

code_swarm – Apache, Python and PostgreSQL commit visualization

Feb 13th

Posted by Kura in uncategorized

No comments

These videos are pretty old now and I had forgotten about them until a colleague tweeted about a Twitter code_swarm visualization which made me remember. Great visualizations of commits to Apache, Python and PostgreSQL.

apache, code_swarm, postgresql, python
12»
    • Recent comments
    • Popular posts
    • Archives
    • Tags
    • Categories
    • apache (13)
    • debian (21)
    • denyhosts (1)
    • howto (25)
    • logwatch (1)
    • mail (3)
    • nagios (2)
    • nginx (9)
    • php (3)
    • postfix (2)
    • ssh (2)
    • ubuntu (13)
    • uncategorized (8)
    • varnish (1)
    • vmware (2)
    apache cache cfdisk code_swarm coming soon crt debian denyhosts dkim domainkeys esx eth0 find howto iptables less linux load balancing logical volume management logwatch lvm lvm2 mail mod_ssl nagios networking nginx partition pem php postfix postgresql proxy python security ssh ssh_config ssl sudo sudoers ubuntu varnish vhost vmware wordpress
    • August 2010 (1)
    • July 2010 (3)
    • June 2010 (1)
    • April 2010 (4)
    • March 2010 (7)
    • February 2010 (10)
    • January 2010 (9)
    • More nginx proxy_cache optimizations and nginx load balancing (4)
    • Configuring Nagios to monitor remote load, disk, swap etc using NRPE (2)
    • HOWTO: DKIM with Postfix on Debian (3)
    • Using nginx, Varnish and Apache (3)
    • HOWTO: DomainKeys with Postfix on Debian/Ubuntu (2)
    • HOWTO: Guest Virtual Machine disk extend online with Debian/Ubuntu, LVM2 and VMWare ESX (2)
    • Convert DER certificate to PEM (2)
    • Find and replace across multiple files (0)
    • Debian, Apache 2, Nginx, WordPress MU & WP-Super-Cache (0)
    • HOWTO: Debian server security (1)
    • Ty Bye: Resolved. I somehow managed to forget to bounce the nagios-nrpe-server daemon after editing the...
    • Ty Bye: I'm new to nrpe. Any help you could offer on Ubuntu 10.04 for the error message: CHECK_NRPE:...
    • Delicious Bookmarks for August 28th from 18:00 to 22:57 « Lâmôlabs: [...] syslog » Debian, Apache 2, Nginx, WordPress MU & WP-Super-Cache – August 28th...
    • Chris: Seriously thanks! This information is not published very well other placed and I struggled for...
    • Kura: Thanks for the comment, already knew about GNU Parallel but generally xargs is installed by...
    • Ole Tange: Your use of xargs can lead to nasty surprises because of the separator problem...
    • Kura: All configuration for Nagios on Ubuntu is done in /etc/nagios3/
    • nagios configuration and using: hello i install nagios3 on ubuntu 10.04 successfully. i have launch it successfully on the web...
  • Find

  • About

    • Me
    • Syslog
    • PGP
  • Tweet

    Loading tweets...
    Follow me on Twitter!
  • Blogroll

    • A Musing Moose
    • Code in the hole
RSS Feeds XHTML 1.1 CSS 3.0 Top
Copyright © 2010 syslog