Much ado about scripting, Linux & Eclipse: card subject to change

Showing posts with label thinkpad. Show all posts
Showing posts with label thinkpad. Show all posts

2008-09-14

Windows XP in Xubuntu with VirtualBox: Aw, snap!

This weekend, on a tip from CDT Doug, I decided to play around with VirtualBox, because there's still a few things I can't do in Linux. I've tried VMware in the past, but the last time I found NAT networking to be a pain to set up. By contrast, VirtualBox is great for drivers and hardware, but getting file sharing to work took some effort. Just make sure you install the VirtualBox Guest Additions into your guest OS, and you'll have video, sound, usb, networking, and sharing.

So, what prompted this? Well...

  1. I can load pages in IE6 or IE7, thanks to WINE and great work of the IESs 4 Linux project... but support for IE7 is still beta, and it's a little slow.
  2. I can run Picasa, also thanks to WINE. The latest version even works properly with Picasa Web Albums and Blogger.
  3. I can open and edit MS Office docs, thanks to OpenOffice (or Google Docs).

But...

  1. I can't run Quicken or QuickTax (ranked bronze or garbage by WineHQ's AppDB).
  2. I can't run iTunes.
  3. I can't run Google Chrome.
  4. I can't run SBCG4AP, or any Windows-only games from Popcap or Gamehouse.

So, it was time to get virtual. I created an 8Gb Win XP Home image, with 192Mb of RAM, running inside my 1.6Ghz, 1.25Gb RAM Thinkpad R51 Xubuntu laptop, and it works great. I can run Chrome, iTunes, Quicken, and at least one GameHouse game. Note that in this screenshot (top right corner), the CPU has clocked itself down to a whopping 600MHz using kpowersave's Powersave scheme and Dynamic CPU policy. You'll also notice I changed the default 'Right Control Key' mouse/keyboard grab toggle to 'Left Windows Key' because that way I don't have to use my right hand to switch from the main desktop to the virtual one.

Unfortunately, SBCG4AP won't start due to this error:

When trying to get a copy of the Win XP Power Toys Tweak UI control panel applet, I managed to kill Chrome, and got this for my collection.

Finally, let me show one last feature of VirtualBox: "seamless mode". With this enabled, you can blend XP apps right into your linux desktop. They're still managed by the Windows Start menu (which I've set to auto-hide in the shot below), and tend to force themselves to be above other linux-managed windows, but it provides an uncluttered way to work, if you prefer it.

2007-10-21

Happy 15th, Thinkpad!

I'm on my 4th Thinkpad (770X, T23, T40, T60p) since I started at IBM, and with the exception of the first motherboard in the T40 (which died within the first few weeks and was quickly replaced), they've all survived admirably.

Happy 15th, Thinkpad!

2007-08-12

My Shiny Metal A...

Some Lenovo / ThinkPad news:

2007-07-12

And now, back to Linux

This afternoon I had my power off while SWMNBN'd friend and co-worker (and apprentice electrician) fixed his wiring problem from last weekend's 2-day rewiring adventure. Apparently he's miswired the panel for the clothes dryer so while the lights were on, nobody was home (no heat produced and therefore no actual drying).

Blue Screens Of Death (In Stereo Where Available)

Anyway, after the juice came back on, I docked my T60p back in its crap-o-matic port replicator and attempted to tell it to open both the laptop and monitor screens. It complied... but not before BSOD'ing in stereo.

2007-07-11

Windows: A Survival Guide

*ponderous sigh*

After several months of enduring painful multi-monitor support (like cursor rendering problems and the inability to have monitors at different resolutions) and even more painful support for LEAP (for wifi access at work) ... I've finally given up on Linux on the Laptop and gone back to Windows XP.

This comes at a time when I no longer have my own cube at the Lab, because as Wassim puts it, I'm now "working from exile." Ed and I have elected to go mobile to save Big Blue some real estate costs (and to *cough* help the environment by staying home more).

