Archive

Archive for the ‘*nix’ Category

pg_service.conf Syntax

February 15th, 2010

I am setting up monitoring for my PostgreSQL database server, and ran across a cool way to get around specifying the username/password via the command-line every time the checks are run: pg_service.conf. Unfortunately, there is very little documentation on the config file. As best as I can figure out, if you are connecting to a remote host, your definitions should look as follows:

[service.name.here]
dbname=db.name.here
user=user.name.here
host=host.name.here
password=password.here

On a Gentoo Linux server with PostgreSQL 8.4 installed, this file will need to be placed at /etc/postgresql-8.4/pg_service.conf. Then, to reference it, simply export the PGSERVICE environment variable with the value of the name of the service in brackets.

*nix, Systems Administration ,

JIRA Failed to Find DataSource

December 6th, 2009

If you were a luck systems administrator who followed the instructions for a Tomcat container installation using the EAR-WAR install when setting up Atlassian JIRA, then you may have been privileged to see the following error message in your log files:

2009-12-06 22:56:25,762 main WARN     [core.entity.transaction.JNDIFactory] [ConnectionFactory.getConnection]
Failed to find DataSource named java:comp/env/jdbc/JiraDS in JNDI server with name default.
Trying normal database. javax.naming.NameNotFoundException: Name jdbc is not bound in this Context

If you’d like the solution on how to get rid of this error, please read on.
Read more…

*nix , , ,

Strange LDAP & Sudo Problem

July 10th, 2009

After several updates of various systems software packages on my Gentoo Linux servers, I began to notice a problem where I was being denied sudo access. The solution was amazingly simple, once I actually Googled to figure out what was going on.
Read more…

*nix , ,

Zend Studio 7 Linux Problem

June 24th, 2009

I seem to be surrounded by problems these days. Zend has announced that Zend Studio 7 is now in Beta, so I figured I’d go give it a try since I was having so many problems with Eclipse being sluggish and overall a piece of junk. Yes, I know Zend Studio 7 is based on Eclipse, but I can’t help but think that the slowness is a part of the PDT plugin I use for PHP development.

I’m running Gentoo Linux AMD64 on a dual-screen monitor utilizing Xinerama. I ran into a problem when trying to start the installer for Zend Studio.
Read more…

*nix , ,

Virtual Mail - Individual Mailbox Filtering:q

May 2nd, 2009

So, one of the things I’ve been working on is getting a nice Virtual Mail system setup for Cerberus’ Enterprise Hosting Solution. One of the things I’ve come to be really annoyed with is the lack of being able to apply procmail filtering to my mailbox (getting ~100+ e-mails from systems logs every day really makes my phone’s battery drain trying to download them all). After scrounging around, I managed to find a nice solution for my virtual mail hosting.
Read more…

*nix , , , , ,

Gentoo Font Glory

April 3rd, 2009

I found an article today that any Gentoo (and likely any Linux user) should look at if they want fonts to look better than either Windows or Mac OS X. Check it out.

*nix, Systems Administration , ,

Gentoo and Amarok 1.4.10-r1

January 26th, 2009

I had been in the market for a new music player, and Songbird wasn’t really cutting it for me. They didn’t have keyboard support built-in yet, and the application was bloated as hell (it took several hundred megs of memory - way more than a music player should). XMMS was out of the question because Gentoo removed it. So, I turned to a KDE app called Amarok. It was getting good reviews on sites I read, so I attempted to install it - and almost never made it past that point.

Read more…

*nix , , , , ,

Solaris 10 - Nagios and GD Compile Issues

July 1st, 2008

If you ever compile Nagios successfully on Solaris 10 (trust me, it’s a beast to get working properly), beware if you get the following errors:

[Tue Jul 01 18:15:37 2008] [error] [client 192.168.0.100] ld.so.1: histogram.cgi: fatal
: libgd.so.2: open failed: No such file or directory, referer: 
https://nagiostest.domain.tld/nagios/side.html
[Tue Jul 01 18:15:37 2008] [error] [client 192.168.0.100] Premature end of script heade
rs: histogram.cgi, referer: https://nagiostest.domain.tld/nagios/side.html
[Tue Jul 01 18:16:03 2008] [error] [client 192.168.0.100] ld.so.1: statusmap.cgi: fatal
: libgd.so.2: open failed: No such file or directory, referer: 
https://nagiostest.domain.tld/nagios/cgi-bin/status.cgi?hostgroup=all&style=grid
[Tue Jul 01 18:16:03 2008] [error] [client 192.168.0.100] Premature end of script heade
rs: statusmap.cgi, referer: https://nagiostest.domain.tld/nagios/cgi-bin/status.cgi?hostg
roup=all&style=grid

Read more…

*nix, Systems Administration , , ,

Solaris 10 and NFS

May 29th, 2008

I’ve been getting our Solaris environment setup in the College of Architecture, and one of the things I quickly realized with zones is that I’m going to need to setup LDAP to have any sort of efficient way of managing user accounts. Once this was setup, I quickly realized the need for NFS to be setup and thought that it’d be fairly straight-forward to setup (like it is on Linux). This turned out to not be the case.
Read more…

*nix ,

VIM in Windows!? Whod’a thunk?

April 1st, 2008

A friend of mine passed over the following blog entry, which I found quite to my liking. J.P. Boodhoo (a leader in the .Net development community) has found some plugins and tools which enable vim in certain applications in Windows. Those being:

  • Visual Studio 2005/2008
  • Microsoft Word
  • Microsoft Outlook

Check out the article. It’s awesome.

*nix, Software Development, Windows