Sun JDK on Fedora Core 6

I am not a Java fan and I do prefer doing all my stuff in Perl (due to the perl being more flexible and comfortable to code in [my personal view] and probably due to the nature of the tasks I have), but due to the college class Object Oriented Programming which is totally taught in Java, I have to install Sun JDK on my laptop for some time.

It turned out that the task is not that easy (actually easy, but tricky), but I found a nice article which describes all steps needed to get Sun JDK configured on the system – works for me

Fixed home PC

I have been experiencing some problems with my home PC. It was showing me problems with hard drives. First I though that my hard drives are quite old and need replacement. I got myself new SATA drives since my motherboard supports both PATA and SATA, but then the problem continued and what I have found out is that my power supply was dieing. New SATA drives are faster and probably consume some more power :(. Anyway, I got myself a new 400W power supply and now everything works just perfect.

I also thought to get myself a new PC, but then I remembered that a Quad Core is coming very soon and decided to wait for it :)

FC6 FreeNX RDP and fonts

For the past few months I have been using FreeNX a lot for remote support of all kinds of server. I got so used to this tool and now I have a problem with it. After I have installed Fedora Core 6 on my laptop, the NXclient does not show any fonts/text in the remote window during the RDP sessions :(

I have checked everything I could, but still can not fix the problem, so if you have the same problem and you get a fix, please let me know, since my life is getting harder with no FreeNX :(

Logrotate compress

I have a server with does a lot of different stuff like central syslog, proxy and web and which generates a lot of huge logs. For the past few weeks I have been fighting with the free space issue and I had to delete some old logs in order to free up some space. Finally I have found out a way out to help me a bit – I start using compress command in logrotate config files for some of the biggest logs I have (like messages, secure, etc).

I didn\’t actually thought of posting this, but I have found that Neo has similar problem (as described here), so I thought that this can do some use for people :)

In order to make logrotate to compress the old logs, just add a compress clause in the logrotate config for a particular log and it will make the job. If you dig into logrotate manual page, you will see that the customization is also possible through passing additional commands like compresscmd and other.