BQ Aquaris E 4.5 Ubuntu phone
  • Initial page
  • LANGS
  • Cosas que he aprendido al usar el teléfono BQ Aquaris E4.5, basado en Ubuntu
    • Summary
    • ¿Cómo configurar el acceso por SSH al teléfono a través de Wi-Fi?
    • Using IRC - the weechat application
    • El menú para comprobar el hardware
    • Compiling the MUA mutt and making a click app of it (UNFINISHED)
    • El cliente de correo Dekko
    • Compiling the Telegram client "telegram-cli" in the jail
    • Mandar mensajes SMS desde la línea de comandos (shell)
    • Installing an additional root FS and run 'mutt'
    • Desarrollar aplicaciones y el SDK (no revisado hasta ahora)
    • Instalación del firmware en el teléfono
    • Cambiar las aplicaciones (core-apps) mostradas en scope de aplicaciones
    • Historial del navegador Web
    • Acceso a registro (logs) del dispositivo BQ
    • Enlaces útiles
    • Histórico de llamadas y SMS
    • Cambiar las teclas de control de la aplicación de terminal
    • Importar y exportar contactos
    • Red inalámbrica: Usar el teléfono como punto de acceso (hotspot) a Internet
    • Leer contenido local de HTML con un navegador
    • Eliminar la información privada
    • Configuración en el ordenador(Linux/FreeBSD) usando el móvil conectado a Internet con tethering por
    • Other usefull commands (unsorted)
    • Reiniciar el escritorio Unity
    • Lanzar apps desde la línea de comandos del usuario phablet(shell)
    • Cortafuegos
    • Using ubuntu-device-flash
    • El archivo de configuración del GPRS
    • ssh localhost
    • Grabar la pantalla del teléfono(MIR) para presentaciones, charlas, etcétera hacia un ordenador(X11)
    • Exporting notes from app 'reminder'
    • Tareas de Cron
    • chapter30
    • GPS, maps && apps (uNav)
    • Red por USB: tethering
    • Notas sobre algunos aspectos del hardware
    • Dónde quedan guardados los ficheros (imágenes, documentos, etc.)
  • What I have learned about the Ubuntu mobile phone BQ Aquaris E4.5
    • Exporting notes from app 'reminder'
    • Cron jobs
    • chapter30
    • Summary
    • Using IRC - the weechat application
    • Import and export of Contacts
    • Wireles networking: The BQ as an AccessPoint (hotspot)
    • Some hints for your Linux/FreeBSD netbook using the BQ with USB tethering as a router to Internet
    • Firewall
    • Hardware test menus
    • Capturing the MIR screen for presentation, talks etc. on a X11 desktop
    • Compiling the MUA mutt and making a click app of it (UNFINISHED)
    • The MailUserAgent (MUA) Dekko
    • GPS, maps && apps (uNav)
    • Compiling the Telegram client "telegram-cli" in the jail
    • Sending SMS from shell
    • USB networking: tethering
    • Installing an additional root FS and run 'mutt'
    • Developmen and SDK (completely UNTESTED until now)
    • Notes about some hardware aspects
    • Flashing the device
    • How to alter presented apps in the app scope
    • Where the files (pictures, ...) end up
    • Webbrowser history
    • Access to logs in the device
    • How to get SSH access to the ubuntu-phone via Wifi
    • Usefull links
    • Call and SMS history
    • Reading local HTML content with a browser
    • Sanitisation
    • How to alter presented keyboard's Control keys
    • Other usefull commands (unsorted)
    • Restart the Unity UI
    • How to lauch apps from the phablet's cmd line
    • Using ubuntu-device-flash
    • GPRS config file
    • ssh localhost
Powered by GitBook
On this page

Was this helpful?

  1. What I have learned about the Ubuntu mobile phone BQ Aquaris E4.5

Compiling the MUA mutt and making a click app of it (UNFINISHED)

We compile the MUA 'mutt' in the same jail as used above. It requires some more dev infrastructure:

# apt-get install libncursesw5-dev
phablet@ubuntu-phablet:~$ sudo chroot myRoot
root@ubuntu-phablet:/# su phablet
phablet@ubuntu-phablet:/$ cd
phablet@ubuntu-phablet:~$ cd mutt-1.5.23
phablet@ubuntu-phablet:~/mutt-1.5.23$

