How to put XFCE on CentOS 6

This post is following my having replaced the gnome desktop from my centos-6 home server with XFCE, due to:

– the machine is probably over 11 years old and only has 256megs of memory
– the machine is not really likely to be easily upgraded, nor replaced
– the change is worth it anyway given the light load I put on it
– because it was so slow, and even seemed to progressively grind to a halt in a short period of time (a week or less, it seemed)
– questions online about how to replace gnome to XFCE under centos were inconclusive regarding how to make XFCE the default desktop on CentOS.

No, I don’t know how to make them co-exist, I tried a bit and decided after a three or four commands that since I didn’t need Gnome anyway, that replacing it completely with XFCE was the best way to go in my case.

Required:

– an installed and working CentOS 6 setup on the “target machine”
– an internet connection
– an operating ssh server on the target machine — including, if you’re controlling things through the internet, appropriate settings to receive the connection through the internet (another topic)
– root priveleges on the target machine

Optional, but likely to be highly useful (as it was for me given the “cart-before the horse” approach I used):

– a second computer, “the head”, with an ssh client, able to connect to the target machine via ssh either locally on the same network, or through the internet.

This process can be dangerous, will probably require at least one reboot, and ideally should require having physical access to the machine in case of requiring a hard power-down and repowering of the machine. All critical processes should become less critical (ie. user announcement for downtime, transfer to another server, etc.) and a backup should be performed beforhand.

I am presuming that on the target machine, root login has been disabled and that you will be logging in via “mere mortal” accounts and then elevating to root. Should you be using sudo on the target machine, the account into which you will be logging should have appropriate sudo priveleges, and you should adjust the instructions accordingly (that much I won’t do for you, I don’t like sudo; “Don’t be afraid of root. Respect it, but don’t be afraid” as my brother says.) I am also presuming that you are controlling the target machine using the head.

– using the head, ssh into the target computer — make sure that you are logged into an account on the head which also exists on the target. If you are on the same network, on the target machine itself, determine the IP address using “ifconfig” at the command line, and look for the number with a “192.168.***.***” format in the second grouping after the “inet addr” tag.
– Elevate to root (“su” )
– Install the Fedora epel repository on the target computer.
– visit http://fedoraproject.org/wiki/EPEL/FAQ#How_can_I_install_the_packages_from_the_EPEL_software_repository.3F
– enter the following if you are running Red Hat Enterprise Linux 6 / CentOS 6 / Scientific Linux 6:
“rpm -Uvh http://download.fedora.redhat.com/pub/epel/6/i386/epel-release-6-5.noarch.rpm”
– enter the following if you are running Red Hat Enterprise Linux 5 / CentOS 5 / Scientific Linux 5:
“rpm -Uvh http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-4.noarch.rpm”
– Uninstall the gnome desktop.
– “yum remove groupremove gnome-desktop”
– Install the xfce desktop.
– “yum –enablerepo=epel-testing groupinstall xfce-desktop”
– add a line about changing the desktop type
– “nano /etc/sysconfig/desktop”
– add the following lines:
” DESKTOP=XFCE”
” DISPLAYMANAGER=XDM”

– Reboot the target machine with “reboot now”. The head will lose its connection to the target machine. The machine should now reboot and the xfce desktop should appear on the target machine.

Problems:

In my case, I had installed the XFCE desktop environment first, and some dependencies were removed when I uninstalled the gnome environment; I figured this out after a reboot and the screen came up blank after a reboot. I therefore ssh’ed using the head into the target and reinstalled the xfce desktop as above, which installed the necessary missing dependencies. I also installed the evince reader (“yum install evince”) which has nautilus as a dependency (and as such installs it, although so far the only real difference between it and Thunar is that the latter doesn’t support dual panes.) Both seem to work nicely with XFCE because it uses the same libraries as Gnome.

Gnome 3 in Fedora 15 Freezes up in Fallback Mode

