Category Archives: System Admin
PostgreSQL connections
If you are using an application that needs PostgreSQL connections on your LAN, don’t forget to add, or replace, in file postgresql.conf – listen_addresses =’*’ Otherwise, postgres will bind only to ‘localhost’ and won’t be accessible from your network. You … Continue reading
Controlling backscatter spam in Mailman
By default, Mailman — which is installed by default in Virtualmin as your mailing list manager, exhibits some nasty behavior, being open to sending “backscatter” spam. This means that the Bad Guys send fraudulent messages “from” the email address they … Continue reading
Setting up Zonet 2102 print server on Ubuntu Linux
For setup of the Zonet ZPS2102: The default IP is 192.168.0.10 … in the Add Printer dialogs, choose Network Printer, then enter the IP address, the queue (default is: LP1) and choose the model. The Device URI, when you are … Continue reading
Commands on selected files in a tree
For example, I needed to add the group execute (list directory) bit to every subdirectory in the tree below the currrent directory. Most of the simple ways get tripped up by filename quoting, or embedded spaces in directory names. Here’s … Continue reading
Share Thunderbird Address book via LDAP
If you like this, please consider donating to fund further development. After years of frustration waiting for the Mozilla Thunderbird folks to add the ability to edit LDAP address-books, and years of frustration with the pigheadedness and brain-damagedness of LDAP … Continue reading
Mailman membership reminder
Here’s a little script you can add to your crontab, to periodically email the administrators of each mailman mailing list both the list of current members and the mailing-list’s full configuration. This gives you both an audit trail of membership … Continue reading
Subversion 1.6.5 on Ubuntu 9.04
Following the instructions at: https://launchpad.net/~anders-kaseorg/+archive/subversion-1.6 Edit the apt sources, using your favorite editor: $ sudo emacs /etc/apt/sources.list Add these lines to the end of the file: deb http://ppa.launchpad.net/anders-kaseorg/subversion-1.6/ubuntu jaunty main deb-src http://ppa.launchpad.net/anders-kaseorg/subversion-1.6/ubuntu jaunty main The add the key signature: $ … Continue reading
Reducing Spamassassin process count
Dramatically reduce memory footprint by changing the number of threads that spamassassin will execute at once from 5 down to 1. Centos: In /etc/sysconfig/spamassassin – change: SPAMDOPTIONS=”-d -c -m5 -H” to SPAMDOPTIONS=”-d -c -m1 -H” Debian: in /etc/default/spamassassin, change: OPTIONS=”–create-prefs … Continue reading
APC UPS in Centos 5.x
$ sudo yum install apcups* … —> Package apcupsd.x86_64 0:3.14.3-1.el5.rf set to be updated … $ sudo /sbin/chkconfig –list apcupsd apcupsd 0:off 1:off 2:on 3:on 4:on 5:on 6:off Before you start the apcupsd service, edit /etc/apcupsd/apcupsd.conf and set the cable … Continue reading
Mounting LVM volumes from Ubuntu LiveCD
sudo -i apt-get install lvm2 modprobe dm-mod vgchange -a y Also try – pvdisplay Displays physical volumes vgdisplay Displays volume groups lvdisplay Displays logical volumes and: man lvm