Thursday, July 19, 2012

Ubuntu Lucid Lynx 10.04.4

Just for the heck of it, I went and grabbed the latest i386 ISO for Ubuntu Lucid Lynx, 10.04.4, to see just how well the old workhorse works for WoW, what with Cataclysm's appdb page suggesting that one should use Wine Stable 1.2 for preference. End of Life for the desktop is going to be April 2013, not far away. But then, I'm used to installing a distro every month or two, so I'm hardly going to go that long without finding something better. And even if I don't, I'm sure some community will step up to keep Lucid going, the way there are communities still supporting Dapper Drake (6.06).

Installation was with Ubiquity. The idea that one should specify partitions first and configuration and account information second, while the system is being copied over, came after this release. There were about 200 GB of updates to download.

This was the release where Canonical moved the window controls to the left from the right, something that annoyed a lot of people. This can be corrected by the simple expedient of selecting System > Preferences > Appearance and selecting any theme besides Ambiance or Radiance. This was the first thing I changed. The second was to start getting some of my favorite packages: abiword, ace-of-penguins, chromium-browser, conky, galculator, gnome-colors, the GIMP, midori, nethack, pidgin, xchat, and ubuntu-restricted-extras. The third was to change the desktop setup from two panels to one.

Gnome 2.30.1 is very RAM-efficient. It starts out using perhaps 120 MB of RAM, better than MadBox 12.04. Even more amazing, it returns to that when you kill all your open apps. I remember other reasons why I liked the Gnome 2.x: it's so easy to set up window decorations, widgets, keyboard shortcuts, the panel, and everything else to suit my preferences. Openbox has OBConf and the GTK appearance setting app to do most of these, but keyboard shortcuts are hacked into the appropriate XML file at ~/.config/openbox/*rc.xml.

I've also installed Mint 13 Maya 64-bit Cinnamon on my laptop. Compared to getting new window decorations in Cinnamon (Cinnamon Settings > Themes > second tab the name of which escapes me > choose a window decoration theme from the appropriate dropdown > go to the Cinnamon control applet in the panel > select Troubleshooting > Restart Cinnamon) it was very straightforward. The keyboard shortcuts manager is equally straightforward. I still have no idea how to effectively set up keyboard shortcuts in Cinnamon, as the GNOME settings manager doesn't seem to do the trick. Perhaps restarting Cinnamon will do that for me as well. I may also install MATE and see how it works.

I understand making the move from GTK+ 2 to GTK+ 3, as it is able to do so many more things, but does the resulting DE (Gnome-shell) have to take up so much more RAM? Does it really have to have compositing? I have yet to see compositing do anything useful. Animating window opens, closes, resizes, moves, desktop transitions, etc. does not count. Having previews instead of mere icons as you alt-tab may be one candidate of something useful that comes from compositing, but only if it doesn't confuse you as to which window you're choosing, or require you to pick one with the mouse. That is something KDE 4.x has done well -- the record flip window switcher is especially intuitive, as is the one that looks like a casement window.

Some apps are kept much more up to date than others. The office suite is OOo 3.2 (well behind LibreOffice 3.5, the current version) while Firefox is current at 13.0.1. Chromium lags back at 18 (as it does in Precise Pangolin; Google has released 22 stable for Windows and OSX).

In order to get the best possible experience, I decided that I would download and install the very latest from the manufacturer's site and install in runlevel 3, instead of using Jockey-GTK to install two-year-old ATI drivers. Then I did some research and discovered the Ubuntu-X team's PPA... which has an fglrx-installer for Lucid dated 18 December 2010. So that's out. I decided to try these instructions instead. Unfortunately, I was unable to download the 12.6 Beta drivers from http://www2.ati.com/drivers/legacy/amd-driver-installer-12.6-legacy-x86.x86_64.zip for the first few days. Later tries worked. I had to run the file with a ./ prefix to get it to work, and.... it offered to install the same 8.97.100.3 Catalyst driver that Jockey did. The limitation appears to be the version of Xorg installed. Since I have no idea how to upgrade that by myself, my journey ends here.

