Hola, Ubuntu Mate 16.04

Facebooktwitterredditpinterestlinkedinmail


[In English]

Después de casi 10 años (yo es que cuido mucho el material :)) he sustituido el portátil del despacho por uno nuevo (un HP Probook 470 G5). Lo primero que he hecho ha sido cambiarle el sistema operativo, y estos son los pasos que he seguido para hacer una instalación live de Ubuntu Mate 16.04.3 desde un pendrive, que no es un proceso muy complicado… si todo va bien, claro 😛 , por eso  el portátil no tiene ningún hardware muy exquisito, y la gráfica es Intel para evitar problemas.

  1. Descargar la  .iso desde la página de Ubuntu Mate.
  2. Crear un pendrive USB live con esa .iso. Yo he utilizado el Creador de discos de arranque que viene instalado en el XUbuntu que tengo instalado en la máquina de casa.
  3. Insertar el pendrive live en el portátil donde se quiere instalar el Ubuntu Mate y arrancar. La secuencia de arranque de la UEFI que venía por defecto en el HP no tenía activada el arranque desde pendrive, así que he tenido que entrar en la UEFI (pulsando f2 continuamente al arrancar el portátil) y activarla.
  4. Reiniciar el equipo para que arranque desde el pendrive. Si todo ha ido bien, debería arrancar con Ubuntu.
  5. Cosas a comprobar antes de instalar definitivamente el sistema operativo: red y sonido. Si ambas cosas funcionan, hale, a instalarrrrr 🙂 Todo este proceso, es decir, los pasos del 1 al 5, me ha podido llevar una hora y media aproximadamente.
  6. Para terminar, una vez instalado el sistema operativo, haz una actualización del software con el gestor de paquetes Synaptic , para asegurarte así de que tienes la última versión de las aplicaciones incluidas en el sistema operativo. Esta actualización ha tardado una hora aproximadamente.


[En español]

After 10 years (I care a lot about my stuff :)) I have changed my office laptop and now I got a HP  Probook 470 G5. The first thing I did was  to change the operative system, and these are the steps I have followed in order to make a live Ubuntu Mate 16.04.3 installation from a pendrive. As you can see it is not complicated… if everything goes ok, of course 😛 , that’s why I chose an Intel graphic card and no exquisite hardware for the laptop.

  1. Download the  .iso from the Ubuntu Mate webpage.
  2. Create a USB live pendrive using that .iso. I have used the Startup disk creator included in the Xubuntu installed in my home laptop.
  3. Insert the pendrive in the laptop where you want to install Ubuntu Mate and then boot the computer. The default boot sequence of the HP’s UEFI did not included the pendrive, so I had to add it by entering into the UEFI (pressing f2 continuosly while the laptop boots).
  4. Reboot the laptop so it boots from the pendrive. If everything went ok, it should run Ubuntu.
  5. Before installing Ubuntu as your operative system, check if the network and the sound works. If so, proceed with the installation. This procedure, that is, steps 1 to 5, took about an hour and a half aprox.
  6. Finally, once you have installed the operative system, update the software using the Synaptic manager, to ensure you have the last versions of all the software in your laptop. This update took about one hour.

Hola, Asus Eee 701 :)

Facebooktwitterredditpinterestlinkedinmail


[In English]

Hace años me compré un Asus Eee 701 al que le tengo mucho cariño y me ha resultado bastante útil. Desde hace tiempo tiraba con un Ubuntu 10, pero con esa versión tan obsoleta últimamente apenas podía hacer nada con él.

Como ahora me vuelve a hacer falta el Asus, he intentado actualizarle el S.O. Intenté primero usar CloudReady, una opción que me pareció interesante, pero tras pelearme un poquillo con la instalación (hace falta usar la Chromebook Recovery Utility, que sólo puede usarse con un Chrome sobre Windows), resultó que sólo funciona en versiones superiores del Eee.

