Smoothwall Firewall project

Wednesday, 9 September 2009

Using a Mozilla XULrunner application to edit your Sqlite databases


I have needed a tool to edit/change sqlite database, and have been using this great Firefox extension, but it requires you to load Firefox, which I don't always do while I'm testing Chromium. You can get this great extension here:

Sqlite Manager

So I noticed today, that they also offer a downloadable version which works just with XULrunner on it's own. It's not that surprising as many extensions leverage the power of this component, but it means you can launch this on it's own , which is handy.

So all you do is download the zip file, and make sure you have XULrunner-1.9.1 from your favourite Linux repository and unzip the file where you want, /opt is a good place for most.

Then just add a launcher on your desktop to start the application like this:


/usr/bin/xulrunner-1.9.1 /opt/sqlitemanager/application.ini (or where you unzipped it)

Voila, you have a great utility ready to run.

In the picture above I'm having a look at the cookies I've downloaded while testing Firefox 3.5.2

I also came across this web site while checking out how this fitted together, which gives you a good intro into developing your own XULrunner apps.

Howto create your own XUL applications

Tuesday, 8 September 2009

Setting up the SSH daemon on your Netgear 1100 NAS server



After having installed one of these units for a small project , I wanted to get passed the web interface to have a look at the detailed error logs on this NAS unit.

I had a look on the Netgear forums and there are several add-ons you can apply to the unit to enhance or modify what it is capable of doing. As this is basically Linux running on Sparc, you will be able to do pretty much anything you like. It would appear that virtually every appliance these days runs Linux or BSD, and getting an SSH CLi onto these units gives you a lot more granular control.

When you have a look around the configuration on this unit, the company that actually built these devices before Netgear bought them - Infrant - has it's fingerprints all over the place. When you look at the processor for instance, it reports itself as an:

Infrant Technologies, INC - neon version: 0

When you dig around in the kernel libraries it becomes clear that this is a sparc CPU.

Anyway, back to the project in hand. You need to download these two files:

ToggleSSH_1.0.bin and
EnableRootSSH_1.0.bin


You then need to install them one at a time using the software update screen - below - and reboot the unit after each install. Why they are bin files is not obvious, as a simple script file would have been sufficient, but it may be to do with the extension install mechanism. It would appear all they do, is enable the SSH daemon in /etc/init.d and configure the file /etc/ssh/sshd_config to allow root access.



Once you have re-booted for the second time, point your favourite SSH client at the IP address of the NAS server and log in as root, like so:

SSH root@192.168.1.1 - or whatever your IP address is

voila!

Monday, 7 September 2009

Trying out Kernel mode setting Intel acceleration with Ubuntu Jaunty

*** Be Warned this is highly experimental and could cause you hours of wasted lifetime if you don't fully understand what you are doing. You can just wait for the next release of Ubuntu, when this will be built in. ****


I have had one or two minor graphic problems on my Dell XPS1330 with Ubuntu jaunty, which is to do with the transition of the type of graphics driver which is going to be installed with the next release of Ubuntu. One of the key features in the next release of Ubuntu will be the ability to use kernel mode setting which shifts responsibility for selecting and setting up the graphics mode from X.org to the kernel. This speeds this up, which means a better experience for the user.

Here is how I did it on my Dell.

First download these .deb files from here:

http://kernel.ubuntu.com/~kernel-ppa/mainline/v2.6.31-rc9/

linux-headers-2.6.31-020631rc9_2.6.31-020631rc9_all.deb
linux-headers-2.6.31-020631rc9-generic_2.6.31-020631rc9_i386.deb
linux-image-2.6.31-020631rc9-generic_2.6.31-020631rc9_i386.deb

Install them, but don't reboot just yet.

Next install the latest Intel graphics drivers using these links:

deb http://ppa.launchpad.net/ubuntu-x-swat/x-updates/ubuntu jaunty main
deb-src http://ppa.launchpad.net/ubuntu-x-swat/x-updates/ubuntu jaunty main

