Skip to content

Category Archives: Applications

rsync with a non-default ssh port

28-Dec-11

The rsync man page notes that the “-e” or “–rsh” flag lets you “specify the remote shell to use”. This can be used to specify transfer over a non-standard SSH port using the “-p” flag to the ssh binary:

389 Directory Server Font Requirements

22-Feb-11

If you are installing a 389 Directory Server instance on a headless (no X11) CentOS installation, you need extra font packages not included as 389 dependencies. (Otherwise, e.g. no text may appear when you launch “389-console”.) I verified this listing works; a subset may work, but I have not tested against one. ghostscript-fonts-5.50-13.1.1 xorg-x11-fonts-base-7.1-2.1.el5 xorg-x11-fonts-Type1-7.1-2.1.el5 [...]

Listing files in a .zip archive

06-Jan-11

Use the “-l” flag to unzip:

Adobe Reader Download Site, Flash Current Versions

30-Nov-09

Skip Adobe’s buggy download web page, which frequently lists out-of-date versions of Reader as current; go direct to the FTP site at ftp://ftp.adobe.com/pub/adobe/reader/unix/9.x/. The current version of Adobe Flash is detailed at http://www.adobe.com/software/flash/about/.

Using sftp on an alternate port

07-Aug-09

Unlike ssh and scp, sftp does not have a “-p” or “-P” flag to specify an alternate port. Instead, if the host you are connecting to has ssh running on a port other than 22, you need to use the “-o” flag: sftp -oPort=2345 remote.hurricane-ridge.com According to the man page, “-o” allows you to “give [...]

Initializing an SVN repository

16-Mar-09

To initialize a Subversion repository, use the svnadmin command. In its simplest form: > svnadmin create /var/svn/repos For an HTTP repository, it might be something like the following: > sudo -H -u www svnadmin create /var/svn/repos References: “Creating the Repository” Version Control with Subversion

Manually changing the expiration date of NBU media

16-Feb-09

Use NetBackup’s bpexpdate. For example, to set tape 001038 to never expire (actually, this sets it to expire sometime in 2038, but close enough for those of us living in 2009): bpexpdate -m 001038 -d infinity To expire 001038 immediately: bpexpdate -m 001038 -d 0

Running Nginx with PHP via FastCGI

19-Jan-09

Build a default Nginx install; I used the following configure arguments, but these are not necessary for using PHP/FastCGI (only for my environment): ./configure –prefix=/opt/nginx-0.6.34 –user=apache –group=apache Build PHP for FastCGI, with the following configure arguments: ./configure –prefix=/opt/php-5.2.8 –enable-fastcgi –enable-force-cgi-redirect –with-gd –with-mysqli –enable-mbstring –enable-fastcgi –enable-force-cgi-redirect are the important arguments to configure; the others are simply needed [...]

MySQL Source Installation Checklist

15-Jan-09

Installation overview: shell> groupadd mysql shell> useradd -g mysql mysql shell> gunzip cd mysql-VERSION shell> ./configure –prefix=/usr/local/mysql shell> make shell> make install shell> cp support-files/my-medium.cnf /etc/my.cnf shell> cd /usr/local/mysql shell> bin/mysql_install_db –user=mysql shell> chown -R root . shell> chown -R mysql var shell> chgrp -R mysql . shell> bin/mysqld_safe –user=mysql & shell> /usr/local/mysql/bin/mysqladmin -u root [...]

EICAR Test Viruses

15-Jan-09

For testing ClamAV and other antivirus software: EICAR Test Virus EICAR Test Virus, zipped EICAR Test Virus, nested zipped