<?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>Ubuntu &#8211; Manuel Bogner&#039;s Blog</title>
	<atom:link href="https://blog.mbo.dev/archives/category/linux/ubuntu/feed" rel="self" type="application/rss+xml" />
	<link>https://blog.mbo.dev</link>
	<description>Solutions to everyday IT problems</description>
	<lastBuildDate>Tue, 23 Jan 2024 23:10:21 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	

<image>
	<url>https://blog.mbo.dev/wp-content/uploads/2022/11/cropped-cropped-mbo-white_opt-32x32.png</url>
	<title>Ubuntu &#8211; Manuel Bogner&#039;s Blog</title>
	<link>https://blog.mbo.dev</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>Get more security updates through Ubuntu Pro with &#8216;esm-apps&#8217; enabled</title>
		<link>https://blog.mbo.dev/archives/2006</link>
		
		<dc:creator><![CDATA[Manuel Bogner]]></dc:creator>
		<pubDate>Tue, 23 Jan 2024 23:10:19 +0000</pubDate>
				<category><![CDATA[Ubuntu]]></category>
		<guid isPermaLink="false">https://blog.coffeebeans.at/?p=2006</guid>

					<description><![CDATA[To disable this annoying advertisement in your shell simply run This will add .bak to the end of the file and should survive updates.]]></description>
										<content:encoded><![CDATA[
<p>To disable this annoying advertisement in your shell simply run</p>



<pre class="wp-block-code"><code>sudo dpkg-divert --divert /etc/apt/apt.conf.d/20apt-esm-hook.conf.bak --rename --local /etc/apt/apt.conf.d/20apt-esm-hook.conf</code></pre>



<p>This will add .bak to the end of the file and should survive updates.</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>docker on mac without docker-desktop</title>
		<link>https://blog.mbo.dev/archives/1707</link>
		
		<dc:creator><![CDATA[Manuel Bogner]]></dc:creator>
		<pubDate>Sun, 12 Dec 2021 15:25:15 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[Virtualization]]></category>
		<guid isPermaLink="false">https://blog.coffeebeans.at/?p=1707</guid>

					<description><![CDATA[I just had a discussion where I was told that docker-desktop isn&#8217;t usable anymore because of their new licensing. So I had a look if docker-desktop is really required. In the end it is just a nicer integration with some desktop app to manage the background vm. I installed virtualbox and set up a vm [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p>I just had a discussion where I was told that docker-desktop isn&#8217;t usable anymore because of their new licensing. So I had a look if docker-desktop is really required. In the end it is just a nicer integration with some desktop app to manage the background vm.</p>



<p>I installed virtualbox and set up a vm with shared host adapter for being able to easily access it via ip. On that ubuntu vm which I access from outside via SSH I installed docker as documented on the official docker documentation and gave my user proper rights to use docker. The vm has proper internet access and can run docker containers with ports mapped to the shared host adapter.</p>



<p>From my mac I installed docker via brew (not desktop) and added a context for the vm:</p>



<pre class="wp-block-code"><code>docker context create vm --description "local ubuntu vm" --docker "host=ssh://manuel@ubuntu"</code></pre>



<p>The &#8220;ubuntu&#8221; hostname was added to my /etc/hosts with the configured ip of the vm and manuel is my ssh user on the vm.</p>



<p>With the new context created the context list looks like this:</p>



<pre class="wp-block-code"><code>➜  ~ docker context ls
NAME                TYPE                DESCRIPTION                               DOCKER ENDPOINT                                KUBERNETES ENDPOINT   ORCHESTRATOR
default *           moby                Current DOCKER_HOST based configuration   unix:///var/run/docker.sock                                          swarm
desktop-linux       moby                                                          unix:///Users/manuel/.docker/run/docker.sock                         
vm                  moby                local ubuntu vm                           ssh://manuel@ubuntu</code></pre>



<p>After switching the context to `vm` I can easily work with docker running on the vm.</p>



<pre class="wp-block-code"><code>docker context use vm</code></pre>



<p>With the use of context I was able to come around docker-desktop completely. So the argument that docker isn&#8217;t usable anymore on a non linux machine is busted.</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Uninstall snapd from ubuntu 20.04</title>
		<link>https://blog.mbo.dev/archives/1309</link>
		
		<dc:creator><![CDATA[Manuel Bogner]]></dc:creator>
		<pubDate>Sat, 26 Sep 2020 20:05:40 +0000</pubDate>
				<category><![CDATA[Ubuntu]]></category>
		<guid isPermaLink="false">https://blog.coffeebeans.at/?p=1309</guid>

					<description><![CDATA[In my last post I found out who was to blame for filling my complete disk. It was this new and fu**** slow snapd added to ubuntu in the last few moments before release to get into the app market business. I decided to live without this feature and uninstalled it: After letting this run [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p>In my last post I found out who was to blame for filling my complete disk. It was this new and fu**** slow snapd added to ubuntu in the last few moments before release to get into the app market business. I decided to live without this feature and uninstalled it:</p>



<pre class="wp-block-code"><code>snap list | awk '{print $1}' | xargs -rn1 sudo snap remove</code></pre>



<p>After letting this run a few times i tried to uninstall the remaining snaps manually with</p>



<pre class="wp-block-code"><code>sudo snap remove &lt;name></code></pre>



<p>Some refused to uninstall but I continued with unmounting its volume and getting rid of snapd from the system:</p>



<pre class="wp-block-code"><code>sudo umount /snap/core/&lt;replace_with_number_in_your_folder>
sudo apt purge snapd</code></pre>



<p>In the end i cleaned up any stuff left from snapd:</p>



<pre class="wp-block-code"><code>rm -rf ~/snap
sudo rm -rf /snap
sudo rm -rf /var/snap
sudo rm -rf /var/lib/snapd</code></pre>



<p>In the end removing all snaps freed about 20GB of data. I will reinstall everything based on apt as usual and will then be back at maybe 15GB of saved space without snapd.</p>



<p>Next to this space problem all the apt installed applications start seconds faster.</p>



<p>Thanks for the long years of great operating system but that&#8217;s a way I won&#8217;t go with you.</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Remove old/disabled snaps from the system &#8211; ubuntu why&#8230;</title>
		<link>https://blog.mbo.dev/archives/1307</link>
		
		<dc:creator><![CDATA[Manuel Bogner]]></dc:creator>
		<pubDate>Sat, 26 Sep 2020 19:48:33 +0000</pubDate>
				<category><![CDATA[Ubuntu]]></category>
		<guid isPermaLink="false">https://blog.coffeebeans.at/?p=1307</guid>

					<description><![CDATA[The new snap system starts eating my system partition. Next to being slow it also holds old backups of upgraded snaps. Ubuntu itself has no option to disable that. You can only lower the number of old versions by using which will limit the number to one live and one backup copy. But what if [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p>The new snap system starts eating my system partition. Next to being slow it also holds old backups of upgraded snaps. Ubuntu itself has no option to disable that. You can only lower the number of old versions by using</p>



<pre class="wp-block-code"><code>sudo snap set system refresh.retain=2</code></pre>



<p>which will limit the number to one live and one backup copy. But what if you also don&#8217;t need or want that backup copy? refresh.retain doesn&#8217;t allow 1:</p>



<pre class="wp-block-code"><code>sudo snap set system refresh.retain=1

error: cannot perform the following tasks:
- Run configure hook of "core" snap (run hook "configure": retain must be a number between 2 and 20, not "1")</code></pre>



<p>I didn&#8217;t further check how to remove that but used the following one-liner to get rid of old versions:</p>



<pre class="wp-block-code"><code>sudo su
snap list --all | awk '$6~"disabled"{print $1" --revision "$3}' | xargs -rn3 snap remove</code></pre>



<p>Next to those backups also the /var/lib/snapd/cache folder holds a massive amount of space on my machine. I considered it to be safe to delete:</p>



<pre class="wp-block-code"><code>sudo rm -f /var/lib/snapd/cache/*</code></pre>



<p>This cleanup of snapd folder freed around 12GB of data on my root partition.</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Add network bridge with ubuntu 18.04</title>
		<link>https://blog.mbo.dev/archives/1112</link>
		
		<dc:creator><![CDATA[Manuel Bogner]]></dc:creator>
		<pubDate>Thu, 14 Jun 2018 12:12:02 +0000</pubDate>
				<category><![CDATA[Ubuntu]]></category>
		<guid isPermaLink="false">http://blog.coffeebeans.at/?p=1112</guid>

					<description><![CDATA[To create a network bridge with netplan you have to create a file network: version: 2 ethernets: enp6s0: dhcp4: true bridges: br0: interfaces: [enp6s0] dhcp4: true optional: false macaddress: &#60;some mac&#62; Make sure to place a mac address in and replace the interface name enp6s0 with yours. Then run sudo netplan apply. The machine gets a [&#8230;]]]></description>
										<content:encoded><![CDATA[<p>To create a network bridge with netplan you have to create a file</p>
<pre class="lang:yaml decode:true" title="/etc/netplan/10-bridge-init.yaml">network:
  version: 2
  ethernets:
     enp6s0:
        dhcp4: true
  bridges:
     br0:
       interfaces: [enp6s0]
       dhcp4: true
       optional: false
       macaddress: &lt;some mac&gt;</pre>
<p>Make sure to place a mac address in and replace the interface name enp6s0 with yours.</p>
<p>Then run <em><strong>sudo netplan apply</strong></em>.</p>
<p>The machine gets a new IP from dhcp so make sure you have it configured in your dhcp before or have a local console ;-)</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Robo 3T MongoDB client fails to start on ubuntu 16.04</title>
		<link>https://blog.mbo.dev/archives/1088</link>
		
		<dc:creator><![CDATA[Manuel Bogner]]></dc:creator>
		<pubDate>Mon, 11 Sep 2017 14:06:58 +0000</pubDate>
				<category><![CDATA[Ubuntu]]></category>
		<guid isPermaLink="false">http://blog.coffeebeans.at/?p=1088</guid>

					<description><![CDATA[I tried to rim robo3t-1.1.1-linux-x86_64 downloaded from https://robomongo.org/ and got the following error when trying to run it: This application failed to start because it could not find or load the Qt platform plugin "xcb" in "". Available platform plugins are: xcb. Reinstalling the application may fix this problem. Aborted Trying to install xcb via [&#8230;]]]></description>
										<content:encoded><![CDATA[<p>I tried to rim robo3t-1.1.1-linux-x86_64 downloaded from <a href="https://robomongo.org/" target="_blank" rel="noopener">https://robomongo.org/</a> and got the following error when trying to run it:</p>
<pre class="lang:default decode:true ">This application failed to start because it could not find or load the Qt platform plugin "xcb"
in "".

Available platform plugins are: xcb.

Reinstalling the application may fix this problem.
Aborted</pre>
<p>Trying to install xcb via apt install xcb doesn&#8217;t change the behavior. Then I found a solution by removing all libstdc++* files from the lib directory in the extracted directory:</p>
<pre class="lang:default decode:true ">rm lib/libstdc++*</pre>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Ubuntu 15.10 &#8220;error: symbol &#8216;grub_efi_find_last_device_path&#8221;</title>
		<link>https://blog.mbo.dev/archives/1035</link>
					<comments>https://blog.mbo.dev/archives/1035#respond</comments>
		
		<dc:creator><![CDATA[Manuel Bogner]]></dc:creator>
		<pubDate>Sun, 31 Jan 2016 14:07:18 +0000</pubDate>
				<category><![CDATA[Ubuntu]]></category>
		<guid isPermaLink="false">http://blog.coffeebeans.at/?p=1035</guid>

					<description><![CDATA[Updating to the latest grub version (at the moment 2.02~beta2-29ubuntu0.3) leads to &#8220;error: symbol &#8216;grub_efi_find_last_device_path&#8217; not found&#8221; when I try to start Windows on my dual boot system having Ubuntu 15.10 next to Windows 10. This can be fixed by downgrading to the version before the latest one in the ubuntu repository till this bug [&#8230;]]]></description>
										<content:encoded><![CDATA[<p>Updating to the latest grub version (at the moment 2.02~beta2-29ubuntu0.3) leads to &#8220;error: symbol &#8216;grub_efi_find_last_device_path&#8217; not found&#8221; when I try to start Windows on my dual boot system having Ubuntu 15.10 next to Windows 10.</p>
<p>This can be fixed by downgrading to the version before the latest one in the ubuntu repository till this bug is fixed.</p>
<p>Here is how I downgraded my grub installation:</p>
<pre class="lang:sh decode:true ">sudo apt-get install grub2-common=2.02~beta2-29ubuntu0.2 \
  grub-common=2.02~beta2-29ubuntu0.2 grub-efi-amd64=2.02~beta2-29ubuntu0.2 \
  grub-efi-amd64-bin=2.02~beta2-29ubuntu0.2

sudo apt-mark hold grub-common grub-efi-amd64-bin grub2-common grub-efi-amd64
</pre>
<p>Without the hold line apt would install the latest version on the next upgrade. As soon as the bug is fixed you can remove the hold mark with</p>
<pre class="lang:sh decode:true">sudo apt-mark install grub-common grub-efi-amd64-bin grub2-common grub-efi-amd64
</pre>
]]></content:encoded>
					
					<wfw:commentRss>https://blog.mbo.dev/archives/1035/feed</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Disable Guest Session in Ubuntu 15.10</title>
		<link>https://blog.mbo.dev/archives/1020</link>
					<comments>https://blog.mbo.dev/archives/1020#respond</comments>
		
		<dc:creator><![CDATA[Manuel Bogner]]></dc:creator>
		<pubDate>Fri, 04 Dec 2015 22:56:05 +0000</pubDate>
				<category><![CDATA[Ubuntu]]></category>
		<guid isPermaLink="false">http://blog.coffeebeans.at/?p=1020</guid>

					<description><![CDATA[Ubuntu 15.10 is using lightdm desktop manager. man lightdm says that it is using /etc/lightdm/lightdm.conf for configuration. Ubuntu 15.10 does not include such a file. To disable the guest session create the file (/etc/lightdm/lightdm.conf) with following content: [SeatDefaults] allow-guest=false &#160;]]></description>
										<content:encoded><![CDATA[<p>Ubuntu 15.10 is using lightdm desktop manager. man lightdm says that it is using /etc/lightdm/lightdm.conf for configuration. Ubuntu 15.10 does not include such a file. To disable the guest session create the file (<strong>/etc/lightdm/lightdm.conf</strong>) with following content:</p>
<pre class="lang:ini decode:true ">[SeatDefaults]
allow-guest=false</pre>
<p>&nbsp;</p>
]]></content:encoded>
					
					<wfw:commentRss>https://blog.mbo.dev/archives/1020/feed</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Install Docker in Ubuntu 12.04 Precise</title>
		<link>https://blog.mbo.dev/archives/1007</link>
					<comments>https://blog.mbo.dev/archives/1007#respond</comments>
		
		<dc:creator><![CDATA[Manuel Bogner]]></dc:creator>
		<pubDate>Thu, 22 Oct 2015 13:07:31 +0000</pubDate>
				<category><![CDATA[Ubuntu]]></category>
		<guid isPermaLink="false">http://blog.coffeebeans.at/?p=1007</guid>

					<description><![CDATA[First make sure you have the latest version and an actual kernel running. Execute theses commands as root: apt-get update apt-get dist-upgrade reboot Then install docker with the following lines as root: #!/bin/bash apt-key adv --keyserver hkp://pgp.mit.edu:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D echo "deb https://apt.dockerproject.org/repo ubuntu-precise main" &#62; /etc/apt/sources.list.d/docker.list apt-get update apt-get purge lxc-docker* apt-cache policy docker-engine apt-get [&#8230;]]]></description>
										<content:encoded><![CDATA[<p>First make sure you have the latest version and an actual kernel running. Execute theses commands as root:</p>
<pre class="lang:sh decode:true">apt-get update
apt-get dist-upgrade
reboot</pre>
<p>Then install docker with the following lines as root:</p>
<pre class="lang:sh decode:true">#!/bin/bash
apt-key adv --keyserver hkp://pgp.mit.edu:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D
echo "deb https://apt.dockerproject.org/repo ubuntu-precise main" &gt; /etc/apt/sources.list.d/docker.list
apt-get update
apt-get purge lxc-docker*
apt-cache policy docker-engine
apt-get install docker-engine</pre>
<p>After this docker should be up and running. Rry using &#8220;<em><strong>docker ps</strong></em>&#8221; as root or with sudo.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://blog.mbo.dev/archives/1007/feed</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Ubuntu Realtek ALC1150</title>
		<link>https://blog.mbo.dev/archives/896</link>
					<comments>https://blog.mbo.dev/archives/896#respond</comments>
		
		<dc:creator><![CDATA[Manuel Bogner]]></dc:creator>
		<pubDate>Mon, 24 Nov 2014 17:53:04 +0000</pubDate>
				<category><![CDATA[Ubuntu]]></category>
		<guid isPermaLink="false">http://blog.coffeebeans.at/?p=896</guid>

					<description><![CDATA[I got a new mainboard with Realtek ALC1150 onboard sound. First I was thinking it doesn&#8217;t work, but it only was very silent. Here is how to fix this: sudo apt-add-repository ppa:ubuntu-audio-dev/alsa-daily sudo apt-get update sudo apt-get install oem-audio-hda-daily-dkms sudo reboot &#160;]]></description>
										<content:encoded><![CDATA[<p>I got a new mainboard with Realtek ALC1150 onboard sound. First I was thinking it doesn&#8217;t work, but it only was very silent. Here is how to fix this:</p>
<pre class="lang:sh decode:true  ">sudo apt-add-repository ppa:ubuntu-audio-dev/alsa-daily
sudo apt-get update
sudo apt-get install oem-audio-hda-daily-dkms
sudo reboot</pre>
<p>&nbsp;</p>
]]></content:encoded>
					
					<wfw:commentRss>https://blog.mbo.dev/archives/896/feed</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
