That Non-X Linux Thing

Let’s talk about Linux without X. Sure, there are several nice lists of applications which don’t require X. I use several of them. However, there is a whole range of things not considered if we simply talk console.

I’m aware of INX and I’m hoping it matures to a fully installable distro. I like the menu system and I like the idea of all the good drivers, and the use of various console display controls to make this thing work well. It has a future.

At various times there have been projects aimed at providing a GUI without the two-ton X server grabbing all your RAM. I don’t care how efficient you make it, that beast will never be lean and mean. I don’t hate it, I just dont’ think it’s going in the right direction. It gets fatter and slower every month. That’s fine if you are chasing the hardware inflation curve, but with the growing economic crunch, maybe it’s time to consider keeping that older, wimpy box and making it work.

I recall reading about several different projects, like Berlin, and something beginning with K that sought to come up with a different GUI framework. The problem was these ambitious projects required specific drivers for each chipset. There is also a couple of projects aimed at running a pretty strong GUI from the framebuffer, like FBUI, and the related FWE. I’ve also tried to read a bit about DirectFB, but nothing there is for curious users who don’t write code.

By way of comparison, let’s mention good old Haiku, the current Open Source version of the old BeOS. It’s GUI is far lighter than X, and seems to take advantage of the various chipsets. Two primary items keep me from considering Haiku on my Inspiron 4100: No wifi stack yet upon which to build chipset drivers, and no ACPI implementation to speak of so I can suspend. Reading their discussions and chatter reminds me of the similar stuff I read regarding OS/2-eComStation. So much potential, but not enough developers for all the stuff they want and need. At any rate, those point to possibilities, not likelihoods.

Nobody has to tell me what I really want is never gonna happen. But how close can we come? Tell me, dear Reader: What is being developed to make life on Linux beautiful without X.org?

Posted in computers | Tagged | 1 Comment

Etch for Old Hardware

The pool of usable Linux distros for older hardware is shrinking. For at least the rest of this year, it appears you can still install Etch and make it work well. Everyone has their own ideals, and I’m quite sure you can find fault with mine. Still, I’m going to outline what I’ve done, and perhaps you’ll find something useful.

I’ve grown tired of messing with GNOME. While I find the KDE folks have probably lost their way in the pursuit of the 4.x series, you can still get and use KDE 3 for Etch. It’s one of the better manifestations I’ve seen (cf: SUSE, RHEL/CentOS, RedHat-KDE Project, Kubuntu, FreeBSD, and some others) for reasons I’ll probably never understand. BTW, I found GNOME fun and useful until the whole thing changed radically at the beginning of the 2.x series. I realize things like Unicode support matter, but just about everything I’ve experienced from a user perspective has been disappointing. It simply does entirely too much I don’t need, and precious little I actually like. I liked XFce until 4.x came out. For now, KDE 3 simply adheres most closely to my habits and expectations. It also runs pretty zippy fast on my Inspiron 4100.

So in order to get the KDE desktop, using the Etch Netinstall CD, at the boot prompt, I typed in:

install tasks="kde-desktop"

Aside from the basic questions just about every distro installation asks, I left it to run on its own, pulling down the latest over the DSL line. It took about a half-hour. The installer had no trouble setting up this batch of hardware.

The first thing I did was change the default apt-get configuration at /etc/apt/sources.list to read like this (sorry about the wrapping):

#deb cdrom:[Debian GNU/Linux 4.0 r3 _Etch_ - Official i386 NETINST Binary-1 20080218-14:15]/ etch contrib main

deb http://mirror.anl.gov/debian/ etch main contrib non-free
deb-src http://mirror.anl.gov/debian/ etch main contrib non-free

deb http://security.debian.org/ etch/updates main contrib non-free
deb-src http://security.debian.org/ etch/updates main contrib non-free

deb http://www.backports.org/debian etch-backports main contrib non-free
deb http://deb.opera.com/opera etch non-free
deb http://www.debian-multimedia.org etch main

The next step is firing up the KDE Control Center, going to “Appearance & Themes” then “Fonts” and logging into Administrator Mode. I install my collection of favorite TTFs which I always keep on several different media. I like them system wide because it seems to work better in the long run.

In case you are wondering, Opera is my chosen browser suite because it runs much faster on older hardware. On occasion I’m forced to use Iceweasel on some sites. The other reason is primarily how simple it is to add to the interface switches which allow me to turn off cookies, JScript and plugins. Admittedly, Opera is the one browser in Linux most likely to choke on JScript and plugins, but the other reason is obviously a matter of keeping speed of page load, and to a minor degree security, high. Putting those on the bottom browser status bar allows me to quickly choose how I’ll view sites. In general, I keep everything turned off. That includes making use of the default graphics control button already on that bar. Just right-click, select “Customize”, go to the “Buttons” tab, and choose the “Preferences” category from the list on the left. Grab the appropriate checkbox switches with your mouse and drag to the toolbar.

For those who have to know, I turn off graphics most of the time for two reasons: ADD and I’m a prude. It’s easier to add certain sites to my list of those allowed to display graphics. In Opera, it’s the same dialog for cookies; just select the other tabs and select what particular often-used sites are permitted to run. Keeping things turned off for all other sites saves a lot of hassle. For individual graphics, I can still right-click and select “Reload Image” and that one item will display. If I decide the site is harmless after landing there, I can turn graphics on and most will load immediately. If I decide I need JScript and/or plugins, I turn them on, then reload the page.

