Title photo
frugal technology, simple living and guerrilla large-appliance repair

Regular blog here, 'microblog' there

Many of my traditional blog post live on this site, but a great majority of my social-style posts can be found on my much-busier microbloging site at updates.passthejoe.net. It's busier because my BlogPoster "microblogging" script generates short, Twitter-style posts from the Linux or Windows (or anywhere you can run Ruby with too many Gems) command line, uploads them to the web server and send them out on my Twitter and Mastodon feeds.

I used to post to this blog via scripts and Unix/Linux utilities (curl and Unison) that helped me mirror the files locally and on the server. Since this site recently moved hosts, none of that is set up. I'm just using SFTP and SSH to write posts and manage the site.

Disqus comments are not live just yet because I'm not sure about what I'm going to do for the domain on this site. I'll probably restore the old domain at first just to have some continuity, but for now I like using the "free" domain from this site's new host, NearlyFreeSpeech.net.

Tue, 27 Nov 2012

Set the Xfce Clock the way you want it

Before:

After:

Using the Clock app in the upper panel of the Xfce 4.8 desktop in Debian Wheezy, I didn't like the stock way date and time was displayed as just time only in the default:

08:23 AM

Luckily when you right-click on Xfce's Clock in the panel, left-click on Properties and choose "Custom Format" under Xfce's Clock options, you can use anything that the Unix/Linux date command switches offer. Go to man date and study up for every single option.

At first, I used the easy %c, which is one of a few options in date that bring a whole lot of information into your clock:

%c
Fri 02 Nov 2012 08:23:27 AM PDT

That's good but not exactly what I wanted. I spent considerable time looking at man date. This is more complicated but gives me output more like I want:

%A, %B %-d, %Y - %-I:%M %p %Z
Friday, November 2, 2012 - 8:23 AM PDT

I now have the full day of the week, full month, 12-hour time and time zone -- all with no "leading zeroes."

Lately I've wanted to save a little space, so I use %b instead of %B:

%A, %b %-d, %Y - %-I:%M %p %Z
Friday, Nov 2, 2012 - 8:23 AM PDT

Explanation: All of these parameters are explained in man date. You use a minus sign to remove the leading zeroes in dates and times when they are in single digits: %-d and %-I instead of %d and %I

Spending some time with man date is the best way to get exactly the output you want in your Xfce (or any other Unix-based) clock application.

Also: If you want to go from 08:23 AM to 8:23 AM -- removing the leading zero, use this:

%-I:%M %p
8:23 AM

I pretty much included this last one so I'll remember it. But if I didn't, man date is my friend.

Sun, 18 Nov 2012

GNOME 3 update: 'Connect to Server' lives in GNOME 3.5/3.6, I rant about features being moved and removed, and I fix my GNOME 3.4 problem in Debian Wheezy

In my test of the Fedora 18 Alpha release, I was left thinking the "connect to server" feature in the Nautilus file manager disappeared in versions 3.5.x and 3.6.x of the GNOME desktop environment.

Thanks to readers, I learned that "connect to server" has moved to a separate application that you call from the shell with the not-so-friendly name Nautilus-connect-server, as seen in the image above.

You can still get to ftp, sftp, secure and unsecure webDAV and Windows shares via this application. Again, it's a separate application from Nautilus proper. And when you do call it and go to a server, Nautilus is the application that opens. It's like using Gigolo with Thunar in Xfce, though Thunar has recently added the ability to go to remote servers without Gigolo's help.

Yes, GNOME is separating a feature from its file manager while Xfce is adding that same feature to its own file manager.

What do you think of that?

I am happy that "connect to server" remains in GNOME 3, but I do have something to complain about:

One thing that seems to be missing from Nautilus in Fedora 18 is the ability to create an empty file from within the file manager with the "Create New Document" feature. I do this all the time: I create an empty file, open it in Gedit and then write the file and name it. It's already in the exact directory where I want it. Without this feature, I have to open Gedit, start the file, name it, then navigate to where I want it to be and finally save the file.

It's not a huge deal to create the file in Gedit, then save it where I want it. But this is another case of a feature ("Create New Document") disappearing in Nautilus because the developers feel it's no longer needed. It's absence adds an extra step to my workflow.

I use "Create New Document." I will miss it. It's absence is not a huge inconvenience. But this removal of functionality doesn't help me, or anybody else, in any way.

In this same vein, I'm glad you can still "connect to server" in GNOME 3, but why take the functionality out of Nautilus proper and put it in a hard-to-find, poorly named Nautilus-connect-server? The feature didn't die, but it's harder to access. How does that help?

Heading back to GNOME 3.4.2 in Debian Wheezy, I did fix my problem with not having a desktop at all when I logged into the system. After countless reinstalls of gnome-session and gnome-panel, which sometimes worked for a brief time but usually didn't at all, I followed some advice:

  • I created a new user account in my system.

Surprisingly (or not), that account had a working desktop. And a much faster desktop. When my original user account worked, logging in used to take a full minute or more. Now I could log in and have a working desktop in a few seconds. And the shell responded faster to commands. Or so it seemed.

With this knowledge in hand, I went into my original, non-working account in a virtual console using ctrl-alt-F2, logged in and got rid of the entire .config directory in my home directory:

$ rm -r .config

OK, that wasn't the first thing I did. First I tried to get rid of everything in ~.config that might have had something to do with GNOME. That didn't bring back my ability to log in and use GNOME Shell.

