Showing posts with label linux. Show all posts
Showing posts with label linux. Show all posts

Sunday, May 01, 2011

Removing the Ubuntu 11.04 launcher bar

In Ubuntu 11.04 (Natty Narwhal):

  • Click the far top-left button to bring up the search dialog.
  • Type "login" without the quotes and click on "Login Screen".
  • Change "Select Ubuntu as default session" to "Select Ubuntu Classic as default session".
  • Log out and back in.

Congratulation, you have removed the abomination. Prepare for 11.10 where they will no doubt remove Ubuntu Classic as an option.

Saturday, July 05, 2008

OL's eeePC

Overlord has put up a post detailing how he got his eee PC 900 set up with Ubuntu (an eee PC specific version that somehow still requires a lot of modification to work properly). Looks like a useful post, otherwise the info is scattered around in different places. He updates it as he finds things, so check back occasionally just in case =P

Friday, June 06, 2008

LyX Crashes Under Ubuntu Hardy

Application: LyX
Distribution: Ubuntu 8.04 - Hardy Heron
Problem: Crashes opening valid .lyx files

I had a problem recently where LyX was crashing every time I attempted to open a file (through both the file open dialog and double-clicking a .lyx file). After some hunting around Google I found the following solution.

It turns out that the problem was a version mismatch with another package I wouldn't have even thought of looking at. I like to have all the repositories checked in my software sources list, as do a fair few people it seems, and this was the source of the problem. In Hardy Backports is version 4.4 of the Qt libraries, and LyX does not like them at all. The problem seems to be particularly focused around the loading of eps images, which are almost every document I produce, thus the near-constant crashing. I managed to force a document open by launching in excess of 100 instances of it simultaneously, but that's so ridiculous I don't think anyone could think of it as a workaround.

Anyway, the solution is to uninstall any qt4 related packages (do a search for qt in Synaptic and they will be fairly obvious), and uncheck Hardy Backports. LyX and Skype will be removed when you do the uninstall, so put those back on afterwards and they'll bring in the correct version of the Qt4 libraries.

This also solved a problem I was having with GnuCash's icon not displaying. This was fixed on two computers via this method, so I don't think it was coincedence.


I will add some links to relevant discussion when I have a moment free.

Wednesday, November 28, 2007

OpenOffice Updates

OpenOffice updates: a renamed splash graphic and a library moved from one package to another.

Number of packages affected: 21
Total update size: 75MB

Modular my ass =P

Sunday, November 18, 2007

More Audio in Ubuntu

The first part of this is an addition to my earlier post on audio in Ubuntu. If you want a bit more detail about what you're doing with that fix then check out the original source, which also has some other useful links. After applying the fix I had problems with my sound crackling rather more than I like to hear. If you have similar problems then check out the Dmix page on the ALSA wiki, specifically the "Still Hearing Stuttering?" and "Comments" sections near the bottom. I haven't tried that extra modification myself (I was in the middle of something at the time and just disabled mixing again), but it looks promising and easy to do. That page is a goldmine of information about modifying your setup so it may be worth taking a bit of extra time to read through.

Ok, with that out of the way, how about visualisations in Rhythmbox? I use that as my audio player and I'm quite happy with it except it only has two visualisations available (I don't use them much, but they do amuse me so I like to have a few). Luckily information on this is easy to find and it turns out you need to install the libvisual-0.4-plugins package. I had a slight problem with one of them causing Rhythmbox to crash, but that may just be my setup as I don't recall seeing any warnings.

Enjoy :-)

Monday, October 22, 2007

Audio In Ubuntu

This is one for those of you fed up of only being able to play sound from one source at a time in Ubuntu. In fact, only being able to have one application open that may want to play sound.
"Hmmmm... I want to watch this video clip. Oh wait, I'm playing music so I can't. I know, I'll pause the music. Oh, still no luck. Stop the music? Oh, freakin' great. I'll just completely close the music player shall I?"
"I can't play music, what's going on there? Oh, I know, I had a flash animation open in my browser several hours ago and it hasn't released the sound device yet..."

Anyway, there's a new blog here which has all the answers you need (the only answer you need to be precise).

Enjoy your new freedom :-)

Monday, October 01, 2007

Loopback Partitions

I guess moaning about Wubi previously pretty much guaranteed it would fail on me, and true to form it has. I don't know if this is actually a Wubi issue or a Gutsy development issue as I haven't had much time to check out reports yet, but I figured I'd present an easy solution for an easy problem, just in case you hadn't done this before.

