cubieboards part 2

It turns out cubieboards are unstable at higher CPU load. Cubian desktop from my prior post kept crashing on me. When I tried fancier stunts like auto-login and auto-execute programs, it would crash beyond repair. After several re-installs, I determined I had to go with a different operating system.

Not wanting a completely bare-bones version of Linux, nor a fancy Desktop X with all the bells and whistles, I went with something called cubieez. Written for cubieboards, it is lightweight, stable, and has a graphical user interface.

The steps required to get the hardware pins (GPIOS) to work were slightly different than my previous post, so I’m going to document them here.

My steps:

  • Install cubeez (SD version)
  • Buy an SD card and a way to attach it to your Windows PC
    Download Cubieez
    Download Win32DiskImager
    Using Win32DiskImager, write the cubieez image to the SD card. Put SD card in cubieboard and turn it on.

  • Set load to desktop: no
  • Right click anywhere or use the main menu and open a terminal.
    Type in Cubie-config and find the settings to turn off the desktop. From here.

  • Set up auto-login
  • This is just changing one line in /etc/inittab. Read here.

  • Install sunxi-tools
  • Sudo apt-get install sunxi-tools (for bin2fex and fex2bin programs)

  • Edit FEX file
  • follow the steps here
    To decide what to add to the file, read here and here.

  • install gcc
  • sudo apt-get install gcc build-essential

  • Write, compile and test c code
  • sudo nano test.c
    compile and test c code
    Read here and here. You’ll need the necessary wires and diodes.

  • Auto-execute your c program
  • in /etc/profile, add 2 lines at the bottom:
    modprobe gpio-sunxi

    (where test is the name of your c program)
    reboot (sudo reboot) and your c program should automatically execute

Saving your work

I was sick of re-installing and losing all my code, so if you want to save your code in case of a crash or wipe, you can save everything online in a GIT repository.

Go to and make an account. Login and create a repository (choose to automatically use the default readme). Get the link to your new repository (for example, mine was this:
On your cubieboard install git if not installed (Sudo apt-get install git), then type these commands:
git config --global "YOUR NAME" (use account name)
git config --global "YOUR EMAIL" (use account email)
(From here)
mkdir git-repo
cd git-repo
git clone
Copy your code to the repository folder with
cp /root/test.c .
cp /root/test .

(where test is the name of your file)
Add it to your project, commit it, and push it online
git add .
git commit -m "a message"
git push origin master

(From here and here).
Your code is now saved online and can by copied back to your computer by doing
You can view all my code here

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.