<?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 | Learn C Games Programming Blog</title>
	<atom:link href="https://learncgames.com/tag/ubuntu/feed/" rel="self" type="application/rss+xml" />
	<link>https://learncgames.com</link>
	<description>A blog about C, programming games and my ebook(s).</description>
	<lastBuildDate>Thu, 28 Aug 2025 08:37:45 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.4</generator>

<image>
	<url>https://learncgames.com/wp-content/uploads/2020/03/cropped-favicon-32x32.png</url>
	<title>Ubuntu | Learn C Games Programming Blog</title>
	<link>https://learncgames.com</link>
	<width>32</width>
	<height>32</height>
</image> 
<site xmlns="com-wordpress:feed-additions:1">181446779</site>	<item>
		<title>Great mysteries &#8211; number 1</title>
		<link>https://learncgames.com/great-mysteries-number-1/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=great-mysteries-number-1</link>
		
		<dc:creator><![CDATA[David]]></dc:creator>
		<pubDate>Thu, 28 Aug 2025 08:37:45 +0000</pubDate>
				<category><![CDATA[bugs]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[Hyper-V]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<guid isPermaLink="false">https://learncgames.com/?p=3453</guid>

					<description><![CDATA[<p>I run Ubuntu in a hyper-V session.  It works very well and handy for getting screenshots. I&#8217;ve been using a 24.04 LTS for a while and decided I needed another one to test CyberPanel. i already have Webmin on my main one so wanted a clean Ubuntu so as not to mess Webmin.  It took [&#8230;]</p>
The post <a href="https://learncgames.com/great-mysteries-number-1/">Great mysteries – number 1</a> first appeared on <a href="https://learncgames.com">Learn C Games Programming Blog</a>.]]></description>
										<content:encoded><![CDATA[<p><img fetchpriority="high" decoding="async" class="alignleft size-large wp-image-3454" src="https://learncgames.com/wp-content/uploads/2025/08/hyper-v_issue-1024x579.png" alt="Hyper-v that refuses to become fullscreen!" width="1024" height="579" srcset="https://learncgames.com/wp-content/uploads/2025/08/hyper-v_issue-1024x579.png 1024w, https://learncgames.com/wp-content/uploads/2025/08/hyper-v_issue-300x170.png 300w, https://learncgames.com/wp-content/uploads/2025/08/hyper-v_issue-768x434.png 768w, https://learncgames.com/wp-content/uploads/2025/08/hyper-v_issue-1536x869.png 1536w, https://learncgames.com/wp-content/uploads/2025/08/hyper-v_issue.png 1910w" sizes="(max-width: 1024px) 100vw, 1024px" />I run Ubuntu in a hyper-V session.  It works very well and handy for getting screenshots. I&#8217;ve been using a 24.04 LTS for a while and decided I needed another one to test CyberPanel. i already have Webmin on my main one so wanted a clean Ubuntu so as not to mess Webmin.  It took ten minutes to setup then another 20 minutes to install 300+ updates.</p>
<p>Then I edited Grub to give me a fullscreen- 1920 x 1080.  You just edit /etc/default/grub with an editor run under sudo. I use Gedit but nano will do. Just change the line to this:</p>
<pre>GRUB_CMDLINE_LINUX_DEFAULT="quiet splash video=hyperv_fb:1920x1080"</pre>
<p>followed by</p>
<pre>sudo update-grub</pre>
<p>and that should be it. Only it didn&#8217;t work in my new Ubuntu 24.04 LTS VM. I installed ifconfig from net-tools, connected to it from my Windows PC and copied grub across. I did the same with my older 24.04 LTS VM and compared the two grub files. Both identical yet one works fullscreen and the newer one doesn&#8217;t. Any ideas?</p>The post <a href="https://learncgames.com/great-mysteries-number-1/">Great mysteries – number 1</a> first appeared on <a href="https://learncgames.com">Learn C Games Programming Blog</a>.]]></content:encoded>
					
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">3453</post-id>	</item>
		<item>
		<title>Debugging C# on Ubuntu and you get</title>
		<link>https://learncgames.com/debugging-c-on-ubuntu-and-you-get/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=debugging-c-on-ubuntu-and-you-get</link>
		
		<dc:creator><![CDATA[David]]></dc:creator>
		<pubDate>Fri, 07 Apr 2023 23:01:33 +0000</pubDate>
				<category><![CDATA[C#]]></category>
		<category><![CDATA[Techniques]]></category>
		<category><![CDATA[debugging]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<guid isPermaLink="false">https://learncgames.com/?p=3246</guid>

					<description><![CDATA[<p>So you&#8217;re trying to debug C# code on Linux, maybe Ubuntu. You&#8217;ve installed .NET 6 or 7, you&#8217;ve built your solution in Visual Studio on your Windows PC, published it then copied the files over to the Linux box. But when you run it, you get an error &#8220;Unable to find debugger script at&#8221;. It&#8217;s [&#8230;]</p>
The post <a href="https://learncgames.com/debugging-c-on-ubuntu-and-you-get/">Debugging C# on Ubuntu and you get</a> first appeared on <a href="https://learncgames.com">Learn C Games Programming Blog</a>.]]></description>
										<content:encoded><![CDATA[<div class='__iawmlf-post-loop-links' style='display:none;' data-iawmlf-post-links='[{&quot;id&quot;:29,&quot;href&quot;:&quot;https:\/\/developercommunity.visualstudio.com\/t\/Failed-to-launch-debug-adapter-due-to-fa\/1359155&quot;,&quot;archived_href&quot;:&quot;http:\/\/web-wp.archive.org\/web\/20260206110839\/https:\/\/developercommunity.visualstudio.com\/t\/Failed-to-launch-debug-adapter-due-to-fa\/1359155&quot;,&quot;redirect_href&quot;:&quot;&quot;,&quot;checks&quot;:[{&quot;date&quot;:&quot;2026-02-06 12:35:50&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-02-09 15:01:05&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-02-12 19:49:47&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-02-16 18:55:07&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-02-20 02:01:57&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-02-23 16:01:17&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-02-27 00:17:51&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-03-03 00:09:08&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-03-06 02:18:16&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-03-10 04:32:06&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-03-13 08:50:47&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-03-16 15:02:52&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-03-20 00:37:25&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-03-24 00:39:09&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-03-28 00:36:22&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-04-01 03:18:28&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-04-04 12:42:47&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-04-07 20:34:45&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-04-11 04:24:59&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-04-14 12:17:08&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-04-17 20:10:04&quot;,&quot;http_code&quot;:503},{&quot;date&quot;:&quot;2026-04-21 04:03:01&quot;,&quot;http_code&quot;:503}],&quot;broken&quot;:false,&quot;last_checked&quot;:{&quot;date&quot;:&quot;2026-04-21 04:03:01&quot;,&quot;http_code&quot;:503},&quot;process&quot;:&quot;done&quot;}]'></div>
<p><img decoding="async" class="alignleft size-full wp-image-3249" src="https://learncgames.com/wp-content/uploads/2023/04/vs-debugger2.png" alt="vs-debugger-popup" width="420" height="190" srcset="https://learncgames.com/wp-content/uploads/2023/04/vs-debugger2.png 420w, https://learncgames.com/wp-content/uploads/2023/04/vs-debugger2-300x136.png 300w" sizes="(max-width: 420px) 100vw, 420px" /></p>
<p>So you&#8217;re trying to debug C# code on Linux, maybe Ubuntu. You&#8217;ve installed .NET 6 or 7, you&#8217;ve built your solution in Visual Studio on your Windows PC, published it then copied the files over to the Linux box. But when you run it, you get an error &#8220;Unable to find debugger script at&#8221;. It&#8217;s time to debug your Linux app from your Windows Visual Studio.</p>
<p>Now there is a <a title="Link to Developer Community for Visual Studio" href="https://developercommunity.visualstudio.com/t/Failed-to-launch-debug-adapter-due-to-fa/1359155" target="_blank" rel="nofollow noopener">Microsoft support issue</a> for this and it&#8217;s less than helpful. Read below to see how I fixed it.</p>
<p>Only, as soon as it tries to attach over SSH (with username, password, IP etc), you get this popup on the left. &#8220;Computer says no&#8221;.</p>
<p>Looking in the VS Output folder you see the text below or something similar. For whatever reason, it failed to create a hidden folder in your home folder. To fix this, all you have to do is create that folder. It&#8217;s .vs-debugger under your home folder.</p>
<p>If you&#8217;re not familiar with .folders on Linux, note that the . at the front of the name means it&#8217;s a hidden folder. A simple <strong>ls</strong> command will not reveal it. If you use the File Manager, you can click the settings in the top right and tick the Show Hidden Files. Then you can do a <strong>cd ~</strong> followed by a <strong>mkdir .vs-debugger</strong>. And View in files to confirm that it&#8217;s there.</p>
<p><img decoding="async" class="alignleft size-full wp-image-3248" src="https://learncgames.com/wp-content/uploads/2023/04/vs-debugger1.png" alt="" width="641" height="144" srcset="https://learncgames.com/wp-content/uploads/2023/04/vs-debugger1.png 641w, https://learncgames.com/wp-content/uploads/2023/04/vs-debugger1-300x67.png 300w" sizes="(max-width: 641px) 100vw, 641px" />Now the only pain with debugging is that the application must be running for Visual Studio to attach to it. I was debugging a utility that is run, does its business and closes. So to debug it, I added this as the first line in main() in program.cs</p>
<p>Console.ReadKey();</p>
<p>So run it, let it sit waiting for a key then attach visual studio&#8217;s debugger to your app over SSH, add your breakpoints and hit a key. Simples!</p>The post <a href="https://learncgames.com/debugging-c-on-ubuntu-and-you-get/">Debugging C# on Ubuntu and you get</a> first appeared on <a href="https://learncgames.com">Learn C Games Programming Blog</a>.]]></content:encoded>
					
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">3246</post-id>	</item>
		<item>
		<title>Hyper-V VMs are not all the same</title>
		<link>https://learncgames.com/hyper-v-vms-are-not-all-the-same/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=hyper-v-vms-are-not-all-the-same</link>
		
		<dc:creator><![CDATA[David]]></dc:creator>
		<pubDate>Thu, 19 Nov 2020 00:00:31 +0000</pubDate>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[Techniques]]></category>
		<category><![CDATA[install]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<guid isPermaLink="false">https://learncgames.com/?p=1839</guid>

					<description><![CDATA[<p>One of the big problems with Hyper-V and Ubuntu in particular is the clipboard or lack of it. I had 18.04 LTS installed with an X Org RDP login. This worked perfectly and I could have a full screen in my Monitor and could copy/paste.  Don&#8217;t underestimate copy/paste. It&#8217;s a real PITA if you have [&#8230;]</p>
The post <a href="https://learncgames.com/hyper-v-vms-are-not-all-the-same/">Hyper-V VMs are not all the same</a> first appeared on <a href="https://learncgames.com">Learn C Games Programming Blog</a>.]]></description>
										<content:encoded><![CDATA[<div class='__iawmlf-post-loop-links' style='display:none;' data-iawmlf-post-links='[{&quot;id&quot;:370,&quot;href&quot;:&quot;https:\/\/github.com\/Microsoft\/linux-vm-tools\/wiki\/Onboarding:-Ubuntu&quot;,&quot;archived_href&quot;:&quot;http:\/\/web-wp.archive.org\/web\/20250828063855\/https:\/\/github.com\/Microsoft\/linux-vm-tools\/wiki\/Onboarding:-Ubuntu&quot;,&quot;redirect_href&quot;:&quot;&quot;,&quot;checks&quot;:[{&quot;date&quot;:&quot;2026-02-06 14:33:49&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-02-10 17:39:38&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-03-05 11:49:50&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-03-31 19:26:59&quot;,&quot;http_code&quot;:206}],&quot;broken&quot;:false,&quot;last_checked&quot;:{&quot;date&quot;:&quot;2026-03-31 19:26:59&quot;,&quot;http_code&quot;:206},&quot;process&quot;:&quot;done&quot;},{&quot;id&quot;:371,&quot;href&quot;:&quot;https:\/\/askubuntu.com\/questions\/1231131\/ubuntu-20-04-full-screen-mode-resolution-in-hyper-v-is-very-small&quot;,&quot;archived_href&quot;:&quot;http:\/\/web-wp.archive.org\/web\/20251220112015\/https:\/\/askubuntu.com\/questions\/1231131\/ubuntu-20-04-full-screen-mode-resolution-in-hyper-v-is-very-small&quot;,&quot;redirect_href&quot;:&quot;&quot;,&quot;checks&quot;:[{&quot;date&quot;:&quot;2026-02-06 14:33:52&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-03-05 11:49:49&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-03-31 19:26:59&quot;,&quot;http_code&quot;:200}],&quot;broken&quot;:false,&quot;last_checked&quot;:{&quot;date&quot;:&quot;2026-03-31 19:26:59&quot;,&quot;http_code&quot;:200},&quot;process&quot;:&quot;done&quot;}]'></div>
<p><img loading="lazy" decoding="async" class="alignleft size-medium wp-image-1841" src="https://learncgames.com/wp-content/uploads/2020/11/hyper-v-ubuntu-300x268.png" alt="Hyper-V Ubuntu install" width="300" height="268" srcset="https://learncgames.com/wp-content/uploads/2020/11/hyper-v-ubuntu-300x268.png 300w, https://learncgames.com/wp-content/uploads/2020/11/hyper-v-ubuntu.png 480w" sizes="auto, (max-width: 300px) 100vw, 300px" />One of the big problems with Hyper-V and Ubuntu in particular is the clipboard or lack of it. I had 18.04 LTS installed with an X Org RDP login. This worked perfectly and I could have a full screen in my Monitor and could copy/paste.  Don&#8217;t underestimate copy/paste.</p>
<p>It&#8217;s a real PITA if you have to use say WinSCP to copy files over. I think WinSCP is excellent BTW but the amount of labour saving that copy/paste has done since some genius thought it up is immeasurable. That and allowing the full screen of the monitor are two highly important things.</p>
<p>Sadly the 20.04 LTS didn&#8217;t seem to allow it. Copy/paste didn&#8217;t work between my Windows PC (<em>host</em>) and Ubuntu (<em>guest</em>). There&#8217;s nothing worse than losing a feature you&#8217;ve grown fond of.</p>
<p>If you follow <a title="Link to instructions to install 18.04 Ubuntu on Hyper-V" href="https://github.com/Microsoft/linux-vm-tools/wiki/Onboarding:-Ubuntu" target="_blank" rel="nofollow noopener noreferrer">these instructions</a> for creating a Hyper-V 18.04, you get the screen size popup but not with 20.04 LTS. For that you have to <a title="Link to full screen Ubuntu 20.04 LTS on Hyper-V" href="https://askubuntu.com/questions/1231131/ubuntu-20-04-full-screen-mode-resolution-in-hyper-v-is-very-small" target="_blank" rel="nofollow noopener noreferrer">follow these instructions</a>!</p>
<p>It&#8217;s things like this that suggest why Linux Desktop has never been that successful. You can waste many hours getting simple things working and sometimes like Copy/Paste they break between versions. And this is with Ubuntu, probably the biggest and best known and supported Distro.</p>
<p>&nbsp;</p>The post <a href="https://learncgames.com/hyper-v-vms-are-not-all-the-same/">Hyper-V VMs are not all the same</a> first appeared on <a href="https://learncgames.com">Learn C Games Programming Blog</a>.]]></content:encoded>
					
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">1839</post-id>	</item>
		<item>
		<title>Expanding my virtual hard disk</title>
		<link>https://learncgames.com/expanding-my-virtual-hard-disk/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=expanding-my-virtual-hard-disk</link>
		
		<dc:creator><![CDATA[David]]></dc:creator>
		<pubDate>Thu, 04 Jun 2020 23:00:09 +0000</pubDate>
				<category><![CDATA[raspberry-pi]]></category>
		<category><![CDATA[Hyper-V]]></category>
		<category><![CDATA[raspbian]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[VM]]></category>
		<guid isPermaLink="false">https://learncgames.com/?p=736</guid>

					<description><![CDATA[<p>Most Linux development is done on Ubuntu running under Hyper-V on my Windows 10 PC. If you have lots of RAM (and I have a full 64 GB), it&#8217;s very convenient. I run Snagit on Windows and this makes it very easy to grab screenshots of the Ubuntu window. I also have a &#8220;Raspberry-pi&#8221; running [&#8230;]</p>
The post <a href="https://learncgames.com/expanding-my-virtual-hard-disk/">Expanding my virtual hard disk</a> first appeared on <a href="https://learncgames.com">Learn C Games Programming Blog</a>.]]></description>
										<content:encoded><![CDATA[<div class='__iawmlf-post-loop-links' style='display:none;' data-iawmlf-post-links='[{&quot;id&quot;:695,&quot;href&quot;:&quot;https:\/\/www.raspberrypi.org\/downloads\/raspberry-pi-desktop&quot;,&quot;archived_href&quot;:&quot;http:\/\/web-wp.archive.org\/web\/20201107231551\/https:\/\/www.raspberrypi.org\/downloads\/raspberry-pi-desktop\/&quot;,&quot;redirect_href&quot;:&quot;&quot;,&quot;checks&quot;:[{&quot;date&quot;:&quot;2026-02-06 17:35:16&quot;,&quot;http_code&quot;:403},{&quot;date&quot;:&quot;2026-02-11 00:52:01&quot;,&quot;http_code&quot;:403},{&quot;date&quot;:&quot;2026-02-17 23:04:29&quot;,&quot;http_code&quot;:403},{&quot;date&quot;:&quot;2026-02-24 11:22:35&quot;,&quot;http_code&quot;:403},{&quot;date&quot;:&quot;2026-02-27 23:21:03&quot;,&quot;http_code&quot;:403},{&quot;date&quot;:&quot;2026-03-04 16:16:44&quot;,&quot;http_code&quot;:403},{&quot;date&quot;:&quot;2026-03-09 06:32:10&quot;,&quot;http_code&quot;:403},{&quot;date&quot;:&quot;2026-03-13 01:21:58&quot;,&quot;http_code&quot;:403},{&quot;date&quot;:&quot;2026-03-17 10:17:28&quot;,&quot;http_code&quot;:403},{&quot;date&quot;:&quot;2026-03-25 20:24:09&quot;,&quot;http_code&quot;:403},{&quot;date&quot;:&quot;2026-04-07 06:59:56&quot;,&quot;http_code&quot;:403},{&quot;date&quot;:&quot;2026-04-14 20:46:41&quot;,&quot;http_code&quot;:403},{&quot;date&quot;:&quot;2026-04-20 16:12:22&quot;,&quot;http_code&quot;:403}],&quot;broken&quot;:true,&quot;last_checked&quot;:{&quot;date&quot;:&quot;2026-04-20 16:12:22&quot;,&quot;http_code&quot;:403},&quot;process&quot;:&quot;done&quot;}]'></div>
<p><img loading="lazy" decoding="async" class="alignleft size-medium wp-image-737" src="https://learncgames.com/wp-content/uploads/2020/05/filelight-300x180.png" alt="filelight utility running on Ubuntu" width="300" height="180" srcset="https://learncgames.com/wp-content/uploads/2020/05/filelight-300x180.png 300w, https://learncgames.com/wp-content/uploads/2020/05/filelight-768x462.png 768w, https://learncgames.com/wp-content/uploads/2020/05/filelight.png 846w" sizes="auto, (max-width: 300px) 100vw, 300px" />Most Linux development is done on Ubuntu running under Hyper-V on my Windows 10 PC. If you have lots of RAM (and I have a full 64 GB), it&#8217;s very convenient. I run Snagit on Windows and this makes it very easy to grab screenshots of the Ubuntu window.</p>
<p>I also have a &#8220;Raspberry-pi&#8221; running under Hyper-V.  There&#8217;s a <a title="Link to Raspbian download" href="https://www.raspberrypi.org/downloads/raspberry-pi-desktop/" target="_blank" rel="nofollow noopener noreferrer">Raspbian desktop</a> that you can download and run in Hyper-V, VirtualBox or VMWare though I&#8217;ve only done Hyper-V. Don&#8217;t forget when you are running a Raspberry Pi this way that its x86 based not ARM. That does affect the available software, so it doesn&#8217;t behave exactly like a real Pi though often close enough.</p>
<p>Today though I started getting low disk space from my virtual Ubuntu. That&#8217;s the problem with virtual machines. When you first setup a Virtual hard disk, you never know just how much disk space you will need.</p>
<p>There&#8217;s a terminal command that shows how much space you have left.</p>
<pre>df -h --total</pre>
<p>This produced this</p>
<pre><span style="color: #8ae234;"><b>david@david-Virtual-Machine</b></span>:<span style="color: #729fcf;"><b>~</b></span>$ df -h --total
Filesystem      Size  Used Avail Use% Mounted on
udev            942M     0  942M   0% /dev
tmpfs           193M  1.4M  192M   1% /run
/dev/sda1        11G  9.9G  603M  95% /
tmpfs           964M     0  964M   0% /dev/shm
tmpfs           5.0M     0  5.0M   0% /run/lock
tmpfs           964M     0  964M   0% /sys/fs/cgroup
/dev/sda15      105M  3.6M  101M   4% /boot/efi
tmpfs           193M   16K  193M   1% /run/user/121
tmpfs           193M   24K  193M   1% /run/user/1000
total            14G  9.9G  4.1G  71% -
</pre>
<p>This was after I&#8217;d extended my virtual hard disk.  You can see I now have 4.1 GB free.</p>
<p>The pretty picture is from a utility filelight. You install it in the usual way</p>
<pre>sudo apt install filelight</pre>
<p>Or if you prefer a more visual insight, install qdirstat.</p>
<pre>sudo apt install qdirstat</pre>
<p>This is like WinDirStat on Windows but qdirstat seems to run many times faster. It took a couple of seconds to produce this image below. WinDirStat would take 10-30 minutes.</p>
<p><img loading="lazy" decoding="async" class="alignleft size-full wp-image-738" src="https://learncgames.com/wp-content/uploads/2020/05/qdirstat.png" alt="qdirstat" width="450" height="252" srcset="https://learncgames.com/wp-content/uploads/2020/05/qdirstat.png 450w, https://learncgames.com/wp-content/uploads/2020/05/qdirstat-300x168.png 300w" sizes="auto, (max-width: 450px) 100vw, 450px" /></p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>So how did I expand my Hyper-V hard drive?</p>
<p>First you have to get rid of any checkpoints. Save your Hyper-V session if open then delete the checkpoint.</p>
<p><img loading="lazy" decoding="async" class="alignleft size-full wp-image-739" src="https://learncgames.com/wp-content/uploads/2020/05/hyperV-checkpoint.png" alt="Delete Hyper-V checkpoint" width="558" height="322" srcset="https://learncgames.com/wp-content/uploads/2020/05/hyperV-checkpoint.png 558w, https://learncgames.com/wp-content/uploads/2020/05/hyperV-checkpoint-300x173.png 300w" sizes="auto, (max-width: 558px) 100vw, 558px" />Right click on the checkpoint for the selected VM and click delete. This will take a minute or two and you&#8217;ll see it have a Merging status. You may need to shutdown the VM.</p>
<p>After that you can go into the settings and it will let you edit the virtual hard drive and change the size.</p>The post <a href="https://learncgames.com/expanding-my-virtual-hard-disk/">Expanding my virtual hard disk</a> first appeared on <a href="https://learncgames.com">Learn C Games Programming Blog</a>.]]></content:encoded>
					
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">736</post-id>	</item>
		<item>
		<title>Code::Blocks revisited</title>
		<link>https://learncgames.com/codeblocks-revisited/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=codeblocks-revisited</link>
		
		<dc:creator><![CDATA[David]]></dc:creator>
		<pubDate>Sun, 17 May 2020 23:00:09 +0000</pubDate>
				<category><![CDATA[Code::Blocks]]></category>
		<category><![CDATA[Debugging]]></category>
		<category><![CDATA[SDL]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<guid isPermaLink="false">https://learncgames.com/?p=627</guid>

					<description><![CDATA[<p>So after yesterday&#8217;s post I also installed Code::Blocks on Ubuntu 20.04 LTS, the recent six monthly Ubuntu release. Guess what, it&#8217;s a much newer version of Code::Blocks that looks slightly different and does include SDL2. Although the demo program it creates is C++ not C (That coloured bar picture is the demo).  I haven&#8217;t used [&#8230;]</p>
The post <a href="https://learncgames.com/codeblocks-revisited/">Code::Blocks revisited</a> first appeared on <a href="https://learncgames.com">Learn C Games Programming Blog</a>.]]></description>
										<content:encoded><![CDATA[<p><img loading="lazy" decoding="async" class="alignleft size-medium wp-image-630" src="https://learncgames.com/wp-content/uploads/2020/05/codeblocks_SDL2_demo-300x243.png" alt="Code::Blocks SDL2 demo" width="300" height="243" srcset="https://learncgames.com/wp-content/uploads/2020/05/codeblocks_SDL2_demo-300x243.png 300w, https://learncgames.com/wp-content/uploads/2020/05/codeblocks_SDL2_demo.png 640w" sizes="auto, (max-width: 300px) 100vw, 300px" />So after yesterday&#8217;s post I also installed Code::Blocks on Ubuntu 20.04 LTS, the recent six monthly Ubuntu release. Guess what, it&#8217;s a much newer version of Code::Blocks that looks slightly different and does include SDL2. Although the demo program it creates is C++ not C (That coloured bar picture is the demo).  I haven&#8217;t used it enough to see what&#8217;s different between this and version 16.01.</p>
<p>The version of Code::Blocks on the 18.04LTS Ubuntu  was 16.01 and on Ubuntu 20.04 LTS it&#8217;s Code::Blocks 20.03. I keep my Ubuntus up to date but the 18.04 LTS hasn&#8217;t switched to the newer Code::Blocks which surprised me. I&#8217;m guessing that the maintainers of the 18.04 LTS Ubuntu repositories just haven&#8217;t updated their copy of Code::Blocks.</p>
<p>One thing I hadn&#8217;t explored in Code::Blocks is the debugging and this seems a lot more powerful than what you get in Visual Studio Code.   This screenshot below from version 20 shows it is more akin to Visual Studio debugging rather than Visual Studio Code debugging what with CPU registers, stack, memory dump and threads.</p>
<p><img loading="lazy" decoding="async" class="alignleft size-medium wp-image-631" src="https://learncgames.com/wp-content/uploads/2020/05/codeblocks_debugging_menu-300x297.png" alt="Code::Blocks Debugging Menu" width="300" height="297" srcset="https://learncgames.com/wp-content/uploads/2020/05/codeblocks_debugging_menu-300x297.png 300w, https://learncgames.com/wp-content/uploads/2020/05/codeblocks_debugging_menu-150x150.png 150w, https://learncgames.com/wp-content/uploads/2020/05/codeblocks_debugging_menu.png 534w" sizes="auto, (max-width: 300px) 100vw, 300px" /></p>
<p>&nbsp;</p>The post <a href="https://learncgames.com/codeblocks-revisited/">Code::Blocks revisited</a> first appeared on <a href="https://learncgames.com">Learn C Games Programming Blog</a>.]]></content:encoded>
					
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">627</post-id>	</item>
	</channel>
</rss>