I have been going through some reformats over the past month or so: About five times on my then F14 desktop — three times until I finally ditched the hard drive which was obviously dying, and the fourth time on the “new” hard drive, and the fifth to explore the following problem as well as remove a poor choice of keyboard selection. The French in France must really be confused when using computers in North America (I was in Paris back in 2005), their keyboard layout is so weird. You have to realize that a French Canadian keyboard is not so different from a standard US keyboard, certainly compared to the French from France keyboard.

I have what would be considered an older computer; I’ve seen a date of about 2003 on the mother board. As such, the video card on it is too old to use Gnome Shell in Fedora 15 and uses the Fallback Mode. So I figured that when the computer appeared to freeze after a couple of hourse — no response to the keyboard or mouse and the like — that I might have a memory card problem causing the freeze, something I’ve seen before. However, two things are nagging at me:

1) During the install process, the computer would be sitting around idle while I either slept or was at work all day, the computer wouldn’t freeze up, and I just picked up where I would have were I to have babysitting the computer during the install;
2) After it froze up yesterday evening at what appeared to be a normal screensaver cycle, I did a hard reboot using the power button, and on a whim I turned the “lock” (the desktop) option in the screensaver settings screen to OFF. This morning after the computer was on the whole night, all I did was turn on the screen, and what do you know, I can use the computer like normal, with no freeze up.

As a control, my laptop, sitting beside my desktop — the former of which is recent enough to take advantage of Gnome Shell — does not lock up with the “lock” option to “on”.

I wonder what the deal is? A bad video card? Bad code? An incompatibility with the code — presumably the screensaver code, but I suppose any other — and my particular hardware?

I was doing some looking around last night on the subject, before I saw the results of the little “off” switch. Now that I’ve done an experiment and have some results, I can perhaps do one or two more and determine whether a bug report is warranted.

Cool (or mundane) computer trick impresses co-worker

I managed to impress someone at the office this week with a cool (read mundane) computer trick.

I got a call from the secretary, who is a few seconds’ walk from my desk, asking for a scanned version of my hand-written signature. I replied that on my computer at home I have it, and I could easily get it within a few minutes; she replies that it would be faster for her to just walk over with a piece of paper for me to sign, which she would then scan and play around with.

And this is where I began to impress her: By the time she got to my desk with said sheet of paper, I had already VNC’d into my home server’s desktop and was in the process of doing the same from the server to my main computer’s desktop (gotta finish the process of giving it a static IP and setting it up so that I don’t have to go through my home server. 🙂 ) I finished logging into my desktop, and looked in the likely directory, and voilà ! I fired up my home email client, and within a couple of minutes, she’d received my scanned signature.

Beyond the fact that the Gnome desktop is set up standard to do VNC — and the fact that I installed TigerVNC instead of using the standard Gnome Remote Desktop Viewer — too bad that I can’t really claim that this is a cool Linux trick, since my computer at work is Windows, and you can set up Windows boxes to “pick up the phone” too ….

She was still impressed, though. And it took about as much time as the whole process of signing a piece of paper, scanning it, cropping it, etc.

Bill Kurtis yet again

In the latest Bill Kurtis AT&T 3G commercial (something to the effect of “3G Anywhere” where he’s sitting in front of a Green Screen and all sorts of backgrounds are flashed, such as a kitchen, the park, the fairgrounds, etc.), it again seems to me that there is a white line across the top of a blue screen that is similar to a Gnome desktop.

I of course have come to accept that it’s just a fake, static imitation screenshot that is put in during post-production editing, and anyway in this case, there isn’t the taskbar at the bottom of the screen to further make me hop in glee yelling “Finally! He’s really using a linux distro this time with Gnome!”