Finalmente, encontré esta utilísima entrada del blog La Web del Yuyo (¡gracias :)!), donde se explicaba cómo instalar un Lubuntu 14.04. Al final del post podéis ver el feliz resultado 🙂


[En español]

A few years ago I got an Asus Eee 701 which I really love and proved to be very useful. It run an Ubuntu 10, but it was so that lately I could not work with it at all.

Now I need my Asus again, so I looked for ideas to update the O.S. First I tried CloudRead, which seems to be a very interesting option, but after struggling a little with the installation process (you need to use the Chromebook Recovery Utility, that is only available in Chrome running on Windows), it turned out that only works with higher versions of the Eee.

Finally, I found this really useful post in “La Web del Yuyo” blog (in Spanish) that explained how to install Lubuntu 14.04 in the Asus. Here you can see the happy ending 🙂

IMG_20160613_073659

Android Studio + NDK + Windows 7

Facebooktwitterredditpinterestlinkedinmail


[In English]

Estos son los pasos necesarios para instalar Android Studio y NDK sobre Windows 7 (en colaboración con Juan Antonio Fernández Madrigal)

Consideraciones previas

  • No es posible instalarlo en una máquina virtual, ya que el emulador necesita para funcionar virtualización, no disponible dentro de una máquina virtual.
  • Hacen falta bastantes gigas de disco para instalarlo todo, así que hay que asegurarse de tener suficiente espacio.
  • Aquí pueden encontrarse tutoriales para aprender a programar con Android Studio.
  • Bibliografía disponible en Jábega (catálogo de la Biblioteca de la Universidad de Málaga)
    • El Gran libro de Android : [actualizado a la versión KitKat y Android L Preview] / Jesús Tomás Gironés
    • Building Android apps / Mike McGrath
    • Manual imprescindible de desarrollo de aplicaciones para Android. Edición 2015/ Joan Ribas Lequerica
    • Profesional Android open accesory programing with Arduino[Recurso electrónico]/ Andreas Göransson,
    • Android Studio application development [Recurso electrónico] / Belén Cruz Zapata.

Primer paso: instalación de Java

  1. Obtener de el Java jdk 8 (a partir del 7 ya vale), no el jre, que sólo es el entorno de ejecución. En Windows 7 simplemente se baja y ejecuta el instalador .exe. Después es necesario incluir manualmente el path de Java (y de su directorio bin) en la variable de entorno de Windows 7 Path; si alguien no encuentra el path de Java, puede buscar dónde se ha realizado la instalación en Java Mission Control, el programa de configuración de Java que se instala también.

Segundo paso: instalación de Android Studio 

  1. Descargar Android Studio Bundle de la web (para Windows es un ejecutable), ejecutar el .exe y aceptar todo en la Standard Installation.
  2. Una vez instalado, ejecutar Tools -> Android -> SDK Manager  y marcar para instalar las build-tools 21 y la API 21. También es necesario instalar Froyo (2.2. API 8). Esto puede tardar bastante, sobre todo por wifi.
  3. En Configure->Project Defaults->Project structure completar los paths del SDK y de Java. Volver hacia atrás y empezar un nuevo proyecto (Blank Activity) que use la API 8 (Froyo). En el desplegable del rendering de la aplicación, usar la 21 en vez de la 22.
  4. En File -> Settings -> Build, Execution, Deployment -> Build Tools -> Gradle, activar la casilla Offline work (si no, la compilación y ejecución son lentísimas). El problema de la lentitud de Android Studio en Windows 7 y esta solución se comentan en este enlace de Stackoverflow.
  5. En Tools -> Android -> AVD Manager añadir, al Nexus 5 API 22, un Samsung Galaxy con la cámara trasera emulada. Desactivar la opción Use Host GPU. Es especialmente lento el arranque la primera vez y cuando se crea una nueva aplicación y tiene que empezar el indexado.

Tercer paso: instalación de NDK

  1. Este paso es muy sencillo: en Tools ->  Android -> SDK Manager-> SDK Tools -> Android NDK

