Jump to content
JacquesD

Ubuntu headless server distrib

Recommended Posts

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.

Share this post


Link to post
Share on other sites
Guest Linksprite Sucks

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.

 

Share this post


Link to post
Share on other sites
Guest guest

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.linaro.org/archive/14.10/ubuntu/trusty-images/developer/linaro-trusty-developer-20141024-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/pcduino/pcduino8-uno-kernel.git

wget https://s3.amazonaws.com/pcduino/Tools/gcc-linaro-arm-linux-gnueabihf-4.7-2013.04-20130415_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
#Add:
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
#Add:
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
#Add:
publish-workstation=yes

# change hostname
sudo nano /etc/hostname
sudo nano /etc/hosts
#Add:
pcduino8

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

 

Share this post


Link to post
Share on other sites
Guest guest

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

Share this post


Link to post
Share on other sites
Guest
You are commenting as a guest. If you have an account, please sign in.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×