Posted on

HOW-TO: Installing Fedora 19 ARM Remix on the Cubieboard2 ARM Server

If you are looking for a Red Hat / CentOS compatible Linux distibution with RPM and Yum support, but that will run on ARM Servers, Fedora 19 is a great option. Fedora Project engineer Hans de Goedde has built a version that will run on the Cubieboard2, as well as other Allwinner A10, A13, and A20 based boards which is documented here:!topic/linux-sunxi/XCIaukbAjyI. To get Fedora 19 running on the Cubieboard2 ARM Server, here are the steps I took:

First, we need to download the image file from:

Next we need to make sure our SD Card is not already mounted. If so, unmount it.

Now, we can write the image to the card:

xzcat Fedora-19-a10-armhfp-r3.img.xz > /dev/mmcblk0 #this may take a while

Next, remove the card, and then re-insert it so that it gets mounted. Mine did not mount automatically, so I simply ran:

mount -/dev/mmcblk0 /media/linaro/uboot
cd /media/linaro/uboot
./ cubieboard2
cd /
umount /media/linaro/uboot
shutdown -r now

The system will reboot twice while it completes the Fedora installation, which may take a while, but eventually the GUI will load and you will prompted to choose a Time Zone, create a User and Password, and can then login to the system!


Posted on

HOW-TO: Install Ajenti on the Cubieboard2 / Linaro 13.04 ARM Dedicated Server

The setup instructions provided by for Ubuntu systems are simple to follow, and work perfectly on the Cubieboard2 running Linaro (Lubuntu) 13.04.  Here is a quick walkthrough just to demonstrate the capability.

From a fresh installation, only 5 commands are required.  Upon logging in and launching LXTerminal, or connecting via SSH, run the following:

sudo su

wget -O- | apt-key add -

echo "deb main main ubuntu" >> /etc/apt/sources.list

apt-get update && apt-get install ajenti

service ajenti restart

Upon completion, open a browser, and enter https://[your-ip-address-here]:8000 in the address bar. You may be greeted by a warning due to Ajenti’s self-signed SSL, but you can safely proceed. You will come to a login page, and the login credentials are root / admin (you’ll want to change this immediately for security purposes). After logging in, Ajenti will take a moment to load, and then you will come to the Dashboard, shown here:


Posted on

HOW-TO: Installing ZPanel on the Cubieboard2 ARM Dedicated Server

If you are looking to install a web hosting control panel on your Cubieboard2, or perhaps a RaspberryPi or other ARM based server, ZPanel is one of the few open source options currently available. These commands were run on a freshly installed Lubuntu 12.10 for ARM build. I’m not sure if they will work on the Fedora 19 ARM build, but if someone verifies functionality, let me know. Also, take note that I am not configuring a mail server in this tutorial, just Apache, PHP, MySQL, and ZPanel.

First, we need to get the server ready, before we can actually install ZPanel. We’ll start with getting tofrodos and proFTP server installed. Open up a Terminal and run:

sudo su
apt-get install tofrodos
apt-get install proftpd
apt-get update
apt-get upgrade

Next, we’ll install Apache:

apt-get install apache2
service apache2 stop

Apache will need a hostname, so modify this file and define the fully qualified host name of your server:

cd /etc
nano hostname

Now we will need to define the IP Addresses for Apache to use. Modify the file to look like this, of course replacing ‘your-ip-address’ with your actual IP and ‘your-hostname-here’ with the hostname you defined in the previous step:

nano hosts localhost
your-ip-address localhost
your-ip-address your-hostname-here

Finally, we need to create a file called servername.conf and place your hostname in it as well, after the ServerName directive. Have it look like this:

cd /etc/apache2/conf.d
nano servername.conf
ServerName your-hostname-here

Now, its time to install PHP, MySQL, and phpMyAdmin:

apt-get install php5 libapache2-mod-php5 php5-intl php5-mcrypt php5-curl php5-gd php5-sqlite
service apache2 stop
apt-get install mysql-server mysql-client php5-mysql # you'll need to define a password for the MySQL root user
service apache2 stop
apt-get install php-pear php5-dev apache2-prefork-dev build-essential make && pecl install apc # you can choose default settings
service apache2 stop
apt-get install nmap
apt-get install zenmap
apt-get install libapache2-mod-auth-mysql php5-mysql phpmyadmin # you'll be asked for the MySQL root user credentials once again
cd /var/www
ln -s /usr/share/phpmyadmin

Let’s configure PHP to use make use of apc and MySQL:

service apache2 stop
nano /etc/php5/apache2/php.ini # scroll down to the "Dynamic Extension" section, and add two lines. On the first, place '' and on the second place the text '' (without the quote marks on either).

Before proceeding with the installation of ZPanel, let’s reboot just to be safe.

shutdown -r now

Once the server comes back up, we can make use of Xengulai’s ZPanel install script:

sudo su
chmod +x

The install script will configure all of the services and install ZPanel on the server. Please note, this is not my script, all credit goes to Xengulai. Per his instructions, we need to reboot once again upon completion:

shutdown -r now

If all goes well, you should be able to access ZPanel in a browser at http://localhost/zpanel
For additional help, check out the ZPanel forums at