Skip to content

Commit

Permalink
deploy: cad1b5b
Browse files Browse the repository at this point in the history
  • Loading branch information
ewinnington committed Jul 18, 2024
1 parent 4989d71 commit 43edb05
Show file tree
Hide file tree
Showing 90 changed files with 2,507 additions and 2,278 deletions.
184 changes: 31 additions & 153 deletions feed.atom

Large diffs are not rendered by default.

186 changes: 32 additions & 154 deletions feed.rss

Large diffs are not rendered by default.

88 changes: 31 additions & 57 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,35 @@ <h1>A collection of thoughts, code and snippets.</h1>

<div class="row">
<div class="8u 12u$(medium)">
<div>
<a href="/posts/snippets-in-vscode">
<h2>VSCode Snippets</h2>
</a>
<p>Posted on Thursday, 18 July 2024</p>
<p>I use Visual Studio Code to write markdown notes of my meetings. I datetime every meeting to be able to find it afterwards. One of the shorthands I use is 'dt'. I always forget how to set it up when I reinstall my vscode, so here's the instructions from github copilot chat, which explained how to set it up again!</p>
<p>So now I know I can ask Copilot how to do it, but I still want to document it, so here it is:</p>
<h3 id="github-copilot-instructions">Github Copilot Instructions</h3>
<p>To recreate the shorthand command in Visual Studio Code for inserting the current date and time in a Markdown file using <code>ctrl-space</code>, you can use a snippet. Here's how to set it up:</p>
<ol>
<li>Open the Command Palette with <code>Ctrl+Shift+P</code>.</li>
<li>Type <code>Configure User Snippets</code> and select it.</li>
<li>Choose <code>markdown.json</code> for Markdown files.</li>
<li>Insert the following snippet configuration:</li>
</ol>
<pre><code class="language-json">&quot;Insert Current Date and Time&quot;: {
&quot;prefix&quot;: &quot;dt&quot;,
&quot;body&quot;: [
&quot;### $CURRENT_YEAR.$CURRENT_MONTH.$CURRENT_DATE $CURRENT_HOUR:$CURRENT_MINUTE:$CURRENT_SECOND&quot;
],
&quot;description&quot;: &quot;Inserts the current date and time&quot;
}
</code></pre>
<ol start="5">
<li>Save the <code>markdown.json</code> file.</li>
</ol>
<p>Now, when you type <code>dt</code> in a Markdown file and press <code>Ctrl+Space</code>, it should suggest your snippet. Selecting it will insert the current date and time formatted as you described.</p>
<hr>
</div>
<div>
<a href="/posts/HowToUpdateWritebook">
<h2>Adding LaTeX Maths to Writebook</h2>
Expand Down Expand Up @@ -309,61 +338,6 @@ <h2 id="whats-the-use-for-developers-at-corporations-where-computers-are-locked-
<p>Have you used DevContainers? What is your experience?</p>
<hr>
</div>
<div>
<a href="/posts/Proxmox">
<h2>Proxmox 8 on sub $200 mini PCs</h2>
</a>
<p>Posted on Saturday, 1 July 2023</p>
<h1 id="installing-proxmox-tailscale-win11-vms-and-automation">Installing Proxmox, Tailscale, Win11 VMs and Automation</h1>
<p>This is a Beelink MiniS12 with an Intel N95s.</p>
<p><img src="/posts/images/minipc.jpg" class="img-fluid" width="80%" alt="" />
(coffee cup for scale)</p>
<p>Up until Proxmox 8 dropped about a week ago, I was unable to install Proxmox due to compatibility with the graphics driver. Now in 8, that was fixed, so I've been able to install Proxmox on several of my machines.</p>
<p>The procedure is trivial: write the proxmox iso to a usb key via a software that will make the iso bootable. Boot the machine with the usb key inserted and select the correct boot drive, then follow the proxmox installation prompts.</p>
<p>It all worked out of the box.</p>
<h2 id="clustering">Clustering</h2>
<p>I was able to connect to my proxmox installed machine on the port :8006 via a browser on my home network. Next step was enabling the management of multiple machines via a single UI. So as soon as I had two machines with Proxmox installer, I was able to go to my primary, click on Create cluster, confirm. Get the Join token, connect to the socond machine and paste the join token into the &quot;Join Cluster&quot;. Worked out of the box.</p>
<p><img src="/posts/images/proxmox/proxmox-clustering.png" class="img-fluid" width="80%" alt="" /></p>
<h2 id="removing-the-update-repositories-to-work-on-the-free-version-of-proxmox">Removing the Update Repositories to work on the Free version of Proxmox</h2>
<p>To stay within the Free licensing of Proxmox and be able to do apt-get, remember to go for each machine and to remove the non-free repos in the repository list.</p>
<p><img src="/posts/images/proxmox/proxmox-remove-repos" class="img-fluid" width="80%" alt="" /></p>
<h2 id="installing-tailscale">Installing Tailscale</h2>
<p>I use <a href="https://tailscale.com/">Tailscale</a> at home to connect across multiple locations and roaming devices. Every time I add a Tailscale device, I am amazed at how easy it is.</p>
<pre><code class="language-bash">curl -fsSL https://tailscale.com/install.sh | sh
tailscale up
</code></pre>
<p>Two lines, one URL to visit and the machines were enrolled.</p>
<h2 id="vms-and-lxcs">VMs and LXCs</h2>
<p>To create VMs and LXCs, you need to add iso images or Templates to your local storage:</p>
<p>Container templates, you can create your own and upload them or simply click on &quot;Templates&quot; and get a couple of ready made ones for use in your containers.</p>
<p><img src="/posts/images/proxmox/container-templates.png" class="img-fluid" width="80%" alt="" /></p>
<p>You can now get the official windows ISO from the microsoft website. So download it to your local machine and then Upload it to the ISO images.</p>
<p><img src="/posts/images/proxmox/windows-iso.png" class="img-fluid" width="80%" alt="" /></p>
<h3 id="installing-windows-11-pro-and-activating-with-the-hardware-license">Installing Windows 11 Pro and activating with the Hardware license</h3>
<p>I had previously logged in and linked to my microsoft account on the windows 11 pro licensed version of the OS for each of the machines. This meant that when installing the Windows11 Pro from the ISO onto a VM running on the machines, I was able to activate the machine by referring to the previous activation. #Windows11Pro allows itself to be reactivated with the license that came with the hardware, inside a proxmox8 VM of the same machine as long as you pass the host-cpu - or so it seems to me.</p>
<p><img src="/posts/images/proxmox/activated.jpg" class="img-fluid" width="80%" alt="Proxmox-shell-mode-issue" /></p>
<h2 id="issues-i-had-and-solutions">Issues I had and solutions</h2>
<h3 id="console-not-connecting-to-lxc-containers">Console not connecting to LXC containers</h3>
<p>Several times, either while connecting to a container in Proxmox directly, or after a containter migation, I was not able to use the integrated shell. I therefore had to change the Container &quot;Options-&gt;Console mode&quot; to &quot;shell&quot; to make it connect every time.
<img src="/posts/images/proxmox/Proxmox-Shell-mode.png" class="img-fluid" width="80%" alt="Proxmox-shell-mode-issue" /></p>
<h3 id="apt-get-issue-in-proxmox-containers">apt-get issue in proxmox containers</h3>
<p>The first thing I do upon entering a container is nearly always apt-get update. And sometimes it breaks. I couldn't update or install. Here is my checklist:</p>
<ol>
<li><p>Check you gave and ip address to the container in the &quot;Network&quot; section, either a dhcp or a static address.</p>
</li>
<li><p>Check your DNS servers: I had not noticed that after installing Tailscale, my DNS records were only pointing to the talescale DNS resolver. Adding back google (8.8.8.8) and cloudflare (1.1.1.1) to my proxmox hosts helped.</p>
</li>
</ol>
<p><img src="/posts/images/proxmox/Tailscale-dns-issue-proxmox.png" class="img-fluid" width="80%" alt="Tailscale-dns-issue-proxmox" /></p>
<p>By fixing both of these I was able to get the apt-get running correctly.</p>
<h2 id="automation">Automation</h2>
<h3 id="installing-on-a-client-machine-the-proxmox-cli-tools">Installing on a client machine the Proxmox CLI Tools</h3>
<p>I'm planning on checking out automation of deployment on proxmox. Making a note here of the command line installation of the tools</p>
<pre><code>sudo pip3 install pve-cli
</code></pre>
<p>I'll also look into Terraform + Ansible for a proxmox deployment, or the Packer LXC to make container templates, but that is for next time.</p>
<hr>
</div>
<ul class="pager">
<li class="previous">
</li>
Expand All @@ -384,18 +358,18 @@ <h5>Tags</h5>
<li><a role="button" href="/tags/Architecture" class="button small">Architecture (7)</a></li>
<li><a role="button" href="/tags/Oracle" class="button small">Oracle (6)</a></li>
<li><a role="button" href="/tags/Rpi" class="button small">Rpi (4)</a></li>
<li><a role="button" href="/tags/CommandLine" class="button small">CommandLine (4)</a></li>
<li><a role="button" href="/tags/Space" class="button small">Space (4)</a></li>
</ul>
<ul class="actions small">
<li><a href="/tags" class="button small">View All Tags &rarr;</a></li>
</ul>

