Managing Applications

One of the great things about Linux is the almost limitless range of applications. Name a requirement and someone has developed an application for it. The hardest part is probably selecting what you want / need. Each distro includes some way to manage the apps it provides, they are known as Package Managers, most have several. A Linux user has a choice of command line or graphical Package Managers.

One of my complaints when I started using Fedora was the default package manager, Pirut, found on the menus as “Add/Remove Software”. I found it slow and not very friendly. Oh it worked I can’t complain about it but like most Fedora users I quickly found the command line option yum was easier. Yum is fine if you know exactly what you want to install but what if you need to search. There are command line options but a graphical interface is so much easier. That is where Yumex comes in.

Yumex, the Yum EXtender, is a gui for the yum command. It has all the power of the command line including the feedback on what it is doing, but with the ease of use of a graphical interface. Why it isn’t the default for Fedora beats me. It seems to be a secret you only find out about on the forums, one of the good reasons to be a member of the forum for your distro of choice.

Yumex can be installed from the standard repositories in your preferred way but soon your preferred way will be yumex, highly recommended.

How Many Bits? 32 or 64?

What is 64 Bit?

It seems strange but while most of us run 64bit computers we are using 32bit Operating Systems. Of course there are good reasons for this if you use Windows. Microsoft has not shown a great deal of support for 64 bit systems although it has provided them for some time. The level of driver support is reported to make Vista look good. However with Linux the situation is very different. Many distros offer a 64 bit option. While the level of support varies between distros they are mostly valid options.

So why would you use a 64bit version in preference to the standard 32 bit? The answer is as varied as why do you use Linux? There is a performance advantage but how much and whether it is discernible will depend on the applications you use. Those that manipulate large amounts of data will benefit the most but only if there are 64bit executables available. There is also the issue of addressable memory. 32 bit systems are limited to 4 gig of ram.
There is a good post of the Fedora forums with more information much of which is applicable to all Linux distros and not just to Fedora.

Having read that post and others I decided to give 64(x86_64) bit a try. I obtained a Fedora 8 x86_64 DVD and installed it on my Dell Inspiron 1520. I covered the 32bit(i386) installation earlier and so won’t repeat that except to say I had to follow the same basic procedure. The setup went as well as last time but with a few differences.

What was Different?

To have Flash in Firefox it is necessary to use nspluginwrapper and the i386 Flash plugin. This is covered on the Fedora forums where there is an area especially for x86_64.

The other pleasant surprise was that PulseAudio worked for me. Once I found that Kmix didn’t have Output enabled, the green light was off, I enabled it and I had audio. Note to self, when playing with Audio settings have the volume control on the desktop so if it suddenly works you don’t deafen everyone and have to fumble around to turn it down. Occasionally it fails to load on bootup or resuming from Sleep but that is much rarer than with i386 and the sound quality is much better. A restart of X usually fixes the problem anyway.

There were no other issues I hadn’t already faced with the original installation and so I am pleased with the change. There is a small performance improvement in things like image editing and I haven’t found any disadvantages.

I did mention in the previous post that my multimedia controls on the front panel weren’t working. Further investigation showed they were recognised but not assigned so I set up Amarok to use them and they all work fine.

Is It For You?

If you are using Windows, don’t bother. Unless you switch to Linux of course. For Linux users, if your favourite distro has a x86_64 option and your hardware is compatible and most PCs sold in the last couple of years are, see the link to the Fedora forum for info on that, give it a go. If your favourite distro doesn’t have a x86_64 option ask why or give Fedora a go.

Of Data and the Base

It is not surprising that the first thing most people install after the operating system is an office suite. It is one thing that is standard in all Linux distros too. Even if you only write the occasional letter it is an application that everyone seems to use. Perhaps the least used part of most suites is the database. In fact it is not included as a standard part of every office suite. Base was not added to OpenOffice until version 2 and even Microsoft only includes Access in the more expensive version of Office.

However I have always thought that database apps are undervalued. Few people realise the power of them and I guess the steeper learning curve deters the more casual user. I have made extensive use of various database apps for sometime now. Strange to say though the most ubiquitous one (Access) is one I have no experience with. I am not talking of full professional multiuser solutions but I do need something more than the basic Mailing list. So when I started using Linux it was natural that I would look for a database solution that ran under Linux.