Along with our switch to mobile status, Marcelo and Dave have moved too. They were made to give up their windows in D3 and now sit in Upper Middle Cube-land over in B3. So, to preserve the balance in the universe, Marcelo and I have gone back to Windows. (For those keeping score, that's 2 down, 2 up.)

Today was my first day at IBM without my own cube, sweet cube. Because of the aforementioned LEAP problems and because I no longer have a second monitor keeping my desk from blowing away in the breeze, it was time to revisit my Windows partition. I spent a portion of the afternoon setting up cygwin for the first time, including apt-cyg (a commandline way to update cygwin a la apt-get from the Debian/Ubuntu world). Then, in order to faciliate migrating my desktop settings from my linux partition into cygwin, I discovered Ext2 Installable File System For Windows.

This kicks ass and almost makes life in Windows bearable. It supports both ext2 and ext3 (if properly unmounted), and allows me to read & write into my linux partition via a mounted drive letter (though I haven't dared to try writing to it yet!). With this I can browse naturally w/ Windows Explorer or even with cygwin.

Next up to install was Pidgin, aka Gaim 2.0, which now supports Sametime natively, and imported my old Gaim 1.5 settings & buddy lists automatically... except where it lost my IRC buddies/chats and forgot which plugins I had enabled. Meh, close enough. Interface is a bit cleaner than the old Gaim 1.5, but I don't like the new icons.

Anyway, all the apps I use daily are back, bar one:

  • Mail/IM: Gaim + Meanwhile -> Pidgin; Notes 7; GMail; Thunderbird
  • Web: Firefox 1.5 or 2
  • Development: Eclipse 3.3 w/ phpeclipse, shelled, eclipsecolorer, mylyn; Cirrus or Beyond Compare w/ WINE -> Beyond Compare 2; (g)vim/Kate -> EditPlus
  • Console: Konsole --> cygwin console
  • Filesystem: Konqueror --> ???

Does anyone know of a filesystem browser that works for Windows that allows pane splitting and supports tabs & ssh? Anything's better than Windows Explorer, but I really miss Konqueror!

Maybe I'll have to play with Cygwin/X to see if I can get Konq back that way...

2007-05-28

The P is for Painful

Turns out I'm not the only person having hardware woes with my Thinkpad T60p. Here's a recap of the day I've had with my beloved/behated lappy:

The day begins by waking up the T60p from its slumber in its port rep at home. Checked mail, read some bug reports, then put it to sleep (suspend to RAM) for its commute to work with me.

Unfortunately, I'd been using the lappy's wifi last night and left the wifi radio killswitch turned off (ie., wireless was enabled), so the system never fully went to sleep (battery light and crescent moon light were both on when I arrived at work); with wifi disabled by kill switch, I can usually sleep/resume w/o incident.

At the suggestion of a fellow *ubuntu geek, Marcelo, I tried the magical incantation, ALT-PrtSC, S, U, B to Synch, Unmount, then reBoot the drive, but it didn't work. So, 4 seconds of power button and a quick reference to Mortal Kombat were required to, ahem, "Finish him."

fsck ran clean and rebooted automatically, but wouldn't actually start, so I had to 4-second-power-button ("4SPB") it again. This time it came up fine, no data loss noted.

Later, I unplugged my power supply to lend to Marcelo, and my USB mouse stopped working. I moved it to the USB port in the T60p (instead of the port rep's USB ports), and it worked (I've seen this before when I close the lid or the system goes to sleep -- the USB ports in the port rep just stop working until I reboot). Then I noticed the PS/2 keyboard was dead. I unplugged and replugged, but still dead. I popped the T60 out of the port rep, and it froze up. Good times. Tried the magical incantation again: no dice. 4SPB killed it, fsck was clean (though there were a lot of things to fix automatically), and again, automatic reboot dumped into a black screen of nothingness (perhaps it was asking for a fingerprint swipe on an inactive screen?). 4SPB a second time, and it booted fine.

Now, after two fsck disk checks and 4 reboots today, my USB mouse works but the PS/2 keyboard does not. I suspect this is because the port rep is not currently plugged in. Why a serial device needs external power is beyond me, but after this I'm returning the port rep for a PS/2-to-USB adapter because these headaches aren't worth the productivity losses.

At least the hangs today haven't resulting in my having to recover my ~/.gaim and ~/.skype folders (which strangely, happens nearly every time I crash and have to fsck manually to recover the drive, because apparently these programs share the same chunk of the drive for their config files).

2007-05-15

Lotus Notes: A Retrospective

Did a quick, narcissistic self-google tonight and discovered that a number of people have been talking about my Notes 7 installer script.

This got me thinking about Notes through the ages, from the bad old days of 4.x when I first started w/ IBM in '99 and longed for Groupwise or PINE to my days of writing LotusScript and designing database apps (while trying not to curse at Designer for its frequent, and at the very least, predictable crashes) in and around the 5.5-6.0 days, to the days when I first tried to install some flavour of Notes on a linux box.

Notes 6.0 and 6.5 thru WINE were horrible, and painful to set up -- I can't recall if I ever managed to get them working, but I do remember wondering how IBM could invest so much time and money in Linux without making Notes run there.

Notes 7.0b3 with WINE (still with the 6.5 splash screen) was buggy to the point where right-clicking your inbox caused the RSOD (Red Screen Of Death), but was at least a little easier to install, in that I could actually do it on a Debian-based system. Unfortunately, it was pretty temperamental and if you accidentlally upgraded your WINE from a very special patched version available only on internal IBM servers, you broke it. It also came with the unfortunate acronym "NUL", for Notes Under Linux. I'll let you make your own jokes.

Notes 7.0 was certainly an improvement over the past versions, but being a full Eclipse-based Java client, there's a certain amount of memory usage that's unavoidable. That said, there's no more Windows emulation through WINE, so it's more stable. I can now run Notes 7 without random crashes and hangups on Linux (though I do still get some pretty odd error messages thrown at me once in a while -- it just wouldn't be Notes without 'em!). Yes, I'm often annoyed by the fact that modal dialog boxes appear UNDER my main Notes window and sometimes don't appear until I minimize everything. True, my laptop is a T60p w/ 2G or RAM and a dual-core 2.0G processor, so it's got horsepower to burn, but the point is, from a usability standpoint, Notes 7 actually works on Linux. Combine it with a couple Eclipse workspaces and Sametime 7.5.1 and you *do* chew up a lot of RAM, but then, that's why you're running Linux, right? Try doing that on Windows and still getting reasonable performance when your virus scan software starts up. ;-) Of course I still prefer Gmail, but I digress.

It's my fond hope that the folks that package Notes will heed the rants about how much of a pain it is to install on anything but Windows, RHEL and SuSE, and make the experience easier for everyone else, like us SimplyMEPIS / (k)ubuntu folks. Clearly, things have improved substantially. That said, there's still a long way to go before Notes can be installed via apt-get without having to worry about missing fonts, libraries, PATH entries, or which of the several included startup scripts to use to launch Notes.

Notes 8 is now available in beta, and according to fellow IBMer-blogger Chris Aniszczyk, Notes 8 will be even better still. When I go through the process of installing that one, I'll provide a new script or at least blog the experience. Stay tuned.

2007-04-24

TrackPoint no more?

For shame! I was comparing Thinkpads the other night when I noticed that the new Lenovo systems seemed to be missing the much-beloved and very useful TrackPoint from their 3000 Family of laptops.

A little more digging tonight through Lenovo's Design Matters blog, and I discovered that not only is it conspicuously absent from all 3000 laptops, but it's an intentional design/marketing choice, not some accidental oversight!

We intentionally did not include a TrackPoint because notebooks within this price category tend to use pads. If you really want a TrackPoint I suggest you buy a ThinkPad. [1]

If you've never used a TrackPoint, it can be a bit odd to first get used to it, but once you're accustomed to using the rubber-tipped, 3-button "keyboard nipple", it's much more efficient than a run-of-the-mill grease-prone two-button touchpad, because unlike a touchpad, it responds to directional pressure like a mouse or trackball rather than making you pretend your finger is a stylus to 'draw' your cursor around the screen.

Luckily, you can still get a TrackPoint on Lenovo's Thinkpads. I wonder how much longer they'll be available?

One final note: this poll suggests I'm not the only vocal TrackPoint fan out there, and also that my cap of choice is the most popular. Woohoo! Maybe there's hope for the future of the TrackPoint.