<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>ubuntu on Tech for Breakfast</title><link>https://techforbreakfast.com/en/categories/ubuntu/</link><description>Recent content in ubuntu on Tech for Breakfast</description><generator>Hugo</generator><language>en-GB</language><lastBuildDate>Mon, 15 Sep 2025 15:00:34 +0100</lastBuildDate><atom:link href="https://techforbreakfast.com/en/categories/ubuntu/index.xml" rel="self" type="application/rss+xml"/><item><title>Ubuntu – changing the VM identifier after cloning</title><link>https://techforbreakfast.com/en/ubuntu-change-vm-identifier-after-cloning/</link><pubDate>Mon, 15 Sep 2025 15:00:34 +0100</pubDate><guid>https://techforbreakfast.com/en/ubuntu-change-vm-identifier-after-cloning/</guid><description>&lt;p&gt;When you clone a virtual machine, it is good practice to change that virtual machine&amp;rsquo;s identifier.&lt;/p&gt;&#10;&lt;p&gt;To check the current machine-id, we can run the following command:&lt;/p&gt;&#10;&lt;div class="code"&gt;&#10; &lt;div class="code-bar"&gt;&#10; &lt;span class="code-dots" aria-hidden="true"&gt;&lt;i&gt;&lt;/i&gt;&lt;i&gt;&lt;/i&gt;&lt;i&gt;&lt;/i&gt;&lt;/span&gt;&#10; &lt;span class="code-lang"&gt;text&lt;/span&gt;&#10; &lt;button type="button" class="code-copy"&gt;copy&lt;/button&gt;&#10; &lt;/div&gt;&#10; &lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#e6edf3;background-color:#0d1117;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-text" data-lang="text"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;cat /etc/machine-id&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;cat /var/lib/dbus/machine-id&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&#10;&lt;/div&gt;&#10;&lt;p&gt;We can now change it with the following commands&lt;/p&gt;</description></item><item><title>Ubuntu – changing the hostname</title><link>https://techforbreakfast.com/en/ubuntu-change-hostname/</link><pubDate>Mon, 15 Sep 2025 14:51:01 +0100</pubDate><guid>https://techforbreakfast.com/en/ubuntu-change-hostname/</guid><description>&lt;p&gt;To change the hostname of an Ubuntu installation, you can run the following commands:&lt;/p&gt;&#10;&lt;div class="code"&gt;&#10; &lt;div class="code-bar"&gt;&#10; &lt;span class="code-dots" aria-hidden="true"&gt;&lt;i&gt;&lt;/i&gt;&lt;i&gt;&lt;/i&gt;&lt;i&gt;&lt;/i&gt;&lt;/span&gt;&#10; &lt;span class="code-lang"&gt;text&lt;/span&gt;&#10; &lt;button type="button" class="code-copy"&gt;copy&lt;/button&gt;&#10; &lt;/div&gt;&#10; &lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#e6edf3;background-color:#0d1117;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-text" data-lang="text"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;sudo hostnamectl hostname &amp;lt;newname&amp;gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;sudo bash -c &amp;#34;sed -i &amp;#39;s/&amp;lt;currentname&amp;gt;/&amp;lt;newname&amp;gt;/g&amp;#39; /etc/hosts&amp;#34;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&#10;&lt;/div&gt;&#10;&lt;p&gt;Then reboot, to make sure there are no problems with services that were started before the change.&lt;/p&gt;</description></item><item><title>Remote unlocking of a LUKS-encrypted disk</title><link>https://techforbreakfast.com/en/remote-unlock-luks-encrypted-disk/</link><pubDate>Wed, 22 May 2024 20:22:41 +0100</pubDate><guid>https://techforbreakfast.com/en/remote-unlock-luks-encrypted-disk/</guid><description>&lt;h2 id="installation"&gt;Installation&lt;/h2&gt;&#10;&lt;p&gt;We start by updating the distribution&amp;rsquo;s package repository&lt;/p&gt;&#10;&lt;div class="code"&gt;&#10; &lt;div class="code-bar"&gt;&#10; &lt;span class="code-dots" aria-hidden="true"&gt;&lt;i&gt;&lt;/i&gt;&lt;i&gt;&lt;/i&gt;&lt;i&gt;&lt;/i&gt;&lt;/span&gt;&#10; &lt;span class="code-lang"&gt;text&lt;/span&gt;&#10; &lt;button type="button" class="code-copy"&gt;copy&lt;/button&gt;&#10; &lt;/div&gt;&#10; &lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#e6edf3;background-color:#0d1117;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-text" data-lang="text"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;sudo apt-get update&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&#10;&lt;/div&gt;&#10;&lt;p&gt;And then we can install dropbear-initramfs&lt;/p&gt;&#10;&lt;div class="code"&gt;&#10; &lt;div class="code-bar"&gt;&#10; &lt;span class="code-dots" aria-hidden="true"&gt;&lt;i&gt;&lt;/i&gt;&lt;i&gt;&lt;/i&gt;&lt;i&gt;&lt;/i&gt;&lt;/span&gt;&#10; &lt;span class="code-lang"&gt;text&lt;/span&gt;&#10; &lt;button type="button" class="code-copy"&gt;copy&lt;/button&gt;&#10; &lt;/div&gt;&#10; &lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#e6edf3;background-color:#0d1117;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-text" data-lang="text"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;sudo apt-get install dropbear-initramfs&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&#10;&lt;/div&gt;&#10;&lt;p&gt;While Dropbear is being installed, the following message may appear:&lt;/p&gt;&#10;&lt;p&gt;&amp;ldquo;dropbear: WARNING: Invalid authorized_keys file, SSH login to initramfs won&amp;rsquo;t work!&amp;rdquo;&lt;/p&gt;</description></item><item><title>Wake-on-LAN on Linux (Pop!_OS)</title><link>https://techforbreakfast.com/en/wake-on-lan-linux-pop_os/</link><pubDate>Mon, 22 Jan 2024 22:24:00 +0000</pubDate><guid>https://techforbreakfast.com/en/wake-on-lan-linux-pop_os/</guid><description>&lt;h2 id="setting-up-the-service"&gt;Setting up the service:&lt;/h2&gt;&#10;&lt;p&gt;Install the software:&lt;/p&gt;&#10;&lt;div class="code"&gt;&#10; &lt;div class="code-bar"&gt;&#10; &lt;span class="code-dots" aria-hidden="true"&gt;&lt;i&gt;&lt;/i&gt;&lt;i&gt;&lt;/i&gt;&lt;i&gt;&lt;/i&gt;&lt;/span&gt;&#10; &lt;span class="code-lang"&gt;text&lt;/span&gt;&#10; &lt;button type="button" class="code-copy"&gt;copy&lt;/button&gt;&#10; &lt;/div&gt;&#10; &lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#e6edf3;background-color:#0d1117;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-text" data-lang="text"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;sudo apt-get install ethtool&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&#10;&lt;/div&gt;&#10;&lt;p&gt;To set up a systemd service, we create the file wol.service:&lt;/p&gt;&#10;&lt;div class="code"&gt;&#10; &lt;div class="code-bar"&gt;&#10; &lt;span class="code-dots" aria-hidden="true"&gt;&lt;i&gt;&lt;/i&gt;&lt;i&gt;&lt;/i&gt;&lt;i&gt;&lt;/i&gt;&lt;/span&gt;&#10; &lt;span class="code-lang"&gt;text&lt;/span&gt;&#10; &lt;button type="button" class="code-copy"&gt;copy&lt;/button&gt;&#10; &lt;/div&gt;&#10; &lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#e6edf3;background-color:#0d1117;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-text" data-lang="text"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;vim /etc/systemd/system/wol.service&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&#10;&lt;/div&gt;&#10;&lt;p&gt;And add the following content:&lt;/p&gt;&#10;&lt;div class="code"&gt;&#10; &lt;div class="code-bar"&gt;&#10; &lt;span class="code-dots" aria-hidden="true"&gt;&lt;i&gt;&lt;/i&gt;&lt;i&gt;&lt;/i&gt;&lt;i&gt;&lt;/i&gt;&lt;/span&gt;&#10; &lt;span class="code-lang"&gt;text&lt;/span&gt;&#10; &lt;button type="button" class="code-copy"&gt;copy&lt;/button&gt;&#10; &lt;/div&gt;&#10; &lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#e6edf3;background-color:#0d1117;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-text" data-lang="text"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;[Unit]&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;Description=Enable Wake On LAN&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;[Service]&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;Type=oneshot&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;ExecStart = /usr/sbin/ethtool --change enp4s0 wol g&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;[Install]&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;WantedBy=basic.target&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&#10;&lt;/div&gt;&#10;&lt;p&gt;The following command makes systemd recognise the newly created service:&lt;/p&gt;</description></item><item><title>Using TeamViewer 9 without installing it</title><link>https://techforbreakfast.com/en/using-teamviewer-9-without-installing/</link><pubDate>Wed, 12 Feb 2014 00:00:00 +0000</pubDate><guid>https://techforbreakfast.com/en/using-teamviewer-9-without-installing/</guid><description>&lt;p&gt;&lt;a href="http://www.teamviewer.com"&gt;TeamViewer&lt;/a&gt; is remote assistance software that comes in handy when you need to help a friend or need help yourself. It is free for personal use (which does not apply to professional use).&lt;/p&gt;&#10;&lt;p&gt;One of its advantages is that it works on Windows, OSX and Linux.&lt;/p&gt;</description></item></channel></rss>