Desarrollo de aplicaciones


[En español]

These are the steps to follow in order to install Android Studio and NDK on Windows 7 (post written in collaboration with Juan Antonio Fernández Madrigal)

Preliminary requests

  • This software cannot be installed on a virtual machine, since the emulator requires virtualization tools, which are not available in a virtual machines.
  • Both programs are quite demanding in hard drive space: be sure you have enough before you begin the installation.
  • Here you can find several tutorials to learn how to program with Android Studio.
  • Brief list of suggested readings (all of them available at Jábega, the catalogue of the Library of Málaga University)
    • El Gran libro de Android : [actualizado a la versión KitKat y Android L Preview] / Jesús Tomás Gironés
    • Building Android apps / Mike McGrath
    • Manual imprescindible de desarrollo de aplicaciones para Android. Edición 2015/ Joan Ribas Lequerica
    • Profesional Android open accesory programing with Arduino [Recurso electrónico]/ Andreas Göransson,
    • Android Studio application development [Recurso electrónico] / Belén Cruz Zapata.

First step: installing Java

  1. Get Java jdk 8 (though it works from jdk 7); it is important to choose jdk and not jre (jre is just the running environment). For Windows 7 just download and run the .exe file. After that, you have to manually add the path (and its bin folder) to the Windows 7 environment variable Path; if you do not know which is that Java path, you can check it using Java Mission Control, the Java configuration application that has been installed along with Java.

Second step: installing Android Studio

  1. Download Android Studio Bundel from the web (for Windows is an executable file), run the .exe and accept every default option of the Standard Installation.
  2. After that, go to Tools -> Android -> SDK Manager and check for installing the build-tools 21 and API 21. You also have to install Froyo (2.2. API 8). This can take a long time, especially if you are connected through a wifi.
  3. Go to Configure->Project Defaults->Project structure and add the paths of the SDK and Java. Go back and start a new project (Blank Activity) with API 8 (Froyo).  Choose, in the dropdown control  for rendering, version 21 instead of 22.
  4. In File -> Settings -> Build, Execution, Deployment -> Build Tools -> Gradle, check the Offline work box (if not, compilation and execution are painfully slow). This issue about Android Studio being so slow under Windows 7 and its solution are explained in this link at Stackoverflow.
  5. Add, using Tools -> Android -> AVD Manager, a new Samsung Galaxy device with emulated back camera. Uncheck the box Use Host GPU. It is especially slow when you run the emulator for the first time, and when a new app is created and Android Studio has to index from scratch.

Third step: installing NDK

  1. This step is a piece of cake:Tools ->  Android -> SDK Manager-> SDK Tools -> Android NDK

Applications development

 

Vuelta al cole / Back to school

Facebooktwitterredditpinterestlinkedinmail


[In English]

Para plantearme objetivos suelo tener dos momentos al año: el uno de Enero para los personales, y el inicio del curso académico para los profesionales. En ambos casos, muchos se repiten año tras año ;), pero aún así creo que es bueno pensar qué cosas se pueden mejorar, e intentarlo una y otra vez hasta lograrlo (espero).

Este verano he descubierto varios blogs dedicados a la labor docente universitaria. Aunque están orientados al ámbito anglosajón, diferente en muchos aspectos al español, me parece que se pueden sacar muy buenas ideas. En este post de Conditionally Accepted se pueden encontrar los enlaces a los demás; de todos ellos, me han gustado particularmente Get a Life, Ph. D. y Pearls of Wisdom de The Professor is in.

Mezclando ideas tomadas de ellos, y de lo aprendido en varios libros de productividad, mis objetivos para este curso son:

  • Eliminar de una vez por todas la multitarea, ya que los efectos sobre la concentración son muuuuuy malos 🙁
  • Revisar el correo en momentos concretos del día y no conforme llega (me va a costar trabajo).
  • Ésta no la he probado aún: escribir todos los días (artículos, blog, lo que sea) y mantener el hábito.
  • No dispersarme, escogiendo uno/dos temas de docencia, investigación y formación. Esta me va a costar muchíiiiiiisimo: me gustan muchas cosas, y hay mucho libro y blog y curso chulísimo suelto por ahí 😉