When I heard Base was to be added to OpenOffice, yes that is how long ago this story starts, I was very excited. The other OO packages had proved useful replacements for the Office suite I was using at the time. In fact I started using OO in Windows before my move to Linux. When I experimented with Base though I was disappointed. I found it clunky, slow and counter-intuitive. It was only after finding a couple of tutorials online that I could get anything done.

Perhaps I was being unfair to Base as it was an immature product at the time and I was used to something with over a decade of development behind it. I had been using Approach which was part of the Lotus suite. It had always been a powerful yet relatively easy to use application. Lotus is part of IBM and they are no longer developing the Smartsuite which included Approach. They have released a beta of Lotus Symphony that is based on OpenOffice. At this stage there is no indication they will be adding a database application although there is strong support for it on the forum on their site.

In fact I had not found anything I wanted to do that I couldn’t find a way to accomplish using Approach. And I have never needed to use scripting either. Sadly that is not something I could say about other applications. An example is the simple use of a calculated field. A calculated field is one that the content is automatically developed (or calculated) from other field(s). A simple example would be the addition of tax in a price list. If you had a list of products you would type in the price and the tax code / percentage and the final selling price would be worked out. Of course this could be done using reports but if you wanted a quick visual reference you could use without the need to print price lists a calculated field is the easiest way. There are many other uses and they don’t need to be numeric fields either. In Approach it was simply a matter of defining the field as a calculated field and defining the formula and it worked. In Base it required the use of a query and adding that query as a displayed field. It is necessary to manually edit the SQL statement to ensure the result is formatted the way you require. And that is just one example.

I don’t want to spend the time developing a professional solution using mySQL or Firebird although they would do what I require. It would be like using a freight train to bring home the groceries. So what are my alternatives?

Well Base works for simple databases and can be forced to do some powerful things but it is slow and difficult to use. I hope it gets the development it deserves as it could be a useful tool with a better interface. Another option I found was Kexi. Kexi is part of the Koffice suite and my first impressions are good. It was easy to start using with an intuitive interface and good layout. I was able to create a simple table without using a tutorial or even the help screens. I haven’t worked out if it can do everything I require but it is worth a further look.

The other option is to stay with Approach. I have found it will run, with some restrictions, under Wine. For those who aren’t familiar with Wine it is an application that allows selected Windows programs to run under Linux and other ‘nix systems. No need to get into the technicalities of Wine but some programs run well and others with limitations. Unfortunately Approach falls into the latter category. It is possible to access and edit the data and even do simple maintenance work but creating a new table or report are among the tasks that are not possible. I have had mixed results with printing too. So I could do some day to day work with it but would require a windows system for any development etc.

That is what I am doing at the moment but long term I would like to consolidate everything under Linux. So the short term solution is to use Wine / Approach but long term I will give Kexi and other Linux apps further investigation. I would appreciate any suggestions for consumer level database apps that run under Linux.

Fedora 9

I guess everyone in the Linux world now knows Fedora 9 was released earlier this week. The feedback has been mixed. While there are the usual bouquets for some great changes there are also a few brickbats for some problems. To be fair Fedora is and always has been a bleeding edge distro and so from time to time will suffer the effects of having the latest but not yet greatest features. One result of this is that the forums have broken all records with the most users on line at one time almost topping 14,000 in the last 24 hours. The record before F9 was a bit over 11,000.

Two examples of the issues early adopters face are the lack of nvidia drivers due to the decision to use the latest beta of xorg. This alone has caused a fair bit of traffic on the forums. The use of KDE 4.03 as the standard KDE desktop has sparked some discussion too with many saying it is not ready for day to day use and should be considered a beta until 4.1 arrives in July.

Fedora is and will remain my distro of choice but I have decided to stick with F8 for the time being. Support will continue for F8 until F0 is released later in about six months. Although some of the new features of F9 look attractive I can’t afford to have my main system unusable. However there is a old copy of Ubuntu on one of my hard drives that I haven’t used for some time so it may go and be replaced with a F9 test system.

Don’t think I am criticising Fedora for its way of doing things. I appreciate having an up to date system and support its aim of pushing development of Linux. It is the Fedoras of this world that keep things improving for everyone else. Sometimes that can be painful for those involved but the end result is worth the pain.

My advice to anyone thinking of trying F9 or any new distro is if you use your computer for anything important don’t replace your existing system. By all means install a test system as a dual boot but keep a working system going too. Or get the Live CD version and have a play with that. If it works and all your hardware is operational then install it. If you are fortunate to have a computer you can test on then go for it!

Fedora on Dell 1520