I configured mutt with the following values (in a small script c.sh):

$ cat c.sh
./configure --with-curses --with-sasl=/usr --disable-fcntl 
            --with-ssl=/usr --enable-external-dotlock --enable-pop 
            --enable-imap --disable-warnings --disable-flock 
            --enable-locales-fix --with-idn=no --disable-gpgme --enable-smtp 
            --enable-debug
$ make clean ; sh c.sh && make

the resulting bin needs the following shared libs:

$ ldd ./mutt
    libncursesw.so.5 => /lib/arm-linux-gnueabihf/libncursesw.so.5 (0xb6f9b000)
    libtinfo.so.5 => /lib/arm-linux-gnueabihf/libtinfo.so.5 (0xb6f70000)
    libssl.so.1.0.0 => /lib/arm-linux-gnueabihf/libssl.so.1.0.0 (0xb6f29000)
    libcrypto.so.1.0.0 => /lib/arm-linux-gnueabihf/libcrypto.so.1.0.0 (0xb6e11000)
    libsasl2.so.2 => /usr/lib/arm-linux-gnueabihf/libsasl2.so.2 (0xb6df0000)
    libc.so.6 => /lib/arm-linux-gnueabihf/libc.so.6 (0xb6d02000)
    /lib/ld-linux-armhf.so.3 (0xb6fde000)
    libdl.so.2 => /lib/arm-linux-gnueabihf/libdl.so.2 (0xb6cee000)

and in addition (via libdl.so.2):

$ ls -l /usr/lib/arm-linux-gnueabihf/sasl2/
total 148
lrwxrwxrwx 1 root root    22 mar 10 10:15 libanonymous.so -> libanonymous.so.2.0.25
lrwxrwxrwx 1 root root    22 mar 10 10:15 libanonymous.so.2 -> libanonymous.so.2.0.25
-rw-r--r-- 1 root root 13728 mar 10 10:15 libanonymous.so.2.0.25
lrwxrwxrwx 1 root root    20 mar 10 10:15 libcrammd5.so -> libcrammd5.so.2.0.25
lrwxrwxrwx 1 root root    20 mar 10 10:15 libcrammd5.so.2 -> libcrammd5.so.2.0.25
-rw-r--r-- 1 root root 13740 mar 10 10:15 libcrammd5.so.2.0.25
lrwxrwxrwx 1 root root    22 mar 10 10:15 libdigestmd5.so -> libdigestmd5.so.2.0.25
lrwxrwxrwx 1 root root    22 mar 10 10:15 libdigestmd5.so.2 -> libdigestmd5.so.2.0.25
-rw-r--r-- 1 root root 38524 mar 10 10:15 libdigestmd5.so.2.0.25
lrwxrwxrwx 1 root root    18 mar 10 10:15 liblogin.so -> liblogin.so.2.0.25
lrwxrwxrwx 1 root root    18 mar 10 10:15 liblogin.so.2 -> liblogin.so.2.0.25
-rw-r--r-- 1 root root 13728 mar 10 10:15 liblogin.so.2.0.25
lrwxrwxrwx 1 root root    17 mar 10 10:15 libntlm.so -> libntlm.so.2.0.25
lrwxrwxrwx 1 root root    17 mar 10 10:15 libntlm.so.2 -> libntlm.so.2.0.25
-rw-r--r-- 1 root root 21924 mar 10 10:15 libntlm.so.2.0.25
lrwxrwxrwx 1 root root    18 mar 10 10:15 libplain.so -> libplain.so.2.0.25
lrwxrwxrwx 1 root root    18 mar 10 10:15 libplain.so.2 -> libplain.so.2.0.25
-rw-r--r-- 1 root root 13728 mar 10 10:15 libplain.so.2.0.25
lrwxrwxrwx 1 root root    19 mar 10 10:15 libsasldb.so -> libsasldb.so.2.0.25
lrwxrwxrwx 1 root root    19 mar 10 10:15 libsasldb.so.2 -> libsasldb.so.2.0.25
-rw-r--r-- 1 root root 17744 mar 10 10:15 libsasldb.so.2.0.2

