Category Archives: Linux

Linux and Free Software.

KDE Platform, Workspaces and Applications 4.10.3 for openSUSE

KDE released 4.10.3 versions of the Platform, Workspaces and Applications yesterday, with more than 70 bugs being fixed. Notably:

  • Several fixes in handling encrypted mails in KMail
  • Fixes for KDEPIM syncing and ownCloud
  • A number of improvements in Dolphin, including crash fixes
  • Optimizations in the Plasma Workspaces
The full list has other important changes.
As usual, there are two different repositories from which you can get them:
  • KDE:Distro:Factory in case you are interested in contributing to packaging for the next openSUSE release;
  • KDE:Release:410 (openSUSE 12.3 or openSUSE 12.2) in case you just want to upgrade to the latest and greatest version
In case you upgrade now, you should be aware of an issue with KDM that makes it not start: thankfully there’s a workaround available, and updated packages are already being built by the OBS, so it will be solved soon.

Report bugs in packaging to Novell’s Bugzilla, and bugs in the software directly to KDE.
Have fun with 4.10.3!

Accessing Casio EX-WORD 電子辞書 from Linux

I’m a (happy!) owner of a Casio EX-WORD Dataplus 5 XD-A4700, a Japanese electronic dictionary. Recently I looked into updating the Japanese-English dictionary (currently the Shogakukan PROGRESSIVE dictionary) installed, because it’s not good enough: too often when looking up odd sentences (like the ones in Fate/Extra CCC) I do not find any matches.

EDICT is adequate, and while I can use it on my phone and tablet, I like the fact that the EX-WORD has a physical keyboard along with the stylus, and a very nice kanji handwriting recognition. After a bit of looking, I found the 5th Edition of the New Kenkyusha dictionary, offered as microSD card,  to be what I needed (but a bit pricey, 10,500 yen on Amazon, and that’s heavily discounted!).

There’s of course one little problem. Although these products have accompanying software, it is in Windows format only.And I’m using Linux. Of course I could just plug in the microSD, but what if I wanted to to move the dictionaries to the main internal memory?  What to do? Although there’s an USB port, the EX-WORD does not operate like a USB mass storage device: communicaation is done through OBEX and specific commands to load, view and install dictionaries (along with listing, download and upload files to the SD card and the internal memory).

Looking through the Internet led me to the libexword project, a library which provides a way to access these electronic dictionaries and a command-line application, and this post deals on how I made it work for me (but notice, it may not work for you).

First of all we needed a checkout of the sources:

git clone https://github.com/brijohn/libexword.git

Then we need to switch branches, because most of the ongoing work is not in the master branch, but instead in the 2.0-dev branch.

cd libexword
git checkout -b 2.0-dev origin/2.0-dev

To this point onwards you’ll need autotools (autoconf, automake) and the libusb development headers installed, along with Python and SWIG (a bindings generator). Run then

./autogen.sh
./configure --prefix=<prefix> # I used /usr for system wide install

If you don’t specify a prefix, the library and the application will be installed to /usr/local. autogen.sh may complain about a missing AM_PROG_AR (it did on my openSUSE system), so edit configure.ac and add AM_PROG_AR around line 15, then rerun autogen.sh.

After this, issue

make
sudo make install

Or become root and issue make install (assuming you’re installing to a system prefix).

Next, you need to get your 電子辞書 and connect it via USB. The kernel will not seem to find it, but it’s normal. Hit the お気に入り/ライブラリー key twice on the dictionary, then move with the arrows until you highlight 通信 (aka “transmission”). After that, push the translate button (訳) and you’ll see the Linux kernel identifying our dictionary (strings may change depending on the model):

usb 2-1.6.1: USB disconnect, device number 8
usb 2-1.6.1: new high-speed USB device number 9 using ehci-pci
usb 2-1.6.1: New USB device found, idVendor=07cf, idProduct=6101
usb 2-1.6.1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
usb 2-1.6.1: Product: CESG502
usb 2-1.6.1: Manufacturer: CESG502

Now we need to access the dictionary. However, unless you set up specific rules in udev, only root will be able to access the device. You can create a file in /etc/udev/rules.d called 99-exword.rules with the following:

SUBSYSTEM=="usb", ATTR{idVendor}=="07cf",ATTR{idProduct}=="6101",  MODE="0666"

and then refresh the rules with

udevadm control --reload-rules

After all of this is done, run exword and connect to the device:

$ exword
Exword dictionary tool.
Type 'help' for a list of commands.
>> connect
connecting to device...done
\_INTERNAL_00\ >>

