Archive for the 'Linux' Category


Trying out Kubuntu - First Impressions

Sunday, December 24th, 2006

At the moment both my desktop and laptop run Gentoo Linux. It’s a fine OS and it’s been the longest running Linux distro I’ve had, but it takes a lot of effort to keep it up to date. Over time I’ve used my desktop less and less for work, to the point it’s really just a media server. Since it hasn’t been used for much, I haven’t kept it up to date, and it’s still awaiting the split-X upgrade, and now the gcc 4.11 upgrade. I don’t want to do them again, I’ve done them on my laptop and they take a long time, and there’s always something that needs fixing at the end. So I figure it’s time to try out something a little more low maintenance, enter Kubuntu.

I’ve had some experience with Ubuntu before, and it’s pretty pain-free, providing you don’t mix and match your source lists too much, all too common when you want to try some new version of a package. I downloaded a copy of Kubuntu Feisty Fawn, which is the latest development version, so strictly speaking you shouldn’t use it as your current desktop OS, but I don’t plan to upgrade for a short while so I just wanted to give it a test run.

N.B. This was done with the live CD rather than doing an install.

Startup

Overall pretty good, it did try to use an unsupported video mode between the original boot menu and X, but I just sat it out and it was fine. It brought up X and found the network.

X

X did start up and was working but still needed some configuration to get to a decent state. It had chosen the highest resolution possible, which meant a low refresh rate, I had to copy over my old settings to get it the way I liked it. I was surprised to see an option to change the resolution and refresh rate in KDE control center, but these had no effect besides restarting X. It also setup a US keyboard, so that needed changing.

Other Hardware

It didn’t detect my printer, but I’m still using the parallel port, so fair enough. More annoyingly it didn’t create any mount points for my hard drives and DVD drive, so I had to do this for myself.

Multimedia

Since the main purpose of the box will be to serve media files, this is an important area. Sounds works fine, so we were off to a good start, but that’s where it ended. There’s a definite lack of multimedia software with Kubuntu, namely:

  • mplayer
  • freevo
  • mythtv
  • Any UPnP AV servers (mediatomb, ushare, etc.)

The only media player was Kaffeine and when it started, it complained about various things, e.g. missing Win32 codecs, insufficient permissions to read /dev/dvd, not great. The lack of codecs was a real problem. Most files couldn’t play (duh, they’re avi files!), but also some mpegs lacked sound.

That’s where my first adventure into Kunbuntu ended. The appeal of apt-get is a strong one, so I think it’ll continue, I just need to find a source list that will give me multimedia love I crave. :) If I can get that sorted and setup a CUPS and Samba server, it might be time to retire one of the older Gentoo installations out there.

Spread the word: Technorati related  |  del.icio.us bookmark it!  |  submit Trying out Kubuntu - First Impressions digg.com digg it!  |  reddit reddit!

Using Gmail as a Client for Your Other Email Accounts

Sunday, November 19th, 2006

I’ve started using Gmail at work and I like it. The conversation view really grows on you, and little things like filtering out duplicate mails (think replies to a mailing list) are really handy. After using it for a few weeks it made Squirrel Mail, which I was using for my personal mail, feel really basic. So I decided to setup Gmail to be my main mail client, but with my regular email address. Here’s what I did:

  1. Register your personal email address with Gmail. This allows you to send mail from your regular address instead of your Gmail address. You might also want to set that address to be the default one messages are sent from.
  2. Start forwarding your other mail to Gmail. This step really depends on your ISP, I have shell access so I use procmail:
    PATH=$HOME/usr/bin:$HOME/usr/local/bin:/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/games
    MAILDIR=$HOME/Maildir
    PMDIR=$HOME/.procmail
    LOGFILE=$HOME/procmail.log
    SHELL=/bin/sh
    
    # ... SpamAssassin stuff omitted ...
    
    
    # Forward to Gmail (if not from Gmail, e.g. bcc’s)
    :0c
    * ! ^Sender: user@gmail.com
    ! user@gmail.com
    
    
    # Default entry to make sure mail is delivered
    :0
    $HOME/Maildir/
    

    N.B. replace user@gmail.com with your email address.

    The bold bit forwards all mails to Gmail unless it’s sent by your Gmail user, e.g. if you’re bcc’ing each mail to yourself (useful for normal mail clients to maintain a conversation view but unnecessary for Gmail), but the main idea is to stop loops.
  3. Optional step
  4. I like to send a copy of each mail to myself using BCC. This means I can backup sent mail, and still see the whole thread if I’m using another client. This can’t be done automatically with Gmail, but can be done with a greasemonkey script, I’m using Gmail Auto BCC. The procmail rule above allows you to BCC your main email address without sending a copy back to Gmail, but it’s not perfect. When you bcc yourself Gmail spots this and marks it as a new message in your inbox, I haven’t found a way around this yet with only one address. But I have my own domain so I can have as many addresses as I like, so I setup a bcc@ address for my auto forwarding.