We move out of jail and create a top level dir for our new 'app'

phablet@ubuntu-phablet:~$ mkdir ~/mutt.clico
phablet@ubuntu-phablet:~$ cp -p myRoot/home/phablet/mutt-1.5.23/mutt  ~/mutt.clico
phablet@ubuntu-phablet:~$ cp -p myRoot/home/phablet/mutt-1.5.23/mutt_dotlock  ~/mutt.clico

In addition we need some files and the above mentioned shared libs below ~/mutt.clico:

phablet@ubuntu-phablet:~$ find mutt.click/
mutt.click/
mutt.click/lib
mutt.click/lib/arm-linux-gnueabihf
mutt.click/lib/arm-linux-gnueabihf/libanonymous.so
mutt.click/lib/arm-linux-gnueabihf/libanonymous.so.2
...
mutt.click/lib/arm-linux-gnueabihf/libpython2.7.so.1.0
mutt.click/lib/arm-linux-gnueabihf/libsasl2.so.2
mutt.click/.muttrc
mutt.click/mutt_dotlock
mutt.click/mutt
mutt.click/Mail
mutt.click/tmp
mutt.click/.mutt-mail_aliases
mutt.click/signature
mutt.click/.mailcap
mutt.click/mutt.sh

mutt.click/evolution-mail.svg
mutt.click/ubuntu-mutt-app.desktop
mutt.click/ubuntu-mutt-app.json
mutt.click/manifest.json

The file mutt.sh sirves later to launch mutt with the correct environment:

#!/bin/sh
# to run the MUA mutt which we have compiled in a jail below /home/phablet/myRoot
# from outside the jail

LD_LIBRARY_PATH=/home/phablet/mutt.click/lib/arm-linux-gnueabihf
export LD_LIBRARY_PATH

SASL_PATH=/home/phablet/mutt.click/lib/arm-linux-gnueabihf
export SASL_PATH

MUTT=/home/phablet/mutt.click/mutt

cd
$MUTT -F ./.muttrc

With a well constructed .muttrc file it works fine to read (IMAPS) and send (SMTP AUTH) mails.

We even tried zo build our 1st 'click app' from this: construct the requested files:

mutt.click/evolution-mail.svg
mutt.click/ubuntu-mutt-app.desktop
mutt.click/ubuntu-mutt-app.json
mutt.click/manifest.json

and run:

# click build mutt.click
Successfully built package in './com.ubuntu.developer.mapitz.ubuntu-mutt-app_0.1_all.click'.

install it with:

$ pkcon --allow-untrusted install-local  com.ubuntu.developer.mapitz.ubuntu-mutt-app_0.1_all.click
Instalando archivos           [=========================]         
Finalizado                    [=========================]         
Instalando archivos           [=========================]         
Esperando autenticación      [=========================]         
Comenzando                    [=========================]         
Finalizado                    [=========================]         
Instalado       com.ubuntu.developer.mapitz.ubuntu-mutt-app-0.1. (installed:click,removable=1,app_name=ubuntu-mutt-app)    summary goes here

and try to register is (which fails):

$ sudo click udo click register --user=phablet com.ubuntu.mutt-terminal_0.1._multiegister --user=phablet com.ubuntu.developer.mapitz.ubuntu-mutt-app 0.1

** (process:1270): WARNING **: Desktop file '/opt/click.ubuntu.com/.click/users/phablet/com.ubuntu.developer.mapitz.ubuntu-mutt-app/ubuntu-mutt-app.desktop' is set to run in a terminal, not copying

after changing in the file mutt.click/ubuntu-mutt-app.desktop Terminal=false

the register goes fine, the icon is in the Applications but does not work because there is no way to start a click app which needs a terminal to run inside :-(

$ sudo click unregister com.ubuntu.developer.mapitz.ubuntu-mutt-app 0.1

Last updated: Sat Oct 17 16:11:03 CEST 2015

PreviousCapturing the MIR screen for presentation, talks etc. on a X11 desktopNextThe MailUserAgent (MUA) Dekko

Last updated 5 years ago

Was this helpful?

https://bugs.launchpad.net/ubuntu-terminal-app/+bug/1484412