One of the main reasons I was looking for a launch bar was that I created a menu for all my DOS games, using mygtkmenu. Once you create this menu, it just cries out for somewhere to attach it, and wbar fits the bill perfectly.

I have a bunch of old DOS (redundant much?) games that I decided to install. In addition to the ones I own (including the priceless Definitive Wargame Collection), the wonderful Good Old Games site ships several of theirs using DOSBox and even Steam uses it for classics like "X-COM : UFO".

First I would create a short script file to run the game. Due to a bug in the driver, it required a work around; namely, telling SDL (the library used by DOSBox) to not "DGA" mouse (or draw directly to video memory). It seems to be fixed so i took it out.

#! /bin/bash
cd /mediax/games/MAGIC
dosbox -conf dosbox.conf

Then I would either grab a screenshot from the game (using Ctrl-F5) or search the web for an icon. And then edit my gamemenu.xml file and add an entry like this:

item = Master of Magic
cmd = "/home/jdarnold/bin/mom"
icon = /home/jdarnold/icons/masterofmagic.jpg
dosboxmenu1.pngFor my Definitive Wargame Collection, I created a slightly more generic batch file:

#! /bin/bash
cd /mediax/games/WARGAMES
dosbox -conf dosbox.conf $1/$2 -c "cd $1" -exit

Here I cd into the WARGAMES folder and it gets passed a directory and an executable, so mygtkmenu entry looks like this:

SUBMENU = Definitive Wargame Collection #1
icon = /home/jdarnold/icons/CompleteWargameCollection.jpg

item = Complete Games Menu
cmd = "/home/jdarnold/bin/wargames"
icon = /home/jdarnold/icons/CompleteWargameCollection.jpg

item = Decisive Battles of the Civil War
cmd = /home/jdarnold/bin/wargame1 ACW DB.EXE
icon = /home/jdarnold/icons/DecisiveBattles.png

So I've created a sub-menu off the main menu and I pass in the sub-directory and the executable for the app. In a later installment, I'll talk a little more about DOSBox, which is a really nice program. Here's a couple of shots of the final product:


Enhanced by Zemanta
Love this short Arch Linux promo video!