Finally, I prefer Opera because the built-in password keeper (“Wand”) works on every site for which I choose to use it, ignoring the fields marked at places like Yahoo designed to prevent browsers from remembering passwords. I’m not interested in hand-holding on such security issues; it’s a trade-off I choose for myself because there are way too many places I go requiring login. No one else uses this laptop but me, so it’s about as secure as need be. Enough about Opera.

For multimedia stuff, I apt-get what I need and let it worry about the dependencies. Paying attention to the suggested packages list I can grab stuff I might not know or think about. My choices are mostly dvdcss, libdvdread, win32 codecs, Helix plugin, Sun JRE 6 plugin, Kaffeine plugin (libxine), non-free Flash plugin, and ffmpeg. To save time and bandwidth, I tend to keep a copy of the codecs for use on several machines, until they are updated at Mplayer HQ.

There are a couple of things I would have preferred bundled by default, but had to add them later: Joe (text editor), less and whois (!), and Nedit. I’m sure I’ll find other things missing which surprise me. I’m not interested in why these are excluded by default; I consider plenty of choices by the Debian folks to be wrong-headed. There’s no such thing as the perfect Linux distro because no two users are alike.

The other most-important-thing is the latest kernel from Backports. This is because of my rlt8180-based wifi cards. However, I’m sure there are some other beneficial changes of which I am not aware. In general, older kernels which work tend to be faster, but I can’t tell any difference in this case.

I also make a great use of Elinks. The version available is the old series which still suffers from ghost-text on some sites, so I knew I needed the latest 0.12 version. However, getting all that pulled down via apt-get is a boondoggle. I did install build-essential and did the “apt-get build-dep elinks” but knew I wouldn’t get what I really wanted past that. I wanted the Spidermonkey JS support (libmozjs-dev) and had to install that manually. Then I simply pulled down the source package for 0.12pre3 and built manually. This allowed me to add my own options, and avoids the probability of automatic updates and all the tweaking necessary to protect it via apt. Versatility is a Debian virtue.

A couple of final items. Because of my membership in the Brotherhood of the Commandline, I sometimes operate without the GUI. The console is one place Debian shines. This means you need gpm and the Terminus console font. For touchpad use or two-button mouse, make sure you run dpkg reconfigure gpm and on the last page of options, type in “-2” so you can use the right button to paste on the console. It’s rare to have any other use for the right-click on the console. The Terminus font requires you install console-setup, too. The other item is ensuring your best resolution on the console. The odd-ball sized LCD on my laptop is native 1440×1000, and that’s identified by vga=834. This is added to the proper line in /boot/grub/menu.lst:

# defoptions=vga=834

As the file tells you, don’t remove the “#” character, just run update-grub command after saving your changes.

The very human side of all this is to notice, as we age our habits become more hardened. It’s not a lack of interest in new things, but a lack of interest in chasing them down and trying them out. With each round of trying things out, we realize the latest and greatest may not offer anything we really need. As we become more adept at doing whatever it is we do with computers, there is less and less reason to upgrade. Pretty soon, fixing security holes is about it. As the world, and particularly the Internet, drifts on to newer technologies, I find them more insulting to my intelligence. Most of what has changed since my first use in 1996 is a bunch of stuff catering to folks whose interests are more about entertainment and advertising, and precious little which adds to my ability to learn something useful. That’s the way this messed-up world works, so it’s not as if I can pretend to do anything about it. This is human nature. My choices above are more likely to appeal to aging writers than anyone under 30 with any other interests.

Posted in computers | Tagged , | 10 Comments

I Broke It

It was all working so very well. So well, in fact, I wrote a series of articles explaining to mere mortals how to get CentOS 5.3 running on their home PCs. Today, I was out at the library, popped in my wifi card, and the system locked up — no keyboard, no mouse clicks, etc. Okay. Let’s reboot and try again on the console. Step by step. I went through the manual process and it happened again. This time I caught what was doing it: ifconfig. It was taking off in a race condition, one that could not be killed by root on the command lie. That is so rare, it’s remarkable, in my experience.

I googled, but found no clues. I probably don’t know the right terms, but there seemed no bug reports, way to get around it. I’m guessing there is some flaw in the way the rtl8180 drive was backported into the RedHat kernel. I can’t have that. Lugging this thing around is pretty good exercise, but I had work to do. Sigh.

For now, I’ve reinstalled Etch. Just for grins, I chose the secret incantation at boot time to make sure the netinstall disk gave me KDE. It’s running pretty quick, and with the Backport kernel upgrade, the wifi works again. To make sure, I set it up and am using it to post this.

Posted in computers | Tagged , , | Comments Off on I Broke It

Storm of Lies in the Forecast

As others have said elsewhere more eloquently than I, the major media and the mainstream information sources serve only one purpose: deception. While they may feel they are serving their own bottom line, that simply explains why they have no interest in truth or facts, except as shaped by decades of academic philosophical assumption building, and a long history of “professional journalism” habits and methods. Meanwhile, they are permitted to exist only because they serve the needs of those in control.

I’m not attempting to compete with them. I dont’ run with the bloggers who somehow believe they are carrying the fire of truth in reporting, getting the real story out, etc. I’m content to mutter to myself and see if perhaps a few friends and random passers seeking entertainment might find something useful in my words, even if only for target practice.

