These have been two extremely frustrating days.Ã‚Â I’ve focused mostly on one thing – getting web editing software up and running so that I can edit my website.Ã‚Â Kind of a core functionality.Ã‚Â I’m dismayed and confused by the sorry state of web site management under Ubuntu.
Notice I said web site management and not just page editing.Ã‚Â A website is a collection of files that have to work together all the time.Ã‚Â Let one little link get off and a 404 error results.Ã‚Â A site management package like FrontPage handles that.Ã‚Â It maintains links and connections for all files.Ã‚Â If I decide to, for instance, rename a picture file to remove spaces in the name that cause Linux bellyaches, I simply change it.Ã‚Â FP takes care of tracking down all the links that use that file and patching up the links.
Alas, there appears to be nothing in the Linux world that does that.Ã‚Â Kompozer is the default web page editor for Ubuntu but it has no concept of a site or site architecture.Ã‚Â All it does is WizzyWig edit web pages.Ã‚Â It looks to be pretty competent at that but it is NOT a site manager.Ã‚Â I’m having a hard time imagining maintaining the tens of thousands of pages that constitute neon-john.com  without site management software.Ã‚Â I’ve spent some time in the past looking for a substitute to get away from microsh*t software but I haven’t found anything comparable.
Alas again, FrontPage doesn’t run under Wine.Ã‚Â Oh, it installs after much trickery and starts up but it won’t do anything and crashes more often than not.Ã‚Â I’ve spent most of today trying to get it NOT to crash.Ã‚Â For now, it’s a lost cause.Ã‚Â I’ll be going back to winders to do my site editing.Ã‚Â This might be what forces me to convert to a content management system.
Website Publishe r is a program that, though it is a windows program, is designed around the Unix philosophy of doing only one thing per program but doing it very well.Ã‚Â WSP does one thing.Ã‚Â It keeps a local copy of a website synchronized with the active version on the web server.Ã‚Â That is, it publishes to the web server any changed and new files that it finds.Ã‚Â It is lighting fast, probably 1000x faster than FrontPage’s upload function.Ã‚Â I’ve used it for years.
You’d think that such a simple program would run fine under Wine and it does.Ã‚Â Until it encounters that first file name with a space in it.Ã‚Â Something like “cute cat 01.jpg”.Ã‚Â The unix shell (which all sorts of other programs use to do underlying functions) treats a space as an argument delimiter.Ã‚Â What WSP would see in the example would be some garbage and then “01.jpg”.
In windows, something under the program apparently translates spaces into something that a Unix web host likes.Ã‚Â Under Wine it does not.Ã‚Â I’ve been careful about that but among the tens of thousands of files on my site, about 60 have spaced file names.Ã‚Â Arrrrrghhhhhh!
I’ve written the author of this program asking if there is anything he can do at the application level to address this problem but I haven’t heard back.Ã‚Â Meanwhile I have two choices. One is to change all the file names to get rid of the spaces.Ã‚Â That takes me back the above issue of a web site manager.Ã‚Â Without one I’ll not only have to manually rename the files but also manually track down every html page thatÃ‚Â uses each file.Ã‚Â The other choice is to run winders and FrontPage whenever I decide to update my website.Ã‚Â As you can imagine, option 2 is the one that I’m going to regrettably choose.
Irfanview  is simply the best lightweight graphic file viewer and editor, bar none.Ã‚Â That it’s free makes it even better.Ã‚Â It is lightning fast, opens all sorts of files and does all the basic editing (color correction, adding circles, lines and text to photos) that I need about 99.9% of the time.
My first indication of trouble happened when the installer bombed on a missing DLL error.Ã‚Â Ooookay, let’s try another approach.Ã‚Â Let’s just copy the executable directory over from the winders disk.Ã‚Â That worked.Ã‚Â Problem is that it doesn’t show up under the Applications->wine->Programs listing because it wasn’t installed using the installer.Ã‚Â This one is solvable with enough research but fixing it will definitely be a guru problem, involving editing config files from the shell prompt.
What I really want is for the program to be associated with .jpgs, .gifs and other graphics files like it is under winders.Ã‚Â That is, I want it to start when I click on a jpg file.Ã‚Â That’s easy enough at first.Ã‚Â Just right click on a jpg in the file manager, select “properties”, select “open with” and add a new launcher.Ã‚Â Add the program name and hit close.
After I did that and clicked on a jpg file, Irfanview popped right up – with a blank screen.Ã‚Â After a lot of work I determined that Wine wasn’t passing the command line argument in a form that Irfanview can understand.
If cat.jpg is in my home directory, /home/jgd, then the path to the file would be /home/jjgd/cat.jpg.Ã‚Â That argument is passed to the application when one clicks on cat.jpg.Ã‚Â The problem is that windows uses backslashes “\” instead of the normal forward slash.Ã‚Â Thus that path should be \home\jgd\cat.jpg when it passes through Wine to a winders program.Ã‚Â Apparently that isn’t happening.
Interestingly enough, i can drag the same file to an open instance of Irfanview and it’ll display just fine.Ã‚Â That tells me that Wine is doing the slash/backslash translation, just not when it gets launched by a double click on the file.
I use this program enough that I am going to find a work-around.Ã‚Â Meanwhile I’m going to file a bug report at WineHQ .Ã‚Â Incidentally, if you’re going to be running many Wine applications, you should spent a LOT of time on this site.
Using a modem or modem-like connection is necessary not only for dial-up victims like me but also many dsl and cable modems.Ã‚Â Many manufacturers set up the cable or DSL modem to work with windows DUN (dial-up networking).Ã‚Â If you have a router between your modem and computer then the login/password chat is hidden from you but it still happens.
Unfortunately, the dial-up manager in Gnome is broken.Ã‚Â It is located under System->Administration->networking.Ã‚Â Remember that I bitched about this being missing from the 8.10 Ubuntu distro.
As I mentioned before, I have to have two dial-up accounts to get enough “unlimited”(sic) hours so that my modem can be connected any time I’m at the console.Ã‚Â To spread the time out evenly, I settled on a scheme to dial into the first account on odd days and the second account on even days.Ã‚Â That is easy under winders.Ã‚Â Just set up two network connections.
It should be similar under Gnome but it isn’t.Ã‚Â Oh, the network manager allows setting up an arbitrary number of connections but it won’t change between them without a bunch of fiddling.Ã‚Â If I’ve been using “location” 1 and decide to go to location 2, all I should have to do is select the new Location, click on the green checkmark.Ã‚Â The system is supposed to hang up on the first one and dial the new one.Ã‚Â That’s what the help page says and is what is logical.Ã‚Â Problem is, it doesn’t work.
When I select the new “location”, the modem momentarily goes off hook and then hangs back up again.Ã‚Â Obviously two things are fighting with each other but I don’t know what.Ã‚Â Usually I can select back and forth between locations and the one that I want will eventually dial out.Ã‚Â Yesterday it wouldn’t.
I used a clunky command line method that I knew about to get online (a real guru moment) and researched.Ã‚Â I found that there are basically two other methods.Ã‚Â One uses what is known as pppconfig to set up the ppp (modem) connection and then uses pon and poff to start and stop the connection. (ppp means Point to Point Protocol and is what is spoken over the link regardless of how you connect.)Ã‚Â The second method involves a Gnome applet that isn’t present by default but it easily loaded using the Synaptics package manager.
See my log book below to determine the details of using pppconfig, pon and poff.Ã‚Â What I did was set the two connections up and then install a button on the Launcher panel for each.Ã‚Â I added a third button for poff to close the connection.Ã‚Â This works wonderfully.Ã‚Â One click on the appropriate button and the modem simply turns on.Ã‚Â A click on the third button and it turns off.Ã‚Â There’s only one problem.
My ISP gratuitously hangs up on me every 4 hours.Ã‚Â Winders DUN and the initial network program (that is broken) can be set to auto-redial.Ã‚Â This method can’t without some fancy shell scripting which is an uber-guru moment.Ã‚Â What I’ll have to do is write a script that watches pppd, the PPP daemon and when it goes away, waits a second and then fires it off again by re-invoking pon.
The other option is Gnome PPP.Ã‚Â it is available as an installable package under Synaptics package manger.Ã‚Â Just fire off the manager, click on “search”, enter “gnome ppp” and wait.Ã‚Â When it finds the package, simply click on the checkbox, click on the green checkmark and the package will download and install.
That done, it shows up under applications->Internet->gnome PPP.
It works great, reconnects after a hang-up and is reliable.Ã‚Â Only one problem.Ã‚Â It can’t store multiple configurations so if I want to use two different accounts, I’d have to type them in each day.Ã‚Â This problem will affect only a tiny fraction of users.Ã‚Â Most users will install their login name and password and forget about it.Ã‚Â This is definitely the non-guru way of doing DUN.Ã‚Â Since I need two accounts, I’ll use pon/poff most of the time and switch to Gnome PPP when I have a long download going that can’t afford a hangup termination.Ã‚Â At least until I write that script.Ã‚Â I’ll post the script here so that you can use it if you want to tinker in guru mode.Ã‚Â It’ll be the kind of script that can’t break anything so it’s safe to play with.
Lightning took out the sound card in this laptop long ago so for a couple of years I’ve used a Soundblaster Autigy 2NX USB adapter.Ã‚Â During the initial install and subsequent reboots, Ubuntu did not find it.Ã‚Â Tonight I tried un- and re-plugging the USB cable and shazam! Ubuntu found it.Ã‚Â I’m not sitting here listening to Misty  as I type.Ã‚Â Except when it quits.Ã‚Â Googling around the net, I am learning that sound is the most poorly supported facility in Linux.Ã‚Â It’s not very robust in winders either so I can’t whine too much.Ã‚Â At least I know that at some time in the future it’ll be fixed in Linux.Ã‚Â Rots o Ruck with gatesware.
My true test of a software fix or change is, “Does it still work in the morning”.Ã‚Â I’m happy to say that my Palm HotSync connection is still working, with one exception.Ã‚Â If the HotSync fails, the Gnome daemon hangs.Ã‚Â I waited for over an hour today to see if it would time out.Ã‚Â It doesn’t.Ã‚Â It is necessary to kill and restart the daemon.Ã‚Â This is fairly easy to do.
Go to System->Administration->System Monitor.Ã‚Â This shows you all the processes that are running on the machine.Ã‚Â Look for “gpilotd”.Ã‚Â Right-click on it and select “kill process”.Ã‚Â The tray will ask a question about restarting the process.Ã‚Â Answer “yes”.Ã‚Â That’s all there is to it.
That accounts for my last two days.Ã‚Â I have most of my core stuff up and running (or know that they won’t run) so I’m going to slack off a bit and use what I’ve installed.Ã‚Â I’ll continue working on moving applications over or finding Ubuntu/Gnome versions as replacements.Ã‚Â I won’t be posting every day but more than likely every other day.Ã‚Â If you have email notification (button on the bar above) or an RSS feed then you won’t miss any.
10:00Ã‚Â Installed Website Publisher.Ã‚Â Can’t get it configured.Ã‚Â Going to windoze to export the setup.
——— Dial up networking ———
I finally acknowledged today that the dial up networking manager in Gnome is badly broken.Ã‚Â Therefore I decided to do it the oldfashioned way, via a command line.Ã‚Â There are three commands that deal with PPP
A couple of directories
/etc/ppp/peerÃ‚Â Ã‚Â contains the connection info and is what pppconfig writes.
/etc/chatscriptsÃ‚Â contains the chat script to use. It is pointed to by peer
The procedure is to run pppconfig to creat a configuration file in /etc/ppp/peer.Ã‚Â It’s a curses-based terminal program so just follow the prompts.Ã‚Â All the defaults are good except that basicisp uses login/password instead of PAP.Ã‚Â Once the script is created, to go online execute the following:
I used basicisp and basicisp1
to go offline
Simple and reliable.Ã‚Â I don’t know yet whether it will automatically reconnect when da pricks hang up on me or not.Ã‚Â If not, I’ll write a script.
Some discussion of methods here:
An alternative is minicom.Ã‚Â Investigating that as we speak
Minicom is a terminal program.Ã‚Â I don’t see much use for going online with PPP
I put three buttons on the launcher panel, one for BISP 1, BISP2 and hang up. I did so by right clicking on the panel in a blank space and selecting “add to panel”.Ã‚Â Then “new application launcher”.Ã‚Â Fill in the blanks.
I brought this app over from windows.Ã‚Â I use it to publish my website.Ã‚Â Best program for that purpose that I’ve found.
It installed and ran under WINE but it has a problem with dealing with spaced file names.Ã‚Â My site has about 120 files with spaces in the name.Ã‚Â My work-around is to publish with fire-ftp while I rename these files and update the web pages that call them.Ã‚Â Dropped the publisher a note.Ã‚Â Maybe he can address the problem.
——– Preparing Wine for Front Page ———–
Go here and read
Then here.Ã‚Â Follow these instructions to add WineHQ to the repositories list.
Currently doing item 3 above.Ã‚Â apt puts a MAJOR load on the machine.Ã‚Â I’ve never seen it slower.
Installed WineTricks, then installed FPÃ‚Â FP runs but won’t do much without crashing.Ã‚Â Looks to be a problem with how Wine presents the file system.Ã‚Â I’m having trouble with Irfanview the same way.Ã‚Â Can’t accept files with / in the path and can’t find files with \ in the path.Ã‚Â Damn
17:00 – unpluged and repluged my SoundBlaster USB device and this time Ubuntu found it – I think.Ã‚Â I’m having to download codecs because the free software zealots would not put it in the distro.Ã‚Â Bastids.