With this setup a copy of all my email is forwarded to Gmail, I can send mail from my regular address, and a copy of each message I send is backed up to my ISP. It’s working well at the moment, the only downside being I have to sort through mail twice, first in Gmail, and secondly went downloading the backup from my ISP, I’ll have to see how that works out in the long run. My next tasks will be to see if I can upload my old mail, and to try out the new mobile Gmail app.

Spread the word: Technorati related  |  del.icio.us bookmark it!  |  submit Using Gmail as a Client for Your Other Email Accounts digg.com digg it!  |  reddit reddit!

Weird Hibernation Issues

Wednesday, September 20th, 2006

No, nothing to do with sleeping for a very long time, but weird things my Thinkpad does when it hibernates. For the most part hiberation works very well on my Thinkpad. I use the hardware supported one rather than the one built into Linux, but it does do a couple of odd things.

The first is that Firefox occassionaly (but not always!) dies during hibernation. I think I’ve narrowed it does to either Ajax apps running (some network connection getting killed, then killing the app?) or I’m using swap (more likely Firefox has been opened long enough that something else is the cause). It’s not really a problem because I use Tab Mix Plus, which can restore my session after a crash, but it is frustrating if you open a bunch of articles that you want to read on say a long train journey, only to find the browser is gone!

The other weird issue is that my fonts disappear from OpenOffice and Microsoft Office (running via Crossover Office after hiberation. This includes menu fonts and the fonts used in the document. All the spacing remains correct, just no text. It only happens to these two programs, everything else is fine. Restarting xfs doesn’t make a difference, the only way to fix it is to restart X. This problem is just bizarre.

If any one has any solutions to these problems, I’d love to hear them!

Update 1: It looks like the hibernation processes shuts down the network connection and all programs that depend on it. I don’t know if that’s a Gentoo specific thing. The only other process that isn’t running when the computer is turned back on is gconfd-2, but unfortunately starting it up doesn’t help with the font problem.

Update 2: The gconfd-2 thing was a red herring, it was started up by Firefox. Killing it doesn’t affect the fonts. I guess something in X is dying, which can only be fixed with a restart.

Spread the word: Technorati related  |  del.icio.us bookmark it!  |  submit Weird Hibernation Issues digg.com digg it!  |  reddit reddit!

Gentoo and Amarok 1.4.0

Monday, July 31st, 2006

If you’ve just upgraded to Amarok 1.4 on Gentoo Linux and it keeps crashing on startup, try installing sqlite:

emerge --oneshot dev-db/sqlite

It looks as if this is a runtime dependency of Amarok that emerge fails to install.

I’ve raised this issue as bug #142340 on Gentoo’s bug tracker.

Update: This might just be required if you’re upgrading a collection from 1.3.x.

Spread the word: Technorati related  |  del.icio.us bookmark it!  |  submit Gentoo and Amarok 1.4.0 digg.com digg it!  |  reddit reddit!

GPRS Internet with Linux

Tuesday, April 18th, 2006

I actually came across the correct settings for Vodafone GPRS while trying to use my phone as a modem. I was away over Easter and had my laptop, but my only Internet connection was a vain hope there would be a public wireless connection around. There weren’t any, and surprisingly all the ones I did find were encryptyed.

It was annoying to see wireless connections around but not being able to connect. I figured if I couldn’t get a permanent solution like a 3G datacard or a monthly subscription to T-Mobile HotSpot, then I’d have to fall back to the old trusty dial up. There is a modem built into the Thinkpad T30, but I’ve never bothered to set it up. I figure if there is a phone line, there’s going to be some sort of broadband connection. The modem I wanted to use was in my phone, the main driver being I had a load of bundled minutes with it and what better way to use them than downloading email at 9.6kbps?

But before I could find out if I could even be old fashioned and dial up to Freeserve (or what ever they’re called now) I remembered about GPRS, which should give me a data rate of about 25-40kbps. I found some instructions how to use a Sony Ericsson phone as a GPRS modem in Linux. These particular instructions use Bluetooth, something my T30 doesn’t have, but you can connect using the supplied USB cable as well. After you plug in your phone load the following drivers:

  • cdc_acm
  • ppp
  • ppp_deflate
  • bsd_comp

The first driver should create a device at /dev/ttyACM0, the others are to allow you to dial up and use PPP. So ignore the first step in the instructions above (unless of course you’re using Bluetooth). Then in the first file change the device to /dev/ttyACM0, and make sure you have the correct user (’web’ for Vodafone). My copy of /etc/ppp/chat.gprs contains:

TIMEOUT         5
SAY             "Internet via Vodafone GPRS"
ABORT           'nBUSYr'
ABORT           'nERRORr'
ABORT           'nNO ANSWERr'
ABORT           'nNO CARRIERr'
ABORT           'nNO DIALTONEr'
ABORT           'nRINGINGrnrRINGINGr'
''              rAT
TIMEOUT         12
OK              ATE1
OK              AT+cgdcont=1,"IP","internet"
OK              ATD*99***1#
CONNECT         ''

and finally in /etc/ppp/pap-secrets set the username and password to what ever your provider requires. Then you can connect with:

pppd chat gprs

and amazingly you’re connected to the Internet. Maybe I’m too cynical about technology these days, but I was amazed how easy this was to setup.

Spread the word: Technorati related  |  del.icio.us bookmark it!  |  submit GPRS Internet with Linux digg.com digg it!  |  reddit reddit!

WPA, Gentoo Linux and an IBM Thinkpad T30

Sunday, April 2nd, 2006

I decided it was finally time to switch from WEP to WPA because WEP is simply broken and shouldn’t be considered safe. There are some attacks available against WPA, but they tend to be ‘try every key in existence’ type. Have a sufficiently long key and you’re pretty much safe. The attacks also seemed to be geared towards weaknesses in TKIP, I haven’t read any about AES.

Using WPA in Gentoo is trivial and the guidebook covers all you need to know. There was one slight hiccup, my wireless card’s firmware didn’t support WPA. I have the optional mini-PCI card for the Thinkpad T30. This is based on the Intersil Prism 2.5 chipset. The hostaputils package contains the ‘prism2srec’ command that allows you to update the firmware. Here are the instructions I followed.

First check what card you have:

# hostap_diag wlan0
Host AP driver diagnostics information for 'wlan0'

NICID: id=0x8013 v1.0.0 (PRISM II (2.5) Mini-PCI (SST parallel flash))
PRIID: id=0x0015 v1.1.0
STAID: id=0x001f v1.4.9 (station firmware)

The ’station firmware’ needs to be at least 1.7.0 to use WPA. If you try to run wpa_supplicant before updating the firmware you’ll get a driver doesn’t support WPA error message. Check out the instructions I linked to previously to work out what files you need. The latest firmware is 1.8.4, but the I only upgraded to 1.7.4 since several people had tested that version and it works. With that version of the station firmware also came an update to the primary firmware, the files I used were:

Only use those files if the output of hostap_diag matched mine.

You’ll have to modify the hostap driver to enable flashing since it’s disabled by default. Instructions are on the linked page. Once you’ve done that it’s a simple matter of:

# prism2_srec -v wlan0 pk010101.hex sf010704.hex

and if everything went smoothly (no error messages), do it for real:

# prism2_srec -f -v wlan0 pk010101.hex sf010704.hex

After a lot of messages you should see:

Downloading to non-volatile memory (flash).
Note! This can take about 30 seconds. Do _not_ remove card during download.
OK.
Components after download:
  NICID: 0x8013 v1.0.0
  PRIID: 0x0015 v1.1.1
  STAID: 0x001f v1.7.4

Your card will be updated and you can start using WPA.

Spread the word: Technorati related  |  del.icio.us bookmark it!  |  submit WPA, Gentoo Linux and an IBM Thinkpad T30 digg.com digg it!  |  reddit reddit!

Woohoo! Black text in Bloglines again

Wednesday, March 8th, 2006

Just upgraded to KDE 3.5.1 on my work box, which includes an upgrade to Konqueror. Not sure what the full set of changes are but there is at least one fix to the CSS rendering that means the text on Bloglines is black again. During KDE 3.4 the text was the same blue as their links, making it pretty tough to read.

Spread the word: Technorati related  |  del.icio.us bookmark it!  |  submit Woohoo! Black text in Bloglines again digg.com digg it!  |  reddit reddit!

Amarok iPod Support

Tuesday, February 14th, 2006

Amarok have announced the beta of their next version, ‘Fast Forward’. One feature I’m exciting about is the improved iPod support. They’ve switched to use libgpod, which is supposed to add a lot more features than the kioslave they used to use. I’m hoping this makes Amarok into a true iTunes replacement and kick starts me into transferring my music from a dormant Windows machine to a Linux box.

Recently I’ve starting using the FM radio on my phone for music. But a recent change in work policy has meant I have to be in the office by 9.00, this has the unfortunate side effect that for half my walk I have to listen to adverts/news/travel info instead of music. Time to dig out that iPod.

Spread the word: Technorati related  |  del.icio.us bookmark it!  |  submit Amarok iPod Support digg.com digg it!  |  reddit reddit!

Reliable Linux video card?

Wednesday, February 8th, 2006

What’s a reliable video card for Linux? Google says: Matrox G550. Let’s see if I can find one on the cheap.

Update: Damn my greed. I found two G550s on eBay with a Buy It Now of £12, but there was also an auction ending this morning so I bid on that instead. It looked like I could get one for £4, but of course I got outbid at the last second and the two other auctions for £12 have been snapped up. Now the cheapest one is hovering around £30, maybe it’s a sign.

Spread the word: Technorati related  |  del.icio.us bookmark it!  |  submit Reliable Linux video card? digg.com digg it!  |  reddit reddit!

Definitely not hardware

Tuesday, February 7th, 2006

Turns out I actually have a GeForce2 MX-400, the GeForce2 Ti was living in a Windows box. I switched the cards and got the same response from the Ti. So that confirms it’s a driver issue not a hardware one. No I really regret chucking out that Matrox…

Spread the word: Technorati related  |  del.icio.us bookmark it!  |  submit Definitely not hardware digg.com digg it!  |  reddit reddit!

ati-tv software ABBYY FineReader 8.0 Professional Multilanguage
ipod nana software ABBYY FineReader 8.0 Professional Multilanguage
easy fax software ABBYY FineReader Professional Edition 9.0 with Djvu Addon
encoder coding software Ableton Live 6.0.9
analytical system software ACD Systems Combo Pack
employee scheduling software Acronis Disk Director Server 10.0
eraise fundraising software Acronis Disk Director Suite 10.0
openeye software Acronis Disk Editor v6.0.360
gateway limited software Acronis Drive Cleanser v6.0 Build 383
tungsten software download Acronis Migrate Easy Deluxe v1.0.0.43
physics software Acronis & Paragon Universal Boot CD USB 2009 1.0
avatar server software Acronis & Paragon Universal Boot CD USB 2009 1.0
imaging software driver Acronis & Paragon Universal Boot CD USB 2009 1.0
software raid performance Acronis PartitionExpert 2003
legislative trackinig software Acronis Privacy Expert Suite 7.0
software listings Acronis Privacy Expert Suite 7.0
art software program Acronis Recovery Expert Deluxe
adams software forms Acronis True Image 7.0
free reservations software Acronis True Image Echo Server for Windows 9.5
panda antiviruse software Acronis True Image Enterprise Server 9.1.3666
microsoft excel software Acronis True Image Home 11.0
tape duplication software Acronis True Image Workstation 9.1.3887
free dayplanner software ActionScript 3.0 in Flash CS3 Professional Essential Training
raft software ActiveState Komodo IDE 4.2.0
software crises ActiveState Perl Dev Kit Pro 7
jq-210 download software Adobe Acrobat 7 Professional for Mac
audit software tracking Adobe Acrobat 7 Professional for Mac
smartist software Adobe Acrobat 7.0 Professional
callender software Adobe Acrobat 7.0 Professional
currency conversion software Adobe Acrobat 8.0 Professional
n95 remove software Adobe Acrobat 8.0 Professional
anderson software internet Adobe Acrobat 8.0 Professional
genealogy publishing software Adobe Acrobat 8.0 Professional for Mac
article distribution software Adobe Acrobat 8.0 Professional for Mac
map maker software Adobe Acrobat 9 Pro Extended
decisionbar software Adobe Acrobat 9 Pro Extended
timekeeping system software Adobe Acrobat 9 Pro Extended
knowledge mapping software Adobe Acrobat V 6.0 Professional PC
writing style software Adobe Acrobat V 6.0 Professional PC
management product software Adobe After Effects 6.5 for Mac
military packaging software Adobe After Effects 6.5 for Mac
knockout software Adobe After Effects 6.5 for Mac
mantel test software Adobe After Effects 7.0 Standard
pst repair software Adobe After Effects 7.0 Standard
pcr software customers Adobe After Effects 7.0 Standard
loopholes software testing Adobe After Effects CS3
ebay software tools Adobe After Effects CS3
volleyball statistic software Adobe After Effects CS3
autoquote software Adobe Atmosphere 1.0
medical documentation software Adobe Audition 2.0
software distrubitor Adobe Audition 2.0
6600 software program Adobe Audition 3.0
buy financial software Adobe Contribute CS3
apartment purchasing software Adobe Contribute CS3
define software application Adobe Creative Suite 2 Premium for Mac
autocad software review Adobe Creative Suite 2 Premium for Mac
pctools software Adobe Creative Suite 2 Premium for Mac
webchat software Adobe Creative Suite 2 Premium for Windows
book software store Adobe Creative Suite 2 Premium for Windows
software remote access Adobe Creative Suite 2 Premium for Windows
aor scanner software Adobe Creative Suite 2 Premium for Windows
software design article Adobe Creative Suite 3 Design Premium for Mac
microstudio 4.001 software Adobe Creative Suite 3 Design Premium for Mac
netscape 8 software Adobe Creative Suite 3 Design Premium for Mac
biblesoft software update Adobe Creative Suite 3 Design Premium for Mac
linux frontbridge software Adobe Creative Suite 3 Design Premium for Mac
code repository software Adobe Creative Suite 3 Design Premium for Win
acceleration software program Adobe Creative Suite 3 Design Premium for Win
clinical database software Adobe Creative Suite 3 Design Premium for Win
midi studio software Adobe Creative Suite 3 Design Premium for Win
aqura software Adobe Creative Suite 3 Master Collection for Mac
ezdata software Adobe Creative Suite 3 Master Collection for Mac
brightstore backup software Adobe Creative Suite 3 Master Collection for Mac
tk20 software Adobe Creative Suite 3 Master Collection for Mac
sequence analysis software Adobe Creative Suite 3 Master Collection for Mac
deployable spy software Adobe Creative Suite 3 Master Collection for Win
dprofiler software Adobe Creative Suite 3 Master Collection for Win
atm switch software Adobe Creative Suite 3 Master Collection for Win
hyperion software operations Adobe Creative Suite 3 Master Collection for Win
voice synthesis software Adobe Creative Suite 3 Master Collection for Win
iomega ghost software Adobe Creative Suite 3 Master Collection for Win
ups calculation software Adobe Creative Suite for Mac
oracle software Adobe Creative Suite for Mac
discount cad software Adobe Creative Suite for Mac
audio software forum Adobe Creative Suite for Mac
architectural renovation software Adobe Creative Suite 3 Master Collection for Win + Microsoft Office 2007 Enterprise
iphone 1.0.2 software Adobe Dreamweaver CS3
edsoft software Adobe Dreamweaver CS3
swing analysis software Adobe Dreamweaver CS3 for Mac
flowsheet software Adobe Encore CS3
lunix old software Adobe Encore CS3
software download drums Adobe Encore CS3
ficiton software Adobe Encore DVD 2.0
ebay software bidding Adobe Encore DVD 2.0
src software incorporated Adobe Encore DVD 2.0
amateur radio software Adobe Fireworks CS3
coin collectors software Adobe Fireworks CS3 for Mac
software package Adobe Flash CS3 Professional
convention software Adobe Flash CS3 Professional
picture software free Adobe Flash CS3 Professional for Mac
software circuit design Adobe Flash CS3 Professional for Mac
lenticular software crack Adobe Flash CS4
journal software engineering Adobe Flash CS4
webpage editor software Adobe Flash CS4
airframe business software Adobe Flex v.3.0.2
delmia software Adobe Flex v.3.0.2
freehand graphics software Adobe Font Folio 11
northrop resume software Adobe Font Folio 11
diabetes software pdas Adobe FrameMaker 7.0
istante software inc Adobe FrameMaker 7.0
vigilance software Adobe FrameMaker 8.0
software kinder preschool Adobe FrameMaker 8.0
dex drive software Adobe FrameMaker 9.0
de elementos software Adobe FrameMaker 9.0
software inspections Adobe FrameMaker 9.0
free cdrw software Adobe GoLive CS V 7.0 PC
ftp p2p software Adobe GoLive CS V 7.0 PC
transmit software Adobe GoLive CS2
becker data software Adobe GoLive CS2
fta firmware software Adobe Illustrator CS V 11.0 PC
liquids marketing software Adobe Illustrator CS V 11.0 PC
motorola v-180 software Adobe Illustrator CS2
explore anywhere software Adobe Illustrator CS3
outsourcing software solution Adobe InDesign CS V 3.0 PC
wntipcfg software Adobe InDesign CS V 3.0 PC
opengl software program Adobe InDesign CS2
nokia 6102i software Adobe InDesign CS2
free coloring software Adobe InDesign CS3
opp blackjack software Adobe InDesign CS3
astronomie software free Adobe InDesign CS4
monitoring email software Adobe InDesign CS4
development proposal software Adobe InDesign CS4
software cpu underclocking Adobe PageMaker 7.0.1
feko software Adobe Photoshop Album V 2.0
educational software seattle Adobe Photoshop Album V 2.0
learning measurement software Adobe Photoshop CS for Mac
flir software Adobe Photoshop CS for Mac
gps tracks software Adobe Photoshop CS v.8.0
free donation software Adobe Photoshop CS v.8.0
software updating freeware Adobe Photoshop CS2 for Mac
mountbridge software Adobe Photoshop CS2 for Mac
scream software seismic Adobe Photoshop CS2 V 9.0
software requirements plan Adobe Photoshop CS2 V 9.0
mpeg4 slideshow software Adobe Photoshop CS2 V 9.0
french genealogy software Adobe Photoshop CS3: Enhancing Digital Photographs
free software imac Adobe Photoshop CS3: Enhancing Digital Photographs
graphics benchmarking software Adobe Photoshop CS3 Extended
firewall software features Adobe Photoshop CS3 Extended
automatic prayer software Adobe Photoshop CS3 Extended
pine software examples Adobe Photoshop CS3 Extended for Mac