WildBill's Blogdom

Mongo only pawn, in game of life.

Alsa Woes, and How to Fix Them.

| Comments

Had a minor issue with volume control on the new fujip. The GNOME keyboard mappings only adjust the “Master” channel, but it seems that the “PCM” and “Headphone” channels are the ones that actually alter the volume. The fix was easy; load the snd-intel8x0 module with the “ac97_quirk=2” option.


In /etc/modutils/snd_intel8x0: put the line “options snd-intel8x0 ac97_quirk=2” and then reboot. Fixed!

OMG WTF LOL BBQ FUJIP!!!!11111

| Comments

Translation: Hey, guys, I got a new FujiP!

Finally got a new laptop – it’d been five years since the last new computer purchase. Every other piece of equipment I’d picked up had been used in some way. Was able to track down one of the last P7010 on newegg.com. The new P7120 isn’t a consideration for me; as the 1.8” iPod-style disk is slow, difficult to replace, and limited in capacity. I store way too much data on my system.

I have yet to get the bay battery for this lil guy, but I’ll do that next week. Breezy Badger slid right in on this machine, and I was happily surprised at the stuff that just worked out of the box. A few things didn’t work, but I’ll document those steps below. First, some mandatory pictures for the #linux and FujiPClan…

Old FujiP 2110 and new FujiP 7010

FujiP with the lid open. The flash effect really doesn’t do the screen justice – the old FujiP had an awesome LCD; but the new CrystalView LCD is simply incredible.

FujiP with lid closed. Sexy.

The specs on this unit are:

  • Pentium-M 1.2Ghz with Centrino
  • 512MB RAM
  • 80GB disk
  • Dual-Layer DVD+-RW burner
  • Intel 2915ABG 802.11 a/b/g wifi

As I said; Breezy Badger just slid in on this box. Windows never had a chance – I booted straight to Linux and wiped the disk. (Wonder if I can apply for a Windows Refund…) Everything worked out of the box, with a few exceptions. I’ll document the exceptions below.

Video:

I had to do some tweaking to get the proper 1280x768 resolution working with DRI and DRM. Stuff I did was:

  • Setup 855resolution. Apt-get that program, then edit /etc/default/855resolution so mode 5c is for 1280x768.
  • I used Adam’s xorg.conf as the basis for my xorg.conf. Get my xorg.conf here.
  • I had to specify which modules to load in /etc/modules – the magic order seems to be agpgart, intel_agp, drm, i915. Ubuntu builds all these modules for you; just add those lines to the beginning of /etc/modules and you’re golden.

Power Management: All I did to tweak power management was to install gnome-power-manager – it’s in universe; so just add that to your sources.list and apt-get it. :)

DVD Playback: Standard Ubuntu stuff; install libdvdread3 and then run “sudo /usr/share/doc/libdvdread3/examples/install-css.sh”. Alternatively; go to the Ubuntu Forums and get Automatix from the Customization forum, and run that.

NetworkManager: I installed my NM packages from an earlier blog post for trouble-free networking.

That’s about it. Sleep/suspend to disk worked out of the box, which is a first for me. :) I’m SOOOOOOO HAPPPPPPY!

The OTHER DSL – Damn Small Linux, and What It Can Do for You.

| Comments

Some time ago, Kyle had mentioned to me that there’s a lightweight version of Knoppix out there called Damn Small Linux, or DSL for short. If anyone would know about Knoppix derivatives, it’d be Kyle. After all, he wrote the bestseller Knoppix Hacks, and the logical follow-up, The Knoppix Pocket Reference. (Like that plug, Kyle?)

Anyhow… DSL makes a great addition to any toolkit. It’s small size (50MB) means that it’ll fit on a mini-CD or business card CD. It’ll also easily install onto a USB key. And since I had a USB key that was underutilized (it only had my resume and some other files on it) I figured I’d give it a go. (For what it’s worth, I have a 512MB Intelligent Stick. The thing is so small is disappears in my wallet. Highly recommended.)

