pigeond pigeond

pigeon's blog - the pigeon concerto in D minor


You can now buy Debian packages from the supermarket…
2011/02/23 14:31:36
linux





SCIM with 32-bit app on 64-bit system outside chroot
2009/05/14 19:37:00
linux

For those who need SCIM while running 32-bit apps on a 64-bit system outside chroot, there are two things (at least for me) needed.

Apart from the obvious that you need SCIM installed in the 32-bit chroot, you’ll need to set SCIM_MODULE_PATH to point to the 32-bit SCIM libdir. For instance, my iceweasel32 script looks like:

#!/bin/sh
export CHROOT=/chroot/testing.32

export GTK_PATH=${CHROOT}/usr/lib/gtk-2.0

export LD_LIBRARY_PATH=${CHROOT}/lib:${CHROOT}/usr/lib:/lib32:/usr/lib32

export SCIM_MODULE_PATH=${CHROOT}/usr/lib/scim-1.0

export MOZ_PLUGIN_PATH=${CHROOT}/usr/lib/mozilla/plugins

linux32 ${CHROOT}/usr/lib/iceweasel/firefox-bin "$@"

Secondly, you’ll need to add a symlink in /usr/lib32/gtk-2.0/2.10.0/immodules for the chroot’s /usr/lib/gtk-2.0/2.10.0/immodules/im-scim.so. Not the cleanest way I have to say, but it works.


permlink :: trackback :: Comments Off



“I know kung fu…”
2007/02/11 20:36:47
linux software

And so does everyone else. Simply apt-get install ipkungfu.

I’ve finally switched my gateway box from my 12 years old Pentium (I) 166MHz gateway box (still running Debian potato, kernel 2.2. This is Linux for you, when it works, it can work forever…), to my 5-6 years old Netwinder.

I was also very glad that the Netwinder is now (or still) officially supported by Debian. I had Debian potato installed on it for years. Upgrading it was painless.

My old gateway box was running such an old kernel, and the firewall was one of those copied-from-others script using ipchains. This time I decided to use a better way to manage my firewall rules. After a bit of research and trying things out, I’ve chosen ipkungfu. Again, it was painless to setup.

The only not-so-good bit was, I did the machine switching-over only 1 day before I went away. So as it turned out, my net connection went down in about 2 days time. I always have some scripts checking if the net is up or not, and it would reset everything (bringing down/up the interface, renewing IP, relogging on, etc). But looks like that wasn’t helping either. So I thought it might be one of those cable-modem-needed-to-be-reset situation.

I asked my uncle to power cycle the cable modem for me. And just to be safe I asked him to do the same for the gateway box too. As expected my net connection went up again. And I was happy, for a while.

Who would have thought, it went down again. Suspiciously, it also only stayed up for about 2 days. My instinct told me it wasn’t a coincident. A few days later my uncle again power cycled the modem.

I got on and check the logs again and found that my firewall was blocking (and logging) a lot of IGMP packets from some mysterious 10.x.x.x (Telstra internal network instruments) IP. It’s strange though, I haven’t seen these logs when I was testing the net. So apparently just the bpalogin client heartbeat is not enough. Seems that without the IGMP packet response (or how-ever IGMP works), after a certain timeout period (2 days?) the other end terminates the net connection and stops leasing IP, even if the cable modem is on or even there are existing network connections. So of course, I’ve then updated my firewall rules.

Lesson learnt, testing the net for 1 day is not enough, cos it will go down in 2 days ;)

Once again, many thanks to my uncle for the trouble.


permlink :: trackback :: Comments Off



Pikkoro – My Linux live system on a CF card
2006/06/04 20:28:26
flightgear linux

Since the last few times when I was in HK/TW, I’ve been thinking of having a Linux live system, installed on a USB stick or Compact Flash (CF) card, so I could simply plug it to any machine (say, those m$ windows box of my parent’s or my wife’s). I had been using the Ubuntu LiveCD, and it was really great. But then of course CD access is slow, and it’s read-only.

So I bought myself a 2GB CF card when I was in HK months ago. And I’ve finally finished setting Linux up on it. Host name “Pikkoro” (yes, yet another machine named after Dragon Ball characters), got Debian Etch (testing) installed, have it booting and running my own Linux system using a USB-CF card reader.

For those who are not familiar with the idea of a “live” system, it is basically an operating system (Linux in this case) installed on any media that can be used to boot on a computer. We all know the common setup of your computer booting the OS installed on your harddisk. So your harddisk is “bootable”. These days most computers can boot not only from a harddisk, but also from a CD/DVD, or a USB storage device (aka USB drive/stick). A live system would mean the OS/system can be run without installation. It won’t touch your harddisk (unless you want to).

So in my case, I have Linux installed and setup on my CF card, which can be plugged to a computer via a USB-CF card reader. The reason why i didn’t use a USB stick/drive is so I can use/read it on my iPAQ too, which has a CF slot.

Getting a Linux live system to work is pretty easy if you’re familiar with how Linux boots and how Debian works. Nevertheless I did some searches and reading on what other people have been doing, and I found this mini guide. What interested me is the localepurge package in Debian, which saved me a some disk spaces.

One of many things during the process was picking a window manager (notice how I said “window manager”, but not “desktop environment” :) I’ve been an AfterStepper (1.8) for a long long time. When I was doing FGLive I played with fluxbox a bit and I liked it. So I’ve decided to give it a go. After fiddling with it for a while, it’s official, fluxbox is now default on my Linux live CF. Its tab feature is probably one of the coolest. My only complaint so far is it not able to switch virtual desktop by mouse, and the fact that it only has concept of linear virtual desktops it seems.

Anyway, I’m now happy that I can carry around my own Linux system anywhere I go…


permlink :: trackback :: Comments Off



blog top 24 tags
api bonding debian engrish fglive fgmap flightgear google ISP laptop lca2007 lca2008 linux live map mpserver navaids network qotd quote of the day taiwan vim windows wine
Search
 
Web pigeond.net









this site is
created with vim



nearly all pages in this site are validated as
Valid HTML 4.01!

css validated by
Valid CSS!


pigeond.net copyright 2001 - 2014
designed, created, and coded by pigeon at pigeond dot net
all rights reserved