Installing Lubuntu Desktop into a Cubieboard2 A20 with LiveSuit for Ubuntu

If you want to install in a fast way my same image, please, read this post.


Hi! I bought a new Cubieboard, the 2 version in this case and the process for install Lubuntu is a bit different from the tutorial for Cubieboard1 A10 that I wrote a few months ago.

FIRST: Install LiveSuit for Ubuntu (You can use a Live USB for this). Open a Terminal and run these commands:
  • We need this dependences:
sudo apt-get install dkms libaudio2

  • Download LiveSuit for 32bits:
wget http://dl.cubieboard.org/software/tools/livesuit/LiveSuitV306_For_Linux32.zip
  • Or download LiveSuit for 64 bits:
wget http://dl.cubieboard.org/software/tools/livesuit/LiveSuitV306_For_Linux64.zip

  • Make the installer executable:
unzip LiveSuitV306_For_Linux32.zip
cd LiveSuit_For_Linux32
chmod +x LiveSuit.run

  • Install LiveSuit:
sudo ./LiveSuit.run
  • Run LiveSuit:
cd /home/lubuntu/Bin/LiveSuit
sudo ./LiveSuit.sh

SECOND: Install Lubuntu Desktop into the NAND of the Cubieboard (don't install into a microSD, it'll be very slowly):
Download the image (You have more here):
wget http://dl.cubieboard.org/software/a20-cubieboard/lubuntu/cb-a20-lubuntu-12.10-v1.06/cb2-lubuntu-desktop-20131026/lubuntu-desktop-nand.img.gz
gunzip lubuntu-desktop-nand.img.gz


Select that lubuntu-desktop-nand.img file downloaded in LiveSuit.
Push button FEL (next to miniUSB interface) and don't release it. Plugin the Cubieboard to the computer with a miniUSB cable. Release the FEL button when the Cubieboard asks you about to format.
LiveSuit will ask you about to format, click on Yes.
Wait the progress
Unplug the cable.

Connect the CubieBoard to a monitor by HDMI.

Read How expand the NAND memory to 4GB in Cubieboard2 for Lubuntu or a prebuild image for install fast with a dd command.

Enjoy it :)

Cubieboard2 and Lubuntu: How to expand the NAND partition to 4GB

If you want a quick install for Lubuntu 14.04, please, read this post ;)

We installed Lubuntu into a Cubieboard2. But the NAND is using just 2GB of 4GB available:
linaro@cubieboard2:~$ df -h
Filesystem      Size  Used Avail Use% Mounted on
/dev/root       2.0G  1.2G  698M  64% /
devtmpfs        406M  4.0K  406M   1% /dev
tmpfs            20M  4.0K   20M   1% /tmp
none             82M  208K   81M   1% /run
none            5.0M     0  5.0M   0% /run/lock
none            406M  4.0K  406M   1% /run/shm
none            100M   12K  100M   1% /run/user


linaro@cubieboard2:~$ cat /proc/partitions


major minor  #blocks  name

  93        0    3891200 nand
  93        1      65536 nanda
  93        2    2097152 nandb
  93        3    1712128 nandc


We need to work from a Live OS. Install Cubian into the microSD from its great wiki and connect to a monitor or you can use SSH too (There is a solved problem. You have to use the port 36000, user cubie, password cubie:
ssh -p 36000 cubie@The_Cubian_IP)

Discover your current NAND partition (as root):

root@Cubian:~# nand-part | tail
3 partitions
partition  1: class =         DISK, name =   bootloader, partition start =    32768, partition size =   131072 user_type=0
partition  2: class =         DISK, name =       rootfs, partition start =   163840, partition size =  4194304 user_type=0
partition  3: class =         DISK, name =        UDISK, partition start =  4358144, partition size =  3375104 user_type=0

We will play with the numbers now. See the colours ;)
nand-part -f a20 /dev/nand 32768 "bootloader 131072" "rootfs 7569408"
fsck -f /dev/nandb
resize2fs /dev/nandb


What did we do with nand-part?
  • We joined nandb & nandc.
  • -f a20: It's for the Cubieboard2, with its CPU A20
  • 32768: it's where is starting the first sector
  • bootloader 131072: Will not change, then we will put the same partition name/size
  • rootfs 7569408: This is the key: 
    4194304
     + 
    3375104 =
     7569408
Then you need to check the partition by errors with fsck and resize to the 4GB.
Reboot and you'll have Lubuntu into your Cubieboard2 with 4GB! :)

Lubuntu 14.04 for Cubieboard 2

Cubieboard2 (CPU A20)


I bought a Cubieboard2 and I made a Lubuntu 14.04 image! Now, it's really fast and easy to deploy that image in a cubieboard2 with a NAND = 4GB.

Download the Lubuntu 14.04 image for CubieBoard2 here.



LUBUNTU 14.04 INSTALL STEPS:
Boot with a Live distro, by example, with Cubian into a microSD (>8GB) with these steps.

Copy this Lubuntu image downloaded into the root of the microSD.

Boot the Cubieboard2 with Cubian from the microSD.

Open a Terminal (Menu / Accesories / LXTerminal) and run:
sudo su -
[password is "cubie"]
cd /
gunzip lubuntu-14.04-cubieboard2-nand.img.gz
dd if=/lubuntu-14.04-cubieboard2-nand.img conv=sync,noerror bs=64K of=/dev/nand


It's done! Reboot :) You must to have Lubuntu 14.04.1 running with 4GB as NAND partition. User: linaro, password: linaro.



RECOMMEND STEPS AFTER INSTALLATION:
As sudo for the next steps:
sudo su -
  • Add your new user (change 'username' for your new user):