Whatever it is blaring from the mainstream media sources, you must know beyond all shadow of a doubt, it is designed to misdirect your attention from what really matters.

  • Outright lies — Yeah, they do that. Your beloved local newsbabe will knowingly tell you a falsehood because it’s her job. Her managing editor is there to make sure of that before she even gets past the first interview. He’s allowed to stay in business because he won’t quite push for the truth, but will pass on government pronouncements without checking. I suppose their frontal consciousness may believe they are doing the best they can, but having poked around in that business, and the supporting academic journalism hatcheries, you can find well tested methods of mass manipulation. I’ll bet anything some part of them knows all this, but they keep that voice chained in their mental basement. Example: The attack on the USS Liberty.
  • Ineffective retractions — Tell the official lie first, then come back later and retract it. However, the retraction is timed to have minimal effect. After the panic is built up, burned into the minds of everyone in the audience, they say, “Oops. We were misled. Sorry about that.” But they know it won’t change the underlying assumptions, fears, suspicions, etc. Think of all the people railroaded by false charges, whose lives cannot be put back together. Then there are the retractions which are barely presented, perhaps on the late night broadcast during a really big event on a competing network. Same result.
  • Half truths — “A gunman surrendered today after a shooting rampage.” What they utterly refuse to report is the gunman surrendered because some armed civilian pulled their gun on the shooter. All the folks the gunman managed to shoot were unarmed, of course. This won’t happen in all markets, but regional differences simply predict what sorts of lies will be told by half truths. Leaving out the bigger context is a favorite tool.
  • Unimportant truths — Let’s hear all about the latest episode of stupidity from some lame-brained movie star or other “notable” newsmaker. Meanwhile, the local city council has banned people from gathering in groups to protest in certain key areas near their chambers, but that’s not reported. Today there’s a flu outbreak, but it was a strain of flu virus created in a government-funded laboratory. And no one will report the move to give unaccountable authority to force inoculations except in terms of how nice it will be if people can get their shots — “Surely no one questions the need?” — so quickly and for free! And God forbid they report what a windfall this is for the pharmaceutical company, with a no-bid contract, that same laboratory which can’t even keep their own trash from blowing across the street with critical lab notes. And how many people have they killed in the past with accidental bio-active releases?
  • Pure hype — Blow something completely out of proportion to foment a specific reaction. This really a subset of the previous trick, but so often used, it deserves separate mention. So we hear all about how the temperature in one small section of Antarctica is rising enough to melt a little ice. Let’s not mention there’s an active volcano under that patch of ice, of course. Let’s tell everyone about this nasty flu strain, but forget to mention more people will die today from police abuse than all the flu cases worldwide. Or wail about the awful terrorists, but forget to mention our government has killed more innocent citizens than can be linked to any combination of supposed terrorist attacks on our soil during the same statistical time frame.

Let’s make it clear once again: If it appears in the news, it’s a lie in effect. Even sports reporting is politicized. Weather coverage is tainted, since the Global Warming lie still stands. Genuine meteorologists have been fired for not toeing the line on that. The only purpose served by tracking the news broadcasts is to see where the government is trying to railroad people.

Posted in social sciences | Tagged | Comments Off on Storm of Lies in the Forecast

Paths to Tyranny

Someone very close to me took some FEMA courses a decade ago. They were stunned by the very obvious euphemisms for treating the population like cattle. While it did not figure large in the materials, there was an obvious assumption those taking the course were preparing to subvert rights and liberties, and by any means necessary, force the citizenry to obey FEMA edicts.

So now comes this bogus flu pandemic. There was a lot of panicky warnings from government sources, both in the US and in the larger international community. But for some strange reason, this thing is fizzling. Now, it doesn’t take much research to find that our government has cooperated with others to capture samples of various flu viruses. Indeed, they resurrected the 1918 killer flu bug, and have been playing with that and other strains in labs. Given our government has not been averse to secretly spraying test samples of chemicals and bacteria on the US population in the past, what’s to prevent them testing these new flu strains, which might be “weaponized”? And what’s to keep all this stuff under proper control, when we have seen quite a few deaths from “weaponized anthrax” which most certainly came from government labs, somehow?

So perhaps they did not actually release this stuff on purpose, but some samples did probably slip out of control. And our government bureaucrats, knowing how potent it was supposed to be, ramped up the warnings. But it failed. Or perhaps they knew it failed, but decided now was the time to test the public reaction. It’s not as if we don’t have a jillion crimes in high places from which they would love to divert our attention. Torture, anyone? Anyway, the flu fizzles, and continues to under-perform initial estimates. What has not underperformed is the flow of money to the labs which hold near-monopoly contracts. Big, government contracts, for which they no doubt lobbied hard and made big campaign contributions.

This is not about public health, but about money. At the same time, it’s just one more exercise to condition us and train the system. It’s one more path to tyranny… as if there aren’t enough already. It may well be those who are forced to mount an armed revolt against the rising police state will do so over the issue of attempts at mass roundups for forced inoculation of expensive stuff which has proved repeatedly to have zero therapeutic value, and is most certainly a bigger health threat than the flu it pretends to stop.

Posted in health | Tagged , | 2 Comments

On the March

My body simply refused to cooperate any longer with significant jogging. It’s just as well, since my personal interests are moving in another direction. Perhaps the number one survival skill is what the military calls “road marching.”