“connect” takes different options: check with “help connect” for what you need specifically.

We can change between paths using the setpath command:

setpath drv0:/// # Root of internal memory
setpath crd0:/// # Root of SD
setpath drv0:///CASIOTXT # Move to the CASIOTXT directory in the internal memory

Notice however that some directories can’t be accessed.

You can list files with the list command (a truncated output shown below):

\_INTERNAL_00\ >> list
<sys_bak>
maintch.wrk
fav.inf
line3.inf
linecd.inf
<SOUND>
<CASIOTXT>
drvvewer.inf
lngfile.inf
<data>

There are also other commands: use “help” to see them all. Issue “disconnect” when you are done, and “exit” to exit the program.

There’s also a Python binding made using SWIG: I’ve yet to play with it.

The libexword developer has also created some GUI tools to mimic the Windows EX-WORD tools (which, it must be noted, work only with the Japanese dictionaries). You can get them at the exword-tools git repo. The procedure for installing them is the same as above (including the modification to configure.ac). You’ll need the development headers of wxWidgets, however, as this is a GUI application.

After installing, you can launch ExwordLibrary, ExwordTextLoader and ExwordLibraryInstaller. The latter is required to install new dictionaries, and unfortunately involves getting a Windows executable and placing it under PREFIX/share/exword, where PREFIX is the path you gave to the libexword configure script. This also means you need wine to run it.

Once that is done, you can use the library application:
exwordlib

 

or the installer to install dictionaries:

exword-dict

And that’s all. I hope this has been useful for using your electronic dictionary with Linux!

Package updates in openSUSE 12.3 KDE

During the discussions for the release of openSUSE 12.3, the topic of update notifications and applets was brought up again. Originally openSUSE shipped with a custom update applet, but since it was basically unmaintained, the decision was made to switch to Apper for openSUSE 12.2

The original Apper used in that version had a number of issues, which the upstream developer (Daniel Nicoletti) fixed in a newer version, which also had a lot of other improvments. However we originally couldn’t switch because it depended on a newer, API-incompatible version of PackageKit, meaning that the PK bindings for libzypp (the heart of openSUSE’s package management) needed to be adjusted and ported.

So, for a while it was not clear on how to proceed, until at the recent hackathon, Stephan “coolo” Kulow ported the PK zypp backend to the newer PackageKit version. Once that issue was solved, the KDE team was able to update Apper to the latest version (0.8) and push it to the distribution. So openSUSE 12.3 (KDE) will make use of Apper as main method of notification for updates.

I would like to stress that Apper is not meant as a full blown replacement of YaST or zypper, but mainly as a way to handle distro and maintenance updates, integrated with the KDE Workspaces.

The Apper program is actually divided into two pieces: the main application itself and a plasmoid. We’ve been testing the plasmoid the past weeks and consensus is that it’s not yet ready to be pushed to users, so only the main application will get installed by default.
When you have new updates, an icon will pop in the system tray informing you:

Update notification

Clicking on it will bring up the main interface, where you can review and select the updates:

Update interface

Afterwards, the update process will start.

Of course, such an addition means that more testing is required, to ensure that outstanding bugs get fixed before the openSUSE 12.3 release. Therefore, if you are willing to test – jump aboard!

KDE Workspaces and Applications 4.10 on live images courtesy of openSUSE

The 4.10 release for the KDE Development Platform, Workspaces and Applications is drawing nigh… as you may have read, there is now an additional release candidate in order to test some last-minute changes.

Of course, the KDE developers can only do so much: it’s impossible to test all possible combinations. That is, unless the community at large helps by finding and reporting issues the developers can fix. But doing so requires a 4.10 install. You can of course use packages from distributions, but you may not feel comfortable installing a prerelease on your system (and no one would blame you for that). Of course, if you had something to test without touching your own system…

And that’s exactly what you can do now. Alin and shumski from the openSUSE KDE team have generated live images (based on openSUSE 12.2) for USB and DVD offering a standard 4.10 install, which should provide enough to try the new release and be able to report bugs to the developers.

Some screenshots for the impatient:

Desktop Dolphin Gwenview Amarok

And of course, the  download links (EDIT: now fixed for good!):

It’s more than 650 Mb, so it won’t fit on a CD, but it will on an USB stick. Follow these instructions to install them to USB media. You can also burn these images to DVD.

If you decide to use it, don’t forget to test (see here what’s needed) and submit detailed bug reports to the developers.

Let’s make 4.10 rock solid!