Enhanced by Zemanta
Ooops - I forgot to mention in my Blue Period post what Window Manager I have been using. I had the post about 90% done and started playing with some of the cool new buttons in the MovableType post editor and things went haywire and I lost most of it :( I guess I forgot to add the window manager back in.

In keeping with the The Arch Way, I decided to stay away from big heavy "Desktop Environments" like KDE or GNOME and explored some of the lesser known and more lightweight Window Managers. I settled on Openbox. Not sure why exactly, as there are a plethora of choices, but Openbox seemed nicely compact and pretty popular with the Arch Linux crowd. And I haven't looked back really. It's pretty easily configurable, with a couple of XML files being the most prominent config files - rc.xml for most of the config and menu.xml for the right click menu. One particularly cool thing to use is a "pipe menu", where the results of a command build a menu on the fly. The very prolific Arch user Xyne has created obfilebrowser, which creates a menu based upon the folder you point it at, so you can use it like a little file browser. Another useful menu generation tool is menumaker, which you run once and it creates a menu.xml file for you. It scans all the "usual" places for apps, as well as having a few custom algorithms for finding those out of the way apps. Unfortunately, it seems to be abandoned, as I don't see any updates to it in several years, although it does seem to work okay.

Add the fairly lightweight and equally configurable tint2 & wbar and you've got yourself a very workable X Window environment.

Enhanced by Zemanta
After getting tired of the green desktop on my Arch Linux box, I played a bit with some backgrounds and colors and came up with my Blue Period desktop:

Screenshot Blue.png(click for larger image)

So this is my new desktop, devoid of (almost) any windows. There's plenty of screen real estate, as I have 24" & 21" monitors running in Twinview mode, for a whopping 3600x1050 pixels. Here's what I'm showing, from left to right:
  • A wbar launch menu. It has some nice OSX-type animations. Funny, I was just thinking I wanted a launcher for a couple programs. I usually use Launchy but some of them I'd rather not. And then someone mentioned wbar in the addicting Screenshots topic in the Arch Linux forums. So I checked it out and despite the total lack of documentation, I figured out how to use it. Be sure to get wbarconf too, to help set up the menu.
  • The background is from the Desktopography 2009 exhibition. I was thinking I wanted an outerspace picture and this really fit in with that idea and going blue. And it came in a nice big size too. My "wallpapers" Delcious bookmarks can be found here.
  • The dropdown window is a Yakuake terminal window, my favorite terminal emulator. It hides away nicely.
  • At the bottom is a tint2 task manager. I used to have it go across both sreens but it made the sys tray apps too hard to get to, so I just have it go across one desktop now. I use tintwizard to tame the multiple config options.
  • Top right is my fairly simple conky display. I need to get back to hacking on it again.
And here's a more "busy" display of my desktop:

Screenshot Blue Busy.pngClick for full display
Here I'm running a few of my standard apps:

Edited to add: I forgot to add what Window Manager I was using - I go into more details of my Openbox install here.

Related articles
Enhanced by Zemanta
Just spent the morning moving my MovableType blogs (like Daemon Dancing) from MT 3.2 to MT 5.031. It's a bit of a pain, as you have to move one step at a time from one update to the next, so it took 4 (!) upgrades, but I think it is working. At least, if you see this it is working :) Now I hope to get back to more regular posting on my Linux adventures.

Anyway, here's a pretty funny video I came across. It has a special resonance, not just because I love writing code in C & C++, but also because I am reading the wonderful Bob Spitz biography on The Beatles.

Write in C - Let It Be Cover

Enhanced by Zemanta

I've come across a couple sudo tricks during the past few days and thought I would pass them along.

The first thing you need to know before using sudo is that you should use the visudo command to edit the sudo config file. This script does a number of useful things, like creating a lock to prevent mulitple editing, and doing some sanity check. But if you have the problem that setting $EDITOR and $VISUAL is ignored when running something with sudo (like sudo visudo or sudo crontab -e), that's a sudo config issue. Add the following in your /etc/sudoers file:

Defaults env_keep += "EDITOR VISUAL"

And you can use sudo from within your normal Emacs window by using the Emacs' Tramp Mode, which allows all kinds of editing, even remote editing. Just use the sudo "protocol" when editing a system file, like /etc/fstab:

Find file: /sudo::/etc/fstab

This will prompt you for your password (not the root password - remember, we're doing this via sudo, which wants your password, not root's). Type it in and you can edit the file in place, rather than running a special Emacs process as root. Very nice!

I have been using emacs since the beginning of computer time, way back in the mid-80s. My .emacs file has been carried around for almost as long. Each major rev causes me headaches, as I never know what archaic options are going to break things. And yet, I'm still learning new things to do with it. I think it inspired Zawinski's Law of Software Envelopment:

Every program attempts to expand until it can read mail. Those programs which cannot so expand are replaced by ones which can.

My latest Emacs discovery was on an Arch Linux forum thread on note taking software. I use Remember The Milk for plenty of lists, but the web based nature of it makes it hard to be quick about doing a quick note. I started keeping a simple text file with notes on what I was doing, as I was finding whole hours at the keyboard disappearing into a black hole. I whipped up a quick Emacs macro that I bound to F7, which opened a file to prepend a new quick entry:

(setq logfile-name "/home/jdarnold/Dropbox/dailylog.txt")
(defun insert-new-log ()
  "Start a new log entry"
  (find-file logfile-name)
  (insert "==== ")
  (insert "\n\n")

As you can see, I put the file in my Dropbox folder (use this link to sign up and we both get an extra 250gb of storage space), so no matter which computer I'm working on, I can jot a quick note that looks something like this:

==== Monday, January 25 2010 10:43 AM (1264434222)
after a couple of hours puttering around, including writing a review
for Goodreads, I'm back at work. Trying to figure out what I did to
break the video plugin

I have a few adhoc tags, stamp it with time date and Unix time, and tried to see what I was working. It's okay, but if I forgot to jot something down when I left the keyboard (which I often did), it lost a lot of its effectiveness.

Then I found out about org-mode in Emacs. It's been in the standard Emacs distribution for a couple of releases, but I'd never heard of it before. And wow, is it amazing! The PDF of the User Manual is nearly 200 pages! And it really does everything you could want in an organizer/todo manager/note taker. It even has a clock in/clock out/idle timeout paradigm, so it can notice when I've walked away from my computer. Unfortuantely, "real" idle only works on Mac OSX and Linux (after compiling x11dle.c). On Windows, it just notices when you are idle in Emacs, which, despite the fact I use Emacs alot on Windows, isn't quite the same thing.

So now I've changed my Emacs checkin macro to be:

(defun start-new-task ()
  "Start new journal task"
  (find-file (concat dropbox-folder "org/" journalname))

so it adds a new heading and starts the clock. And on my work machine, I set journalname to be a work journal and on my personal machine, I give it a different name. Still working out the kinks in the process, but it's closer to tracking what I've been doing.

I also intend on using org-mode to jot down my myriad project ideas. I'm always coming across interesting web sites, esp. for web APIs, that make me want to dabble in some projects, but I've never had anywhere to jot them down. I was using, an online mind-mapping tool for it, but found it too structured. Given org-mode's flexibility, I should be able to find some easy way to just add my "brilliant" brainstorms to a file!

A couple of links posted to my Linux Tumblr last week:

Arched - Daemon Dancing in the Dark

| No Comments | No TrackBacks

So early in December, I went on a quest for a new Linux distro. It wasn't so much that I was unhappy with my openSUSE 11.0 installation, but I knew I was probably going to install the new 11.2 version and so I figured I would cast about to see what's up with the other KDE distros. And given that Linux Format had just done a big review on the "best" KDE distros out there, it was good timing all around.

I didn't really have as complete a checklist of features as I have had in the past. Of course, it had to install on my beast of a machine, with its myriad hard drives, cd drives, dual monitors, and the like. I wanted an easy to use package manager, with plenty of packages available. I was't quite as sold on a "one size fits all" admin panel like openSUSE's Yast2. I'm feeling a little more adventurous, and hate to see my configs get changed without my knowledge. I wanted a KDE distro, as I find GNOME to be bizarre. I didn't want to get too far off the beaten path, as I like a popular, well documented distro.

First up was Sabayon, which has been getting lots of good press. I wasn't crazy about their home page - it was too hard to find even the download link. And there were a few kinks in the install process. It was a few months ago, so I don't remember exactly the problems, but they were enough to sour me on it a bit. It did have exactly the same problem I was going to find in all the rest of my installs, which is that the setup hard drive numbering for GRUB was always different than the final installation drive numbering, requiring me to reboot using the live disc and edit the /boot/grub/menu.lst file and change the hd0 to hd1. Not sure why that is, but I guess the mix of IDE & SATA hard drives makes it crazy.

So after dabbling a bit with Sabayon, I moved over to try Sidux, which really intrigued me with its cutting edge release and huge package library. It also had an incredibly clean install process and the desktop is stunning. Really a very polished and good looking release. It has a very nice community with lots of good info on the web site. I was a little turned off by its insistence that you drop down into single user mode to install any updates, which isn't something I like doing.

But I played with Sidux for a couple of days. It was nice, but I decided to give Arch Linux a try. It had been written up very nicely in the previous issue of Linux Format, in the "Remix Your Own Linux" article. It's overriding philosophy of "Keep It Simple" was really attractive, as was the very large package library. I found it amusing that the Live CD boots into a commandline, the installer is the old fashioned text-mode graphics and, even after installing, you end up with commandline! It doesn't even install X for you.

I found this a refreshing change and decided to jump right in. I even decided against installing KDE and just run openbox with a stripped down config. It's really been working nicely for me and I haven't looked back. Arch makes a great server install, as there is very little cruft installed by default. When I built my media server machine, with its 1tb software RAID, I only added Emacs & Samba and I know it is a lean, mean, serving machine.

The Arch wiki is incredibly informative and comes up early in many Google searches. The forums are active with intelligent discussions and it is a very nice, experienced, community. While I wouldn't use it for my Grandma's Linux, Arch is a great distro once you get some Linux experience and want to tailor a distro to your ideas, and not the other way around. Arch is also why the calls for fewer distros is misguided. It isn't for everyone but as long as each distro has a certain focus, and hues to it closely like Arch does, there's plenty of room out there. Next up - theme color changes!

Recent Comments

  • Saviq: It's best to use './bootstrap' instead of autoconf itself. read more
  • Jonathan: I'd rather depend on a Linux module like ntfs-3g working read more
  • gormux: sorry but i think you did wrong : first never read more
  • Jonathan: Not sure why it would say it won't work, as read more
  • Jens Andreasen: Hi, I have exactly this problem, and have been trying read more
  • oes tsetnoc: well when i tried to configure smba - everything went read more
  • oes tsetnoc: Fantastic, straight to the point and very usable ... wish read more
  • oes tsetnoc: Just a few words of Thanks for a such a read more
  • freebsd sux: >FreeBSD does not suck. It's just not meant for dumbasses read more
  • Jonathan Arnold: You'll probably need to boot it with a FreeBSD rescue read more


Powered by Movable Type 5.031