Aside from jogging, hard running, biking and race walking, I find the military style fast hiking is the most comfortable way to exercise. It’s also the most realistic, in the sense it has a great practical value. If you really had to get somewhere else as quickly as possible, and wheeled transportation was not available, or the terrain too rough, good old boot marching is the best hope. Right now, I’m just a bit shy of 5 miles per hour in my pace. That’s over hilly terrain, not all of it paved. For now, I’m trying to get used to a daily hike of about 4.5 miles. Next week I bump it up to 5 and 6 miles.

When serving in the US Army, even while I prospered and promoted ahead of my peers, I knew underneath it all uniformity was never a real need. It serves only to fuel false pride and a sense of power, while enslaving the whole process to a bureaucratic framework which rendered the whole enterprise awfully close to impotent. The amazing thing is just how successful the military is at getting anything done at all, since the whole thing nearly chokes on unnecessary regimentation. A primary element of all this was the military physical fitness experience. Far, far too much effort was wasted on running in formation, when under no combat circumstances would anyone be jogging anywhere, much less in formation. The one military fitness component that had any bearing at all on the actual purpose of having soldiers in the first place was road marching. We did way too little of that.

Even the very boots we were required to wear were nearly the worst for the job. Cheap, mass produced and pleasing to the bureaucracy, it is utterly impossible to make them actually serve the need of road marching. Sure, guys do it every year, by the thousands, but a lot of time is wasted on recovery because the boots are so poor. That type of marching requires padded boots to minimize blisters, stiff soles with metal shanks for stability, and a good hard material to prevent significant wear too soon. Current issue boots are completely worn through on the soles and heels about the time they start to get beaten into proper shape for the foot and ankle.

So choose carefully your marching boots. Unless your hide is nearly leather itself, you’ll need padded linings. Hard soles are necessary for durability and protection. The whole point is to walk rapidly over any terrain with minimal attention to the surface. Good ones are expensive, but so much worth it. We were permitted to buy a narrow range of optional boots, and I have paid as much as $160 for something I wore all over the Europe hiking in uniform. I have absolutely no regrets and would buy them again if I could afford them (Matterhorn 8″ with Gortex lining).

Instead, I’ve settled for a cheap pair of Herman Survivor hunting boots. They’ll do for now. At times I also enjoyed Jungle Boots, but only if they could break in properly. It requires wearing at least two pairs of thick socks to emulate the padded lining. If you go that route, be sure to pay the extra and get what’s called “MILSPEC” because the cheaper stuff will come apart the first time they get damp. The whole point in having Jungle Boots is they are light, very tough, and can work okay even in swampy dampness.

Posted in health | Tagged , | 2 Comments

Linux Migration for the Home PC User, Part 8

The ultimate step in DIY Linux for the home PC user is building a piece of software for yourself.

In essence, that is what we will do here, but we will take some shortcuts to make it as painless and simple as possible. This means instead of simply building something directly from source, with all the command line incantations, we will build an RPM package from an RPM source package.

I mentioned in the previous lesson a problem I had with the font rendering on CentOS. This has been a issue with Linux over the years. The default package set from CentOS (and Red Hat) don’t enable something called “bytecode interpreter” in the Freetype font rendering library. A few brands of Linux do this for you, but we have to fix it ourselves in CentOS.

First, you have to install the packages which allow you to build your own software. This is the easy part. If you installed from the stack of CDs or a DVD, you’ll need to have that at hand. In the “Applications” menu, go all the way to the bottom for “Add/Remove Software” and prepare to enter your root password. Once you’ve done that, you’ll see a window labeled “Package Manager”. This application will run for a few minutes taking an inventory of what is already installed. When it’s ready to work, you’ll see a window on the left side with a list of categories. Click on “Development” and take a look at the window on the right side. There is a list with check boxes. We need to make sure we have checked “Development Libraries” and “X Software Development” — X is the Linux nickname for the service which creates the Linux GUI framework itself, while the GNOME Desktop runs on top of that framework. We need the libraries for X because what we are building will need them. The Package Manager will most likely require you insert your install disks, but may pull some files down from the repo on the Net.

When it tells you it’s done, close it. Now we need to get that source RPM package. Start at the official CentOS Mirrors List. Scan down this list for a site relatively close to your geographical location. Keep this page open, because it’s just possible the one you choose may not respond well at any give time. You can open any link in a second browser page by clicking that link with your middle mouse button. In this case, you need to click on either an HTTP or FTP link on the far right side of the list to find your CentOS repository. On the next page click on the link to “5.3”, then “os”, then “SRPMS”. What you should now see is a list of files. Scan down to “freetype” — at this writing what would be “freetype-2.2.1-20.el5_2.src.rpm”. Right-click and choose “Save Link As…” and allow the “save” dialog to pop up. The name can be changed, but we need to keep it as is; be sure to select your “home” folder from the drop down just below that.

Once you have that, you can close your browser and open that Terminal window again. Log in as root. We need to move that file where everything can be neatly organized. There is a space on your system already reserved for mucking about with SRPMs. Provided the file name matches what is above, your command would look like this (all on one line):

mv freetype-2.2.1-20.el5_2.src.rpm /usr/src/redhat/SRPMS/

If you want to be slick, you type the “mv freety” part, hit the TAB key and let it finish spelling out the file name, then copy the rest from above, or type it by hand. Now that the file is there, we have to move the prompt there.

cd /usr/src/redhat/SRPMS/

Make sure by typing your ls command; you should see your Freetype file listed. Now we will install it in the proper place by running the RPM command with some switches (all on one line):

