Aug 142008
 
No Gravatar

Considering that firefox is a crazy performance hog it has become rather annoying to me off late. In my virtualbox’d KDE4 at work for example, I get very lovely kwin effects when using XRender – provided I do not have NVidia running, which makes the effects dog-slow.

So I started asking myself about reasonably replacing it. Konqueror is the obvious choice as it’s KDE’s own well-rounded web-browser and should work nice… right ?

Well the first issue is a known one: learning to live without your firefox extensions. Not a major thing since I don’t use too many of them at work anyway, but some things like stumbleupon are basically useless any other way and that would affect me at home.

But what about site compatibility ? Oddly enough wordpress seems to break konqueror, not on the browsing of blog pages, but one trying to work with the admin system. Over https, it logs in – but then tries to relogin when you try to add a page, and that redirects to the non-https version. Which doesn’t want to log in, no matter what.
I tried my openID login as an alternative test but apparently openID doesn’t play nice with konqueror either (at least, phpmyid doesn’t) – I have no idea why that would be, but it breaks it by trying a direct access without auth’ing first. This happens both plain and ssl based.

Finally, I got a real bugger when I tried to access our spacewalk server, which has error pages specifically listing konqueror as not working (apparently it doesn’t handle formvars properly in some cases).

I am quite disappointed as I was really hoping to switch to konqueror – but if I cannot do my job (and my job includes accessing spacewalk) then I cannot use it. What surprised me most however is that each of the big three problems I found are in sites run by FOSS applications of some sort. You would expect a FOSS browser to play nice with FOSS CMS’s and the like would you not ?
I will be keeping an eye on the QT-based firefox, I am hoping it could become the middle-ground I need.

Aug 072008
 
No Gravatar

As my regular readers know, I have been hammering away at getting a usable KDE4 desktop on my NVidia card for weeks now. I have tried many things with various degrees of success. The known NVidia tweaks made windows behave like they ought too – but the system was still dog slow with load averages nearing 2.0 and CPU close to 100% almost all the time.
XGL was working well but it needs a beast of a machine to be useful – it’s level of abstraction being such that a lot of stuff end up being software handled. So while it was a bit faster, it was still to slow to use.

More-over, whenever I loaded any KDE3 app my system would become completely unusable (since I only have 512M of ram to start with – when my system was already bogged down, the KDE3 libs on top of KDE4 was just more than it could handle).

I finally found an answer that works though. It is NOT a nice answer (hence my comparing it to that other final solution) but it works. For now, it’s what I will have to do until either (1) NVidia brings out a real fix or (2) I can afford an ATI card.
The solution to the problems in the NVidia driver, for me, is to not use it. I started to try generic drivers instead. The first one was VESA. The Xorg VESA driver gave me serious hell at first though, my screen was shifted about 10cm to the right and 5 to the bottom with roll-overs… it was not a pretty sight. So I gave up on it and decided to try the fbdev driver instead.
This meant some hacking at the grub bootline to find the highest framebuffer res that would boot via a vga= command (I settled on vga=0x31a which is 1280×1024@32) – this worked and gave me a working KDE desktop with great speed. Unfortunately the trade-off was equally huge. The raw framebuffer device doesn’t support anti-aliasing, or half the other stuff that makes things look pretty – so it was a butt-ugly desktop.
I wasn’t satisfied but it was at least a step in the right direction. My next step was to try the VESA driver again, but this time specifying modes. No amount of hacking could get wide screen modes going (VESA just doesn’t seem to understand them) so I still cannot use my monitor’s full 1600×1050 resolution but I got 1280×1024 without problems and it is working fine. The desktop is not as pretty as it would be under full acceleration but it’s completely workable and for the first time my kde4 is actually faster than kde3 (as it should be).
There are downsides of course. Twinview no longer works, nor can I use the second outport on the card. KDE4 doesn’t support that (the way I use it) yet anyway though so this is not a huge loss and hopefully I’ll have a working video card before 4.2 comes out. I only really use it to watch movies on the TV and for that I’ll hack up a script to start KDE3 in a secondary VT and use the nvidia driver via a different config or something.
The biggest major downside after that though is that now I have no 3D acceleration (I traded great 3D for good 2D – can you believe it) ? Which is a bit of a bummer for gaming and also means KDE4 doesn’t have desktop effects. All in all, a worthwhile compromise for now though, and I can use that same KDE3 hack-script to get 3D when I want to play games.
Here’s a shot of the system monitor showing my system’s performance now. It’s still pretty bogged down but it’s better than it was under KDE3 and that’s because the system is a bit underpowered (I’ve been meaning to upgrade for over a year). Still, this is actually faster than I had it with gentoo !
KDE4 performance under the X.org VESA driver.

