<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Canonical Archives - VPN Expert</title>
	<atom:link href="https://vpn-expert.info/tag/canonical/feed/" rel="self" type="application/rss+xml" />
	<link></link>
	<description>Life is too short to remove USB safely …</description>
	<lastBuildDate>Thu, 20 Jan 2022 16:17:09 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.2.2</generator>
	<item>
		<title>Ubuntu 20.04 LTS — Install and Setup on Raspberry Pi (+Desktop)</title>
		<link>https://vpn-expert.info/ubuntu-20-04-lts-install-and-setup-on-raspberry-pi-desktop/</link>
					<comments>https://vpn-expert.info/ubuntu-20-04-lts-install-and-setup-on-raspberry-pi-desktop/#comments</comments>
		
		<dc:creator><![CDATA[guyfawkes]]></dc:creator>
		<pubDate>Sun, 10 May 2020 05:31:19 +0000</pubDate>
				<category><![CDATA[How To]]></category>
		<category><![CDATA[Raspberry Pi]]></category>
		<category><![CDATA[32-bit]]></category>
		<category><![CDATA[64-bit]]></category>
		<category><![CDATA[Canonical]]></category>
		<category><![CDATA[Desktop]]></category>
		<category><![CDATA[Ethernet]]></category>
		<category><![CDATA[Focal Fossa]]></category>
		<category><![CDATA[HDMI]]></category>
		<category><![CDATA[KDE]]></category>
		<category><![CDATA[Keyboard]]></category>
		<category><![CDATA[Kubuntu]]></category>
		<category><![CDATA[Lubuntu]]></category>
		<category><![CDATA[LXQt]]></category>
		<category><![CDATA[Mouse]]></category>
		<category><![CDATA[Network]]></category>
		<category><![CDATA[Protocoll]]></category>
		<category><![CDATA[RaspAP]]></category>
		<category><![CDATA[Raspberry Pi Imager]]></category>
		<category><![CDATA[Server]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[VPN]]></category>
		<category><![CDATA[VPN Protocol]]></category>
		<category><![CDATA[Wi-Fi]]></category>
		<category><![CDATA[WireGuard]]></category>
		<category><![CDATA[Xfce]]></category>
		<category><![CDATA[Xubuntu]]></category>
		<guid isPermaLink="false">https://vpn-expert.info/?p=345</guid>

					<description><![CDATA[<p>Canonical has officially certified Ubuntu 20.04 LTS Focal Fossa for the Raspberry Pi, I want to know more about it. Let&#8217;s install the Linux distribution on the Pi and see how well it works. First of all you need to know that Ubuntu 20.04 is only available for the Raspberry Pi versions 2, 3 and [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://vpn-expert.info/ubuntu-20-04-lts-install-and-setup-on-raspberry-pi-desktop/">Ubuntu 20.04 LTS — Install and Setup on Raspberry Pi (+Desktop)</a> appeared first on <a rel="nofollow" href="https://vpn-expert.info">VPN Expert</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p>Canonical has officially certified Ubuntu 20.04 LTS Focal Fossa for the Raspberry Pi, I want to know more about it. Let&#8217;s install the Linux distribution on the Pi and see how well it works.</p>



<p>First of all you need to know that <strong>Ubuntu 20.04 is only available for the Raspberry Pi versions 2, 3 and 4</strong>. Then there is a 32-bit and a 64-bit version. Starting with Raspberry Pi 3, you can install the 64-bit version. The 32-bit version runs on all officially supported Pis.</p>



<h2 class="wp-block-heading">What you need</h2>



<p>For the test I used a Raspberry Pi 4 and the 64-bit version. Furthermore, there were a few other components in use, some of which are part of my standard equipment:</p>



<ul><li><strong>Raspberry Pi 2, 3 or 4</strong></li><li><strong>microSD</strong> card (you can hardly get smaller than 16 GB anyway)</li><li><strong>Power supply</strong> (I always use the official power supplies)</li><li><strong>Case</strong> for the Raspberry Pi (optional — but recommended)</li></ul>



<p>Now it depends on whether you access Ubuntu for the Raspberry Pi completely <em>headless</em> or use the device on a screen. If this is the case, you will need additional hardware:</p>



<ul><li>Keyboard / mouse (optional Logitech with touchpad)</li><li>For Raspberry Pi 4 a HDMI adapter</li></ul>



<p>If you do not have any hardware yet, we recommend that you purchase a kit or complete package. This includes everything you need except for the mouse, keyboard and screen.</p>



<h2 class="wp-block-heading">Install Ubuntu 20.04 on a microSD card</h2>



<p>The easiest way to install Ubuntu 20.04 on a microSD card is the <strong>Raspberry Pi Imager</strong>. You can download it from the <a href="https://www.raspberrypi.org/downloads/">Raspberry-Pi-Website</a>. It is available for Ubuntu (also Linux Mint), Windows and macOS.</p>



<p><strong>Important:</strong> Installing Ubuntu 20.04 on the microSD card will erase all data on the flash drive. So make sure that there is no important data on it. If this is the case, a <strong>backup is recommended</strong>.</p>



<p>After downloading the <em>Raspberry Pi Imager</em>, insert your microSD card into your computer and start the tool. Now choose which version of Ubuntu 20.04 you want to install.</p>



<figure class="wp-block-image size-large"><img decoding="async" width="679" height="448" src="https://vpn-expert.info/wp-content/uploads/2020/05/ubuntu-20-04-raspberrypi.png" alt="Ubuntu 20.04 LTS Focal Fossa and the Raspberry Pi Imager Tool" class="wp-image-346" srcset="https://vpn-expert.info/wp-content/uploads/2020/05/ubuntu-20-04-raspberrypi.png 679w, https://vpn-expert.info/wp-content/uploads/2020/05/ubuntu-20-04-raspberrypi-300x198.png 300w" sizes="(max-width: 679px) 100vw, 679px" /><figcaption>Ubuntu 20.04 LTS Focal Fossa and the Raspberry Pi Imager Tool</figcaption></figure>



<p>Furthermore, you choose the SD card — if there is only one plugged in to the computer, the choice should not be difficult. Then click on <em>Write</em> and the installation process begins. Depending on your internet speed, the download will take a few minutes.</p>



<h2 class="wp-block-heading">First configuration steps for Ubuntu 20.04 on the Raspberry Pi</h2>



<p>Before the first start you can already prepare the Raspberry Pi with Ubuntu 20.04 This is recommended, especially if you want to connect the device to the network via Wi-Fi.</p>



<h3 class="wp-block-heading">Wi-Fi or Ethernet cable</h3>



<p>The first question will be whether you want to connect the Raspberry Pi to the network via Wi-Fi or Ethernet cable. With a cable, this is easy because you don&#8217;t have to do anything else.</p>



<p>If you want to configure the Raspberry Pi with Ubuntu 20.04 for wireless networking before the first boot, a small configuration step is necessary.</p>



<p>Let&#8217;s assume the microSD card is still in your computer, look for the partition <strong>system-boot</strong>. If necessary, you have to eject the disk and plug it in again. The partition contains configuration files that are loaded during the first boot. This is similar to configuring Raspbian for headless use.</p>



<figure class="wp-block-image size-large"><img decoding="async" loading="lazy" width="569" height="92" src="https://vpn-expert.info/wp-content/uploads/2020/05/system-boot-network-config.png" alt="Search on the partition system-boot for the file network-config" class="wp-image-347" srcset="https://vpn-expert.info/wp-content/uploads/2020/05/system-boot-network-config.png 569w, https://vpn-expert.info/wp-content/uploads/2020/05/system-boot-network-config-300x49.png 300w" sizes="(max-width: 569px) 100vw, 569px" /><figcaption>Search on the partition <strong>system-boot</strong> for the file <strong>network-config</strong></figcaption></figure>



<p>On the partition you will find a file <strong>network-config</strong>. Open it with a text editor and you will see that the developers provide examples.</p>



<figure class="wp-block-image size-large"><img decoding="async" src="https://vpn-expert.info/wp-content/uploads/2020/05/network-config.png" alt="network-config includes examples" class="wp-image-348"/><figcaption>network-config includes examples</figcaption></figure>



<p>You can remove the comments <strong>#</strong> and enter your values. For example:</p>



<pre class="wp-block-code"><code class="">wifis:
   wlan0:
      dhcp4: true
      optional: true
      access-points:
        Springfield:
        password: "topsecret"</code></pre>



<p><strong>Important:</strong> If your Wi-Fi network name contains a <strong>space</strong>, you must <strong>enclose the name in quotation marks</strong>: <strong>&#8220;My Wi-Fi Name&#8221;</strong>.</p>



<p>You can also change the network settings later by editing the file <em>/etc/netplan/50-cloud-init.yaml</em>.</p>



<p>In my case, the Wi-Fi didn&#8217;t work right away because the system didn&#8217;t put quotation marks in the password in the file <em>50-cloud-init.yaml</em>. Now I had to do that myself and save the file. After another reboot Wi-Fi was working as it should.</p>



<figure class="wp-block-image size-large"><img decoding="async" loading="lazy" width="634" height="287" src="https://vpn-expert.info/wp-content/uploads/2020/05/wifi-works.jpg" alt="Wi-Fi works now with Ubuntu 20.04 LTS Focal Fossa on the Raspberry Pi" class="wp-image-349" srcset="https://vpn-expert.info/wp-content/uploads/2020/05/wifi-works.jpg 634w, https://vpn-expert.info/wp-content/uploads/2020/05/wifi-works-300x136.jpg 300w" sizes="(max-width: 634px) 100vw, 634px" /><figcaption>Wi-Fi works now with Ubuntu 20.04 LTS Focal Fossa on the Raspberry Pi</figcaption></figure>



<p>That didn&#8217;t work as smooth as expected.</p>



<h2 class="wp-block-heading">Booting Raspberry Pi with Ubuntu 20.04 LTS</h2>



<p>Now insert the microSD card into your Raspberry Pi and start the system. The boot process does not take long with a Raspberry Pi 4.</p>



<p><strong>Important</strong>: Username and password are <em>ubuntu</em> by default (both the same).</p>



<p>When you log in for the first time, the system will immediately ask you to change your password. This is really useful because the <strong>SSH server</strong> is activated by default. If you don&#8217;t change the password, everyone on the same network can access your Raspberry Pi.</p>



<p>Be careful at this point, though because the keyboard settings are US. You may want to set a simple password, change the keyboard settings if necessary and then use a password that matches your keyboard.</p>



<h3 class="wp-block-heading">Change keyboard settings on Ubuntu 20.04 Server</h3>



<p>After starting and changing the password, changing the keyboard layout was my next step. Otherwise this would drive me crazy. Use the command on the console:</p>



<pre class="wp-block-code"><code lang="bash" class="language-bash">sudo dpkg-reconfigure keyboard-configuration</code></pre>



<p>Follow the instructions to change your keyboard layout — it&#8217;s easy. After you are done reboot the system or the following command might do the trick:</p>



<pre class="wp-block-code"><code lang="bash" class="language-bash">sudo setupcon</code></pre>



<p>Now I have a keyboard layout I can work with.</p>



<h3 class="wp-block-heading">Changing the time zone</h3>



<p>You should also be aware that the timezone is set to UTC. If you want to change that as well use the following command:</p>



<pre class="wp-block-code"><code lang="bash" class="language-bash">sudo timedatectl set-timezone &lt;your-timezone></code></pre>



<p>Now you can check with <code>date</code> whether this has worked or not.</p>



<h3 class="wp-block-heading">Access Ubuntu 20.04 for Raspberry Pi via SSH</h3>



<p>If you know the IP address of your Raspberry Pi, you can access it via SSH. As mentioned above, the SSH server is installed and activated by default.</p>



<p>If you have a mouse, keyboard and screen connected, you can find out the IP address with this command:</p>



<pre class="wp-block-code"><code lang="bash" class="language-bash">ip a</code></pre>



<p>You can also check your router or DHCP server to see what <a href="https://vpn-expert.info/what-is-an-ip-address-and-why-is-it-important-for-vpn/">IP address</a> is assigned to the Raspberry Pi. You may want to give a static IP address to a server anyway. I always do this via DHCP server because the IP address is then bound to the MAC address. Even when I install a new operating system, I know what IP address the device has. Just as a thought.</p>



<pre class="wp-block-code"><code class="">ssh ubuntu@&lt;IP address of the Raspberry Pi></code></pre>



<p>The first time you access it, you must confirm access to Ubuntu 20.04 for Raspberry Pi. This is like all SSH connections, as you know.</p>



<h3 class="wp-block-heading">Update your system to the latest version</h3>



<p>After logging in, the system also reported that there are updates for 5 packages.</p>



<figure class="wp-block-image size-large"><img decoding="async" src="https://vpn-expert.info/wp-content/uploads/2020/05/5-updates.png" alt="There are 5 updates available for Ubuntu 20.04 - thanks for the ... well ... update" class="wp-image-350"/><figcaption>There are 5 updates available for Ubuntu 20.04 &#8211; thanks for the &#8230; well &#8230; update</figcaption></figure>



<p>Good to know, we install the updates quickly:</p>



<pre class="wp-block-code"><code lang="bash" class="language-bash">sudo apt upgrade</code></pre>



<p>After Ubuntu 20.04 for Raspberry Pi is up to date, I install a desktop environment out of curiosity.</p>



<h2 class="wp-block-heading">Install a Desktop environment</h2>



<p>You have the possibility to install a desktop environment. You can choose between <strong>Xubuntu</strong>, <strong>Lubuntu</strong> and <strong>Kubuntu</strong>, i.e. <strong>Xfce</strong>, <strong>LXQt</strong> and <strong>KDE</strong>.</p>



<pre class="wp-block-code"><code lang="bash" class="language-bash">sudo apt install xubuntu-desktop
sudo apt install lubuntu-desktop
sudo apt install kubuntu-desktop</code></pre>



<p>For the test I was pragmatic and just took <strong>Xubuntu</strong> or <strong>Xfce</strong>. Even on a Raspberry Pi 4 it takes a while to install a graphical desktop environment. Time for a coffee.</p>



<p>Once the installation is complete, simply reboot your Raspberry Pi with Ubuntu 20.04 LTS Focal Fossa. The graphical desktop environment will start automatically.</p>



<p>The system will also install various desktop applications such as <strong>Firefox</strong>, <strong>Thunderbird</strong>, <strong>LibreOffice</strong>, <strong>Pidgin</strong> and <strong>GIMP</strong>.</p>



<h3 class="wp-block-heading">It&#8217;s no fun — seriously</h3>



<p>This is not yet running smoothly at all. So, when I logged in, the system logged me into GNOME, the normal Ubuntu environment. I had to manually switch to <em>Xfce</em>. After that I was greeted with an error message (although I had left the preselection <strong>gdm3</strong> as display manager).</p>



<figure class="wp-block-image size-large"><img decoding="async" loading="lazy" width="824" height="516" src="https://vpn-expert.info/wp-content/uploads/2020/05/error-message.png" alt="The Xfce session under Ubuntu 20.04 tarted with an error message" class="wp-image-351" srcset="https://vpn-expert.info/wp-content/uploads/2020/05/error-message.png 824w, https://vpn-expert.info/wp-content/uploads/2020/05/error-message-300x188.png 300w, https://vpn-expert.info/wp-content/uploads/2020/05/error-message-768x481.png 768w" sizes="(max-width: 824px) 100vw, 824px" /><figcaption>The Xfce session under Ubuntu 20.04 tarted with an error message</figcaption></figure>



<p>The error no longer occurred after I switched to <strong>lightdm</strong> instead of <strong>gdm3</strong>:</p>



<pre class="wp-block-code"><code lang="bash" class="language-bash">sudo dpkg-reconfigure lightdm</code></pre>



<p>However, Ubuntu 20.04 gave me a strange screen resolution with both the display managers and I can&#8217;t change it. My screen would actually support 1920×1080 pixels.</p>



<figure class="wp-block-image size-large"><img decoding="async" src="https://vpn-expert.info/wp-content/uploads/2020/05/odd-screen-resolution.png" alt="Really odd screen resolution" class="wp-image-352"/><figcaption>Really odd screen resolution</figcaption></figure>



<p>There are also graphical glitches like black screen and only the mouse pointer shows up. Manjaro works better on the Raspberry Pi as a desktop. But I still stick to the fact that <strong>Raspbian is the best desktop </strong>environment for the Raspberry Pi, especially if you want to tinker with the Pi.</p>



<p>The Ubuntu GUI on a Raspberry Pi 4 also feels slow and Raspbian on a Pi 2 feels similarly fast. This is simply no fun.</p>



<p>I just put Ubuntu 20.04 LTS Server on the microSD card again and started from scratch. The Ubuntu 20.04 desktop on the Raspberry Pi is not good right now. If you really want to run Ubuntu 20.04 as a desktop on the Raspberry Pi, you better wait for Ubuntu MATE 20.04 — my opinion.</p>



<h2 class="wp-block-heading">Install WireGuard Tools</h2>



<p>If you are interested in Linux and <a href="https://vpn-expert.info/vpn-virtual-private-network-what-is-it-why-do-i-need-one/">VPNs</a>, you know that the <a href="https://vpn-expert.info/what-is-a-vpn-protocol-openvpn-wireguard-sstp-pptp-ipsec-l2tp-ikev2/">VPN protocol</a> WireGuard was included in the Linux kernel 5.6 and backported for the Ubuntu kernel (5.4). This means you can easily install WireGuard from the repositories.</p>



<figure class="wp-block-image size-large"><img decoding="async" loading="lazy" width="524" height="205" src="https://vpn-expert.info/wp-content/uploads/2020/05/wireguard-packages.png" alt="You can easily install the WireGuard packages" class="wp-image-353" srcset="https://vpn-expert.info/wp-content/uploads/2020/05/wireguard-packages.png 524w, https://vpn-expert.info/wp-content/uploads/2020/05/wireguard-packages-300x117.png 300w" sizes="(max-width: 524px) 100vw, 524px" /><figcaption>You can easily install the WireGuard packages</figcaption></figure>



<p>This makes it easier to install WireGuard than under Raspbian, should you want to build a <a href="https://vpn-expert.info/wireguard-vpn-server-ubuntu-raspberry-pi-linux-android/">WireGuard server</a> with your Ubuntu 20.04 on the Raspberry Pi.</p>



<pre class="wp-block-code"><code lang="bash" class="language-bash">sudo apt install wireguard</code></pre>



<p>By the way, <a href="https://vpn-expert.info/vpn-router-raspberry-pi-raspap-and-nordvpn-wi-fi-hotspot-access-point/">RaspAP</a> also supports Ubuntu, but currently only officially 18.04 and 19.10. I haven&#8217;t tried to make a hotspot out of Ubuntu 20.04 LTS for Raspberry Pi.</p>



<p>If you are searching a VPN for the Raspberry Pi I recommend <a class="external external_icon" href="https://vpn-expert.info/vpn/nordvpn.php" target="_blank" rel="nofollow">NordVPN (<strong>big discounts NOW</strong>)*</a> because they provide a native client. They also give you the possibility to use WireGuard — NordVPN calls it <a href="https://vpn-expert.info/nordlynx-nordvpn-introduces-wireguard-for-all-apps-also-android-windows/">NordLynx</a>.</p>



<p></p>
<p>The post <a rel="nofollow" href="https://vpn-expert.info/ubuntu-20-04-lts-install-and-setup-on-raspberry-pi-desktop/">Ubuntu 20.04 LTS — Install and Setup on Raspberry Pi (+Desktop)</a> appeared first on <a rel="nofollow" href="https://vpn-expert.info">VPN Expert</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://vpn-expert.info/ubuntu-20-04-lts-install-and-setup-on-raspberry-pi-desktop/feed/</wfw:commentRss>
			<slash:comments>4</slash:comments>
		
		
			</item>
	</channel>
</rss>