The backstory is I grabbed the latest package updates (beta Gutsy gives me up to a couple hundred a day) and later ended up hard-resetting the system after a lockup that refused to be fixed another way. At this point serious alarm bells are ringing (especially if you have rebuilt three corrupt partition tables on two machines at various points). Anyway, no corrupt partition table this time, but Ubuntu refused to boot with Grub giving a message about "unknown device string". XP was still fine so I booted into there while I considered my options. Not knowing enough about Grub configuration to fix the obvious error I decided to directly mount the disk image under Windows and grab some files I needed that way. Unfortunately I couldn't make this work as it insisted the image wasn't formatted (I had already installed the Ext2 IFS so that wasn't the problem afaict). In the end I copied the entire image onto my USB drive and took it home, where I used the easy solution:

sudo mkdir /mnt/temp_home
sudo mount -o loop -t ext3 home.virtual.disk /mnt/temp_home
cd /mnt/temp_home


Oh look, there's all my files. One happy Kemp :-) Now to fix the booting problem...

Friday, September 28, 2007

Wubi Dangers

So yesterday I had a rather tense time trying to help Overlord fix his laptop. He covered the story in his blog but I figured I'd blog the solution we came up with here too for everyone's benefit.

He had installed Wubi (warning: read this first and remember it is an unofficial beta product) on his new laptop and it was all working fine. That is until the next morning when he switched his machine on to find it stuck in a loop running the POST, searching for an OS, failing to find it, and rebooting to start the process again.

The first thing to do was obviously a Google search, which resulted in several hits. The first hit gave us a vital clue: partition boot sector corruption was occurring. After some fiddling this eventually triggered a memory of a similar experience I had once with Wubi causing partition table corruption after a lockup and unsafe reboot. That time I had used a tool to manually recreate my partition table (luckily I didn't have a complex setup) and write a functioning boot sector to the relevant location. That wasn't an option this time as the tool wasn't immediately available, so I suggested my old backup option. This involved using the XP install disc to fix the corrupted boot sector via the Recovery Console. I only had an XP Pro install disc and the installation on the laptop was XP Home, but luckily that isn't an issue for this type of operation. The first thing we tried was chkdsk to find any obvious filesystem errors, but this did nothing. Running map showed why: the filesystem type could not be detected (a previous data gathering mission [not mentioned above] with an Ubuntu Live CD was able to extract the filesystem type strangely). Knowing that the most likely cause of the troubles was the partition boot sector being corrupted, the next program to run was fixboot, which confirmed the corruption, detected the filesystem as NTFS, and wrote out a new (supposedly working) copy of the boot sector. With fingers crossed we rebooted and waited... only for it to continue happening. Suppressing some combination of cursing and tears we booted once again into the Recovery Console for another try. Again the first thing to be run was chkdsk and this time it actually did something and mentioned fixing some errors, though it didn't say what they were. At this point I was silently praying it knew what it was doing because if it had picked up the wrong filesystem type it could be happily trashing the files on it. map was then run again and still no filesystem type being shown for that partition ("I have a bad feeling about this", praying again I wasn't right about chkdsk being bad). As a last ditch we ran fixboot again (again, seriously, fixing this was enough to induce OCD in someone) and then map and... WOOT! The filesystem was shown as NTFS. Crossing our fingers again for the reboot we waited for the POST stuff to happen and then... Windows. Lovely lovely Windows. I never thought I'd say that. Overlord understandably purged all trace of Wubi from his system and vowed never to use it again.

I think the magic combination was the fixboot-chkdsk-fixboot, though I can't be sure. I certainly don't want to have to do this again.

I should note that I am using Wubi on my machine here (not only that, but running Ubuntu Gutsy beta under it) and I have only had the problem resulting from the lockup-reboot, but I may very well have just been lucky. Basically, an OS with reverse-engineered drivers for a badly documented filesystem with no journalling/transactions available running under a beta installer/loader isn't the best thing to have on your machine. You have been warned.

Wednesday, December 06, 2006

Linux + Usability

Further to my previous posts about gradually liking Linux more and more, I do have to point out that Windows has one thing on its side. It may be bloated, slow, unreliable and targetted by every virus/spyware writer in existence, but it's usable by (almost) anyone. The problem that Linux has, and will always have until the programmers start to pick their game up, is that it's simply not possible for the average computer user (ie, someone without a degree in computing) to pick it up and use it. Sure the basic functionality is fine, but once you start doing anything useful that Windows handles for you, like printing to a network printer, you start hitting the machine with large blunt objects. The problem seems to be a combination of two things:
  • No will to create decent documentation

  • An assumption that not only will you be familiar with the internals of Linux, you will be familiar with the internals of the tool that you only just picked up

  • Fancy graphical interfaces that actually don't help you at all

Until developers think in terms of usability, the approaching time of mass adoption will never, never, appear.

As a case in point, I have this article about one man's attempts to set up CUPS. I personally have been exposed to a similar task in CUPS and even with instructions from someone who's already done it, it wasn't nice at all.
Part 1
Part 2

I'm sure Sarah will have a cunningly persuasive rebuttal, but you know it's all true really :-P

Tuesday, October 31, 2006

XPensive Software

Recently I've been getting much more enthusiastic about using Linux, having used Fedora Core something (4?) the summer before last while working on a project for the Cogent Computing ARC and doing a lot of work over the last few months with Gumstix (which come with some Linux distro, can't remember what) and Ubuntu. Then there's Knoppix which I'm using in its LiveCD form as a host system to develop my own distro based off of the guide at Linux From Scratch. Basically, I'm thinking of migrating almost all the things I do over to Linux in some form or another, possibly only keeping Windows (specifically XP, not Vista, see below) to play various games on and stuff. Besides, all the useful tools are written for Linux anyway...

This decision has been helped slightly by my discovery of various items in the Vista EULA, as mentioned here (3 pages for you =P ) and here, and I won't even go into the "Trusted Computing" nonsense or the related insane pushing of DRM at the system level (right down to the hardware itself).

As a side-note, I'd like to point you to this purely because I hate iTunes with a vengeance.

Anyway, I think that's enough to read for now. My feelings towards Windows have moved very fast towards dropping it recently, and that doesn't seem like it's going to change anytime soon.