Archive for the ‘Basic Instructions’ Category
Transforming Xubuntu into DBCOS
Part 5: Good Software for Slow Computers
Before we make up a new theme for our IceWM system, I thought it would be a good idea to install some of the alternate software that will make Dr. Boli’s Celebrated Operating System suitable for even old and crusty computers like my testing system.
Xubuntu’s mix of software is safe and familiar, and you don’t have to install anything else. But some of the programs that come with Xubuntu are heavy and slow on older computers. You may have to give up a few features to replace them with faster programs, but you may find that the speed is worth the minor sacrifices.
First, I’m going to add OpenOffice.org. This is a counterintuitive choice, since OpenOffice.org is huge and bloated by Linux standards. But my experience has been that, once it gets started (which I admit takes a while on an old computer), OpenOffice.org runs well even on anemic hardware. It’s a bit complicated to install the whole thing: see this article for step-by-step instructions.
Next, the Web browser. Firefox is still my favorite, but it can be big and slow. Kazehakase, a Japanese Web browser, uses the same Gecko rendering engine as Firefox, so Web pages look the same. But it’s a blazing speed demon. Its features are minimal, but for ordinary Web browsing they’re good enough, and you might really appreciate a Web browser that’s ready to go almost instantly even on an ancient computer like mine. Install the package kazehakase in Synaptic Package Manager.
Thunderbird, like Firefox, is full of features but heavy and slow. For email, I’m going to install Claws Mail, which is fast and easy to use. Claws Mail doesn’t send messages in HTML, so you won’t like it if you’re used to writing messages full of italics and formatting tricks. But most people just write text, and for them Claws Mail is perfect. Install the package claws-mail in Synaptic Package Manager.
The image viewer Ristretto, which comes with Xubnuntu, annoys me. It has to load thumbnails of all the images in the folder before you see the image you’ve tried to open with it. That can take a long time if the folder is, for example, the entire contents of a camera card. I’m going to replace it with GPicView, which is simple enough to be fast but complicated enough to do most of what you want from an image viewer. Install the package gpicview in Synaptic Package Manager.
We’ve already replaced the file manager Thunar with PCmanFM, which is faster. PCmanFM also has some useful features, like tabbed browsing, that you can’t get from Thunar. It even has the ability to manage the desktop, which we might find useful later on. Because the version of PCmanFM in the Ubuntu repositories had a crippling bug, we installed a later version from GetDeb.net.
Finally, if you don’t have it already, you should consider installing the VLC media player. It’s simple but incredibly versatile, and when you explore it you’ll be amazed by the depth of features. Install the package vlc in Synaptic Package Manager.
By the way, if you used the sample menu and toolbar file I gave you, when you restart IceWM all our newly installed applications will appear in their proper places. If you made your own menu, you already know how easy it is to add new applications to it.
Those are just a few quick additions, but we’ve actually changed all the major programs we’ll get real work done with. With the arguable exception of OpenOffice.org, all our new choices are much faster than the programs that came with Xubuntu. (I say OpenOffice.org is arguable because the Abiword word processor always slows to a crawl when I try to feed it a book-length document, which makes it useless for someone who makes his living writing books.) With these new choices, we’ll have a system that makes old computers feel young again and saves the environment by keeping tons of plastic and silicon out of the landfills. No need to thank me: that’s what I’m here for.
Transforming Xubuntu into DBCOS
Part 3: Editing the IceWM Menu
We’ve installed the Ice Window Manager or IceWM, and we’ve made it start up with the GTK theme we chose (and in my case with the Network Manager applet so that I can connect to wireless).
Now it’s time to attack that mostly useless IceWM menu. By the time we’re through with it, we’ll have a menu that’s as useful and well-designed as any XFCE, KDE, or Gnome menu, and we’ll have done it by editing a text file.
Please don’t run away screaming. I hate editing configuration files as much as you do, but this one is really easy.
Part of what makes it easy is that IceWM is very tolerant of mistakes. If it comes across something it doesn’t understand in a configuration file, it doesn’t give you an error message and freeze. It just skips what it doesn’t understand and goes on to the next thing it does understand. For a mid-Clintonian window manager, it’s actually pretty smart.
So, for example, we can stuff our menu with programs that we haven’t even installed yet. If IceWM doesn’t find a program where it should be in your computer, it simply skips it and won’t put it in the menu. Later, when you do install that program, it will appear in the menu the next time you start IceWM.
The menu is controlled by a text file called menu that will live in your .icewm folder—the folder we bookmarked. There’s a master menu file in /etc/X11/icewm, but any menu file you create will override it.
To add a program to the menu, all you have to do is add a line to the text file like this:
prog Blah blah blah
Or, to explain it in more detail,
prog “Name of Program as You Want It to Appear in the Menu” icon-filename program-command
Often the name of the program, the name of the icon, and the program command are the same. So, for example, to add Mousepad to the menu, we can add a line like this:
prog Mousepad mousepad mousepad
Sometimes the icon doesn’t have the same name as the program, and sometimes you might not want to use the icon that comes with the program. For those cases, it’s useful to know where the icons live. There are two good folders to know:
/usr/share/pixmaps
and
/usr/share/icons
The pixmaps folder has icons for most of the programs installed on your computer. Unless you specify a path, IceWM looks for an icon in the pixmaps folder. The icons folder has more general icons for system functions and the like; there’s a separate folder of icons for each icon theme you have installed.
If the icon you’ve named doesn’t exist, IceWM just won’t put an icon next to that item in the menu. Everything else will still work.
Now, I could go on and on to explain how the menu works, but I think it’s much easier to learn by example. So I’m giving you Dr. Boli’s Celebrated Menu File, the menu that goes with Dr. Boli’s Celebrated Operating System. I’ve stuffed it full of explanatory notes. Feel free to copy the menu into a text file and save it as “menu” in your .icewm folder.
# DR. BOLI'S CELEBRATED MENU FILE.
#
# The master menu lives in /etc/X11/icewm.
# A menu file in $HOME/.icewm will override it.
# Thus it's easy to have a customized menu for each user
# by creating a folder called .icewm in each user's
# home folder and placing the user's menu file there.
#
# Lines that begin with a pound sign are comments
# and will not be part of the menu.
#
# This example menu file is designed to be well organized,
# while still keeping every common program only two clicks
# away from the menu button.
#
# To add a program to the menu, just add a line like this:
#
# prog "Name of Program as You Want It to Appear in the Menu" icon-filename program-command
#
# Unless you specify a path, IceWM looks for icons in /usr/share/pixmaps.
# Often these icons bear the same name as the programs they represent,
# so a typical menu entry might look like this:
#
# prog Mousepad mousepad mousepad
#
# Note that quotation marks aren't necessary if the name of the program is
# only one word, and that you need not include the extension of the
# icon filename.
#
# Other icons may be found in /usr/share/icons.
#
# If a program isn't found on your system, it simply won't appear
# in the menu.
#
# My menu begins with an item that launches an "About" page:
prog "About DBCOS" /home/christopher/Pictures/boli-icon-26.png kazehakase http://drboli.wordpress.com/2008/06/02/release-announcement/
# To add a rule, simply add the word "separator" (note that the dashes after
# the pound sign have no effect; they simply make it more obvious to me where
# I've put a separator in this file):
separator #---------------------------------------------------------
separator #---------------------------------------------------------
# The programs I use most often go here at the top of the menu:
prog "File Manager" /usr/share/icons/gnome/16x16/places/gnome-fs-home.png pcmanfm
prog "Web Browser" /usr/share/pixmaps/kaze_icon.xpm kazehakase
prog "OpenOffice.org" /usr/share/icons/gnome/16x16/apps/openofficeorg24-writer.png ooffice
separator #---------------------------------------------------------
separator #---------------------------------------------------------
# Now we add a submenu. A brief glance at the following example should be enough
# explanation. Don't forget the opening and closing brackets.
menu "Desk Accessories" folder {
prog "PCman File Manager" /usr/share/pcmanfm/icons/folder.png pcmanfm
prog "Thunar File Manager" /usr/share/pixmaps/Thunar/Thunar-fallback-icon.png thunar
prog "XFE File Manager" xfe xfe
separator #-------------------------------------------------
prog Calculator gcalctool xcalc
prog "Character Map" /usr/share/icons/gnome/16x16/apps/gucharmap.png gucharmap
prog gcalctool gcalctool gcalctool
prog Magnify /usr/share/icons/gnome/16x16/actions/viewmag+.png xmag
prog Mousepad mousepad mousepad
prog "Network Applet" /usr/share/icons/gnome/16x16/categories/preferences-system-network.png nm-applet
prog "Screenshot in 5 Seconds" login-photo scrot -d 5
prog Terminal xterm x-terminal-emulator -ls
prog xterm xterm xterm -ls
}
separator #---------------------------------------------------------
prog "Package Manager" /usr/share/synaptic/pixmaps/synaptic_32x32.xpm /bin/sh -c "/usr/bin/gksu /usr/sbin/synaptic"
# ------------------------------------------------------------------
# The Games menu, which includes the games that come with Xubuntu,
# is divided into submenus because there are so many games.
# I haven't changed the default menu in this section.
# ------------------------------------------------------------------
menu "Games" folder {
menu "Action" folder {
prog "Gnibbles" /usr/share/pixmaps/gnibbles.xpm /bin/sh -c "/usr/games/gnibbles"
}
menu "Blocks" folder {
prog "Gnometris" /usr/share/pixmaps/gnometris.xpm /bin/sh -c "/usr/games/gnometris"
}
menu "Board" folder {
prog "Four-in-a-row" /usr/share/pixmaps/gnect.xpm /bin/sh -c "/usr/games/gnect"
prog "GL Chess" /usr/share/pixmaps/glchess.xpm /bin/sh -c "/usr/games/glchess"
prog "Gnome GYahtzee" /usr/share/pixmaps/gtali.xpm /bin/sh -c "/usr/games/gtali"
prog "Gnome Iagno" /usr/share/pixmaps/iagno.xpm /bin/sh -c "/usr/games/iagno"
prog "Gnome Lines" /usr/share/pixmaps/glines.xpm /bin/sh -c "/usr/games/glines"
prog "Gnome Mahjongg" /usr/share/pixmaps/gnome-mahjongg.xpm /bin/sh -c "/usr/games/mahjongg"
}
menu "Card" folder {
prog "Gnome Blackjack" /usr/share/pixmaps/blackjack.xpm /bin/sh -c "/usr/games/blackjack"
prog "Gnome FreeCell" /usr/share/pixmaps/freecell.xpm /bin/sh -c "/usr/games/sol --variation freecell"
prog "Gnome Solitaire Games" /usr/share/pixmaps/aisleriot.xpm /bin/sh -c "/usr/games/sol"
}
menu "Puzzles" folder {
prog "Gnome Klotski" /usr/share/pixmaps/gnotski.xpm /bin/sh -c "/usr/games/gnotski"
prog "Gnome Robots" /usr/share/p/usr/share/icons/gnome/16x16/appsixmaps/gnobots2.xpm /bin/sh -c "/usr/games/gnobots2"
prog "Gnome Sudoku" /usr/share/pixmaps/gnome-sudoku.xpm /bin/sh -c "/usr/games/gnome-sudoku"
prog "Gnome Tetravex" /usr/share/pixmaps/gnotravex.xpm /bin/sh -c "/usr/games/gnotravex"
prog "Gnomine" /usr/share/pixmaps/gnomine.xpm /bin/sh -c "/usr/games/gnomine"
prog "Same Gnome" /usr/share/pixmaps/gsame.xpm /bin/sh -c "/usr/games/same-gnome"
}
menu "Toys" folder {
prog "Oclock" - /bin/sh -c "oclock"
prog "Xclock (analog)" - /bin/sh -c "xclock -analog"
prog "Xclock (digital)" - /bin/sh -c "xclock -digital -update 1"
prog "Xeyes" - /bin/sh -c "xeyes"
prog "Xlogo" - /bin/sh -c "xlogo"
}
}
# ------------------------------------------------------------------------
menu Graphics folder {
prog Fontforge /usr/share/icons/gnome/16x16/actions/format-text-italic.png fontforge
prog Gimp gimp gimp
prog GPicView gpicview gpicview
prog GQview gqview gqview
prog Inkscape inkscape inkscape
prog "OpenOffice Draw" /usr/share/icons/gnome/16x16/apps/openofficeorg24-draw.png oodraw
prog Pencil pencil pencil
prog "Ristretto Image Viewer" ristretto ristretto
}
menu "Internet" folder {
prog Claws-mail claws-mail claws-mail
prog Thunderbird thunderbird thunderbird
separator #------------------------------------------------------
prog Dillo /usr/share/icons/gnome/16x16/stock/net/stock_internet.png dillo
prog Epiphany /usr/share/icons/gnome/16x16/stock/net/stock_internet.png epiphany
prog Firefox /usr/share/pixmaps/firefox-3.0.png firefox
prog Galeon galeon galeon
prog Kazehakase /usr/share/pixmaps/kaze_icon.xpm kazehakase
prog Konqueror konqueror konqueror
prog Midori /usr/share/icons/gnome/16x16/stock/net/stock_internet.png midori
prog Netsurf netsurf netsurf
prog Opera opera opera
separator #------------------------------------------------------
prog Transmission transmission transmission
}
menu "Office" folder {
prog AbiWord abiword abiword
prog "Gnumeric Spreadsheet" gnome-gnumeric.png gnumeric
prog "OpenOffice.org" /usr/share/icons/gnome/16x16/apps/openofficeorg24-writer.png ooffice
}
menu "Sound & Video" folder {
prog "Volume Control" /usr/share/icons/gnome/16x16/apps/volume-knob.png gamix
separator #-------------------------------------------------
prog Totem totem totem
prog VLC vlc vlc
separator #-------------------------------------------------
prog "Denemo Score Editor" denemo denemo
prog "NtEd Score Editor" nted nted
prog "Burn CD" /usr/share/icons/gnome/16x16/devices/media-optical.png brasero
}
separator #---------------------------------------------------------
menu System folder {
prog "Shut Down Misbehaving Program" /usr/share/icons/gnome/16x16/actions/gtk-close.png xkill
separator #-------------------------------------------------
prog "Burn CD" /usr/share/icons/gnome/16x16/devices/media-optical.png brasero
prog "Check for Updates" update-manager update-manager
prog "Xfce Application Finder" /usr/share/pixmaps/xfce4-appfinder.xpm /bin/sh -c "xfce4-appfinder"
separator #-------------------------------------------------
menu "Window Managers" folder {
restart "FluxBox" - /bin/sh -c "/usr/bin/startfluxbox"
restart "IceWM" /usr/share/icewm/icons/icewm_16x16.xpm /bin/sh -c "/usr/bin/icewm"
}
}
menu Utilities folder {
menu Multimedia folder {
prog XPlayCD xplaycd xplaycd
prog XMixer xmixer xmixer
}
prog "Font Selector" xfontsel xfontsel
prog Clock xclock xclock
prog Magnify xmag xmag
prog Calculator xcalc xcalc
prog Colormap xcolormap xcmap
prog Clipboard xclip xclipboard
prog "Screen Saver" xlock xlock -nolock
prog "Screen Lock" xlock xlock
}
separator
#
# The items that appear below here are controlled by your
# "preferences" file. I recommend ShowProgramsMenu=0 to
# turn off the "Programs" menu once you've set up your
# menu file the way you like it.
Once you’ve put this menu in your .icewm folder, your menu will look something like this:
Although we’ve put nine different Web browsers in our menu, the only one we have installed is Firefox, so that’s the only one that appears in the menu. Pretty smart, huh?
Now we have an installation of IceWM that’s actually useful. The menu can launch any of the programs we’re likely to use. But we can still make our system a lot more useful. In the next installment, we’ll make a toolbar that’s actually helpful, and after that we’ll look into the preferences file.
Correction: In an earlier version of this article, I told you to make the menu file executable. Actually, you don’t have to do that. The startup file needs to be executable, but the menu will work even if it’s not executable. No harm done if you did make it executable, but it’s not necessary.
Transforming Xubuntu into DBCOS
Part 2: Making IceWM Work Right
We’ve got IceWM installed as the alternate window manager for our Xubuntu system. Now we have to make it work.
The problem with IceWM the way it comes from the Ubuntu repositories is that it’s minimally usable. The menu doesn’t have most of our programs in it, and the default theme is not only ugly but broken.
Take a look at the window buttons. They change into something unrecognizable if you hover over them. It took me a long time to figure out that the window buttons were actually somehow picking up a snapshot of the system-status graph in the toolbar at the bottom of the screen. How? I have no idea. It’s just weird. But I’ve had the same problem on two different computers with two different installations of IceWM in Xubuntu, so it’s not just one odd computer.
Luckily, the default theme is the only one that has this problem, and we were smart enough to install a package of alternate themes when we installed IceWM. To set a new theme, all you have to do is bring up the menu (press the “debian” button or right-click anywhere on the desktop), then choose “Settings,” then “Themes.” The themes are listed alphabetically, grouped by letter if there’s more than one beginning with that letter.
A quick tour through the themes reveals that most of them are ugly and amateurish. I’m going to pick one called “iceCrack2,” because it’s straightforward and usable and not as ugly as most of the rest.
Now we’ve solved the problem of the window buttons. All we’ve changed, however, is the window decorations and the IceWM toolbar and menu. The rest of the theme–program icons, toolbars, and menus–is the same ugly mid-90s style.
It’s possible to make IceWM take on any GTK theme–that is, any of the settings you can choose in the “User Interface” setting in Xubuntu. In order to do that, though, we’re going to have to edit a text file.
But don’t be alarmed. It’s a really easy text file. Mine has two lines in it.
First, we’re going to bring up our file manager. Because we haven’t changed the menu yet, the only practical way to do that is to use a command line.
IceWM has a secret trick for getting an instant command line. Hold down the Windows key on your keyboard (the one that, for odd historical reasons, has a Microsoft Windows logo on it) and press the space bar. Now you can type a command right into the toolbar at the bottom of the screen. Our command is only seven letters:
pcmanfm
When you press Enter, the PCmanFM file manager should start. It’s very quick, which is one of the reasons we’re using it instead of Thunar.
The first thing you’re likely to see is this warning:
This screen is actually stuffed with useful information. It tells us at least two ways we can get IceWM to recognize the User Interface setting we want it to use.
One way would be to make a text file specifying the theme. That works perfectly well, but you can’t change your mind without editing the text file again.
The other way is much more versatile. XFCE uses a program called xfce-mcs-manager to control the user interface. If we could have xfce-mcs-manager running when we started IceWM, it would set the User Interface theme for us. And it would not only pick the theme, but also pick up any alterations we wanted to make to it, such as fonts or colors.
But how do we make something happen when IceWM starts up? That’s easy. All we need is a startup file.
Push the OK button on the warning screen. You’ll notice that PCmanFM starts up perfectly fine, in spite of the warning.
From the View menu, choose “Show Hidden Files.”
You’ll see a whole bunch of folders whose names begin with dots, which is what makes them hidden. Look for one called .icewm. If it isn’t there, create it.
Now we need a text editor to create our startup file. I choose Mousepad, which comes with Xubuntu. Hold down the Windows key and press the spacebar to get a command line; then type mousepad and press Enter.
In the text editor, type
xfce-mcs-manager &
While we’re in the startup file, I’m going to add one more line. My only Internet connection is by wireless, so I need the Network Manager applet to start when I start the computer–otherwise, it won’t connect to the network. So my startup file has one more line:
nm-applet &
(I should mention, by the way, that the Network Manager applet doesn’t run perfectly under IceWM: after a while, it tends to disappear from the toolbar. But by then it’s done its job, and the wireless stays connected, so it’s not really a problem.)
Later, if we like, we can add more programs to run at startup, but that’s enough for now. Save this file under the name startup in your .icewm folder.
We’re almost done creating the startup file, but we have to make sure it’s executable first. Open the icewm folder in PCmanFM. While you’re here, you might as well bookmark it, because we’ll be coming back here again and again. From the “Bookmark” menu, choose “Add to Bookmarks.” Now the .icewm folder will appear in the left panel of the file manager, and you can choose it from there even when “Show Hidden Files” is turned off.
Right-click on the startup file and choose “Properties”; then choose the “Permissions” tab. Make sure that the “owner” (that’s you) has permission to “Execute” the file; otherwise, it won’t do anything when you start up.
Now that we’ve created a startup file, we can log out (choose “Logout” from the main IceWM menu) and log back in, choosing XFCE from the Session menu. We’re back in the regular Xubuntu desktop for the time being. From the “Applications” menu, choose “Settings,” then “Settings Manager,” and then click on “User Interface Settings.” Now you can choose any theme you like and tweak it the way you want. When you log back into IceWM, that theme, with all your tweaks, will be the one your programs use.
We’ve begun the process of making IceWM really usable. But there’s still one more important step before it’s really useful. The next thing we have to do is attack the IceWM menu.
Transforming Xubuntu into DBCOS
Part 1: Installing a New Window Manager
I promised to lead us through the transformation of Xubuntu into something completely different, so let’s get started. By the time we’re done, we’ll have Dr. Boli’s Celebrated Operating System, a Linux operating system with many of the advantages of Xubuntu, but one that runs much faster on old hardware.
You heard me right–we’re going to run circles around Xubuntu, which is supposed to be the fast and lightweight version of Ubuntu.
Our secret weapon is IceWM, a window manager that was conceived as a competitor to Windows 95 and hasn’t really changed much since its mid-Clintonian roots.
IceWM is fast and simple, but–unlike other minimalist window managers, such as PekWM or Fluxbox–it has the great advantage of working the way most Windows and Linux users expect a computer to work.
The great disadvantage of IceWM is that it’s ugly. You can get a package of alternate themes for it from the Ubuntu repositories, but almost all of them are in the ugly to hideous range, too.
But not to worry! We’re going to fix it by making up our own theme. That’s right! You and I, who are not computer programmers and have no idea how to write code, are going to create a new theme for IceWM.
Assuming we have Xubuntu installed, our first step will be to install IceWM, which isn’t hard. All we have to do is start up Synaptic Package Manager (Applications, System, Synaptic Package Manager) and search by name for “icewm”:
Mark the “icewm” package, which will also mark the package “icewm-common.” While you’re at it, mark the package “icewm-themes,” because we’ll need something besides the default theme. Push the “Apply” button to install everything.
That’s it–you’ve installed IceWM. But before you try it out, there’s one more thing we want to install. We’re going to use PCmanFM as our file manager instead of Thunar.
You could install PCmanFM from Synaptic, but the version that’s in the Ubuntu repositories as of this writing has a crippling bug: it can’t properly mount external disks. To get the latest version, we go to a useful site every Ubuntu user ought to know about: GetDeb.net.
Search for “pcmanfm” and download the latest version to your hard drive. When the file is downloaded, open it. It will start up an installation program, which will promptly warn you that you really ought to install the older version that’s available in the Ubuntu repositories.
Ignore the warning, because–as we know–we need the later version. Once you push the “Install Package” button, the program is installed automatically, just as it would be with Synaptic.
Now we’re ready to try IceWM. Push the exit button at the top right of your screen and log out. At the login screen, you can choose IceWM from the “Session” menu. Once you’ve logged back in, you’ll see something like this:
Ugly, isn’t it? And that menu is just about useless. It has hardly any of your applications in it. It’s just a sort of dummy menu, waiting to be replaced by the useful menu we’ll construct shortly.
Well, now what? You can try playing around with the interface to see how it works. But it’s not very useful yet. Don’t worry: it won’t be so sparse and difficult for long. We’ll have it working just the way we want it in a few more installments.
Next: Making IceWM Work Right.
The $50 Computer
Can you really get a useful computer for less than $50?
The answer is that you can, if you’re willing to scrounge.
Let me tell you about my test machine, which is the result of a bit of scrounging. The entire cost to me was $27.
The computer was free. I took it from someone who didn’t want it anymore, because—after all—it’s terribly out of date. Also the hard drive was dying.
Still, in many respects it was a perfectly decent computer. Here are some of its specs:
- Built in 1999
- AMD Athlon processor at 598 MHz
- Enormous fan on the side to cool the processor
- 256 MB memory
- DVD-ROM drive (one of the early ones—surely a collector’s item!)
- CD-RW drive
- “Live! Drive” sound card (with a real volume control on the front!)
- Zip drive
- Floppy drive
- Cuneiform-tablet drive
The original hard drive was 20 GB. At the Goodwill Computer Store in Pittsburgh, where you can get just about anything, I found a used 20-GB drive for $12.
At a weekend flea market, I found a good Trinitron monitor in a scuffed-up case for $15.
Total cost, as I said, was $27, plus some hauling.
Now, there’s a sticker on the front of this thing that says “Built for Microsoft Windows 98,” and that’s probably the latest version of Windows that would run really well on it. If you had Windows on this machine, you’d be stuck with outdated software that you couldn’t upgrade, because all the recent versions of things like Firefox demand XP or Vista. And the hard drive would be too puny to run anything but a stripped-down version of Windows.
But if you install a Linux distribution—Xubuntu would be a good choice—then you’ll have an up-to-date system that can run the very latest software, and run it well. Firefox 3 is at your service. OpenOffice.org has mounds of features you’ll never even explore. It’s all yours for—let me repeat that cost again—$27.
You may not be lucky enough to have someone just hand you a computer. But ask around. You might be surprised by how many people have old computers sitting unused. If you go to a flea market, chances are pretty good you’ll see a computer sitting there with a single-digit price tag. Maybe the hard drive doesn’t work, but hard drives are cheap and easy to replace.
The point is that $50 is actually a realistic budget for a useful computer—one that’s easy to use and up to date. And though it may use a bit more energy than the most efficient of this year’s models, think of the favor you’re doing the environment by keeping all that plastic and silicon out of the landfill! It’s really a good deal for everyone.
Installing OpenOffice.org in Xubuntu
Xubuntu comes with Abiword as its word processor and Gnumeric as its spreadsheet. I don’t like Abiword for long documents, because it always seems to slow to a crawl when the page count gets too high. Besides, I need a more complicated word processor.
OpenOffice.org, which is a lot like Microsoft Office, runs just fine in Xubuntu even on an anemic computer like my test machine. It does take a while to start up–I won’t hide that from you. But it works fine once it gets going, and it comes close to matching Microsoft Office in features, at least the ones you’re likely to use.
Standard Ubuntu, the Gnome-based version, comes with OpenOffice.org installed and configured. If you want to install it in Xubuntu, though, you need to make some selections by hand to get the same functions. If you just install the OpenOffice.org package, you’ll get a stripped-down installation with no help and no thesaurus, and it won’t even use the “User Interface” theme you choose in the Xubuntu Settings Manager.
So here’s how to get a completely working OpenOffice.org in Xubuntu.
First, we’re going to use Synaptic Package Manager instead of Add/Remove. It’s not really any harder, but it does give you more options.
We’ll find what we need by searching for “openoffice.” It will go a lot faster, especially on a slow computer, if you search by “Name” instead of “Description and Name.”
First we find the “openoffice.org” package. Click the check box next to it and choose “Mark for Installation.” Synaptic will ask whether you want to mark the additional packages required for installation. You do.
Now we’ve marked a bunch of packages, but they’re not enough yet.
Next we’ll find the package “openoffice.org-gtk,” which will teach OpenOffice.org to use the theme we choose in the “User Interface” setting.
I plan on using the “Industrial” theme later on, so I’m also going to install “openoffice.org-style-industrial.”
To install the help files, mark the help package for your language–in my case, “openoffice.org-help-en-us.”
For the thesaurus, I install “openoffice.org-thesaurus-en-us.”
There’s one important item that we didn’t find by searching for “openoffice.” We still need a spelling dictionary so that we can use the spelling-checker. Search for “myspell,” and choose the file for your language–in my case, “myspell-en-us.”
Now that we’ve selected everything, it’s time to apply those changes by pressing the “Apply” button.
There’s a lot to download and install, so you have time to make a pot of tea. By the time it’s ready, OpenOffice.org should be ready to run. Note that all the OpenOffice.org applications end up in the “Office” submenu except for OpenOffice.org Draw, which ends up in “Graphics.”
Why Is My Windows Link “Broken”?
If you have a dual-boot system with Ubuntu (or a similar Linux distribution) and Windows, you may have files on the Windows side that you often want to get at from the Ubuntu side. An easy way to do that is to make a link (which Windows users would call a shortcut): in Ubuntu, right-click on the Windows folder for which you want a link, choose “Make Link,” and drag the link you’ve made to some convenient place in your Ubuntu home folder.
But sometimes the link won’t work: Ubuntu says it’s “broken.” Why?
Assuming you haven’t moved the original Windows folder, there are two main reasons for a broken link.
1. You haven’t mounted the Windows partition. That’s easy to fix: choose it from the “Places” menu (it’s named by its size in gigabytes).
2. The Windows partition is mounted under a different name. That’s a little more complicated.
When it mounts a volume, Ubuntu calls it “disk.” If you make a link to a folder on that volume, Ubuntu remembers that the link points to a folder on “disk.”
If you mount a second volume, Ubuntu calls it “disk-1.” The next after that is “disk-2,” and so on.
Once you’ve unmounted the volumes–which happens if you shut down the computer, for example–Ubuntu forgets all about them. The next disk you mount will be “disk,” and the one after that “disk-1,” and so on.
Suppose your Windows partition was mounted as “disk” when you made the link. Now suppose the next time you start your computer, you plug in a flash drive. That flash drive is “disk” now. If you mount the Windows partition with the flash drive plugged in, the Windows partition becomes “disk-1.”
There’s your problem: your link points to a folder on “disk,” so Ubuntu is looking for it on your flash drive.
One of the legions of people smarter than I am may know a good way around this difficulty. Please tell me what it is. The only solution I know of is to mount the volumes in the same order each time. Practically speaking, if you use the Windows side often enough to make a link, you can just mount it by habit at the beginning of each session, and it will always be “disk.”
Transparency in XFCE
You know all those impressive transparent effects that Windows Vista can’t do unless you buy it a new computer? You can have some of the same neato stuff running on a computer with a sticker that says “Built for Windows 98.” Xubuntu, or PC/OS, or any other distribution that uses the XFCE desktop will do it for you.
Here’s how you set up transparent effects in Xubuntu (actually, I’m using PC/OS at the moment, but the instructions are exactly the same):
- From the main menu, choose Settings, then Settings Manager.
- Click on Window Manager Tweaks.
- Click on the Compositor tab.
- Check the box for Enable display compositing.
- Move the bars to choose what you want to be transparent and how transparent you want it. I’ve just set inactive windows to be about halfway transparent.
(You’ll notice, by the way, that I’ve tweaked PC/OS considerably since I reviewed it. I even fixed the incorrect indefinite article in the main menu.)
And now here’s an example of why transparency might not be such a good idea after all:
In the GIMP, everything you work with is a separate window. Here I am trying to adjust the contrast of a picture that turns transparent every time I touch the Brightness-Contrast window.
Still, it’s fun to show off transparency on a nine-year-old computer and blow a big fat raspberry in the general direction of Redmond.
I’ve Just Installed Ubuntu. Now What?
If you’ve just put Ubuntu on your Windows PC, congratulations. I think you’ll like it. But you probably have lots of questions right now. Maybe these are some of them:
My touchpad is driving me crazy. How do I turn off tap-to-click?
System, Preferences, Mouse, “Touchpad” tab.
How do I associate a file type with an application?
Same as in Windows: Right-click, choose “Open with Other Application.”
How do I kill a program that hangs?
System, Administration, System Monitor, “Processes” tab. You won’t have to do this very often; usually the system knows that the program isn’t responding and will ask you what to do about it. And programs don’t hang very often.
How do I safely disconnect an external disk?
Right-click on the volume icon, choose “Unmount Volume.”
I installed Ubuntu as a dual boot with Windows. Where do I find the Windows partition in Ubuntu?
In the Places menu, named according to its size in gigabytes.
Why can’t I mount the Windows partition?
Windows must be shut down, not hibernated. For very good reasons, Ubuntu won’t fiddle with a hibernated Windows partition.
Is there a simple and easy way to use my Windows partition for Ubuntu storage?
I’m glad you asked that. Open your Windows partition in Ubuntu, make a link (a shortcut) to the folder you want to use in your Windows partition (right-click on it and choose “Make Link”), and put the link in the appropriate folder on the Ubuntu side. That makes the Windows folder as easy to get at as any other folder in your Home Folder. (You have to mount the volume first by choosing it from the Places menu. If you get a message that the link is “broken,” the volume isn’t mounted, or is mounted under a different name, like “disk-1” instead of “disk.”)
How do I get spinning cubes and other desktop effects?
Install Compiz Fusion through Add/Remove.
How do I set windows to windowshade the way they do on a Mac?
System, Preferences, Windows, Titlebar Action, “Roll Up.”
Applications I don’t use much are cluttering up my Applications menu. Can I get rid of the menu items without uninstalling the programs?
System, Preferences, Main Menu.
How do I deal with files that won’t let me touch them?
Right-click, “Properties,” “Permissions” tab.
What if I can’t change the permissions because the file belongs to “root” or somebody else?
Press Alt-F2 (notice this is the only time I’ve said that) and type “gksudo nautilus” to run the file browser as root. You’ll have to enter your password, of course. Now you can do anything to those files. Note that you can do dangerous things as root, so get your business done and close the browser as fast as you can.
How do I install new fonts?
It’s really easy. See this article.
How do I add weather reports and other odd bits to the panel?
The “panels” are those trays at the top and bottom of our screen. Right-click on one of them and choose “Add to Panel…” A long list of mostly useless panel accessories comes up. (“Eyes. A set of eyes for your panel.”) I love the Weather Report.
How do I add an application launcher to the panel or the desktop?
From the Applications menu, choose the application you want to launch, right-click, choose “Add this launcher to panel” or “Add this launcher to desktop.”
Ubuntu runs Gnome by default. Can I decide to run KDE or XFCE later?
Anytime. Just install kubuntu-desktop or xubuntu-desktop from Add/Remove. Then you can choose which “session” you want each time you log in. You might bloat your menu a bit, but the menu will still be better organized than your Windows menu ever was. For a leaner KDE, install kde-core, which gives you basic KDE without all the bloat.
How about Fluxbox or IceWM?
Get them through Synaptic Package Manager (System, Administration, Synaptic Package Manager), which is like Add/Remove but a bit more powerful.
How about Enlightenment?
Trust me, you don’t want it. It’s the window manager for fourteen-year-old geeks who like Japanese anime with shiny things in it.
No, really, how about Enlightenment?
If you must have the latest chronically unstable version, go to enlightenment.org, find the location of the repositories, and add those repositories to Synaptic’s repertory (in Synaptic, Settings, Repositories). Then you can get Enlightenment through Synaptic and enjoy all its unstable shininess.
Do I have to use Add/Remove or Synaptic to get new programs?
You can try GetDeb.net, where you can download programs and install them the way you would with Windows—often more recent versions of programs you can get through Add/Remove or Synaptic. You can also try cnr.com (for “Click-n-Run”). You can use the terminal, if you like command lines better. Or you can compile the programs yourself, as long as you don’t expect any help from me. But the Ubuntu repositories are stuffed so full of programs (about 25,000 last time I checked) that you may never need anything more complicated than Synaptic, which is really simple.
How to Install Fonts in Linux
It’s trivially easy to install TrueType fonts in the most popular Linux distributions–Ubuntu, PCLinuxOS, Mint, Pardus, or whatever you’re running. Here are the short-form instructions:
Step 1: Copy the fonts into your .fonts folder in your home folder.
There is no Step 2, so you might as well make a pot of tea and congratulate yourself on a job well done.
Of course, you may need a little more help if you’re relatively new to Linux. So here’s a more detailed set of instructions.
- Open your home folder.
- From the “View” menu in your file manager, choose “Show hidden files” (or a similarly worded option).
- Look for a folder called .fonts. Note the dot in front of the name: that’s what makes it a hidden folder. If there is no such folder, create a new folder with that name.
- Copy the fonts you want to install into the .fonts folder.
This will install the fonts for one user: the one whose home folder you’ve put the fonts in. You can repeat the same method for other users, if you have other users on your computer.
There are also ways to install the fonts for the whole system at once, so that every user has access to them. Chances are that if you need my help to install them for one user, you’ll find it a lot easier just to repeat the one-user installation for each user.
I spent a whole afternoon trying to figure this out when I first installed Linux. When I searched for help, I kept finding advice from people who wanted me to open a terminal and type a series of commands to install fonts for every user at once. Call me an imbecile, but I think my method is easier.




















