Difference between revisions of "Practical Computer Matters"
(18 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
== HTC P3470 (Pharos) == | == HTC P3470 (Pharos) == | ||
− | I've recently bought a HTC P3470 (Pharos) smartphone / PDA. This device combines combines mobile phone, satnav, and organiser functionality. However, the jack of all trades is a master of none... there are things that remain to be wished for. My current unresolved issues include: | + | I've (not so recently) bought a HTC P3470 (Pharos) smartphone / PDA. This device combines combines mobile phone, satnav, and organiser functionality. However, the jack of all trades is a master of none... there are things that remain to be wished for. My current unresolved issues include: |
* File transfer: I can use the <code>obexftp</code> program to transfer any file via Bluetooth from my Linux laptop to the P3470. However, getting files doesn't work, unless the files are <code>.vcf</code> or <code>.vcx</code> files. | * File transfer: I can use the <code>obexftp</code> program to transfer any file via Bluetooth from my Linux laptop to the P3470. However, getting files doesn't work, unless the files are <code>.vcf</code> or <code>.vcx</code> files. | ||
Line 19: | Line 19: | ||
* run <code>tail -f /var/log/messages </code>and connect the dongle to the computer. The message <code>usbcore: registered new interface driver hci_usb</code> indicates that the dongle has been recognised correctly. | * run <code>tail -f /var/log/messages </code>and connect the dongle to the computer. The message <code>usbcore: registered new interface driver hci_usb</code> indicates that the dongle has been recognised correctly. | ||
* turn on Bluetooth on the mobile device, and make the device discoverable (on the HTC P3470, go to Settings -> Connections -> Bluetooth -> Mode for this). Then, run <code>hcitool scan</code> to find out the MAC address of the device. | * turn on Bluetooth on the mobile device, and make the device discoverable (on the HTC P3470, go to Settings -> Connections -> Bluetooth -> Mode for this). Then, run <code>hcitool scan</code> to find out the MAC address of the device. | ||
− | * Debian specific: Compile the passkey agent, provided in <code>/usr/share/doc/bluez-utils/examples</code> | + | * Debian specific: Compile the passkey agent, provided in <code>/usr/share/doc/bluez-utils/examples</code>. I've put the compiled program in <code>/usr/local/bin</code> for convenience. Then, run <code>passkey-agent --default <var>some key</var></code>. |
+ | ** The bluetooth subsystem must be up for the <code>passkey-agent</code> to work. | ||
+ | ** The passkey agent is necessary to establish the first connection, but it may not be necessary subsequently. | ||
* If the device allows file transfer (on the HTC P3470, use Settings -> Connections -> Bluetooth -> FTP), you can use <code>obexftp</code> to list files on the mobile and to transfer files -- if the mobile device cooperates. (The HTC P3470 doesn't, see above). | * If the device allows file transfer (on the HTC P3470, use Settings -> Connections -> Bluetooth -> FTP), you can use <code>obexftp</code> to list files on the mobile and to transfer files -- if the mobile device cooperates. (The HTC P3470 doesn't, see above). | ||
+ | |||
+ | === Bluetooth File Transfer === | ||
+ | |||
+ | Files can be "pushed" from the HTC P3470 to the Linux box by running | ||
+ | hciconfig hci0 piscan | ||
+ | obexpushd -B | ||
+ | on the Linux box, and then choosing to "beam" the file. | ||
+ | |||
+ | |||
+ | === Bluetooth Audio (Headsets) === | ||
+ | |||
+ | * http://wiki.bluez.org/wiki/HOWTO/AudioDevices | ||
+ | |||
+ | == Nokia N900 == | ||
+ | |||
+ | Recently I got myself a Nokia N900. I'm still in early stages of exploring it. So far I quite like it. Being able to ssh into my mobile is really neat and useful. X11 forwarding from the N900 to e.g. a laptop doesn't work, however, as there's no xauth program on the N900 (or I haven't found one yet). | ||
+ | |||
+ | Unfortunately it seems that the N900 does not currently work too well with external Bluetooth keyboards. Apparently there are some X11 keymapping issues. | ||
+ | |||
+ | Some useful links: | ||
+ | |||
+ | * [http://sumoudou.org/%E7%9B%B8%E6%92%B2%E5%A4%96%E%B%9AGNU%20Emacs%20for%20Nokia%20N900.html GNU Emacs for the N900] | ||
+ | * [http://talk.maemo.org/ Maemo talk (user forums)] | ||
+ | * [http://wiki.maemo.org/Documentation/Maemo_5_Developer_Guide/Development_Environment/Maemo_SDK Maemo SDK] | ||
+ | * [http://blogs.gnome.org/tthurman/2009/09/03/writing-apps-for-the-n900-part-1/ Writing Apps for the N900] | ||
+ | * [http://mint.camswl.com/openjdk.htm OpenJDK for ARM] | ||
+ | |||
+ | == Digital Images == | ||
+ | |||
+ | The <code>exiftran</code> application enables lossless and EXIF aware rotation of JPEG images. Rotating images according to their EXIF orientation tag is particularly useful: | ||
+ | exiftran -i -a *.jpg | ||
+ | |||
+ | The <code>exif</code> application displays the [http://www.digicamsoft.com/exif22/exif22/html/exif22_1.htm EXIF (Exchangeable Image File Format)] information contained in JPEG images, and it can also extract thumbnail images from such JPEG files. | ||
+ | |||
+ | == Encrypted File System Setup == | ||
+ | |||
+ | * [http://www.ubuntusolutions.org/2009/03/how-to-create-encrypted-usb-drive.html How to create an encrypted USB drive? (UbuntuSolutions)] | ||
+ | * [http://www.emcken.dk/weblog/archives/164-Encrypted-USB-drive-in-Ubuntu.html Encrypted USB drive in Ubuntu (Jacobs Weblog)] | ||
+ | |||
+ | |||
+ | == Java Stuff == | ||
+ | |||
+ | === Libraries === | ||
+ | |||
+ | * [http://rsbweb.nih.gov/ij/ ImageJ] | ||
+ | === JBoss === | ||
+ | Web services don't run out of the box with JBoss 5.1.0, see | ||
+ | https://jira.jboss.org/jira/browse/JBWS-1439 for a fix. For JBoss 5.1.0, the files to be copied to $JBOSS_HOME/lib/endorsed are | ||
+ | jbossws-native-jaxrpc.jar | ||
+ | jbossws-native-jaxws.jar | ||
+ | jbossws-native-saaj.jar | ||
+ | |||
+ | |||
+ | == Typesetting and Text Processing == | ||
+ | |||
+ | * [https://blog.documentfoundation.org/blog/2020/09/08/libreoffice-tt-replacing-microsoft-fonts Replacing MS Fonts] for LibreOffice | ||
+ | [[Category:Computing]] |
Latest revision as of 16:17, 23 November 2020
Contents
HTC P3470 (Pharos)
I've (not so recently) bought a HTC P3470 (Pharos) smartphone / PDA. This device combines combines mobile phone, satnav, and organiser functionality. However, the jack of all trades is a master of none... there are things that remain to be wished for. My current unresolved issues include:
- File transfer: I can use the
obexftp
program to transfer any file via Bluetooth from my Linux laptop to the P3470. However, getting files doesn't work, unless the files are.vcf
or.vcx
files. - GPS logging: I'd like to create traces of my movements with GPS, e.g. to contribute to the Open Street Map project. However, I haven't found an application that works reasonably.
Probably I could have spared myself from these troubles by getting a Freerunner from openmoko. I'll seriously consider that if they release a model with GPS.
Setting up Bluetooth on Linux (Debian)
My main interest in bluetooth is for file transfer, I haven't tried using a mobile phone as a modem (for accessing the Internet), or as a speaker / headset etc. Setting up Bluetooth was relatively straightforward for me:
- get a USB Bluetooth dongle
- Debian packages I've installed and which I think are required to use Bluetooth:
bluetooth
bluez-hcidump
bluez-utils
libbluetooth2
- run
tail -f /var/log/messages
and connect the dongle to the computer. The messageusbcore: registered new interface driver hci_usb
indicates that the dongle has been recognised correctly. - turn on Bluetooth on the mobile device, and make the device discoverable (on the HTC P3470, go to Settings -> Connections -> Bluetooth -> Mode for this). Then, run
hcitool scan
to find out the MAC address of the device. - Debian specific: Compile the passkey agent, provided in
/usr/share/doc/bluez-utils/examples
. I've put the compiled program in/usr/local/bin
for convenience. Then, runpasskey-agent --default some key
.- The bluetooth subsystem must be up for the
passkey-agent
to work. - The passkey agent is necessary to establish the first connection, but it may not be necessary subsequently.
- The bluetooth subsystem must be up for the
- If the device allows file transfer (on the HTC P3470, use Settings -> Connections -> Bluetooth -> FTP), you can use
obexftp
to list files on the mobile and to transfer files -- if the mobile device cooperates. (The HTC P3470 doesn't, see above).
Bluetooth File Transfer
Files can be "pushed" from the HTC P3470 to the Linux box by running
hciconfig hci0 piscan obexpushd -B
on the Linux box, and then choosing to "beam" the file.
Bluetooth Audio (Headsets)
Nokia N900
Recently I got myself a Nokia N900. I'm still in early stages of exploring it. So far I quite like it. Being able to ssh into my mobile is really neat and useful. X11 forwarding from the N900 to e.g. a laptop doesn't work, however, as there's no xauth program on the N900 (or I haven't found one yet).
Unfortunately it seems that the N900 does not currently work too well with external Bluetooth keyboards. Apparently there are some X11 keymapping issues.
Some useful links:
Digital Images
The exiftran
application enables lossless and EXIF aware rotation of JPEG images. Rotating images according to their EXIF orientation tag is particularly useful:
exiftran -i -a *.jpg
The exif
application displays the EXIF (Exchangeable Image File Format) information contained in JPEG images, and it can also extract thumbnail images from such JPEG files.
Encrypted File System Setup
- How to create an encrypted USB drive? (UbuntuSolutions)
- Encrypted USB drive in Ubuntu (Jacobs Weblog)
Java Stuff
Libraries
JBoss
Web services don't run out of the box with JBoss 5.1.0, see https://jira.jboss.org/jira/browse/JBWS-1439 for a fix. For JBoss 5.1.0, the files to be copied to $JBOSS_HOME/lib/endorsed are
jbossws-native-jaxrpc.jar jbossws-native-jaxws.jar jbossws-native-saaj.jar
Typesetting and Text Processing
- Replacing MS Fonts for LibreOffice