Then in a terminal run this:

sudo apt-get update && sudo apt-get upgrade

Now create this file /etc/modprobe.d/i915-kms.conf and add this line.

options i915 modeset=1

Then finally run this command at a terminal.

sudo update-initramfs -u

Now re-boot your machine with your new kernel and test to see if you get improved graphics performance, I most definitely did. You might also want to check in /etc/X11/xorg.conf that you have a line like this:

Option "AccelMethod" "uxa" in the "Device" section.

Have fun.

Sunday, 6 September 2009

Chromiums latest build on Linux is the best yet



While testing the latest version, shown above, it has dawned on me that I haven't come across a site it doesn't like for at least two weeks. I'm sure there might be some but I haven't found one.

Today , I was happily surfing the web, and listening to the latest one day cricket international on the BBC web site using the Linux Adobe flash plugin, with 25 other tabs open and working well. It was seamless, and the experience was very pleasant.

I have noticed that the developer task manager is working properly, and the "stats for nerds" also now display a proper page. I also stumbled across a feature that I had been missing, which was the ability to grab a tabbed window, and move it's location on the list of tabs. This is a very useful feature, and is working really well.

I'm sure that a beta/stable version of Google Chrome for Linux can't be far away, as then we can really get stuck into bug tracking and reporting. I can't wait to see what other distro's will package this, especially with Google offering their own OS. I know that I will be getting it into the Eeebuntu repos, once it is stable. I fully suspect that the fur will fly for some, and a minority of die hard Firefox supporters will be flinging some mud, but the simply truth is, Chromium is significantly faster that FF on Linux, and once the extensions are added to Chromium, and they are on the way, then speed becomes the deciding issue. I'm also testing FF 3.6 and it is better, but still nowhere near as fast as Chromium.

I'm certainly not going to knock FF, it has served me well upto now, it's just that the open source wheel has turned, and there is a new kid on the block that just does everything faster. The Cloud + fast browser speed = good experience, it's as simple an equation as that.

I'm obviously an early adopter and have switched completely now, but I'm also convinced that once people test and experience the difference in performance, then they will to, regardless of extensions. To be fair FF has been in competition with many good browsers on other OSes for a while, but it's had the lions share of installed browsers for Linux, it now has some real competition, and they are going to have to improve or suffer the same fate as their nemesis on Windows.

Friday, 4 September 2009

Ubuntu 9.10 Alpha 5 has a completely reworked install dialogue

If you have installed Linux over the years ,you will have noticed that the distros tend to fall into one of two camps, those with minimalist feedback when you press the install button, or those who offer news and detailed information about the Linux you are about to install. Well in this release Ubuntu have moved from the former camp into the latter camp, and here is the evidence.










The kernel has been moved up to 2.6.31-9 and there is a new Ibus application that I have not seen before, but will investigate.

It is still installing in a VirtualBox virtual machine while I type this, so I will report back on performance and any other new features I find.

Thursday, 3 September 2009

Redhat 5.4 is released with major virtualization updates

Have a look here at the release notes.

Redhat EL 5.4

This definitely looks like a worthwhile update, and I will definitely be running this up several servers to see how it performs.

Wednesday, 2 September 2009

Richard Dawkin's new book - The Greatest Show on Earth

The world famous Science proclaimer ,evolutionary biologist and Atheist has a new book coming out in the next couple of days and here is link to an extract from the first chapter on the Times web site. The greatest Show on Earth

Agree or dis-agree with his arguments - on Atheism not Evolution, that's a matter of fact - you have to accept that he is a great word smith, and worth the time and effort for that alone.

What amazes me is that so few other current writers apart from Hitchin, Harris and Neil have captured this moment and have been able to eloquently describe the need for the human conscious to move from it's primaeval upbringings and start to move towards the acceptance of the reality of life on Earth and to forget superstition and childlike belief systems.

I can't wait to get my hands on the new book.