I'll be keeping Lucid as a working environment anyways, for a while at least. I may also cover it over with some other distro not suited to playing World of Warcraft, like #! 11 Waldorf, Linux Mint Debian Edition, or some other Debian-based distro. I found I actually missed using Gedit, Nautilus, and Abiword, instead of Mousepad, PCManFM, and LibreOffice Writer. I've said (and believed) for years that I can readily adapt to almost any desktop environment, but it appears I really am most at home in Gnome 2.x. I have no idea what I'll do next (though you can bet I'm going to try Bhodi 2.0 when Jeff Hoogland gets it done), but odds are I'll look for a distro based on Debian Testing with either a KDE 4 or modified Gnome 3 environment -- except that I just saw that CentOS has released 6.3, and that is a distro with the same sort of basing (kernel 2.6.32, Gnome 2.28) as Lucid, only with End of Life lots further off, in 2017. I will probably stick with the open source Radeon driver, as it can implement 1280x1024 on my monitor properly.

Wednesday, July 4, 2012

Madbox 12.04 i386

When I saw that the Wine PPA for Ubuntu had advanced to 1.5.7, I said I'd try a new Ubuntu-based distro to use with it. Lubuntu is my perennial favorite, but I decided I'd go for something even leaner: Madbox 12.04.

A bit of history: After Philip Newborough, the creator of CrunchBang Linux, rebased from Ubuntu to Debian, a number of folks stepped up to try to provide a lightweight distro using OpenBox based on current Ubuntu releases, cos first, that was what they liked, and second, CrunchBang 10 "Statler" was slow in coming. These included UberBang (only one version, based on Lucid Lynx 10.04), Masonux (last version based on Karmic Koala 9.10), and perhaps a couple of others. One of the folks in the #! community that goes by ADcomp also stepped up, and created Madbox. Philip says it is the implementation most like what he originally had in mind, and most true to his original vision. The ISO file is right here, and the md5sum is 34382c7847f51195a12d5884e178af7f. I couldn't find a torrent seed.

The live CD starts with a graphical GRUB2 bootloader, that allows you to choose between Belgian, French, and US (qwerty) keyboards, with Belgian as the default. It goes by VERY fast, in a mere five seconds or so. Don't blink or you'll miss it. The ISO is very lean at 375MB. As you would expect, applications are sparse: lxpanel, lxterminal, chromium-browser, PCManFM, geany for editing, Mirage for graphics, ePDFViewer for office, GNOME MPlayer, PulseAudio Volume Control, HTop, UXTerm, XTerm, GParted, networkmanager, OBConf, and lxde-appearance. If you select "Run" from the panel menu, you get lxpanelctl-run, but if you hit alt-F2, you get gmrun. This is because of an issue I'd seen elsewhere in LXDE; for whatever reason, if you modify the Openbox config file at all (found at ~/.config/openbox/something-rc.xml -- something may be nothing, lxde, or lubuntu), and set a keybinding to launch lxpanelctl-run it launches beneath whatever app has focus, and you have to alt-tab to it. It's the same with PCManFM. Incidentally, I am not currently having that issue with lxpanelctl-run in Madbox. I'm not sure if I set up the keybinding before or after adding lxde-core, but lxpanelctl-run behaves itself in Madbox's OpenBox environment. PCManFM still launches behind whatever app has focus. I will probably install Thunar to fix this.

Which reminds me of something else: when you resize lxterminal, you get some graphical corruption. I've seen this since lubuntu 11.10. Here's a pretty bad example:
Image Hosted by ImageShack.us
Shot at 2012-07-02
This is something else I've been seeing for some time. The environment recovers if you move another window over the corrupted area. My solution is really simple: ROXterm.