rpm -ivh freetype-2.2.1-20.el5_2.src.rpm

By now, you should know you can type it using the TAB key after just typing “free” or you can use your mouse to copy that command and paste with the middle button into your Terminal window. The prompt should show RPM installing the file, but you don’t yet know where all the stuff in that RPM went. We don’t need to know all the gory details, but we do need to edit one file. Let’s go back up one level in the file system, then down into the SPECS folder. It looks like this:

cd ../SPECS/

If you use ls you’ll see a freetype.spec — this is the specification file for building the Freetype library package. We’ll call on our old friend, Nano:

nano freetype.spec

Drop down three lines to this:

%define without_bytecode_interpreter 1

Go to the end of the line, and change that “1” (one) to a “0” (zero). Save it and close. What we have done is turned on a switch, as it were, to make the software build it differently.

That software is a friend of the RPM command, called RPMBuild. You don’t have to know all the ugly details just yet, because you aren’t likely to do this very often. Here’s how we make it happen:

rpmbuild -bb freetype.spec

You’ll see a long bunch of lines scroll by as the software begins the process of checking to make sure everything is alright. On the outside chance your system is missing something for the job, RPMBuild will tell you what’s missing. It’s designed to do this no matter what you are building. Most of the time, you can fix it immediately, since you are logged in as root, and your friend Yum is standing by to help.

If you believe RPMBuild is telling you the name of a missing package, you can check by running a Yum search:

yum search packagename

Naturally, you would replace “packagename” with the name, or partial name, of the package. If Yum knows about that package, you’ll see a list. Most of the time, that package name will include a “-devel” telling you it’s a development package. You have to install it by asking for the package with that suffix in the name.

yum install packagename-devel

If it lists something with lots of dots and some numbers, rather like “libgettextlib-0.14.6.so” then you’ll know it’s not a package name, but a particular item from a package. If you simply search on the Net using that name plus “rhel” you’ll usually figure out what package it belongs to, and can install that by name. In this case, that’s “gettext”. So we can fix that by telling Yum we need it:

yum install gettext

Most of the time things will work out well that way, and when Yum is finished, you can run that RPMBuild command again, simply by pressing your up arrow key a few times until it reappears at the prompt, then hit ENTER. Provided nothing else is missing, and it starts to run through the checking process, then it will switch to building, then eventually creating the new RPM files.

When the prompt comes back, and there’s no errors, you’ll need to go find that new RPM you just built.

cd ../RPMS/

Run the ls command, but don’t get frustrated when you see a half-dozen folders named after various computer architectures. Unless you installed the 64-bit version of CentOS, you’ll find most stuff built this way under i386, so go there:

cd i386

Checking with our ls command, we find several files whose names begin with “freetype” — we need two of them. Now, before we install them, you’ll have to understand something. RPM will think these files are identical with what you already have, and will argue. You and I know it’s not the same, so we have to force RPM to install our new package over the old one. It looks like this (all on one line):

rpm -Uvh --force freetype-2.2.1-20.i386.rpm freetype-devel-2.2.1-20.i386.rpm

Unless something is wrong, you should see RPM prepare, then install the two files. Here, as with any other point in this complicated procedure, you should already have worked out where you will go for help. You can post here in the comments section, but it’s best if you cultivate a support group either on a forum or a mailing list.

Once you have this changed version of Freetype installed, you’ll need to close the root session, close the Terminal, log out of your computer, and then restart X. Most of the time, it’s simplest from that login window to hit the keys CTRL + ALT + BKSP all at once. The X server should restart automatically after a few seconds, and will be using the new Freetype libraries. Log back in again, and you should see a change in how the fonts appear on screen.

The only thing you have to remember is, from time to time, CentOS will update the Freetype package, and you’ll have to run through this drill again. Once any package gets updated, you’ll find the newest SRPMs in a different location on the mirror, by going from the “5.3” to “updates” then into the “SRPMS” folder. Should CentOS upgrade it all to 5.4, it should be automatic for your system, and you should know to follow that path through the new folders.

Once you get used to running Linux, it’s possible you’ll find you really need something nobody has prepared for CentOS, and you’ll want to build it from the source. It’s not hard to learn, but it’s outside the scope of introductions like this. You can get instructions from your new forum/list friends most likely.

As more than one tech writer has said, CentOS is Linux for grownups. It’s a little more work, but once you have it working as you wish, you can depend on it staying that way for a long time.

Posted in computers | Tagged , | Comments Off on Linux Migration for the Home PC User, Part 8

Let’s Clarify Torture

Update: See below.

You can ramble on for days about official definitions, provisions, and every other semantic weaseling you like, but we all know what torture is. Any honest definition includes using fear, repulsion, hatred, pain and other highly emotional manipulations of captured or detained people.

As always, I don’t apologize for basing such declarations on my religious faith. Crucifixion was a form of torture which everyone knew was fatal. If simply executing the prisoner was the purpose, there are far more efficient ways to do it. We go on and on about humane procedures for ending life in animals, and it’s patently illegal in just about every place on earth I’ve visited to torment them for any reason. But somehow it’s our policy to treat captured enemies so badly no one wants to describe it in plain terms.

Bad as all that may be, the person administering the torture has to be someone you’d never want to meet. What happens when someone finds it “okay” to torture for any reason? Here’s that religion thing again: Demons enter their souls. They become demon-possessed, literally possessed by demons. There’s a plethora of studies in human behavior science showing people capable of torture are broken, bent and have entered far into the realm of “abnormal” — they are sick, dangerously psychotic — by conditioning to which they voluntarily submitted.

