WordPress auto-formatting

I’m controlling the autoformatting in wordpress so that linux commands and especially configure directives show up correctly and can be used in a shell by copying and pasting directly from this blog.

The solution I’ve been using for years is to edit wp-includes/formatting.php and remove the 2nd and 3rd array elements from $static-characters (‘ –‘, ‘–‘,) and $static-replacements (‘ — ‘, ‘–’,)

That should yield lines similar to the following:

./configure –prefix=/usr –sysconfdir=/etc

–mandir=/usr/share/man –infodir=/usr/share/info

–localstatedir=/var

here’s a line that should include an em-dash —

here’s a line with 2 hyphens —

here’s a line with 2 hyphens — surrounded by spaces

 

Audio_Burn

Installed tarballs in the following order with:

./configure –prefix=/usr –mandir=/usr/share/man –infodir=/usr/share/info

libmad-0.15.1b.tar.gz

libid3tag-0.15.1b.tar.gz

libao-0.8.8.tar.gz

normalize-0.7.7.tar.bz2

audio_burn-0.0.9.tar.gz

The default configure options built everything except the normalize xmms volume control plugin. I don’t know why and I didn’t spend any time trying to find out – at least yet…

Evolution Connection problems

Periodically, I have problems connecting to our Exchange server using Evolution. I’m not really sure what causes it but it appears to be a problem retrieving new messages. The message I get in the GUI is that “Evolution lost the connection to the Exchange backend server.” Restarting Evolution does not correct the problem, not noes rebooting the system entirely.

Fortunately, I can correct the problem with the following procedure.

Close Evolution, and in a shell, execute the following:

evolution –force-shutdown

cd ~/.evolution/mail/exchange

rm -fR *

Installing VMWare Workstation 6 on FC6

No matter, what RedHat release, no matter what version of VMWare, I’ve never had a problem getting workstation installed and running. Even if that meant building the modules for the latest kernel I’d compiled and installed. Until Workstation6 and FC6 that is…

Probably has to do with the newer version of glibc that is part of FC6. Anyway, FC6 is not a “supported” OS, so getting it installed requires a 3rd-party patch. Here is what VMWare has to say about it.
Here is the process I used to get it working.

Using Linux to create bootable Ghost CDs

Quickly create a bootable DOS CD for ghosting systems using mkisofs with the following one line command:

mkisofs -r -b doscdbt.img -c boot.cat -V GHOSTBT -o ghostbt.iso ghost1 ./doscdbt.img

boot.cat does not need to exist prior to running this.

Create the boot image file by inserting a bootable DOS floppy and running this command:

dd bs=1440 if=/dev/fd0 of=doscdbt.img

Finally, burn the disk with:

cdrecord ghostbt.iso

OpenSSH from source

OpenSSH is probably installed by default by every available Linux distribution.

However, the packaged versions are not always updated frequently enough to include the latest feature and security fixes.  You may also need to update a production server that runs an older distribution for which you can’t find a suitable package. In either case, installing from source may be your best bet.

A procedure for installing OpenSSH from source code is available here.

OpenSSL from source

OpenSSL is an Open Source toolkit installed, and used extensively by all kinds of software running on Linux systems.

If you find your distribution is slow to provide the latest feature and security updates, you may want to consider installing the latest version from source code.

A procedure for installing OpenSSL from source code is available here.