In a recent post I outlined my purchase of a new laptop, a Dell Inspiron 1520. It came with XP Pro which I need for a couple of applications. However for some time now my operating system of choice has been Linux and specifically Fedora 8. So after checking everything was working on the new machine and installing the Windows apps I would use it was time to install Fedora.

When I ordered the laptop I had selected options that I believed would work without much trouble with Fedora. A search of the Fedora forums and a couple of other sites like Linux Laptop wiki and Linux on Laptops helped with that.

Installation

I partitioned the hard drive giving XP 100 gig and Fedora the rest of the 250G drive. First I had to remove the Dell Media Direct partition they put on the very end of the disk. For some reason this causes problems but can be recreated after the installation of Fedora. I left the Fedora area as free space and let Anaconda, the installation program, set it up. I just selected the Use Free Space option and left it at that.

I used a Fedora 8 dvd I had on hand. This saved downloading a newer copy but didn’t save much as we will see. The installation went without any problems. I followed my usual procedure of selecting just KDE for the desktop environment and also customised the applications to be installed. There are some I wanted that are not part of the standard selection including OpenOffice Base and Krusader.

I left it to do its thing and after a short time I came back to find it was ready for the final stage which includes rebooting and setting up the user(s). After that I had a working system. I proceeded to check what was working to see what I needed to do manually. But first I did a full update, this is where the decision not to download a new dvd image came back to haunt me as there where several hundred updates to get and it took more than a couple of hours on the slow broadband we have here in Oz.

That done it was time to get everything working. Let’s look at each area individually.

Graphics

I had selected the nVidia GeForce 8400M G card with its own 128m ram. It was working but with a default driver so I installed the nvidia driver from the Livna repository. It recognised the card and included a control application. The correct resolution of 1440 x 900 was set automatically. It looks great and works well.

WiFi

The Intel 3945ABG adapter was recognised during installation and the correct iwl3945 driver installed. I simply activated the NetworkManager and NetworkManagerDispatch services and it asked for the passphrase for my WPA2 network and proceeded to link without a problem. I wish I could say the same for XP. I often use the laptop in an area that is on the edge of the router’s range and Fedora works (nearly) every time but XP often refuses to link when the signal is weak and it drops out from time to time.

There is a small problem with the wifi. It will not reconnect after returning from suspend. It did initially but then an update broke it. It is a known problem with the current kernel and iwl3945 driver. A bug report has been lodged by several people so hopefully a future update will fix it. There is a simple workaround just right click on NM applet and remove the tick from Enable Wireless, do it again and put the tick back and finally click on the applet and select the network to connect to.

WebCam

I wouldn’t have ordered a webcam but it is a standard fitting. I was surprised to see the light flash during startup and decided to check it out. Using kdetv it works without a problem. Chalk up another one for Linux.

Bluetooth

I have not found the touchpad easy to use, I am used to the Thinkpad joystck type controller, so I purchased a Logitech Bluetooth mouse. The bluetooth service was already activated but there was nothing to control the devices. After installing KBluetooth the mouse was recognised and I added it as a trusted device and now it works as soon as it is turned on.

Keys

The keys that work with the Fn key all seem to work, at least the ones I have tried which include the brightness and the suspend keys. The Multimedia keys on the front don’t work at this stage but I have read some reports that they can be made to so that is a future project.

Desktop Effects

Using the procedure I outlined in a previous post I soon had Compiz-Fusion working . Just a strange thing with the Pager. It only shows one desktop while there are four. Compiz-Fusion controls these and the pager is usually set to one but shows four. It shows the correct amount on my desktop with the same version so I’m not sure what is happening. If I change the Pager setting to something other than one and then change it back it shows the correct four but it doesn’t stick when I restart. This hasn’t really been a problem as I use Ctrl+Alt+Left(or Right) Arrow to change desktops.

Sound

I had sound working in Amarok and Firefox but not system sounds. This has been a problem on all my machines and is a common subject on the forums. Pulseaudio is standard in Fedora 8 and it seems to be the problem. There are several places I have seen possible fixes (just do a search on the forums) but I have taken the easy (and dirty) method and removed it altogether. This worked for me.

Are there Problems?

It wouldn’t be fair to say there were no problems. I mentioned a couple of issues above plus there is one other that really concerned me for a while. There was a regular clicking noise. A search brought up a few mentions that it is a problem with Powersave and the hard drive trying to park too often. I found details of a script and after installing it the noise has disappeared.

The Result