useradd -m username -G adm,dialout,cdrom,audio,dip,video,plugdev,admin,inet -s /bin/bash ; passwd username

echo 'setxkbmap -layout "es"' >> /etc/xdg/lxsession/Lubuntu/autostart

  • Set localtime (By example, for Spain local time = Europe/Madrid), in other way, the browser will have problems with the https web pages:
rm /etc/localtime ; ln -s /usr/share/zoneinfo/Europe/Madrid /etc/localtime ; ntpdate ntp.ubuntu.com

  • Change password to linaro user or remove (logout required) that user (it's sudo and all people know this password, do it ;):
userdel -r linaro

  • Install ssh-client for connect by ssh or pulseaudio pavucontrol for audio.



HOW WAS THIS IMAGE DONE?
For this image I installed an official Lubuntu 13.04 Image from here, and I did this changes:
- Resized NAND to 4GB (Ubuntu will use 1.5GB; 2GB free). You can use a microSD or SATA HD as external storage.
- Updated to 13.10 and then to 14.04 LTS (Updated lxde* packages to last versions).
- Installed ntp, firefox, audacious, sylpheed, pidgin, gpicview, lxappearance and ufw (not enabled)
- Rewritabled and group owner for avoid ufw warnings: /etc, /, /lib
- Removed chromium-browser, gnome-network-manager and gnome-disk-utility
- Removed no password for admin users (edited /etc/sudoers)
- Created this dd image



(OPTIONAL) PREVIOUSLY BACKUP OF YOUR CURRENT CUBIEBOARD2:
Insert a microSD card in your current OS:
sudo su -
dd if=/dev/nand conv=sync,noerror bs=64K | gzip -c -9 > /nand.img.gz

(OPTIONAL) RESTORE THAT BACKUP:
cd /
gunzip nand.img.gz
dd if=/nand.img conv=sync,noerror bs=64K of=/dev/nand

Tema monocromo para LibreOffice

Podemos mejorar (para mi gusto) mucho el tema por defecto de LibreOffice que tenemos en Ubuntu.

Simplemente ejecutamos esto en una Terminal:
sudo apt-get install libreoffice-style-sifr -y

Y modificamos en LibreOffice: Tools / Options / View / Icon: Sifr
 
Cerramos y volvemos a abrir LibreOffice y veremos algo que así :)

Tema monocromo en LibreOffice

Fuente.

Conectar a .wifisfera_telecable con Ubuntu

Hace unos días me preguntaba un compañero ubuntero si se podía conectar a su WIFIsfera de Telecable desde Ubuntu. El motivo de que preguntase era porque hay disponible aplicaciones para Windows, Android y Mac OS, pero ninguna para Linux, con lo que pensaba que no sería posible. Y este, señoras y señores, no es más que otro ejemplo de lo fácil que es nuestro sistema operativo :) ¡No hace falta instalar nada!


Aunque hay (bastante escondido en su web) un manual oficial, lo hacen de un modo un poco raro. Lo fácil es el método de conexión normal:

  • Pulsamos en la WIFI de Telecable:

Conectar
  • Dejamos estos campos como se ven en la captura (el usuario@telecable.es será tu NIF en minúscula en el modo 1111111h@telecable.es; la clave la que te asignen, que puedes cambiar desde aquí):
Rellenar datos
  • E ignoramos el warning de certificado y marcamos que no nos avise de nuevo:

Ignorar

¡Voalá! :)

Folder Color: New custom color for each folder

I developed this little (but really useful) improvement to Folder Color: Now, you can choose a custom color for each folder in our Ubuntu!

New improvement: Choose a custom color

What is Folder Color?
It's an application for changing the color of a folder in Ubuntu with just a right-click. Really useful for easily spotting folders in 12 preconfigured colours!

Easy, fast and useful

Let's see a video with Folder Color in action!



How can you install?
  • In a Terminal from the PPA:
sudo add-apt-repository ppa:costales/folder-color
sudo apt-get update && sudo apt-get install folder-color
  • If you have already installed Folder Color from the PPA, just update your system:
sudo apt-get update && sudo apt-get install folder-color

You need to logout from your current session (or kill nautilus with nautilus -q) after the installation.


What do you need?
Just Ubuntu (or derivate) & Nautilus, the file browser by default in Ubuntu :)

+info: Oficial web.

Destino Ubuconla 2014 - #11 The End

Antes del viaje todo el mundo me advertía de que Colombia es un país muy peligroso para el turista... ¡Colombia... ays Colombia! ¡Qué país! El viajero encontrará paisajes extraordinarios, vertiginosas ciudades llenas de historia grabada a fuego durante siglos, una gastronomía exquisita y su gente que hace a este país especial, al ritmo de su música rumbera, abiertos, alegres y muy hospitalarios. Como bromean por aquí, el peligro es que te quieras quedar :P

perdiéndose por los mercados callejeros

de sus calles
y disfrutando el alma de este pueblo
con sus junglas de asfalto
y sus junglas reales
(jue con la 'hormiguita')
... hasta el infinito y más allá

Del viaje en particular podría destacar muchísimas cosas, las playas, las islas, los pueblos, las ciudades, la gastronomía, incluso el calor sofocante; pero no, no voy a destacar nada de todo eso.
Destaco los momentos únicos con personas únicas, que hicieron de este viaje, un viaje único ;) ¡Gracias a todos/as! ¡Hasta la próxima!

Next station? El destino dirá

Todas las entradas del viaje:

Gracias a todos/as por 'acompañarnos' en este relato

... The end ...