TS-4900 Ubuntu Core Sections: Difference between revisions

From embeddedTS Manuals
Line 11: Line 11:
/ubuntu-core/ubuntu-core-16-latest.img.bz2
/ubuntu-core/ubuntu-core-16-latest.img.bz2
bzip2 -d ubuntu-core-16-latest.img.bz2
bzip2 -d ubuntu-core-16-latest.img.bz2
# Assuming /dev/sdd is your SD card.  Check dmesg after inserting for yoru device.
# Assuming /dev/sdd is your SD card.  Check dmesg after inserting for your device.
# Make sure this is the block device (/dev/sdd) and not a partition (/dev/sdd1).
# Make sure this is the block device (/dev/sdd) and not a partition (/dev/sdd1).
dd if=/path/to/ubuntu-core-16-latest.img bs=4M of=/dev/sdd conv=fsync && sync
dd if=/path/to/ubuntu-core-16-latest.img bs=4M of=/dev/sdd conv=fsync && sync
</source>
</source>


This can be written to emmc using the [[#TS-4900_Production USB production mechanism]].
This can be written to emmc using the [[#Production Mechanism|USB production mechanism]].


Next make an [https://login.ubuntu.com/ Ubuntu SSO account].  [https://help.ubuntu.com/community/SSH/OpenSSH/Keys Generate SSH keys] and [https://login.ubuntu.com/ssh-keys upload your SSH keys] to your account.
Next make an [https://login.ubuntu.com/ Ubuntu SSO account].  [https://help.ubuntu.com/community/SSH/OpenSSH/Keys Generate SSH keys] and [https://login.ubuntu.com/ssh-keys upload your SSH keys] to your account.

Revision as of 11:47, 15 June 2017

Ubuntu Core is a new distribution provided by Canonical targetted towards embedded/IoT projects. This requires users to generate "snap" packages for their application, but provides a mechanism for save remote updates to the OS and packages. Our kernel is based on Ubuntu 16's 4.4 based kernel to provide the best compatibility and support. Bug fixes to units using our kernel snap are provided through the ubuntu core app store.

Read more about Ubuntu Core here.

Getting Started with Ubuntu Core

Download our latest image here.

Write this to an SD card with:

wget ftp://ftp.embeddedarm.com/ts-socket-macrocontrollers/ts-4900-linux/distributions\
/ubuntu-core/ubuntu-core-16-latest.img.bz2
bzip2 -d ubuntu-core-16-latest.img.bz2
# Assuming /dev/sdd is your SD card.  Check dmesg after inserting for your device.
# Make sure this is the block device (/dev/sdd) and not a partition (/dev/sdd1).
dd if=/path/to/ubuntu-core-16-latest.img bs=4M of=/dev/sdd conv=fsync && sync

This can be written to emmc using the USB production mechanism.

Next make an Ubuntu SSO account. Generate SSH keys and upload your SSH keys to your account.

Once written to either boot media start up the board. After boot has completed it will leave you at a screen:

Press Enter to Configure

Ubuntu core has no default username/password and must be configured with their single sign on service to fetch your SSH keys.

Press enter and it will have you confirm DHCP, or use a static network configuration. Once configured it will ask for your Ubuntu SSO username. This will create an account on the Ubuntu Core image and allow access only with your SSH keys present on the store. After it has fetched your keys it will print out the ssh commands to connect to your unit which will now allow access just with your SSH keys.

Connect to the board with:

ssh <ubuntu SSO username>@<IP of board>
Note: This must be run on a system that has your SSH keys installed.

Once connected you have access to a shell prompt and can install any needed snaps. See http://snapcraft.io/ for more information on developing your own snaps for your application which can be uploaded to the store.

Ubuntu Core Reference Links