Let’s pretend I had a much beloved pre-teen daughter. Let’s further pretend she was captured and held by a band of nefarious terrorists, and we had managed to arrest one. Would I sanction terrorizing and torturing this man to get the information on her location for a rescue? No. If she were my daughter she would know that, too. She would know any society which finds it must torture to gain anything worthwhile, that society is already doomed, dead, and hopeless. If I permit torture, the demons enter my soul. If I rescue her by torture, the demons enter her soul. You cannot do God’s good work using Satan’s methods. God calls torture “sin”. I’d rather my daughter suffer and die and go to Heaven than let demons take over her life on earth, and mine, along with whomever we commission to do that torture. I’d certainly rather take her place in a heartbeat, but the cost to the rest of humanity is just too high for my personal wishes to take precedence over everything else. I loved my own daughter all her life; love her still. I love other humans, too.

Life isn’t worth much when you slam to door on God. Don’t comprehend that value system? Then it saddens me to inform you Satan is your God, and Hell is your eternal destiny. The real battle in this world has nothing to do with any political division between humans. That’s just background noise, and any nation which tortures is doomed, already under the judgment hand of God. America is already dead.

Addenda: I’ve been challenged on my assertion Scripture forbids torture. There are several websites, all of which reject the authority of Scripture in the first place, which collect a laundry list of places where beating is mentioned, burning with fire, stoning, and the favorite is King David’s treatment of the Ammonites. Mention is not necessarily approval. It’s easy to take stuff out of context and twist meanings when you refuse to honor the source in the first place.

Without making this overly long, let’s dispatch most of it. King David made numerous huge mistakes. They were mixed in with some pretty smart and heoric moves. We aren’t permitted to know the full context of why he treated the Ammonites so poorly, but we should assume in the historical context he conquered them, then judged their “crimes” and executed their leaders. It is highly unlikely he slaughtered peasants, since no one did back then, unless they were evil and nasty — sort of like the Amonnites had been with Israel. Chances are he was not aiming at terrorizing innocent folks, but executing judgment on the guilty, even if it does seem grisly to our modern Western sensibilities (which generally defy Scripture, anyway). It’s possible he went too far, but the context doesn’t say.

Executions are executions. Grisly ones are reserved for exceptional violations. Jesus was tortured in the sense He committed no crime by any just standard. The Jewish leaders were utterly wrong. Beating is not torture if the punishment is deserved according to standards elsewhere in the Law. Beating someone to make them talk is torture. The general rule of dealing with enemies is covered by David’s son, Solomon, in Proverbs 25:21-22:

If your enemy is hungry, give him bread to eat; and if he is thirsty, give him water to drink; for so you heap coals of fire on his head. And the Lord will reward you. (NKJV)

There is nothing to take out of context there, because that portion of Proverbs is a list of epigrams and wise sayings, many quite unrelated to each other. However, we can surely see that an epigram is meant as a starting point for discussion, and expansion of the principle was expected.

Posted in personal | Tagged , | 5 Comments

Linux Migration for the Home PC User, Part 7

Part 1
Part 2
Part 3
Part 4
Part 5
Part 6

Making Adjustments

Even if you were quite active in reconfiguring the ways Windows looked and acted, you’ll probably be surprised at the number of things Linux allows you to configure. Our first item is something under the hood, as it were, which should make the system automate things you need, and shut off stuff you aren’t likely to ever use.

The term here is “Services”. The default services in CentOS aren’t suited to the common home PC user. However, this is something we can fix with a point-and-click tool. In the menu bar at the top of the screen, look for the “System” button. Click, then slide to “Administration” — everything here pretty much requires you to give yourself root permission, so it will pop up a root password entry box if you click on anything in this submenu. We want to find “Services” and click that.

After you enter your root password, it should open a window with the title “Service Configuration”, with a list of services on the left side and some other blocks on the right. Unless you are using dialup, you will want the NetworkManager turned on, so that means a checkmark in the box next to it. There are some we want to turn off, which means removing the checkmark from the box:

  • bluetooth: If you know what this is, you’ll know if you need it. If not, turn it off.
  • hidd: More bluetooth stuff.
  • firstboot: It’s only needed for the first run of the system after installation, so turn it off.
  • mdmonitor: This is only used when your computer runs a RAID setup. If you don’t know, you don’t need it.
  • netfs, nfs, nfslock, portmap: These pretty much belong together and it’s quite unlikely you need them if you haven’t been told you need them. This also applies to all services starting with “rpc…”
  • pcscd: Smart card reader. If you don’t have one on or with your computer, turn it off.
  • restorecond: This is related to SELinux and we don’t use that.
  • sshd: Another “if you don’t know, you don’t need it.”

These won’t take effect until the next time you reboot, so keep in mind you’ll need to do that later.

Under that same “System” menu, you can find the “Preferences” menu. Here you’ll find a host of things you do which affect how the desktop looks and lot of other things you may never use. It would take a small book to detail how all of them work. We are going to pick out a couple of items which it seems most people coming from Windows really do want to change.

