Jump to content


Ubuntu headless server distrib

ubuntu headless server

5 replies to this topic

#1 JacquesD



  • Members
  • Pip
  • 2 posts

Posted 09 April 2017 - 02:59 PM

Hi all,


I am new on pcDuino8 but i did some tricks on RPi and I have been impressed by pcDuino8 Uno specification, so I bought one to have a look on it.


When dealing with single board computers I use to install headless server distrib but I haven't been able to find one for pcDuino8. And I don't like the approach to downgrade a system from desktop to server, as I like fresh and clean install before starting to work on it.


Can you tell me why a headless distro is not available ? It seems to me that it is the foundation of a desktop distrib ? But there may be a reason for this I do not see.

#2 Guest_Linksprite Sucks_*

Guest_Linksprite Sucks_*
  • Guests

Posted 09 April 2017 - 10:39 PM

I also have a pcDuino8. And I'm not happy with Linksprite. No support. No current Firmware Images. Only outdated stuff which is often not working.

So bottom line waste of money.


#3 BeckyChen



  • Administrators
  • 16 posts

Posted 17 April 2017 - 02:37 AM

Hi sorry for late reply. I will check it and reply you later. thanks a lot!

#4 Guest_guest_*

  • Guests

Posted 01 May 2017 - 06:19 PM

This is how I install my rootfs.

# install pcduino8 img to sdcard
sudo dd if=pcduino8_ubuntu_14.04_20160102.img of=/dev/sdX bs=1M

# unmount sdcard partion 3
sudo umount /dev/sdX3

# format sdcard partion 3 which contain rootfs
sudo mkfs.ext4 -L ROOTFS /dev/sdc3

# get linaro-trusty
wget https://releases.lin...1024-684.tar.gz

# extract to rootfs mount point
sudo tar xzf linaro-trusty-developer-20141024-684.tar.gz -C /media/$USER/ROOTFS/

# fix files paths and remove unneeded dirs
cd /media/$USER/ROOTFS/
sudo mv binary/* .
sudo rm -r binary
sudo rm -r boot/filesystem.dir

# compile kernel
git clone https://github.com/p...-uno-kernel.git

wget https://s3.amazonaws...5_linux.tar.bz2
tar -xf gcc-linaro-arm-linux-gnueabihf-4.7-2013.04-20130415_linux.tar.bz2
mv gcc-linaro-arm-linux-gnueabihf-4.7-2013.04-20130415_linux gcc-linaro-arm-linux-gnueabihf-4.7

export CC="ARCH=arm CROSS_COMPILE=${HOME}/gcc-linaro-arm-linux-gnueabihf-4.7/bin/arm-linux-gnueabihf-"
sudo make ${CC} sun8iw6p1smp_defconfig
sudo make ${CC} menuconfig
sudo make ${CC} -j $(nproc) uImage
sudo make ${CC} -j $(nproc) modules

# copy kernel sdcard partion 2
sudo cp arch/arm/boot/uImage /media/$USER/BOOT/uImage

# install modules and firmware to rootfs
sudo make ${CC} INSTALL_MOD_PATH=/media/$USER/ROOTFS modules_install
sudo make ${CC} INSTALL_MOD_PATH=/media/$USER/ROOTFS firmware_install

# network
sudo nano /media/$USER/ROOTFS/etc/network/interfaces
auto eth0
iface eth0 inet dhcp

# apt sources
sudo nano /media/$USER/ROOTFS/etc/apt/sources.list

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

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

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

deb http://ubuntu.pcduino.com/pcduino8/pcduino main
deb-src http://ubuntu.pcduino.com/pcduino8/pcduino main

# issues: how to get ip because no usb power on boot, so no keyboard
# linaro auto logon as root so
sudo nano /media/$USER/ROOTFS/root/.profile
ifconfig eth0 up
sleep 1
dhclient eth0
echo "$(ip addr show eth0)"

# boot board and ssh
#password is linaro
ssh linaro@IP # you can get ip from router or above method

# update apt
sudo apt update && sudo apt upgrade

# add avahi local discovery   
sudo apt install avahi-daemon nano
sudo nano /etc/avahi/avahi-daemon.conf

# change hostname
sudo nano /etc/hostname
sudo nano /etc/hosts

# linaro disable root auto login:
echo manual | sudo tee /etc/init/openvt.override


#5 JacquesD



  • Members
  • Pip
  • 2 posts

Posted 04 May 2017 - 07:52 PM

Thank you for this impressive receipe  :o

#6 Guest_guest_*

  • Guests

Posted 05 May 2017 - 01:34 AM

Thanks for kind words JacquesD
I got usb hub working but you have to keep old kernel and modules

# mount img
mkdir pcduino8
sudo mount -o loop,offset=$((139264 * 512)) pcduino8_ubuntu_14.04_20160102.img pcduino8

# copy init script and modules
sudo cp pcduino8/etc/init/pcduino.conf /media/$USER/ROOTFS/etc/init/pcduino.conf
sudo cp -r pcduino8/lib/modules /media/$USER/ROOTFS/lib

# unmount img
sudo umount pcduino8
rm -r pcduino8

Reply to this topic


Also tagged with one or more of these keywords: ubuntu, headless, server

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users