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

8 comments:

  1. The Cubieboard link doesn't go anywhere.

    ReplyDelete
  2. Hi Belkin! I can't find the broken link. Please, could you be more specific? Thanks in advance!

    ReplyDelete
  3. Mr. Marcos, it seems that http://cubieboard.org/ domain name was expired. You can check it now. Thank you from Indonesia.

    ReplyDelete
  4. Thanks. I saw now :) It was working these days before. I'll give it a few days before remove ;)

    ReplyDelete
  5. How to make the latest Lubuntu 14.10 firmware ?

    ReplyDelete
  6. Not able to log in. I type in the password, but it just comes back to the log in screen.

    ReplyDelete
  7. It appears that you don't have enought space. You need to change the partition of the nand memory! ;) http://thinkonbytes.blogspot.com.es/2014/09/cubieboard2-and-lubuntu-how-to-expand.html

    ReplyDelete
  8. I have installed your image to nand on my CB2. It works very well. Great stuff. It would be good if the kernel was configured for hidraw so that the logitech unifying device could be used. ?

    ReplyDelete