Para los que estén interesados en cuestiones de productividad, es muy fácil encontrar libros y blogs sobre el tema. Si alguien extremadamente productivo quiere ahorrarse la lectura :), aquí van los tres trucos básicos que aparecen en todas esas referencias: ejercicio, buena alimentación, y dormir lo necesario. Es así y es verdad. A partir de ahí, ya pueden desarrollarse los demás; podéis encontrar muchos (y muy buenos) en este post de Gabriella Literaria.

Me gusta trabajar escuchando música, pero escogida con cuidadito porque, si no, me resulta imposible concentrarme. En esta entrada de Think Productive y en esta otra de Science Alert pueden encontrarse enlaces a música para mejorar la productividad. Con Noisli se pueden mezclar sonidos de la naturaleza a gusto de cada uno.

Bueno, eso es todo por ahora. Feliz vuelta al cole 😀


[En español]

I usually choose two moments every year for setting new goals: January 1st for personal goals, and the beginning of the academic year (September 1st in Spain) for professional ones. In both cases, many of these goals appear on my list year after year ;), but yet I believe that is a good idea to think about which aspects I could improve, and try and try again until (hopefully) I achieve them.

This summer I have found several blogs devoted to higher education teaching. Though they focus on the anglo saxon realm, which differs in many aspects to the Spanish system, I think that they offer very good ideas. In this post in Conditionally Accepted you can find the links to all those blogs; among them, I really like Get a Life, Ph. D. and Pearls of Wisdom in The Professor is in.

So, I have mixed some of those ideas and some tricks I have learned in several books about productivity, and these are my goals for this academic year:

  • Get rid, once and for all, of multitasking: it has a really really bad influence on concentration 🙁
  • Check the e-mail only at fixed moments of the day and not on the fly (I know this is going to be hard).
  • I have not tried this yet: write everyday (papers, blog, whatever) and keep the habit.
  • Do not disperse my attention. I will choose one/two issues on teaching, research and training. This one is going to be really hard: I like (almost) everything, and there are zillions of cool books and blogs and courses out there 😉

For the interested reader, it is really easy to find books and blogs about productivity. For the extremely productive reader who wants to spare the reading :), here you have the three basic tricks in all that literature: exercise, healthy food, and good sleep habits. Simple and true. From here on, you can develop any other productivity ideas; you can find a lot of (really good) examples in this post in Gabriella Literaria (in Spanish, but includes the link to the English original post by Niall Doherty).

I like listening to music while I work, but it has to be carefully chosen because, if not, I loose my focus. In this post in Think Productive and in this other in Science Alert you can find links to music for improving productivity. With Noisli you can mix and combine different sounds of nature as you like.

Well, that’s all for now. Happy back to school 😀

Android Studio + NDK + Xubuntu 14.04

Facebooktwitterredditpinterestlinkedinmail


[In English]

Estos son los pasos necesarios para instalar Android Studio y NDK sobre Xubuntu 14.04 (en colaboración con Juan Antonio Fernández Madrigal)

Consideraciones previas

  • No es posible instalarlo en una máquina virtual, ya que el emulador necesita para funcionar virtualización, no disponible dentro de una máquina virtual.
  • Hacen falta bastantes gigas de disco para instalarlo todo, así que hay que asegurarse de tener suficiente espacio.
  • Aquí pueden encontrarse tutoriales para aprender a programar con Android Studio.
  • Bibliografía disponible en Jábega (catálogo de la Biblioteca de la Universidad de Málaga)
    • El Gran libro de Android : [actualizado a la versión KitKat y Android L Preview] / Jesús Tomás Gironés
    • Building Android apps / Mike McGrath
    • Manual imprescindible de desarrollo de aplicaciones para Android. Edición 2015/ Joan Ribas Lequerica
    • Profesional Android open accesory programing with Arduino [Recurso electrónico]/ Andreas Göransson,
    • Android Studio application development [Recurso electrónico] / Belén Cruz Zapata.