Click on the desktop icon which resembles a little house in front of a folder. It will open to your “home” folder, a directory where most of your personal stuff is stored. That window is your “file manager” rather like the Windows Explorer. It’s default behavior resembles the ancient Windows 95 habit of opening a separate window for each folder you click. If you like that, fine. Most people don’t. To make it open with the files on the right, and the list of places on the left, let’s find the “Edit” button on the menu, and go down to “Preferences”. That will open the “File Management Preferences” dialog. Click on the second tab, marked “Behavior”. Under the header marked “Behavior” again, click the box for “Always open in browser windows”. The next time you open your file manager, it will look quite different. Check out the various options in that left window pane to see what you can view. I typically have mine set to “Tree” view. That way I can examine the list of folders in the left pane, and the contents in the right pane.

Here’s another item which proves popular to folks migrating to Linux. You can make it so everything on your desktop works like a web page, opening or activating with a single mouse click instead of double-clicking. If that sounds like fun, you can choose that under the same “Behavior” part of the dialog. It may take some getting used to, but plenty of people prefer it. When you are finished, close that window.

The rest of the items in the Preferences menu can be pretty entertaining, but be cautious. You may find something changed and you can’t remember how to get it back. Frankly, most average home users don’t care about all that stuff, they just want it to work. However, you might run up against an item which is not merely aesthetics, but a matter of whether you can read things clearly. We are referring to fonts.

First of all, if you have access to the font files used on Windows, you can use them in Linux. Getting them copied to the right place on your Linux computer can be tricky and complicated. The simplest way I know to get them in the right place is using your file manager and opening two windows. If you have a Windows computer, you can select your favorite fonts, copy them to memory stick, burn them to a CD, or some other type of movable file system. Be sure to get the matching set of regular, bold and italic files for each font, if available. Most of the time, as soon you insert one of these movable file systems into your CentOS computer, it will take a few moments to check things out, then give you a new icon on your desktop representing it. You can click to open that in a file manager window and navigate to where the font files are waiting.

Now, click on your “home” icon to open the other file manager window. You should have a menu line at the top, a button panel rather like a web browser, and below that another toolbar with not much on it. To the far left should be an icon, which, if you hover your mouse pointer over it, an explanatory note pops up tell you it “Toggles between button and text-based location” — click that one. To the right of that you should now see what looks like the open URL box on web browsers. Using your mouse, copy the virtual location you see below:

fonts:///

and paste it into the URL box. Hit ENTER and you should see a collection of font files in the icon window below. Some or all will be marked in some way indicating you can’t write them, meaning you can’t move or change them in any way. We don’t need to, because we simply need to add some to the collection. Go back to your other file manager window where the fonts are listed. Select as many as you like. You probably know you can hold the CTRL key down as you click to select a random collection, or you can get them all with CTRL + A. Works the same here and in Windows. Once they are all selected or highlighted, grab one with your mouse and drag to the other window, and drop. It should copy them for you. If there are no problems or errors, you can close both windows. Right click on the icon for your removable file system, and select “Unmount”. When it’s ready, the icon will disappear.

Now you can select System > Preferences > Fonts and you’ll see those fonts listed in the drop down choice menus for each item. As soon as you choose the font face and size, the desktop should shift immediately to your new font. That’s a feature of the GNOME desktop — most appearance changes take effect immediately, smoothly.

You’ll also notice you can adjust the rendering of the fonts. You can get the blocky, almost jagged edges which often appear by default in Windows, or you can smooth it all out. Try each variation until you see something closest to what suits your eyes.

It’s possible this isn’t good enough with fonts. It never is for me. I always make one more change in how fonts display, but it’s quite a technical chore. It requires using the command line again, and it requires actually building some software. That’s the next lesson. If you have no interest in that, you can pretty much stop here and simply start using your computer. If you need help, you can always post questions here, but for the long term, it works best if you join a forum, user group, or some other volunteer support system. You can search on the Net using the terms “Linux help forum” without the quotation marks and find lots of options.

I can’t tell you which one to choose. However, you might want to remember, whenever you post a question on any forum, especially one with lots of members, you start with something like, “Linux newbie here…” Most of the time, they can be pretty patient with you. Beware of the serious hobby zealots, who seem to spend all their time telling you why you should change to some other type of Linux. Right now, you need to focus on learning to use the Linux computer you have before you. You may also have to remind folks once in awhile you aren’t interested in Linux as a hobby, but for everyday use, getting work done, etc. In general, forum members most places will be as polite as you are.

One other item. From time to time, you may see an icon in the “notification area” on the right end of your upper toolbar, rather like a box with the top flaps hanging open. There may be a popup telling you updates are available. Click on that icon and walk through the dialogs, which should be pretty obvious. At some point, it should show a list of packages ready for update. I’ve never seen any reason not to make sure all were selected. Sometimes it will tell you a reboot is needed, and that should not surprise you. Just do what it suggests.

Some people are reporting that icon never reappears after the first time. If you don’t see the icon after week or two of use, you’ll need to run it manually. In the “Applications” men, under “System Tools” you’ll find “Software Updater” — which requires your root password. For now, try to remember to run that every week or two.

Posted in computers | Tagged , | 1 Comment

Linux Migration for the Home PC User, Part 6

Part 1
Part 2
Part 3
Part 4
Part 5

Let’s add another repo.

I’m going to choose for you the one I have found most likely to offer what you want or need, with the least amount of difficulty, particularly in matching the packages to the basic system. That repo is called RPMForge. This is relatively easy, if you happen to be reading this from your computer which is running CentOS, of course. That’s because you can easily copy the instructions below and execute them without any typing at all, aside from logging into the Terminal as root. Do that login now.

