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 Telegram client "telegram-cli" in the jail

How to compile telegram-cli directly on the BQ. Make sure you have in the above constructed jail (see chap. 30) a working gcc:

# apt-get update
# apt-get install install gcc libc6-dev

Download the sources with 'git', and install its dependency. The required Python does not match the installed version:

# apt-get install git
# apt-get install libreadline-dev libconfig-dev libssl-dev                                  
# apt-get install lua5.2 liblua5.2-dev libevent-dev libjansson-dev make
$ git clone --recursive https://github.com/vysheng/tg.git
$ cd tg
$ ./configure  --disable-python
...
$ sudo mkdir /etc/telegram-cli
$ sudo cp server.pub /etc/telegram-cli
$ cp telegram-cli ..
$ ~/telegram-cli
Telegram-cli version 1.3.3, Copyright (C) 2013-2015 Vitaly Valtman
Telegram-cli comes with ABSOLUTELY NO WARRANTY; for details type `show_license'.
This is free software, and you are welcome to redistribute it
under certain conditions; type `show_license' for details.
Telegram-cli uses libtgl version 2.0.3
Telegram-cli includes software developed by the OpenSSL Project
for use in the OpenSSL Toolkit. (http://www.openssl.org/)
I: config dir=[/home/phablet/.telegram-cli]
> contact_list 
Emil Apitz
...

Now Emil sends a message from his mobile 'Got it?' which arrives in telegram-cli and I replied with 'ok'

[12:17]  Emil Apitz >>> Got it?
> msg Emil_Apitz ok
[12:18]  Emil Apitz <<< ok
User Emil Apitz marked read 1 outbox and 0 inbox messages

Note: The user Emit sent the message 'Got it?' and I received it with the Telegram client telegram-cli, and read it, but it stays in the device of Emil with only one single marker 'v'. This is what we wanted to have as PRIVACY.

And here is how to run this from outside the jail:

#!/bin/sh
# to run the telegram-cli which we have compiled in a jail below /home/phablet/myRoot
# from outside the jail
#
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/home/phablet/myRoot/usr/lib/arm-linux-gnueabihf
export LD_LIBRARY_PATH
eval ~/myRoot/home/phablet/telegram-cli -k ~/myRoot/etc/telegram-cli/server.pub

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

PreviousGPS, maps && apps (uNav)NextSending SMS from shell

Last updated 5 years ago

Was this helpful?