DSL’s got another unique feature; they call it their “5-way” bootable USB stick. Not only can you boot DSL from a USB stick (in USB-HDD or USB-ZIP modes), but you can also install QEMU on the stick with their 5-way script. The 5-way script will then setup the USB stick to have two scripts on it for use with QEMU: a script that’ll load DSL under Linux as a host OS, and another that’ll load DSL under Windows as a host OS. Pretty nifty; and that’s what I decided to test out.

Installing the 5-way boot is surprisingly easy. First, you’ve gotta get the DSL .iso from their website (http://distro.ibiblio.org/pub/linux/distributions/damnsmall/current/current.iso, then burn that to a CD with the capacity of your choice.

Next, boot from the CD to the DSL distro. Once it’s up, you may need to launch netcardsetup to setup your NIC if you don’t have a DHCP network available. After that, use the included Dillo or Firefox browsers to get the 5-way script (http://distro.ibiblio.org/pub/linux/distributions/damnsmall/current/5-way.tgz) and untar that script.

Once that’s done, you can plug in your usb stick and run the 5-way setup script. It’ll prompt you for installation instructions, and it’ll format your usb stick (MAKE SURE YOU BACKUP YOUR DATA THAT’S ON IT), install the bootloader, and it’ll create all the QEMU script mojo. After that, you can reboot back into your host OS of choice, plug in your stick, and run the appropriate windows or linux script to start DSL. If you had data on the stick, feel free to create directories and put your data back - having data on the stick won’t hurt the USB boot any. If you’re running Ubuntu, make sure to mount your USB stick without the “noexec” option, otherwise it won’t execute QEMU.

Here’s some screenshots:
The File Structure of the USB stick after installing the 5-way script. Note the “dsl-linux.sh” script - that’s what you run to boot DSL under linux.

Here’s QEMU just beginning to boot DSL:

More of the boot process. Note that QEMU is emulating a Pentium II architecture - even though this is a P4-M host machine.

DSL fully booted. Note some of the cool features - it’s got Firefox, Dillo (comes up automatically), XMMS, and a few WindowMaker-like dockapps. It uses fluxbox as its WM, so you flux freaks will be right at home. :)

Networking works automagically out of the box. All I did was fire up Firefox and plug a URL in, and BAM!

That concludes this mini-tour of DSL. Hope you find it useful – I’ll keep it installed on my USB key as part of my sysadmin toolkit.

Gg Perl

| Comments

OMG MEMOARY LEAK!!!1111

last pid: 20079; load averages: 0.31, 0.33, 0.26 16:24:00 82 processes: 75 sleeping, 4 running, 1 zombie, 1 stopped, 1 on cpu CPU states: 97.4% idle, 0.6% user, 1.9% kernel, 0.0% iowait, 0.0% swap Memory: 4096M real, 395M free, 3127M swap in use, 4022M swap free PID USERNAME LWP PRI NICE SIZE RES STATE TIME CPU COMMAND 577 root 1 59 0 1997M 1996M sleep 228:03 0.17% perl5.8.3 403 root 184 29 10 427M 347M sleep 19:40 0.03% webservd 563 root 224 29 10 152M 95M sleep 9:06 0.00% java 332 root 48 59 0 147M 129M sleep 572:40 0.02% ns-slapd 439 root 32 59 0 113M 52M run 13:12 0.00% webservd 11305 mailsrv 6 59 -2 108M 16M sleep 0:30 0.00% imapd 11303 mailsrv 3 59 0 104M 37M sleep 0:07 0.00% stored 11308 mailsrv 4 59 -2 104M 11M sleep 0:03 0.00% popd 11311 mailsrv 4 59 -2 97M 13M sleep 0:12 0.00% mshttpd 204 root 72 29 10 85M 30M run 8:12 0.00% ns-httpd 413 icsuser 4 59 -2 71M 28M sleep 1:08 0.00% cshttpd 409 icsuser 9 59 -2 59M 15M run 7:12 0.00% csadmind 16460 nobody 1 59 0 40M 33M sleep 2:06 0.01% spamd 16293 nobody 1 59 0 39M 32M sleep 1:53 0.00% spamd 16241 nobody 1 59 0 38M 32M sleep 1:57 0.00% spamd