When you have that done, tell the prompt to move to root’s home directory:

cd

If you issue that command without telling the prompt where to go, it always goes “home” for the account you are using. You may be familiar with the using your mouse in Windows to highlight and copy text:

  • click the mouse button and hold it down
  • drag across the text you want to copy
  • let go of the left mouse button, and right click (or use the application menus, or hit CTRL + C)
  • select from the popup menu “copy”
  • using any of the above methods to paste

We call this “using the clipboard.” That works the same in Linux. However, Linux has one extra trick: You don’t have to use keystrokes or the right-click menu in every case. Sometimes, you can just drag the most across the text, let go, and it’s already in a clipboard which belongs to the mouse itself, and can be pasted by the mouse. If you have anything which acts as a middle button, just put the mouse where you want to paste and push that middle button. It pastes immediately. If you have only two buttons, chances are you can carefully push both buttons at the same time, and it should work the same. However you do it, copy the text below and paste it into your Terminal window at the prompt:

wget http://packages.sw.be/rpmforge-release/rpmforge-release-0.3.6-1.$dist.rf.$arch.rpm

Hit ENTER. This tells the little program “Wget” to fetch something from the server where RPMForge keeps their stuff. The prompt should respond with contacting the server and downloading a package, using equal signs as a double line and an arrow head (>) moving across the screen showing progress. When you have it, the prompt should come back. Cut and paste this command:

rpm --import http://dag.wieers.com/rpm/packages/RPM-GPG-KEY.dag.txt

We are telling the RPM (Red Hat Package Manager) to install a security mechanism for the packages which come with RPMForge. You need it to keep RPM from arguing or making warnings about stuff later. It prevents folks easily creating fake packages with nasty surprises and getting you to install them. Now copy and paste this command:

rpm -ivh rpmforge-release-0.3.6-1.el5.rf.*.rpm

Hit ENTER. This tells RPM to install that package we just downloaded. It should indicate it’s preparing, then show a little progress bar (using hash marks #) and come back when it’s done. We are almost ready to use the RPMForge repo, but we need to make one edit to a configuration file to make sure your system gives proper priority for it.

Let’s go back to /etc again. Remember? Only, this time we already know the specific folder inside there we need to visit, so the command looks like this:

cd /etc/yum.repos.d

Now type the ls command. When we installed the package file we downloaded above, it added some stuff, to include a couple of files here. You should see at least these two files, one you’ll recognize:

CentOS-Base.repo   rpmforge.repo

Any other files don’t concern us right now. You should recall editing the CentOS-Base.repo and we are going to do the same for rpmforge.repo, using Nano:

nano rpmforge.repo

There should be only one entry here for [rpmforge]. Move your cursor down below the last line, and add this:

priority=3

If you’ve been paying attention, you might have figured out we want RPMForge to be the number 3 priority, behind the other priorities on the other file. This should work just fine for our purpose.

Now, save (CTRL + O) and exit (CTRL + X). At the prompt, let’s check to see if Yum can understand what we’ve done.

yum update

You should see the computer checking the new repo, adding some information, and it may even offer to update something. Answer “Yes” by hitting the Y key. Watch it do it’s thing, and get familiar with what it looks like. Next, we add some interesting software.

Rather than bore you with all the details of why you need this or that, I’m going to give you the whole shebang in a couple of short steps. We are assuming here you want your web browser to do the normal stuff with Flash videos, music files and so forth. While it may not always work, this should get you as close as possible. This also assumes you have a DVD player connected to your computer.

Just cut and paste the long line of command for Yum you see here:

yum install libdvdcss libdvdread libdvdplay libdvdnav lsdvd mplayerplug-in mplayer mplayer-gui compat-libstdc++-33 flash-plugin gstreamer-plugins-bad gstreamer-plugins-ugly

There should be some surprises here, but it will help you understand how it all works. By asking Yum to add all those packages, it will have to check for some other stuff needed to make all those work, what we call “dependencies.” This may take some time, and you may have a tough time following it all. Aside from unexpected hiccups in your system or the system where these packages are pulled, you should still get a chance to say “Yes” or “No” — type Y, of course.

We are almost there. Now we have to add something called “codecs” so that software we just downloaded knows how to recognize all kinds of media files. The dirty details have to do with licensing agreements, companies which refuse to do business with Linux, and international agreements on copyrights, etc. If there’s a way around it all, Linux people will find a way. Don’t get too worried about it; none of the several million Linux users in the world have been hassled by anyone as far as we know.

This time, we tell RPM to do the work for us. It can install files from someplace else across the Net, so cut and paste these commands:

rpm -Uhv http://www1.mplayerhq.hu/MPlayer/releases/codecs/mplayer-codecs-20061022-1.i386.rpm

You may get a warning about a “signature” but we can’t do much about that. Then:

rpm -Uhv http://www1.mplayerhq.hu/MPlayer/releases/codecs/mplayer-codecs-extra-20061022-1.i386.rpm

That should take care of everything. Those last two commands grabbed some packages from a Linux specialty website in Hungary, and installed them on your system, which makes it possible to play the same multimedia files most other people can see or hear in Windows.

For now, log out of the root account and close the Terminal window. You’ll need to restart your web browser for the plugins to work. The hardest part is already done, and what follows from here is generally much easier. Did you enjoy playing with the command line?

Posted in computers | Tagged , | 1 Comment