I now have a working and usable system with minimal setup required. I am pleased with the result and find I use it more than my desktop. If it wasn’t for some special hardware needs I could probably survive with just the laptop. This was the result of carefully selecting the hardware that I knew could be made to work. Unfortunately this is still a necessary step if you want to avoid the hassles of unsupported devices. Although Linux hardware support is improving, thanks to the efforts of a few hardware manufacturers and the hard work of developers within the Linux community, it can be difficult to get some computers, particularly laptops, working.

In summary if you want to run Linux especially on a laptop do your research first and you won’t be disappointed.

Using Desktop Effects

I wrote earlier about enabling desktop effects in Linux. Desktop effects provided by Compiz-Fusion have a universal wow factor. They add a little fun to using your computer. There was a lot of interest in that post so I thought I would add a little more info you may find useful.

Be the Boss

It is one thing to enable the effects but what about making them yours. That involves trying out the options and finding effects you enjoy and find useful. For that you need the Setting Manager CCSM. Unfortunately it is not always installed. If you don’t have it you will need to find it in our distro’s repository and add it. I won’t give instructions here as it will differ for each distro. Some of the links in the original article showed how to do it though.

Once installed it is a simple matter of looking through the various options and enabling whatever takes your fancy. If you would like a little more info on the options check out the C-F site, there is detailed documentation on each option. Of course the options in your system may differ from what is in the documentation as C-F is changing rapidly and new effects are added regularly.

One thing that confuses new Linux users a little is mention of the Super Key. It is used a bit in C-F to activate various effects. It is the key with the sysmbol of that other operating system, you know the one that starts with “W”!

So have fun and experiment with Desktop Effects they are something special and great for showing people just how great Linux is.

On OSes

Over the last couple of weeks I have used a number of different operating systems. This may be normal for many people but for me it is a little unusual. I have a couple I use regularly and that is about my usual limit. It got me thinking about OSes and the impact they have on our computer use.

It would be easy to argue that operating systems should be invisible and in fact for many people they are. I am surprised by the number of people who don’t know what they use. But maybe that is how it should be. After all it is the applications that we use to accomplish what we want to do. I think in an ideal world we would have an OS that perfectly matched the hardware it was used on and be able to run the applications that will do what we want to do without worrying about the type and version of OS. Of course that is heresy to many people.

I mentioned I had used a few different systems and they left me with an impression I didn’t completely expect. I used a Vista Business system, a couple of XP Pro and an XP Home as well as a few Linuxes including Fedora 8 and a couple of Ubuntu based live CDs. The Vista impressed me with its total lack of speed, even some of the live CDs felt faster. The XP systems all seemed adequate. They ran efficiently and did what was asked of them without too many problems but they seemed to lack character.

The Ubuntu based Live CDs were at a disadvantage as Live CDs will always run slower and don’t support the hardware as well as when they are installed. They were different systems with different agendas and did what they were designed to do. They generally were as good or better than any of the Windows systems.

My preferred systems were the Fedora 8 KDE installations, not surprising as they are my computers and are set up to suit what I do. But so are a couple of the XP systems, both my computers are dual boot Windows XP and Fedora. What surprised me was that when I switched the computers on I wanted to run Fedora even when I needed to run XP.

New Life for an Old Laptop – an Update

I detailed in the original article how my Thinkpad T20 was given a new lease on life. With a small investment in hardware upgrades, memory and hard drive, plus a new operating system, Ubuntu 7.04, it was proving useful again. As so often happens with these projects they are never over. So here are some details of the current state of progress.

Time for an Upgrade.

Ubuntu has served me well on this machine and although Gnome is not my favourite desktop manager it was working ok. I was aware that it was an older version and would soon be two releases behind so it was time for an upgrade. The question was what with.

I had a copy of a version of Xubuntu (Ubuntu with the lightweight Xfce desktop) and being aware that it used less memory than Gnome thought it might be a good idea. It lasted a couple of days. Not that there was anything wrong with it. Everything appeared to work, wifi worked “out of the box” as I have come to expect from Ubuntu. It had a few strange things , eg. the splash screen wouldn’t resize to my screen so it was off centre. It didn’t affect operation as it was only there while it booted and then it was fine. But it didn’t “grab” me. Not very scientific I know but didn’t feel it was better than what I had previously.

