How to install snappy Ubuntu to Raspberry Pi (RaspBerry pi)

Source: Internet
Author: User
Tags ssh

You may have read my previous introduction to snappy Ubuntu. is not eager to get a snappy system to their own development Board AH. In this article today, we will show you how to assemble your own Raspberry Pi snappy Ubuntu system.




Final version:




We can buy the development version of the Raspberry Pi 2 generation (model B) at our ideal price at Taobao store. As seen above:

RaspBerry Pi 2 model B 8G or 16G TF card, it is recommended to use the SanDisk, such as faster card USB charger to install RaspBerry PI box, transparent can see the light flashing WiFi (see my article "How to install SN Appy Ubuntu's Raspberry Pi launches WiFi "piglow (for glowing) network cable and HDMI cable (optional) The Raspberry Pi box is not very beautiful after this assembly.
Next, we'll show you how to install the snappy Ubuntu system into our Raspberry Pi.
1) Download Ubuntu Core image for Raspberry Pi 2
We clicked on Raspberry Pi image and downloaded the image of Ubuntu Core image for Raspberry Pi 2 into our ~/downloads directory. The entire image is currently about 202M.

2) Install image into TF card
We insert our TF card into the MMC slot of our computer, or insert it into a USB adapter. We must unmount our cards before making copies of the image. We then use the following command to copy our image to the card:

# NOTE:REPLACE/DEV/SDX with the device name of your SD card (e.g./dev/mmcblk0,/DEV/SDG1 ...)

$ Xzcat ~/downloads/ubuntu-15.04-snappy-armhf-raspi2.img.xz | sudo dd of=/dev/sdx bs=32m
$ sync

Note:The image name "/ubuntu-15.04-snappy-armhf-raspi2.img.xz" here may change as the version changes. Please replace it with the specific file you downloaded. Here's SdXWe need to change the device number of our card, for example, in the MMC slot of our computer. mmcblk0



In the adapter of my USB, it is displayed as SDB


Please note: The action of the entire copy file takes some time, which is supposed to be uncompressed after the file is about 4G in size. When we brush our system into my card and reseat the card, we can see that there are four partitions on the card:


In the above figure we can also see that there are four partitions (SDB1/SDB2/SDB3/SDB4) under SDB. Inside it, there are system partitions A and B that we installed.
when we swipe the card, we need to pay attention to the matter
1) When we swipe, if our card has been mount (usually when the card is inserted, our file browser will automatically open and display the content), we need to be umount these drive. We can do this with the following commands:
$ sudo umount/media/$USER/system-a
$ sudo umount/media/$USER/system-b
$ sudo umount/media/$USER/writable
$ sudo umount/media/$USER/system-boot

2) When we swipe, we can use sudo fdisk-l, or lsblk to get the code for our device. Note that when we execute the command, "/DEV/SDX" in the command line can be/dev/sdb instead of/dev/sdb1, possibly/dev/mmcblk0 rather than/DEV/MMCBLK0P1.
3) before we swipe, be sure to back up the information in your card, because the DD command will delete the contents of all the cards.
When we've already brushed our Raspberry Pi Snappy Ubuntu system, we can insert the card into our Raspberry Pi TF card slot.


We can begin our journey of discovery. If you are interested, please refer to my article:
How to start WiFi on a Raspberry Pi with snappy ubuntu installed
Snappy Ubuntu Primer

If you do not have their own display and keyboard, we recommend that you use a network cable to connect to their routers. From the article above, find the address of the Raspberry Pi and ssh into snappy Ubuntu.




Please note that the IP address shown in the figure above is the IP address on my Raspberry Pi. Developers need to replace them with their Raspberry Pi address. We can also use the following simple commands to access our Snapp devices:
$ ssh ubuntu@webdm.local   # Password:ubuntu

We can get the IP address of your Raspberry Pi in the following way:
liuxg@liuxg:~$ Ping webdm.local
ping webdm.local (192.168.1.105) bytes of data.
Bytes from 192.168.1.105:icmp_seq=1 ttl=64 time=1.15 ms to
bytes from 192.168.1.105:icmp_seq=2 ttl=64 time=0.716 Ms
bytes from 192.168.1.105:icmp_seq=3 ttl=64 time=0.674 ms

In this environment, we can do whatever we like to do.
If you are interested in the Beaglebone Development Board, you can refer to our article "Getting started with a beaglebone Black".

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.