Setup email server on Radxa Rock

and follow the installer
You can always change the config later with:

Make sure you force encryption with:
smtpd_tls_security_level = encrypt
smtpd_tls_auth_only = yes

and in

protocols = imap
disable_plaintext_auth = yes
ssl = required

Each user has its own email adress e.g. user@domain.com, but you can add some additional aliases here:

Make sure those aliases do not go to root or else you will get dovecot permission errors.
Then reload the alias database and postfix:

First check that the mx entry for your domain is set correctly:

Then check if your IMAP server is reachable:

Then you can check if your SMTP server is reachable:

You can also use these great MX Webtools to debug you mailserver.

If something doesn’t work have a look at:

I got some crazy sasl auth errors, which I could fix by:

and uncomment:

# Postfix smtp-auth
unix_listener /var/spool/postfix/private/dovecot-auth {
mode = 0666
user = postfix
}

Linaro 14.04 on Radxa Rock

If linaro 13.09 from the Radxa Rock Image doesn’t get new security updates anymore, it is time to move on to 14.04 Trusty Tahr a long term support version.

and replace the content with:

deb http://ports.ubuntu.com/ubuntu-ports/ trusty main restricted
deb-src http://ports.ubuntu.com/ubuntu-ports/ trusty main restricted

## Major bug fix updates produced after the final release of the
## distribution.
deb http://ports.ubuntu.com/ubuntu-ports/ trusty-updates main restricted
deb-src http://ports.ubuntu.com/ubuntu-ports/ trusty-updates main restricted

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team. Also, please note that software in universe WILL NOT receive any
## review or updates from the Ubuntu security team.
deb http://ports.ubuntu.com/ubuntu-ports/ trusty universe
deb-src http://ports.ubuntu.com/ubuntu-ports/ trusty universe
deb http://ports.ubuntu.com/ubuntu-ports/ trusty-updates universe
deb-src http://ports.ubuntu.com/ubuntu-ports/ trusty-updates universe

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team.
deb http://ports.ubuntu.com/ubuntu-ports/ trusty multiverse
deb-src http://ports.ubuntu.com/ubuntu-ports/ trusty multiverse
deb http://ports.ubuntu.com/ubuntu-ports/ trusty-updates multiverse
deb-src http://ports.ubuntu.com/ubuntu-ports/ trusty-updates multiverse

## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
deb http://ports.ubuntu.com/ubuntu-ports/ trusty-backports main restricted universe multiverse
deb-src http://ports.ubuntu.com/ubuntu-ports/ trusty-backports main restricted universe multiverse

deb http://ports.ubuntu.com/ubuntu-ports trusty-security main restricted
deb-src http://ports.ubuntu.com/ubuntu-ports trusty-security main restricted
deb http://ports.ubuntu.com/ubuntu-ports trusty-security universe
deb-src http://ports.ubuntu.com/ubuntu-ports trusty-security universe
deb http://ports.ubuntu.com/ubuntu-ports trusty-security multiverse
deb-src http://ports.ubuntu.com/ubuntu-ports trusty-security multiverse

then:

and when done:

CUL auf Radxa Rock

Zuerst das passende cdc-acm kernel modul herunterladen z.B. hier für Kernel 3.0.36. Oder selber kompilieren.

Wenn es funktioniert kann man das Modul dauerhaft installieren:

und cdc-acm eintragen

nach einem Neustart sollte:

auftauchen
/dev/ttyACM0

Den entsprechenden Nutzern sollten Zugriffsrechte eingeräumt werden:

Danach können Sie den CUL z.B. in Fhem verwenden:
define CUL_0 CUL /dev/ttyACM0@38400 9999
attr CUL_0 group System
attr CUL_0 rfmode HomeMatic
attr CUL_0 room hidden

in den Pairing Modus versetzen:
set CUL_0 hmPairForSec 600

Falls autocreate aktiv ist können die anderen Homematic Geräte nun ebenfalls in den Pairing Modus versetzt werden und sollten dann automatisch von fhem angelegt werden.

i2c on Radxa Rock

Download and flash this image, it has i2c support already baked in.
Otherwise compile your own kernel with i2c support.

Install i2c tools and add you user to the i2c group:

Connect according to the schematics:

radxa i2c

Then you are good to go:

Fhem auf Radxa Rock installieren

Der Fhem Server ist nun zum Beispiel erreichbar unter:
http://radxa:8083/fhem

Gleich mal ein:

und schon ist man auf dem neuesten Stand und kann die Geschwindigkeit des Rock voll auskosten.

Jetzt noch ein altes Backup importieren:

Install ROS Indigo Igloo on Radxa Rock

Assuming you followed my tutorial for configuring your Radxa Rock, you can easily install ROS Indigo on it by:

Setup your environment:

As ROS does not recognize Linaro as an OS:

and replace „Linaro“ with „Ubuntu“

Init a catkin workspace:

and test it:

Configure Radxa Rock

The Radxa Rock is a cheap and powerful quadcore ARM9 board, which is perfect for home servers or mobile robotic applications.

Here are some tipps how to set up the Radxa Rock:

By default, the Radxa Rock boots into Android. In the application folder you can find an app for booting into Ubuntu.

First configure your keyboard layout if needed:

And get wireless network access:

The content should look like:

Now you can manage several WPA keys in the wpa_supplicant.conf:

For each network add a definition like:

If you have several Radxa Rocks, you should change their mac addresses by modifying the parameter file and flashing it in loader mode:

And replace de:ad:de:ad:be:ef with a valid MAC address of your choice e.g. from this MAC generator:

you may also want to change their hostnames:

Now restart the networking:

Now that your Radxa Rock should be successfully connected to your wireless network, you can login via ssh by:

and the default root password „root“

You should directly change that password to something less easy to guess with:

remove the user rock:

and add an ordinary user:

and add him to the sudoers:

and then upgrade your Ubuntu installation:

Install zsh and some other useful tools:

Pick an agreeable theme (optional):

and set ZSH_THEME=“af-magic“

then source the changes:

Allow SSH authentication with certificate:
On the rock:

And copy the public key from your computer into the list of authorized keys on the rock

If you can now connect via ssh without being asked for a password you can force ssh to only accept authentication with certificate:

and make sure the following values are set:
PasswordAuthentication no
RSAAuthentication yes
PubkeyAuthentication yes

If you are using Macs, you might want to install netatalk to simplify file sharing:

Additional folders can be shared by editing AppleVolumes.default:

and adding a line like

/media/microsd/media „Media“

and restarting the netatalk service with:

You can also access the board via its UART Interface, connect the cables as follows:
RX -> Green
TX -> White
GND -> Black

For more see my post about OSX and USB to TTL

Flashing new Images:
First install rkflashtool:

Get into recovery mode:

When the board is connected with the USB OTG cable, press and hold the left recovery key and press and let got the right reset key. The board will reboot and stay on recovery mode waiting for commands.

TODO
For now use RK_BatchTool under Windows…