Java on Ubuntu Jaunty (9.04) - Problem with Fonts?

Posted by: JDS

I keep getting an error like 'Warning: Cannot convert string "-b&h-luxi sans-medium-r-normal--*-140-*-*-p-*-iso8859-1" to type FontStruct' and one Java app in particular just doesn't work because of it!

The Java app is the JScape SSH management console. JScape is really quite nice, but that's an aside.

The error is like this:

jeff@jeff-laptop:~
> /opt/JSCAPE_Secure_FTP_Server/client
Warning: Cannot convert string "-b&h-luxi sans-medium-r-normal--*-140-*-*-p-*-iso8859-1" to type FontStruct
Warning: Cannot convert string "-arphic-ar pl shanheisun uni-medium-r-normal--*-*-*-*-p-*-iso10646-1" to type FontStruct
Warning: Cannot convert string "-arphic-ar pl uming uni-medium-r-normal--*-*-*-*-p-*-iso10646-1" to type FontStruct
Warning: Cannot convert string "-kochi-gothic-medium-r-normal--*-140-*-*-c-*-jisx0208.1983-0" to type FontStruct
Warning: Cannot convert string "-baekmuk-gulim-medium-r-normal--*-140-*-*-c-*-ksc5601.1987-0" to type FontStruct

I don't yet have a solution!!

Skype Stuff

Posted by: JDS

Two things: better desktop notification integration, and, more importantly, fixing broken sound problems.

Adding "Log Out" button back to Ubuntu 9.04 Main Menu

Posted by: JDS

They took away the logout button! Why?? The Fast User Switcher applet? For logout??? That is in no way obvious, especially if you have just upgraded and are used to the previous way. Here's how to get it back.
  1. Right-click Main Menu or Menu Bar. Choose "Edit Menus". See Fig 1. Figure 1: Edit Menus
  2. Scroll down in left panel of menu editor to "Applications" (actually, you can add this anywhere, but if you add it here it is most visible in the menu. I actually end up adding this to "Applications" and to "System"). See Fig 2. Choose New Item
  3. Choose the "New Item" button
  4. For item properties, choose
    • Type: Application
    • Name: Log Out
    • Command: gnome-session-save --logout-dialog
    • Comment: Log Out of your Desktop Session
    • Click on the default "icon" button and browse to choose a better icon. WARNING: Gnome's icon chooser sucks monkey nuts. I mean, it is just plain awful. I ended up choosing /usr/share/icons/Human/scalable/actions/system-log-out.svg
    • See Fig 3. Figure 3: Launcher Properties
  5. Choose "Ok". Item should now appear in Menu Editor. You might have to click the item's checkbox to uncheck-then-check-it-again to make the real menu load the item.

Palm OS device over Bluetooth

Posted by: JDS

This is sofa king frustrating. Why is this not documented? I found a couple of references on the web, but just buck LUCK. FUUUUCKK!!!!!

To EASILY sync your Palm OS device via Bluetooth, just use port "bt:"

THAT IS ALL!!! SHEESH!!!

Nearly all searching for "palm bluetooth" or similar, especially adding "linux" or "ubuntu" or "jpilot" in as a keyword show the PPP method, which fucking SUCKS.

Example

pilot-xfer -p bt: -s ~/treo/syncdir

(Example obtained here: http://www.wanderingjew.co.uk/2008/Jun)

Speeding up SSH connections in Ubuntu Jaunty...

Posted by: JDS

...and Feisty and Gutsy and Hardy and Intrepid, most likely.

Bug: https://bugs.launchpad.net/ubuntu/+source/openssh/+bug/84899

The simple answer is to disable GSSAPIAuthentication. You can do that on the command line -- "-o GSSAPIAuthentication=no", in a local config (not sure what that would be called) or in the system configuration for the SSH client.

Example Patch of /etc/ssh/ssh_config

@@ -47,5 +47,5 @@ # PermitLocalCommand no SendEnv LANG LC_* HashKnownHosts yes - GSSAPIAuthentication yes + GSSAPIAuthentication no GSSAPIDelegateCredentials no

Zenity is really cool, but a little confusing

Posted by: JDS

Example Zenity dialog.

I have a whole bunch of one-click script operations to make my life easier for operations I perform routinely. I use Zenity for some of them. One thing about the Zenity list dialog is that it is a little confusing to set up, but I finally figured out a non-confusing way to write it. Here is my example.

WHICH_DB=`zenity \
--height=400 \
--list \
--radiolist \
--column="" --column="Database" \
TRUE "database1" \
FALSE "database2" \
FALSE "database3" \
FALSE "database4" \

`

Just write out the columns as they should appear in the dialog window, using backslash, "\", to join the lines together into a single operation. The above example produces this:

Zenity Screenshot