Installation was with Ubiquity. Downloading and installation took 21 minutes. After you finish selecting your timezone and configuring your account, there is no slideshow, only a progress bar. Post-install, I had to update 313 packages (about 12 minutes of downloads at 200k/s) and add a lot of stuff. The repos were decidedly sluggish, which is odd: I'm in the South of the US, and the downloads from us.archives.ubuntu.com never quite reached 200kb/s, and I know I can get as much as 360kb/s. Maybe it's because I told Ubiquity I was in New York. Further investigation revealed that I'm getting transfer rates no higher than about 200KB/s, regardless of anything. I shall have to contact my ISP.

I started with synaptic, mousepad, jockey-gtk, abiword (v2.9.2, which is a buggy piece of crap that blacks out its rulers and will occasionally kick me out of my desktop session to the display manager when I click on a menu), and ubuntu-restricted-extras, then set out to fix fstab. Problem: blkid didn't work quickly, the way I'm used to it doing. It started and nothing happened, for many minutes. I don't know why. On to other things, like xchat, irssi, w3m, pidgin, and firefox.

Then I discovered that there is another way to list UUIDs: ls -l /dev/disk/by-uuid > uuids.txt which worked like a charm (except for not showing labels). With that, I had no problem editing fstab to meet my needs.

I cannot invoke graphical programs with gksu using gmrun. In every case, I found myself creating a root terminal (use sudo su and provide your password) and invoking graphical programs from those, including synaptic, gparted, jockey-gtk and amdcccle, until I opened the menu item's Properties in the lxpanel-menu and changing the command to gksu [foo]. This worked for synaptic, but not amdcccle or gparted.

Jockey-gtk did its usual excellent job of installing proprietary graphical drivers. Catalyst STILL can't get my Hitachi CM751 CRT monitor to run at 1280x1024, which is one of its native resolutions. Instead, it runs it at 1600x1200, but only uses 1280x1024 pixels, centered. All 4:3 native resolutions work fine. To keep framerate comparisons honest, I run WoW in a 1280x900 window like I did at 1280x1024, but on my 1600x1200 desktop.

Framerates were generally ok, but whenever anything loaded -- a death animation, a set of particle effects, my mount -- the screen froze up for a second or so. Given how often particle effects and death animations go off in combat, this was not acceptable. I investigated. It turns out that my Config.wtf file (location: ~/.wine/drive_c/Program Files/World of Warcraft/WTF/Config.wtf) had lost a setting I'd set along the way:
SET gxAPI "openGL"
No idea why. But that was the issue.

Starting RAM usage in Madbox 12.04 is about 150MB, only about 60MB leaner than with openSUSE 12.1 lxde. But either Ubuntu (compared to openSUSE) or Wine 1.5.7 (vs. Wine 1.5.6) seems to run leaner. openSUSE 12.1 swiftly ramped up to about 65-70% of my 2.95GiB of available RAM while running the game, while Madbox 12.04 took hours of play to reach that level of usage.

Eventually, I added the lxde-core desktop environment, which has overcome pretty much all of the annoyances I had with Madbox's default behavior, while only using perhaps 50-60MB more RAM. The end result? I went to my test spot (Grizzly Hills, 29.7, 50.2, facing north, with the bottom of the waterfall lined up with my shoulderpads) and got a framerate of 30fps. That is the best I've ever had. And when I tried it in the default madbox/OB desktop, I got 32fps. I used to be tickled to get 25FPS there during WotLK. Of course, back then I was playing with a 128MB nVidia GeForce 7100. But now I have to find a suitable benchmarking spot somewhere in the new zones or suitably close to Orgrimmar, with sufficiently demanding water, cos humping out to Grizzly Hills to test framerates is a pain. Some place like 58.6, 32.3 in the Vir'naal oasis, facing north on the small bare rock, zoomed all the way out, with my head lined up with the left edge of the lower falls of the rapids. I'm getting 26-27fps there with the openbox desktop session. And there's also lots of good fishing, for blackbelly mudfish -- excellent tank food if ever there was.