{"id":2003,"date":"2018-10-31T00:46:07","date_gmt":"2018-10-31T00:46:07","guid":{"rendered":"https:\/\/www.appservgrid.com\/paw92\/?p=2003"},"modified":"2018-10-31T03:41:40","modified_gmt":"2018-10-31T03:41:40","slug":"install-ubuntu-on-raspberry-pi","status":"publish","type":"post","link":"https:\/\/www.appservgrid.com\/paw92\/index.php\/2018\/10\/31\/install-ubuntu-on-raspberry-pi\/","title":{"rendered":"Install Ubuntu on Raspberry Pi"},"content":{"rendered":"<p>Canonical released a minimal version of Ubuntu specifically made for IoT devices which is called Ubuntu Core. Ubuntu Core requires less storage and memory to run. Ubuntu Core is really fast. It is very lightweight. Ubuntu Core can be installed on Raspberry Pi microcomputers. You need Raspberry Pi 2 or 3 single board microcomputer if you want to install and run Ubuntu Core on it.<\/p>\n<p>In this article, I will show you how to install Ubuntu Core on Raspberry Pi 3 Model B. So, let\u2019s get started.<\/p>\n<p>To follow this article, you need:<\/p>\n<ul>\n<li>Raspberry Pi 2 or 3 Single Board Microcomputer.<\/li>\n<li>A 16GB or more microSD card.<\/li>\n<li>HDMI Cable.<\/li>\n<li>An USB Keyboard.<\/li>\n<li><\/li>\n<li>Ethernet Cable.<\/li>\n<li>Power Adapter for Raspberry Pi.<\/li>\n<li>A Laptop or Desktop computer for installing\/flashing Ubuntu Core on the SD card.<\/li>\n<\/ul>\n<h2>Setting Up Ubuntu One Account for Ubuntu Core:<\/h2>\n<p>If you want to use Ubuntu Core on your Raspberry Pi 3, then you need an Ubuntu One account. If you don\u2019t have an Ubuntu One account, you can create one for free. Just visit <a href=\"https:\/\/login.ubuntu.com\">https:\/\/login.ubuntu.com<\/a> and click on I don\u2019t have an Ubuntu One account as marked in the screenshot below.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/linuxhint.com\/image\/gif;base64,R0lGODdhAQABAPAAAP\/wAAACwAAAAAAQABAEACAkQBADs=\" alt=\"\" width=\"1140\" height=\"497\" \/><\/p>\n<p>Now, fill in the required details and click on Create account.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/linuxhint.com\/image\/gif;base64,R0lGODdhAQABAPAAAP\/wAAACwAAAAAAQABAEACAkQBADs=\" alt=\"\" width=\"1140\" height=\"564\" \/><\/p>\n<p>Now, verify your email address and your account should be created. Now, visit <a href=\"https:\/\/login.ubuntu.com\/\">https:\/\/login.ubuntu.com\/<\/a> and login to your Ubuntu One account. Now, click on SSH keys and you should see the following page. Here, you have to import the SSH key of the machine from which you will be connecting to your Ubuntu Core installed on your Raspberry Pi 3 device.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/linuxhint.com\/image\/gif;base64,R0lGODdhAQABAPAAAP\/wAAACwAAAAAAQABAEACAkQBADs=\" alt=\"\" width=\"1402\" height=\"720\" \/><\/p>\n<p>You can generate SSH key very easily with the following command:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/linuxhint.com\/image\/gif;base64,R0lGODdhAQABAPAAAP\/wAAACwAAAAAAQABAEACAkQBADs=\" alt=\"\" width=\"774\" height=\"86\" \/><\/p>\n<p>By default, the SSH keys will be saved in the .ssh\/ directory of your login user\u2019s HOME directory. If you want to save it somewhere else, just type in the path where you would like to save it and press &lt;Enter&gt;. I will leave the defaults.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/linuxhint.com\/image\/gif;base64,R0lGODdhAQABAPAAAP\/wAAACwAAAAAAQABAEACAkQBADs=\" alt=\"\" width=\"774\" height=\"118\" \/><\/p>\n<p>Now, press &lt;Enter&gt;.<\/p>\n<p><u>NOTE:<\/u> If you want to encrypt the SSH key with password, type it in here and press &lt;Enter&gt;.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/linuxhint.com\/image\/gif;base64,R0lGODdhAQABAPAAAP\/wAAACwAAAAAAQABAEACAkQBADs=\" alt=\"\" width=\"779\" height=\"157\" \/><\/p>\n<p>Press &lt;Enter&gt; again.<\/p>\n<p><u>NOTE:<\/u> If you\u2019ve typed in a password in the earlier step, just re-type the same password and press &lt;Enter&gt;.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/linuxhint.com\/image\/gif;base64,R0lGODdhAQABAPAAAP\/wAAACwAAAAAAQABAEACAkQBADs=\" alt=\"\" width=\"781\" height=\"186\" \/><\/p>\n<p>Your SSH key should be generated.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/linuxhint.com\/image\/gif;base64,R0lGODdhAQABAPAAAP\/wAAACwAAAAAAQABAEACAkQBADs=\" alt=\"\" width=\"784\" height=\"516\" \/><\/p>\n<p>Now, read the SSH key with the following command:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/linuxhint.com\/image\/gif;base64,R0lGODdhAQABAPAAAP\/wAAACwAAAAAAQABAEACAkQBADs=\" alt=\"\" width=\"784\" height=\"86\" \/><\/p>\n<p>Now, copy the SSH key as marked in the screenshot below.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/linuxhint.com\/image\/gif;base64,R0lGODdhAQABAPAAAP\/wAAACwAAAAAAQABAEACAkQBADs=\" alt=\"\" width=\"872\" height=\"201\" \/><\/p>\n<p>Now, paste it in the Ubuntu One website and click on Import SSH key as marked in the screenshot below.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/linuxhint.com\/image\/gif;base64,R0lGODdhAQABAPAAAP\/wAAACwAAAAAAQABAEACAkQBADs=\" alt=\"\" width=\"1402\" height=\"720\" \/><\/p>\n<p>As you can see, the SSH key is added.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/linuxhint.com\/image\/gif;base64,R0lGODdhAQABAPAAAP\/wAAACwAAAAAAQABAEACAkQBADs=\" alt=\"\" width=\"1140\" height=\"585\" \/><\/p>\n<h3>Downloading Ubuntu Core:<\/h3>\n<p>Now that you have your Ubuntu One account set up, it\u2019s time to download Ubuntu Core. First, go to the official website of Ubuntu at <a href=\"https:\/\/www.ubuntu.com\/download\/iot\/raspberry-pi-2-3\">https:\/\/www.ubuntu.com\/download\/iot\/raspberry-pi-2-3<\/a><\/p>\n<p>Now, scroll down to the Download Ubuntu Core section and click on the download link for either Raspberry Pi 2 or Raspberry Pi 3 depending on the version of Raspberry Pi you have. I have Raspberry Pi 3 Model B, so I am going for the Raspberry Pi 3 image.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/linuxhint.com\/image\/gif;base64,R0lGODdhAQABAPAAAP\/wAAACwAAAAAAQABAEACAkQBADs=\" alt=\"\" width=\"1402\" height=\"720\" \/><\/p>\n<p>Your download should start.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/linuxhint.com\/image\/gif;base64,R0lGODdhAQABAPAAAP\/wAAACwAAAAAAQABAEACAkQBADs=\" alt=\"\" width=\"1140\" height=\"585\" \/><\/p>\n<h3>Flashing Ubuntu Core on microSD Card:<\/h3>\n<p>You can flash Ubuntu Core on your microSD card very easily on Windows, Linux and macOS operating system using Etcher. Etcher is a really easy to use software for flashing microSD cards for Raspberry Pi devices. You can download Etcher from the official website of Etcher at <a href=\"https:\/\/etcher.io\/\">https:\/\/etcher.io\/<\/a><\/p>\n<p><u>NOTE:<\/u> I can\u2019t show you how to install Etcher in this article as it is out of the scope of this article. You should be able to install Etcher on your own. It\u2019s very easy.<\/p>\n<p>Once you install Etcher, open Etcher and click on Select image.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/linuxhint.com\/image\/gif;base64,R0lGODdhAQABAPAAAP\/wAAACwAAAAAAQABAEACAkQBADs=\" alt=\"\" width=\"802\" height=\"407\" \/><\/p>\n<p>A file picker should be opened. Now, select the Ubuntu Core image that you just downloaded and click on Open.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/linuxhint.com\/image\/gif;base64,R0lGODdhAQABAPAAAP\/wAAACwAAAAAAQABAEACAkQBADs=\" alt=\"\" width=\"946\" height=\"533\" \/><\/p>\n<p>Now, insert the microSD card on your computer and click on Select drive.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/linuxhint.com\/image\/gif;base64,R0lGODdhAQABAPAAAP\/wAAACwAAAAAAQABAEACAkQBADs=\" alt=\"\" width=\"802\" height=\"407\" \/><\/p>\n<p>Now, click to select your microSD card and click on Continue.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/linuxhint.com\/image\/gif;base64,R0lGODdhAQABAPAAAP\/wAAACwAAAAAAQABAEACAkQBADs=\" alt=\"\" width=\"802\" height=\"407\" \/><\/p>\n<p>Finally, click on Flash!<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/linuxhint.com\/image\/gif;base64,R0lGODdhAQABAPAAAP\/wAAACwAAAAAAQABAEACAkQBADs=\" alt=\"\" width=\"802\" height=\"407\" \/><\/p>\n<p>As you can see, your microSD card is being flashed\u2026<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/linuxhint.com\/image\/gif;base64,R0lGODdhAQABAPAAAP\/wAAACwAAAAAAQABAEACAkQBADs=\" alt=\"\" width=\"802\" height=\"407\" \/><\/p>\n<p>Once your microSD card is flashed, close Etcher.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/linuxhint.com\/image\/gif;base64,R0lGODdhAQABAPAAAP\/wAAACwAAAAAAQABAEACAkQBADs=\" alt=\"\" width=\"802\" height=\"407\" \/><\/p>\n<h3>Preparing Raspberry Pi:<\/h3>\n<p>Now that you have flashed Ubuntu Core on the microSD card, insert it on your Raspberry Pi\u2019s microSD card slot. Now, connect one end of the Ethernet cable to the RJ45 Ethernet port of your Raspberry Pi and another end to one of the port on your Router or Switch. Now, connect one end of the HDMI cable to your Raspberry Pi and the other end to your Monitor. Also, connect the USB keyboard to one of the USB port of your Raspberry Pi. Finally, plug in the power adapter to your Raspberry Pi.<\/p>\n<p>After connecting everything, my Raspberry Pi 3 Model B looks as follows:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/linuxhint.com\/image\/gif;base64,R0lGODdhAQABAPAAAP\/wAAACwAAAAAAQABAEACAkQBADs=\" alt=\"\" width=\"807\" height=\"1076\" \/><\/p>\n<h3>Setting Up Ubuntu Core on Raspberry Pi:<\/h3>\n<p>Now, power on your Raspberry Pi device and it should boot into Ubuntu Core as you can see in the screenshot below.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/linuxhint.com\/image\/gif;base64,R0lGODdhAQABAPAAAP\/wAAACwAAAAAAQABAEACAkQBADs=\" alt=\"\" width=\"1140\" height=\"701\" \/><\/p>\n<p>One you see the following window, press &lt;Enter&gt; to configure Ubuntu Core.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/linuxhint.com\/image\/gif;base64,R0lGODdhAQABAPAAAP\/wAAACwAAAAAAQABAEACAkQBADs=\" alt=\"\" width=\"1073\" height=\"255\" \/><\/p>\n<p>First, you have to configure networking. This is essential for Ubuntu Core to work. To do that, press &lt;Enter&gt; here.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/linuxhint.com\/image\/gif;base64,R0lGODdhAQABAPAAAP\/wAAACwAAAAAAQABAEACAkQBADs=\" alt=\"\" width=\"1140\" height=\"235\" \/><\/p>\n<p>As you can see, Ubuntu Core has automatically configured the network interface using DHCP. The IP address is 192.168.2.15 in my case. Yours should be different. Once you\u2019re done, select [ Done ], press &lt;Enter&gt;.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/linuxhint.com\/image\/gif;base64,R0lGODdhAQABAPAAAP\/wAAACwAAAAAAQABAEACAkQBADs=\" alt=\"\" width=\"1175\" height=\"378\" \/><\/p>\n<p>Now, type in the email address that you used to create your Ubuntu One account. Then, select [ Done ] and press &lt;Enter&gt;.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/linuxhint.com\/image\/gif;base64,R0lGODdhAQABAPAAAP\/wAAACwAAAAAAQABAEACAkQBADs=\" alt=\"\" width=\"1140\" height=\"299\" \/><\/p>\n<p>The configuration is complete. Now press &lt;Enter&gt;.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/linuxhint.com\/image\/gif;base64,R0lGODdhAQABAPAAAP\/wAAACwAAAAAAQABAEACAkQBADs=\" alt=\"\" width=\"1140\" height=\"338\" \/><\/p>\n<p>Now, you should see the following window. You can SSH into your Raspberry Pi with the command as marked in the screenshot below.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/linuxhint.com\/image\/gif;base64,R0lGODdhAQABAPAAAP\/wAAACwAAAAAAQABAEACAkQBADs=\" alt=\"\" width=\"1143\" height=\"553\" \/><\/p>\n<h3>Connecting to Raspberry Pi Using SSH:<\/h3>\n<p>Now, SSH into your Raspberry Pi device from your computer as follows:<\/p>\n<p>$ ssh dev.shovon8@192.168.2.15<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/linuxhint.com\/image\/gif;base64,R0lGODdhAQABAPAAAP\/wAAACwAAAAAAQABAEACAkQBADs=\" alt=\"\" width=\"803\" height=\"89\" \/><\/p>\n<p>Now, type in yes and press &lt;Enter&gt;.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/linuxhint.com\/image\/gif;base64,R0lGODdhAQABAPAAAP\/wAAACwAAAAAAQABAEACAkQBADs=\" alt=\"\" width=\"1068\" height=\"149\" \/><\/p>\n<p>You should be logged into your Raspberry Pi.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/linuxhint.com\/image\/gif;base64,R0lGODdhAQABAPAAAP\/wAAACwAAAAAAQABAEACAkQBADs=\" alt=\"\" width=\"1040\" height=\"449\" \/><\/p>\n<p>As you can see, I am running Ubuntu Core 16.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/linuxhint.com\/image\/gif;base64,R0lGODdhAQABAPAAAP\/wAAACwAAAAAAQABAEACAkQBADs=\" alt=\"\" width=\"1054\" height=\"165\" \/><\/p>\n<p>It\u2019s using just a few megabytes of memory. It\u2019s very lightweight as I said.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/linuxhint.com\/image\/gif;base64,R0lGODdhAQABAPAAAP\/wAAACwAAAAAAQABAEACAkQBADs=\" alt=\"\" width=\"1055\" height=\"170\" \/><\/p>\n<p>So, that\u2019s how you install Ubuntu Core on Raspberry Pi 2 and Raspberry Pi 3. Thanks for reading this article.<\/p>\n<p><a href=\"https:\/\/linuxhint.com\/install_ubuntu_raspberry_pi\/\" target=\"_blank\" rel=\"noopener\">Source<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Canonical released a minimal version of Ubuntu specifically made for IoT devices which is called Ubuntu Core. Ubuntu Core requires less storage and memory to run. Ubuntu Core is really fast. It is very lightweight. Ubuntu Core can be installed on Raspberry Pi microcomputers. You need Raspberry Pi 2 or 3 single board microcomputer if &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/www.appservgrid.com\/paw92\/index.php\/2018\/10\/31\/install-ubuntu-on-raspberry-pi\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Install Ubuntu on Raspberry Pi&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-2003","post","type-post","status-publish","format-standard","hentry","category-linux"],"_links":{"self":[{"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/posts\/2003","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/comments?post=2003"}],"version-history":[{"count":1,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/posts\/2003\/revisions"}],"predecessor-version":[{"id":2046,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/posts\/2003\/revisions\/2046"}],"wp:attachment":[{"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/media?parent=2003"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/categories?post=2003"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/tags?post=2003"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}