Only killing out the entire .config brought back my GNOME 3/Shell desktop -- and with all the speed that my "new" account had.

Sure, I lost more than a few settings. But I now have a working, seemingly faster user account in GNOME 3 in Debian Wheezy.

Yeah, I thought GNOME 3.6 had a lot of speed improvements over GNOME 3.4, but I think cobwebs in my ~.config ~/.config directory -- possibly due to changes over the Debian Testing cycle -- were killing my desktop performance. In any event, I'm happy enough with GNOME 3.4.2 as implemented in Debian Wheezy to stay there for a good long while.

And despite all the amputations in Nautilus, GNOME 3.6 is looking pretty good -- but not good enough to dump Debian Wheezy for it.

Note: My Chromium browser settings were also in ~.config ~/.config, but since I do sync them over privacy-robbing Google I was able to log in and get all of my bookmarks back in seconds. I lost all of my gPodder settings, which was more of a pain because my sync with gPodder.net was old and incomplete. I also lost my Gigolo setting (that sounds worse than it is).

Now that I've had time to think about it, the way to go about this is to change the name of .config -- maybe to config (with no dot). Then log out and log in. Then you haven't lost anything. GNOME will generate a new .config, and you can then move back in things like your Chromium, gPodder, Gigolo and other configurations that I lost in my haste to fix this GNOME Shell problem.

Another note for command-line newbies: In case you're not on board with all of the bash shell conventions, The "~" in ~.config ~/.config means that what follows it is in my home directory, e.g. /home/steven/.config, since my user name is steven. The ~ is a shortcut for "my home directory" that you can use in the shell to get there:

$ cd ~

is the same for me as:

$ cd /home/steven

Correction note: Thanks to reader Thor in the comments for fixing my syntax with "~" -- you always need a "/", which I have done above, striking through the original type and underlining the new. I should have tested this out before posting it. Like some or many of you, I'm still learning all this.

Sat, 17 Nov 2012

Xfce in the Fedora 18 Alpha

I'll get the disclaimer out of the way early: I'm very aware that Fedora 18 is currently in alpha, that we're more than a week away from the beta, and that Fedora 18 won't see a release until 2013.

Those are all things I'm aware of.

But the state of Nautilus in the Fedora 18 alpha's "main" GNOME 3 edition sent me scurrying to the Xfce build, where -- in contrast to the fail of Nautilus -- I'm already using Xfce's Thunar file manager to work directly over FTP and write onto a web site with the Leafpad text editor.

Except that Leafpad isn't cooperating and saving the file back to FTP.

I'm also looking for distributions that handle my Lenovo G555's squirrely touchpad without random cursor leaps, text highlighting and subsequent accidental deletion.

Is that so much to ask?

Add to that a new cupful of fail in Debian Wheezy's GNOME 3 desktop -- that fail being that I'm not getting a desktop at all half the time in the 3D version of GNOME 3. I just get wallpaper. And I can log out with alt-F4.

That's it. GNOME Classic works just fine. But regular GNOME Shell? It's gone half the time. I can reinstall gnome-panel and gnome-session and everything returns, but am I going to be happy doing that every day or so?

So I'm testing everything I can get my hands on in hopes of finding a Linux-distro port in what has become a very turbulent storm. (Or I could just reinstall Debian and hope my problem disappears.)

My first impressions of the Fedora 18 Xfce Alpha -- knowing, again, full well that this is only an alpha -- are that the desktop is slow to redraw, the FTP in Thunar only half works (this is a problem I've experienced before), and Gigolo is not in the default.

I'll hope that these problems will be fixed before the final release next year. Otherwise Fedora 18 with Xfce is looking pretty solid.

My new, old WordPress blog

Update: "Connect to Server" isn't gone, it just moved. Thanks go to readers who led me out of a non-networked Nautilus desert.

Here is the original post before I was brought to my senses:


If this is what awaits users of GNOME 3.6, I don't blame Ubuntu for sticking with Nautilus 3.4 and Linux Mint for forking the file manager and creating Nemo.

The GNOME developers have got to be kidding.

They take a file manager and REMOVE perfectly good features? They could have HIDDEN the features but left them intact.

Right now I can't figure out how to get the Nautilus in the Fedora 18 Alpha to open an FTP site. This is basic Nautilus functionality that this particular file manager has included for years and years.

And now it's gone?

I know this is a Fedora Alpha, but will the ability to browse FTP/SFTP and WebDAV be gone in future versions of Nautilus?

You can go to other machines on your network (which I never do, by the way) but not to FTP/SFTP and WebDAV (which I do all the time)?

Words fail me.

Even if the feature is really, really hidden, the fact that as a longtime GNOME and Nautilus user I can't find it -- and I do believe it's completely gone -- is so very, very wrong.

Will Gigolo allow me to browse networked files in the "new" Nautilus? Even the Thunar file manager doesn't need Gigolo anymore in Xfce 4.10 -- you can go directly to an FTP site and work directly in the file manager.

Unless I'm missing something, GNOME is screwing the pooch pretty good here.

Again, I know this is the Fedora Alpha, and right now it looks like it's running the development version of GNOME -- i.e. 3.5 instead of 3.6. But this is my first exposure to what Nautilus is supposed to become in 3.6 and thereafter, and I'm stunned. Not in a good way, either.