Category Archives: tips

Locating PostgreSQL data directory

Use a simple psql query to find the location of the data directory postgres=# SHOW data_directory; data_directory —————————— /var/lib/postgresql/8.4/main (1 row) Or postgres=# select setting from pg_settings where name = ‘data_directory’; setting —————————— /var/lib/postgresql/8.4/main (1 row)

Posted in tips | Tagged | Leave a comment

Enable Thunderbird Global Search in Fedora

If you’ve just installed Thunderbird on Fedora 13, you’ve probably noticed the Global Search bar is missing. At least, this is one of the first things I noticed. After using Thunderbird 3.x for sometime on Windows I’ve really come to love this feature. It seems the default configuration on Fedora doesn’t enable this feature by [...]

Also posted in other | Tagged , , | 1 Comment

Lock and Unlock Linux accounts

Using passwd it is possible to quickly lock and unlock Linux accounts. To lock an account. passwd -l username To unlock an account. passwd -u username

Posted in tips | Leave a comment

Using telnet to test POP server

Using telnet (or putty) it’s possible to some simple tests against a POP server. By no means exhaustive, it can give you insights in where to start troubleshooting. First, using telnet and open a connection the remote POP server telnet mailserver 110 Where mailserver is the mail server you want to connect to. Note that [...]

Posted in tips | Leave a comment

Linux IPv6 Neighbor Discovery

Using ping6 and ip neigh it’s possible to discover other IPv6 hosts on your local network using the link-local addresses. First, use ping6 to ping all hosts on the local network using the IPv6 link-local address ping6 -c 2 -I eth0 ff02::1 Then, use ip neigh to show a list of IPv6 enable hosts on [...]

Also posted in quickfire | Tagged | Leave a comment

Rewrite incoming CallerID

We’re using asterisk, and as part of the dial plan, a 9 is required before the number to make calls out to the PSTN.  Since our phones have a incoming call log, it would be very convient to have asterisk rewrite the CallerID value on calls from the PSTN to include this leading digit.  I [...]

Also posted in quickfire | Tagged | Leave a comment

Asterisk GotoIf Application

The description from asterisk for this is GotoIf(condition?[labeliftrue]:[labeliffalse]), however for me (being somewhat new to asterisk, and not fully understanding all the little bits, this was a bit confusing. A better way of describing this, at least for those of use new to asterisk, might be GotoIf(condition?[context,priority,labeliftrue]:[context,priority,labeliffalse]). I have not used labels in the dial [...]

Also posted in quickfire | Tagged | Leave a comment

Quick install of Tomcat5 on CentOS

At the office, we’re in the process of doing some work where we need a tomcat server.  Without having to get into things to much, I found this simple method for getting tomcat5 up and running pretty quickly.  I’m sure I’ve left out some important things, and I’m doubtful as to how production ready this [...]

Also posted in quickfire | Tagged , | Leave a comment

Launch Google Chrome and external links with incognito mode.

The instructions floating around are to place the –incognito switch (single – works fine for me) in your desktop shortcut. But sometimes you may be in an application like Tweek Deck, etc that links to webpages. These pages don’t launch in incognito if you only fix your desktop shortcut. Here is how to do both. [...]

Also posted in quickfire | Tagged , | 1 Comment

Remove bonded interface in OpenFiler

I decided to try and use NIC bonding in OpenFiler and while things seemed to go well at first, I did run into some issues over time.  I’m still in the process of testing, and I think most of the issues are “user error” and not so much problems with NIC bonding or OpenFiler itself.  [...]

Posted in tips | Tagged | 4 Comments