Blogs

Daily Spam-vertisements

It seems that for some time now my website has been recieving a healthy dose of spam in every comment box and regular comments by real people were going un-noticed!  For those of you who commented, I'm sorry for not noticing your comments sooner!  I've implemented a few things to prevent this from ever happening again (Like the use of mollom to smite the evil bots!).

Ubuntu 8.10: HAL .fdi files replace xorg.conf

With the release of Ubuntu 8.10 comes a relatively radical change from the norm; The obsolescence of the xorg.conf file!

The xorg.conf file is now replaced with the use of .fdi files that can be "plugged" and "unplugged" without the need to restart the computer.  More information on the usage of these fdi files can be found on Ubuntu's wiki site. Overall they provide more flexibility then the previous xorg.conf syntax, make use of XML, and allow for "matching" or "pairing" if the system has enabled components.

Here's a .fdi file I whipped up for my touchpad that I called touchpad.fdi and placed in my /etc/hal/fdi/policy folder as per the wiki's instructions.

<?xml version="1.0" encoding="ISO-8859-1"?>

<deviceinfo version="0.2">
<device>
<match key="input.x11_driver" string="synaptics">
<merge key="input.x11_options.SendCoreEvents" type="string">true</merge>
<merge key="input.x11_options.Device" type="string">/dev/psaux</merge>
<merge key="input.x11_options.Protocol" type="string">auto-dev</merge>
<merge key="input.x11_options.HorizEdgeScroll" type="string">0</merge>
<merge key="input.x11_options.SHMConfig" type="string">on</merge>
<merge key="input.x11_options.FingerLow" type="string">7</merge>
<merge key="input.x11_options.FingerHigh" type="string">8</merge>
<merge key="input.x11_options.MinSpeed" type="string">0.60</merge>
<merge key="input.x11_options.MaxSpeed" type="string">1.10</merge>
<merge key="input.x11_options.AccelFactor" type="string">0.030</merge>
</match>
</device>
</deviceinfo>

Running Zend Studio on 64 bit Ubuntu

If you're trying to install Zend Studio on a 64 bit install of Ubuntu you will run into trouble unless you install the  libc6-i386 and ia32-libs.  Here is the command you need:
 
sudo apt-get install libc6-i386 ia32-libs
 
(This information came from the ubuntu forums)

Gnome CPU Frequency Scailing Monitor Govoners

If you've ever used the GNOME CPU Scailing Monitor before you will know that it does not allow the switching of stepping speeds or govoners off the bat.
 
Thanks to Carthik it is only a matter of entering one command in your console and selecting the option 'Yes':
 
sudo dpkg-reconfigure gnome-applets
 
enjoy :)

Updated Rcon tool

I've re built the rcon connection so that it's a lot faster now.. (There are no slow page loads anymore)  And I've also figured out how to read all logaddress information from the server.  With that I hope to make a relatively decent running console in the rcon tool.
 
More updates to follow as I do them.  Otherwise check out the remote srcds management tool at http://rcon.dbaranski.net and report bugs / requests at http://rcon.dbaranski.net/trac

Ubuntu workarounds for HP dv4000 laptops

I enjoy using Ubuntu as my OS of choice.  But there are always a few quirks to work out to make things "just right".  Here's a short list of changes I've done to make Ubuntu work better for me.

Wireless light

The wireless light always remains turned off.  My laptop (and probably most other dv4000's) uses the ipw2200 wireless card made by Intel.  This card is actually supported very well in the open source community thanks to Intel releasing the driver code.  Here is the command to get this working:

$ sudo echo "options ipw2200 led=1" >> /etc/modprobe.d/ipw2200

Mute light

The Mute LED never worked on my laptop.  The muting itself worked fine, but the light never turned on.  Here's a fix to solve this problem.

$ sudo echo "options snd-intel8x0 ac97_quirk=mute_led" >> /etc/modprobe.d/options

More information on different quirk options is available on this forum topic.

More information to follow as I remember / do it!

CentOS 5.2 Release fixes Xen PV crashes

CentOS 5.2 came out this week. I've been looking forward to this release now for some months because it adds support for 32 big images on 64 bit dom0s.

Previous attempts to use 32 bit images on 64 bit dom0s resulted in serious domU crashing goodness. (The image wouldn't stay up for more then a day or so...) The New RHEL/CentOS release back ports Xen 3.1 which fixes these issues.

I've always had problems running srcds servers on 64 bit images and therefore wanted this 32 bit support. For some reason I only get half of the server fps that I should with 64 bit images. For example a 500fps server would only run at 250fps. Though I have seen success stories when using 64 bit UNIX distros I never looked into fixing it properly because of my peculiar setup.

With the new update I'll be shifting back to using 32 bit images for hosting my srcds servers. I mean after all, the srcds binaries are i686 :).

new SRCDS RCon tool in the works

I'm working on a web based administration tool for srcds based servers. It's in the works but you should be able to administer any server that runs srcds with it with zero setup. All you require is the address and rcon password.

If you're interested in trying it out you can find it at http://www.dbaranski.net/rcon

Please report any bugs / feature requests to me via email or the proper forum on my site.

Enjoy :)

The Instabilities of 32bit guests running on a 64bit dom0

Be warned for anyone interested in running 32bit guests on 64bit dom0 instances that it us currently not supported in CentOS 5.1. This will apparently be corrected in the upcoming release of RHEL (5.2) which is scheduled to make it's appearance in a month or so. (It should have left beta May 7th).

The stability is SO bad that the image won't even stay up for a single day. You have been warned. Stay away from mixing 32 and 64 bit OS's. Note that this has long been fixed in the Xen repos. One would just have to figure out how to go about building Xen by himself. Not suggested for production environments either..

domU at 1000hz!

Well, after a few weeks of trouble I've finally got my domU image working at 1000Hz.. The interesting thing is that I didn't even have to reboot my server running dom0 to achieve this success!

Initially I ran into trouble because I was attempting to compile the xenified kernel from the xen.org site. This code lead to kernel panics during boot because that kernel couldn't detect LVM volumes which CentOS uses by default. I was unable to find the "exact" reason for this problem and therefore moved onto other solutions.

I eventually came to CentOS's own wiki and found that their kernel-recompile tutorial would work perfectly since the xen configs were included with the source! (awesome stuff).. Though, originally I had thought that I would need to replace the dom0 kernel and therefore worried a bit if problems arose. (I have servers far away that are not at arms reach for human intervention)... So I used a test box at home..

After a kernel recompile locally I installed the kernels (after configuring for 1000Hz) on dom0 and booted up a domU.. To my surprise it was still using the original kernel that was installed which lead me to my conclusion... I ended up installing the recompile kernel only on the domU that required it! And it works perfectly to boot with no need to sweat over dom0 not booting.

I'll make a guide for this shortly however if anyone is interested in following the steps I took (very well written) head over to the CentOS wiki article CenOS Custom Kernel. Well written indeed.