Primer paso: instalación de JAVA

  1. Bajarse de Sun el java jdk (a partir del 7 ya vale); no el jre, que sólo es el entorno de ejecución.
  2. Crear un directorio para el jdk  y descomprimir
  3. Si queremos activar los applets de java en firefox, hay que crear en donde firefox tiene los plugins (/usr/lib/mozilla/plugins) un enlace simbólico al plugin que trae el jdk para eso, que está en /dirjdk/jre/lib/amd64/libnpjp2.so. Luego se rearranca el firefox y se mira en about:plugins. También se puede ejecutar el programa jcontrol del directorio bin de java para establecer los permisos de seguridad que permiten ejecutar applets de algún sitio concreto.
  4. Añadir al final de ~/.bashrc las siguientes líneas, para que así Java quede visible para el Android Studio. Después, cerrar y abrir la consola y hacer echo $PATH y echo $JAVA_HOME para comprobar que todo ha ido bien:
    PATH=$PATH:/directoriodejdkbin
    JAVA_HOME=/directoriodejdk
    export PATH
    export JAVA_HOME

Segundo paso: instalación de Android Studio 

  1. Bajar el IDE completo (por ejemplo, el fichero android-studio-ide-141.1903250-linux.zip) de la web.
  2. Realizar la instalación siguiendo estas instrucciones.
    – Si Java no está bien instalado (ver Primer paso), al ejecutar en el directorio bin el comando ./studio.sh, aparece el mensaje “JDK Required: ‘tools.jar’ seems to be not in Studio classpath. Please ensure JAVA_HOME points to JDK rather than JRE.”
    – En Xubuntu me ha aparecido un mensaje de error debido al demonio iBus; en esta dirección se dan posibles soluciones al problema.
    – Escoger la instalación estándar.
    – Se da la opción de KVM para acelerar la VM (en mi caso, no la he activado porque aparentemente podría afectar a Virtual Box y no he querido investigar más; más info aquí)
  3. Cuando se abra el Android Studio por primera vez, escoger la opción Configure para definir el path del SDK y el JDK. Este paso también puede hacerse con posterioridad a la instalación: abrir Android Studio, escoger File-> Other settings -> Default Project Structure. El SDK está en un directorio que se ha debido crear en la configuración; el JDK, en el directorio donde se hizo la descarga según se explicó anteriomente (ver Primer paso).
  4. Para crear un proyecto:
    – Versión mínima escogida para teléfono y tablet:  Froyo
    – Tipo de actividad: Blank activity

Tercer paso: instalación de NDK

  1. Descargar el fichero adecuado y seguir estas instrucciones.
  2. Mover el directorio descomprimido a donde se quiera, y actualizar el path
    PATH=$PATH:/directoriondk
    export PATH

Desarrollo de aplicaciones

[ACTUALIZACIÓN]

He repetido la instalación en un Ubuntu Mate 15.04 vivid, y hay varios cambios respecto a la instalación comentada anteriormente.

  • Al instalar, aparece el error Unable to run mksdcard. La solución puede encontrarse en este enlace de Blascarr.
  • La API 2.2 (Froyo) viene desinstalada por defecto, así que antes de crear una aplicación nueva hay que instalarla usando Tools -> Android -> SDK Manager.
  • Respecto a la emulación, dos puntos a tener en cuenta:
    • He necesitado dar permisos a la carpeta system_images del directorio de instalación de SDK.
    • He intentado crear un AVD usando una imagen de 64 bits, pero necesita la KVM y como, aparentemente, KVM da problemas con Virtual Box, he preferido no instalarla. Consecuencia: la emulación va lentísima 🙁


[En español]

