Debian hardfp headless server on a CuBox

by Michael Birch

I used the CuBox installer to install Debian hardfp headless server on my CuBox.

Needed to connect via serial port, so followed the instructions here:

http://www.solid-run.com/mw/index.php/Serial_console

I installed the drivers:

http://www.ftdichip.com/Drivers/VCP.htm

I used these instructions for installing minicom:

http://pbxbook.com/other/mac-tty.html

When I tried to connect using minicom I kept getting a repeating message:

asoc: CS42L51 <-> mv88fx-i2s1 No matching rates

I found the answer here:

http://www.solid-run.com/phpbb/viewtopic.php?f=2&t=205&sid=7990e51ef9fde189529f8aab7c8c2bbb&start=10

sudo apt-get --reinstall install dbus
sudo reboot
sudo apt-get update
sudo apt-get upgrade

This worked, but I needn’t have bothered because I planned to use the CuBox installer to load a headless server.

I followed the instructions here:

http://www.solid-run.com/general/69-the-cubox-installer-%E2%80%93-the-installation-process-simplified

The first USB drive didn’t work and I had to copy the u-boot.bin file to the boot directory.

I chose the second option: Debian hardfp headless server

http://www.solid-run.com/mw/index.php/Debian_ArmHardFloatPort_on_CuBox

Configuring the timezone

http://www.solid-run.com/mw/index.php/Debootstrap_ArmHardFloatPort#Configuring_time_and_default_language

Updated the timezone with:

dpkg-reconfigure tzdata

Configuring the hostname

http://www.solid-run.com/mw/index.php/Debootstrap_ArmHardFloatPort#Naming_your_System

Needed a shorter name that would be recognised by my router so that I could use a fixed IP for the cubox.

https://wiki.debian.org/HowTo/ChangeHostname

changed debian-armhf-cubox to mikes-cubox

vi /etc/hostname

Added this line:

mikes-cubox

Add the cubox to the hosts file:

vi /etc/host

Add this line:

127.0.0.1       localhost mikes-cubox

Then update:

invoke-rc.d hostname.sh start
reboot

set the password

passwd

Fixed IP

set the IP address for the CuBox to 192.168.1.5 on my router.

Logging in to the cubox with ssh

http://sniptools.com/mac-osx/save-ssh-password-in-terminal

scp  ~/.ssh/id_rsa.pub root@192.168.1.5:~/
ssh root@192.168.1.5
mkdir .ssh
cat id_rsa.pub >> ~/.ssh/authorized_keys
rm -f id_rsa.pub
exit

alias for ssh

Edited .bash_profile in the home directory and added:

# alias for logging into cubox
alias cb='ssh root@192.168.1.5'
blog comments powered by Disqus