<h5>Older Posts</h5>
<ul>
<li><a href="/posts/Proxmox">Proxmox 8 on sub $200 mini PCs</a></li>
<li><a href="/posts/network-vpn">Network planning and VPN</a></li>
<li><a href="/posts/mini-pc">The era of the sub $200 PC</a></li>
<li><a href="/posts/learn-from-chatgpt-Crdt-OT">Learning concepts from chatGPT - Operational Transform and Conflict-free Replicated Data Types</a></li>
<li><a href="/posts/7Reasons-no-cache">7 reasons to not use caching</a></li>
</ul>
<ul class="actions small">
<li><a href="/posts" class="button small">Archive &rarr;</a></li>
Expand Down
64 changes: 35 additions & 29 deletions posts/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,12 @@ <h1>Archive</h1>
<h1>2024</h1>
<hr />

<div>
<a href="/posts/snippets-in-vscode">
<h2>VSCode Snippets</h2>
</a>
<p><em>Posted on Thursday, 18 July 2024</em></p>
</div>
<div>
<a href="/posts/HowToUpdateWritebook">
<h2>Adding LaTeX Maths to Writebook</h2>
Expand Down Expand Up @@ -260,14 +266,14 @@ <h2>R - Reading binary files</h2>
<p><em>Posted on Sunday, 3 November 2019</em></p>
</div>
<div>
<a href="/posts/R-Redis-Json">
<h2>R - Reading JSON from redis</h2>
<a href="/posts/wyam-github-actions">
<h2>Using Github actions to build Wyam and publish to github pages</h2>
</a>
<p><em>Posted on Sunday, 3 November 2019</em></p>
</div>
<div>
<a href="/posts/wyam-github-actions">
<h2>Using Github actions to build Wyam and publish to github pages</h2>
<a href="/posts/R-Redis-Json">
<h2>R - Reading JSON from redis</h2>
</a>
<p><em>Posted on Sunday, 3 November 2019</em></p>
</div>
Expand Down Expand Up @@ -356,14 +362,14 @@ <h2>SqlFiddle - A way to share SQL snippets so that they can be tested in the br
<p><em>Posted on Tuesday, 5 November 2013</em></p>
</div>
<div>
<a href="/posts/debugging-tips">
<h2>Debugging tips</h2>
<a href="/posts/raspberry-pi-update-arkos">
<h2>Raspberry Pi update Arkos</h2>
</a>
<p><em>Posted on Thursday, 31 October 2013</em></p>
</div>
<div>
<a href="/posts/raspberry-pi-update-arkos">
<h2>Raspberry Pi update Arkos</h2>
<a href="/posts/debugging-tips">
<h2>Debugging tips</h2>
</a>
<p><em>Posted on Thursday, 31 October 2013</em></p>
</div>
Expand Down Expand Up @@ -394,23 +400,17 @@ <h2>Making Fortran DLLs to interface with VBA in Excel</h2>
</a>
<p><em>Posted on Thursday, 24 May 2012</em></p>
</div>
<div>
<a href="/posts/styling-a-listview-with-a-horizontal-itemspanel-and-a-header">
<h2>Styling a ListView with a Horizontal ItemsPanel and a Header</h2>
</a>
<p><em>Posted on Wednesday, 23 May 2012</em></p>
</div>
<div>
<a href="/posts/styling-a-checkbox-as-an-ellipse">
<h2>Styling a Checkbox as an Ellipse</h2>
</a>
<p><em>Posted on Wednesday, 23 May 2012</em></p>
</div>
<div>
<a href="/posts/kml-file-structure">
<h2>KML File structure</h2>
<a href="/posts/styling-a-listview-with-a-horizontal-itemspanel-and-a-header">
<h2>Styling a ListView with a Horizontal ItemsPanel and a Header</h2>
</a>
<p><em>Posted on Tuesday, 24 April 2012</em></p>
<p><em>Posted on Wednesday, 23 May 2012</em></p>
</div>
<div>
<a href="/posts/javascript-google-maps-basics">
Expand All @@ -430,6 +430,12 @@ <h2>Python - CSV handling</h2>
</a>
<p><em>Posted on Tuesday, 24 April 2012</em></p>
</div>
<div>
<a href="/posts/kml-file-structure">
<h2>KML File structure</h2>
</a>
<p><em>Posted on Tuesday, 24 April 2012</em></p>
</div>
<div>
<a href="/posts/accessing-the-power-control-panel-in-windows-xp">
<h2>Accessing the power control panel in windows XP</h2>
Expand All @@ -449,26 +455,26 @@ <h2>Emotes on iPhones iOS5</h2>
<p><em>Posted on Wednesday, 28 March 2012</em></p>
</div>
<div>
<a href="/posts/google-doesnt-need-to-worry">
<h2>Google doesn&#x27;t need to worry</h2>
<a href="/posts/getting-my-ip-on-my-raspberrypi-for-a-script">
<h2>Getting my ip on my Raspberry pi for a script</h2>
</a>
<p><em>Posted on Saturday, 11 February 2012</em></p>
</div>
<div>
<a href="/posts/wpf-dynamicdatadisplay-a-chart-component-that-works">
<h2>WPF - DynamicDataDisplay - A Chart component that works</h2>
<a href="/posts/wpf-avalondock-a-docking-component">
<h2>WPF - AvalonDock - A Docking component</h2>
</a>
<p><em>Posted on Saturday, 11 February 2012</em></p>
</div>
<div>
<a href="/posts/wpf-avalondock-a-docking-component">
<h2>WPF - AvalonDock - A Docking component</h2>
<a href="/posts/wpf-dynamicdatadisplay-a-chart-component-that-works">
<h2>WPF - DynamicDataDisplay - A Chart component that works</h2>
</a>
<p><em>Posted on Saturday, 11 February 2012</em></p>
</div>
<div>
<a href="/posts/getting-my-ip-on-my-raspberrypi-for-a-script">
<h2>Getting my ip on my Raspberry pi for a script</h2>
<a href="/posts/google-doesnt-need-to-worry">
<h2>Google doesn&#x27;t need to worry</h2>
</a>
<p><em>Posted on Saturday, 11 February 2012</em></p>
</div>
Expand Down Expand Up @@ -518,14 +524,14 @@ <h1>2011</h1>
<hr />

<div>
<a href="/posts/the-livescribe-echo-pen">
<h2>The Livescribe Echo pen</h2>
<a href="/posts/setting-up-wordpress-publishing-from-iphone">
<h2>Setting up Wordpress publishing from iPhone</h2>
</a>
<p><em>Posted on Saturday, 31 December 2011</em></p>
</div>
<div>
<a href="/posts/setting-up-wordpress-publishing-from-iphone">
<h2>Setting up Wordpress publishing from iPhone</h2>
<a href="/posts/the-livescribe-echo-pen">
<h2>The Livescribe Echo pen</h2>
</a>
<p><em>Posted on Saturday, 31 December 2011</em></p>
</div>
Expand Down
Loading

0 comments on commit 43edb05

Please sign in to comment.