These are the steps to follow in order to install Android Studio and NDK on Xubuntu 14.04 (post written in collaboration with Juan Antonio Fernández Madrigal)

Preliminary requests

  • This software cannot be installed on a virtual machine, since the emulator requires virtualization tools, which are not available in a virtual machines.
  • Both programs are quite demanding in hard drive space: be sure you have enough before you begin the installation.
  • Here you can find several tutorials to learn how to program with Android Studio.
  • Brief list of suggested readings (all of them available at Jábega, the catalogue of the Library of Málaga University)
    • El Gran libro de Android : [actualizado a la versión KitKat y Android L Preview] / Jesús Tomás Gironés
    • Building Android apps / Mike McGrath
    • Manual imprescindible de desarrollo de aplicaciones para Android. Edición 2015/ Joan Ribas Lequerica
    • Profesional Android open accesory programing with Arduino [Recurso electrónico]/ Andreas Göransson,
    • Android Studio application development [Recurso electrónico] / Belén Cruz Zapata.


First step: installing Java

  1. Download java jdk from Sun (jdk 7 or later); it is important to choose jdk and not jre (jre is just the running environment).
  2. Create a folder and unzip (or untar :)) the Java jdk.
  3. If you wisht to activate the java applets in firefox, you have to create in the folder where firefox stores its plugins, a symbolic link to the plugin that the jdk offers, which is stored in /jdkfolder/jre/lib/amd64/libnpjp2.so. Then, restore firefox and check about:plugins. You can also run jcontrol in your Java bin folder, so you can set the permissions that allow to run applets from a known location.
  4. Append, at the end of ~/.bashrc, these lines, so Java can be available for Android Studio. Then, close and open again the terminal, and type echo $PATH and echo $JAVA_HOME in order to check that everything is ok:
    PATH=$PATH:/jdkbinfolder
    JAVA_HOME=/jdkfolder
    export PATH
    export JAVA_HOME

Second step: installing Android Studio

  1. Download the IDE (i.e., android-studio-ide-141.1903250-linux.zip file) from the web.
  2. Install the software according to this guideline.
    – If Java is not properly installed (see First step), when you run ./studio.sh in the bin folder, you get this message “JDK Required: ‘tools.jar’ seems to be not in Studio classpath. Please ensure JAVA_HOME points to JDK rather than JRE.”
    – Under Xubuntu I also get an error message due to the iBus daemon; this link offers several solutions to this problem.
    – Choose standard installation.
    – You can choose KVM in order to accelerating the VM (I have rejected this option, since -apparently- it could have an influence on Virtual Box, and I did not want to risk my virtual machine; more info here)
  3. When Android Studio opens for the first time, choose the Configure option so you can define the paths for SDK and JDK. This step can also be done after installation is completed: open Android Studio, then choose File-> Other settings -> Default Project Structure. The SDK is in a folder created in the configuration process; the JDK should be stored in the folder where you downloaded it (according to First step explanations).
  4. If you want to create a project:
    – Minimum version for phone and tablet: Froyo
    – Activity type: Blank activity

Third step: installing NDK

  1.  Download the right file and follow these instructions.
  2. Move the unzipped folder to your desired location, and update the path
    PATH=$PATH:/ndkfolder
    export PATH

Applications development

[UPDATE]

I have installed the Ubuntu Mate 15.04 vivid, and there are some changes from the previously commented installation.

  • During the installation process, an Unable to run mksdcard error arises. You can fin the solution in this link at Blascarr [in Spanish].
  • API 2.2 (Froyo) is not installed by default, so prior to create a new app you have to install it with Tools -> Android -> SDK Manager.
  • Regarding emulation, two aspects should be taken into account:
    • I had to grant permissions to the folder system_images inside the SDK installation folder.
    • I tried to create a new AVD with a 64 bits image, but it requires KVM and sice, apparently, KVM is not compatible with Virtual Box, I choosed not to install that image. Consecuence: emulation is very very slow 🙁