Now what’s really getting me is that they’ve obviously put a bit of time and trouble into making up unique fake, MovieOS screenshots for each of the various commercials. Sheesh, for all the trouble AND expense they’re going to, I have to wonder why they just don’t send that money to Canonical or the Fedora Foundation, or maybe the Gnome people, as a quid quo pro “thank you” contribution to avoid any licencing issues or whatever when they ask one of the techies in back “Hey you use linux, right? Well we can’t / don’t want to / find it too expensive to get a licencing deal with either MS or Apple to have one of their computers appearing in a TV commercial, and we’re gonna make a LOT of commercials with different screenshots, can we borrow your laptop with that free OS where we won’t have to pay any licencing?”

Again, I think that the guy/girl would be scampering over as fast as possible just to get the bragging rights to “Hey you know those Bill Curtis AT&T commercials? He was showing *my* computer! Cool, eh?”

Sigh … Bill Kurtis *is* consistent

In my last post I mentioned that Bill Kurtis, in his “I’m Bill Kurtis, and I’m faster than …” commercial series, didn’t appear to be consistent with the laptops the techies were supplying him with.

Obviously, I have seen the original commercial several times since and have been paying attention.

Well apparently he has been consistent, I again demonstrated my general incompetence by, in this case, wanting to see brown (ughh!) in the form of the Gnome desktop. In fact, it was much closer to the greenish blue of the second “Andy Roddick” commercial. And, there is the disclaimer at the bottom of the screen: “Simulated images”

This bugs me a lot. I’ve said it before, I say it again: it seems that for something as simple as these commercials, the screenshot doesn’t matter; all they are trying to do is avoid having some software developer demand royalties for the screenshot, so they make a generic desktop screenshot in-house. Too bad, the techies in the back usually would love to see their laptop in a (inter)nationally broadcast commercial and have the bragging rights.

Of course, putting aside my conspiracy theory about the TV producers not wanting to pay royalties for the on-screen use of copyrighted software or the legal department not wanting to risk depicting a “real, live OS” (like it or not that’s what MS is) and making potential customers think that what is being advertised will *actually*work* with their computer (hey, there’s a new conspiracy theory for me!), there is probably a much more logical explanation, along the lines of the difference in cycles between a screen and a TV camera (flickering), or simply maybe it’s difficult to get a good screen resolution off a computer in the shot on TV.

Laptops, Linux, and US Customs

This weekend I went to meet some friends in the beautiful Commonwealth of Massachussets. I live north of the 45th Parallel in this part of the world (many of you might think “So what?” Think of the 49th Parallel, where the Canada/US border is much of the time out west.) I find crossing the border stressful, I always have all sorts of delusions about the difficulties I’ll be experiencing while answering questions from someone carrying a gun. (Usually the remarkable crossing is returning home: The Canadian guards roll their eyes in a bored kind of way when I pass them my passport, no doubt thinking “Oh, he’s a citizen, we have to let him in.”)

One of the things I was worried about was my laptop. On the advice of my Linux-guru brother, I ask him to set up an automatic login so that should the friendly US border guard ask me to show him my computer, it’ll boot up no trouble and not go through a login that may raise suspicion that I might be logging into a bogus account hiding all sorts of nefarious things. He also recommends that all .mp3’s be absent as well as other, ahem, illicit material (which I don’t normally have anyway), advice I take to heart.

However, besides the nuisance of a possible confiscation of my beloved 5+ year old laptop, what really has me worried is a suspiciously-asked:

“What’s that?”
“The gnome desktop under Fedora Linux.”
“Oh, that looks different.”
“Sure, you can get Linux off the internet for free …” (wince, I shouldn’t have said that, at least not that way …)

And then a bunch of annoying explanations that no Sir, I don’t have any illegally downloaded software, yes Sir it’s free and legal to do so, no Sir, there’s no copyright infringement here, no Sir, I’m not one of those nefarious computer crackers you hear about, think of this the way you might think of a Mac; an alternative to Windows …

Of course, the really nice border guard at the US border couldn’t have been less interested in the fact that I had a laptop with me, let alone that I turn it on.