Aug 052008
 
No Gravatar

In the early days of vmware it was basically just another way of running some windows apps under Linux (back then Wine wasn’t better at it). Time however proved their gamble right- virtualization became a key aspect of enterprise computing.
Using virtual servers means that one piece of hardware could do many more things, better for the environment, better for the budget and easier to manage.

VMWare ruled this space for a long time because they were first to market, and kept expanding the feature set. Many attempts were made to create a free alternative, all of them sorta worked but until QEMU none of them could really do the job. Even then there were shortcomings and some OS’s just wouldn’t quite work right. Worse than that, QEMU was still just an emulator.

Recently though, I discovered virtualbox, a product SUN had bought over and turned into an enterprise level virtualization suite that doesn’t just match VMWare for features, it exceeds it. A lot of the power of virtualbox as a serious competitor to VMWare comes from it’s use of open standards and protocols to do things.
Now I should add that there are two versions of virtualbox and some of the enterprise features are not available in the FOSS version. But I will mention one of them as a case in point. For the enterprise version, remote access to your VM’s do not require any special clients like VMWare server does, you just use RDP which every OS on the planet already has a client for.

That alone is a major saving as it means that the licensing expense for virtualbox is server-side only.

I haven’t been using the enterprise version though and I do not need it for my needs. I am using virtualbox because I am required to use XP as my main OS on the company laptop, but I cannot live without a KDE4 desktop (on Linux, I know it can run on windows but that wouldn’t give me a Linux OS to work on now would it ?) anymore. Using virtualbox it was easy to install this desktop, the integrated networking covers all the features VMWare offers including host-only, integrated NAT and bridge (although you need to set up bridging yourself it’s not as integrated).

I use the NAT option which works perfectly fine and has the benefit that the many MAC based security policies in my environment cannot tell my VirtualBox linux from my physical windows platform.

Other features include full USB support, a simple GUI interface (something that has been sorely lacking in free virtualization tools so far) and proper multiplatform support (so unlike things like UML and XEN it can run linux on windows or windows on linux).



KDE4 running inside virtual box - click to view full size
KDE4 running inside virtual box – click to view full size

VirtualBox is also surprisingly fast, I gave mine plenty of ram since it is after all a desktop, but it is fully responsive and runs KDE4.1 much better than my physical machine at home (for which I blame NVidia).
All the basic features you know from VMWare are there, including shared folders (which play oh so nicely with folderview because they just get mounted) and it all works very easily. The only problem I have had in about a week of using it is that the help file doesn’t say how to access shared folders – but a quick google did enlighten me quickly enough:
mount -t vboxfs $SHARENAME $MOUNTPOINT
Or just create an fstab line like this:
$SHARENAME $MOUNTPOINT vboxsf rw,auto,exec 0 0
(Of course $MOUNTPOINT must exist and you should replace $SHARENAME and $MOINTPOINT with real paths).

And here is where it gets interesting. VMWare’s guest tools are… flakey at best and the majority of distro’s I’ve tried to install them on over many years had issues getting them all to work. VirtualBox’s guest additions are powerful, complete and fully functional. They install easily on any distro I’ve tried and work very well.
That is when you start discovering some very cool features, like the pointer integration support, which means merely moving your mouse between your linux and windows desktops and working as if it was just another window. No keyboard locking, nothing. Copy and paste between a VirtualBox and a real machine works fine too.

I am seriously impressed. SUN has taken a solid product here, and turned it into something that is fully enterprise ready and capable. In my own setup, I have a dual monitor configuration, so I typically keep windows open on the one screen and virtualbox running on the other, and switching between them is completely smooth and transparent.

I am impressed and I want to say outright: after many years, there is finally a FOSS product that not only competes with but utterly exceeds the capabilities of VMware for both home and enterprise users. Considdering the hefty pricetag VMWare comes with – I smell trouble ahead for them.

Aug 042008
 
No Gravatar

As you know, I have been able to get a more usable state on my nvidia card using XGL. I am still pushing other ideas to try and speed things up more, so by now I have two kde4 sessions on my login menu, one using XGL and one using straight NVidia.

I wanted to give a shout out to this page which had some advice that really helped.

At this stage – my desktop performs roughly like windows 2000 on a pentium 1… which is better than the XP on a 486 thing we had a few days ago – but still way under what it should be.

I WILL NEVER BUY ANOTHER NVIDIA CARD. SHAME ON YOU NVIDIA. I WAS A FAN OF YOUR HARDWARE. HECK I ALMOST FORGAVE YOU FOR NOT HAVING A FREE DRIVER ! NOT ANYMORE. NEVER AGAIN.