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. Cosas que he aprendido al usar el teléfono BQ Aquaris E4.5, basado en Ubuntu

Red por USB: tethering

Queremos conectar un ordenador por cable USB con el móvil y correr TCP/IP sobre tal anclaje, tal vez hasta conectarnos a Internet, como en este esquema:

ordenador ---(USB)---> BQ ---(datos del móvil) ---> Internet

El dispositivo ofrece soporte de tethering y tenemos que configurarlo, usando la aplicación de terminal:

$ android-gadget-service enable rndis

Lo ejecuto cada vez que reinicio el móvil desde el terminal con un pequeño scipt ~/rndis.sh:

#!/bin/sh
android-gadget-service enable rndis

Para hacer esto más fácil, he asociado el lanzamiento de ~/rndis.sh a una tecla de control en la aplicación de terminal.

Dicho script cambia el protocolo utilizado por el puerto USB de MTP a tethering y crea una interfaz de red con nombre rndis0 y le asigna la dirección IP 10.42.0.1. Ubuntu en el teléfono, corre un servicio de DHCP que ofrece al ordenador, al otro lado de la conexión, un número de IP en la misma subred, por ejemplo 10.42.0.19. También ofrece servicio de DNS si el móvil está conectado a Internet.

Conectarse al móvil por SSH es tan fácil como hacer:

$ ssh phablet@10.42.0.1
Welcome to Ubuntu Utopic Unicorn (development branch) (GNU/Linux 3.4.67 armv7l) > 
...
$ netstat -rn
Kernel IP routing table
Destination     Gateway         Genmask         Flags   MSS Window  irtt Iface
0.0.0.0         192.168.2.1     0.0.0.0         UG        0 0          0 wlan0
10.42.0.0       0.0.0.0         255.255.255.0   U         0 0          0 rndis0
172.28.23.131   0.0.0.0         255.255.255.255 UH        0 0          0 ccmni0
192.168.2.0     0.0.0.0         255.255.255.0   U         0 0          0 wlan0

Queda la cuestión de si se puede hacer el cambio a tethering de forma permanente. Oliver Grawert ha dicho en la lista:

Oliver Grawert:
you can't, it is hardcoded on boot to always have working mtp (until
there is a UI option to turn it on or off, we want regular users to
always be able to exchange files), but you can override it in a user
pstart job that runs at a later point ...

Create /home/phablet/.config/upstart/rndis.conf with the following
content:

--------------- snip ------------------
start on started indicator-network

task

script
    android-gadget-service enable rndis
end script

--------------- snap ----------------

When the interface rndis0 is enabled, somehow HTTPS access to
the Ubuntu's app store is no longer possible; investigating ...

Última actualización: jueves, 19 de noviembre de 2015, 20:44:29 CET

PreviousGPS, maps && apps (uNav)NextNotas sobre algunos aspectos del hardware

Last updated 5 years ago

Was this helpful?