So I decided to go in the opposite direction and install Fedora 8 with KDE. This is what I use on my desktop with all the bells and whistles, Compiz-Fusion etc. I knew that wouldn’t work on the old laptop but I wondered how a basic KDE installation would run. I have used KDE most of the time I have used Linux and it is still my preferred environment. I look forward to KDE 4 in Fedora 9 but that’s a story for another day.

Installation

I installed from a dvd copy I had on hand and all appeared to go well. I had the system running with the correct video set up without any of the tweaking needed in Ubuntu. One serious issue, no wifi. I connected up an ethernet cable and had the internet working that way and left it to do an update. In the meantime I did some research on the Fedora forums. As usual the answers were all there just need a little patience to sort through all the information.

With the update done I installed the madwifi driver from the Livna site following the information here. My Netgear WPN511 (Atheros chipset) was now recognised but couldn’t link to the router using wpa2. I turned on the NetworkManager and NetworkManagerDispatch services in System – Services and now after setting up the passphrase etc. it all worked.

The Result

I now have a usable Fedora 8 system on hardware I doubted would handle it. It is slower than the desktop of course but no slower than the Ubuntu system it replaced. It is used primarily as an internet terminal with occasional office document editing or photograph viewing. I wouldn’t like to do much photo editing on it but for everything else it works great.

There are still one issue to look into. The hard drive has a partition I use for archives. It has an ext3 Linux filesystem and Fedora recognises it but any attempt to mount it produces an error. I’ll look into it further when I get some more time.

Updates

Over the last couple of days there have been updates to all of my Linux systems. All the updates have included new kernels. No doubt this was due to the recent discovery of a few security holes in the older versions.

Doing similar updates on different distros allowed me to compare how they are handled. I have 3 systems I use regularly and all received updates. I still run Feisty on my laptop, no special reason but it works and I haven’t bothered to change it. It requires a little customisation to the Grub menu to run correctly eg. acpi must be forced to load. Every time the kernel is updated I must redo the changes.

My main machine triple boots Fedora ( my main system), Ubuntu Gutsy (to play with KDE4) and XP (because I occasionally need it). Fedora is on a separate  hard drive and XP and Gutsy share the other drive. Although Gutsy recognises XP it refuses to acknowledge the other drive exists and won’t include Fedora in any Grub menu it creates. I have to edit menu.lst and do a grub-install to be able to get to my main system. Fortunately I keep a copy of Fedora’s menu.lst on an XP drive and just copy and paste.

So where is this little rave going? Well Fedora needed to be updated too and it created a new Grub menu but it kept all the changes I had made to the existing one. Why can’t Ubuntu do that? It would make life so much easier.

Enabling Desktop Effects

Here are some notes on enabling and using Compiz Fusion to add desktop effects in Linux, more specifically Fedora although most comments will apply to other Linux distros.

Why would you want too?

It goes without saying that desktop effects have a real wow factor. When you first start using them you may find yourself just playing, sorry experimenting, just for the fun of it. However if you need a further reason see this Lifehacker article on the efficiency gains you can achieve. You may even make up for the time you spend “experimenting”.

Some Useful Information

For some interesting details on installation and operation of Compiz Fusion on Fedora 8 including keyboard shortcuts to make the best use of your new features see here. The same page has links to HowTos for other distros including Ubuntu. However don’t install the packages listed there. They are from the Fedora repositories and have some problems and some features are missing. The Fedora forums have a link to updated packages which don’t have those problems.

Update: One of the problems referred to above seems quite common. That is the titlebar disappears after enabling effects. The updated packages solve this problem.

A search on Google for your distro and Compiz will probably turn up many more pages. However view quite a few to make sure you are getting the right information. Initially I was under the impression that my low end video card wouldn’t work. I have an ATI Radeon 9250 which was recognised by Fedora and uses the radeon driver. Following the above links I was able to get it working in KDE and Fedora 8. No doubt it would work on other distros and with Gnome.

Starting Fusion Icon on Reboot

Actually this will work for any application you want to start automatically when your system starts.

Fusion Icon starts Compiz as well as putting an icon in the System Tray that has options for changing the Window Manager, setting Emerald and Compiz options. Once you have it set up you will want it to start each time you log in. In Gnome this can be done in the Sessions Manager. Type fusion-icon as the application to start.

In KDE open Konqueror and select Go from the menu bar. Go to Autostart, this puts you in your Autostart folder. Anything in here will be run when KDE starts. Right click in any blank area and select “Create New”“Link to Application”. Under the Application tab enter fusion-icon in the “command” field. When you leave that screen a new entry will appear. Restart to make sure everything is working.