<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Sysadmin on</title><link>http://salopst.yearl.us/categories/sysadmin/</link><description>Recent content in Sysadmin on</description><generator>Hugo</generator><language>en</language><copyright>&lt;a href="https://creativecommons.org/licenses/by-nc/4.0/" target="_blank" rel="noopener"&gt;CC BY-NC 4.0&lt;/a&gt;</copyright><lastBuildDate>Fri, 15 Oct 2021 03:25:18 +0100</lastBuildDate><atom:link href="http://salopst.yearl.us/categories/sysadmin/index.xml" rel="self" type="application/rss+xml"/><item><title>Managing dotfiles -- git bare repository</title><link>http://salopst.yearl.us/manage-dotfiles-stow-to-git-bare-repo/</link><pubDate>Fri, 15 Oct 2021 03:25:18 +0100</pubDate><guid>http://salopst.yearl.us/manage-dotfiles-stow-to-git-bare-repo/</guid><description>&lt;p&gt;So, you got yourself into a bit of a pickle with your configuration files again, did you? Well, fortunately you had the good sense to document what you did all those [time-units] ago.&lt;/p&gt;&#10;&lt;p&gt;You may not remember, but I do&amp;hellip; past-past you thought it would be swell to manage files with GNU Stow. And things were good and didn&amp;rsquo;t really break or anything, and we moved across serveral distros and a pretty major shift from MacOS to our foreverOS, but here I am telling you that the symlinks were causing some unnecessary complexity.&lt;/p&gt;</description></item><item><title>Compressing a Windows 10 VirtualBox Image</title><link>http://salopst.yearl.us/compressing-windows-10-virtualbox-image/</link><pubDate>Thu, 30 Sep 2021 09:21:43 +0000</pubDate><guid>http://salopst.yearl.us/compressing-windows-10-virtualbox-image/</guid><description>&lt;p&gt;Apparently I purchased the blow 1TB SSD back on May 14 because the price was good, and my venerable T460 was otherwise running out of space, and I figured I was going to have to duplicate my old iTunes library for connection with my iPhone. I also had a hankering to play some cricket games on Steam.&lt;/p&gt;&#10;&lt;iframe style="width:120px;height:240px;" marginwidth="0" marginheight="0" scrolling="no" frameborder="0" src="//ws-eu.amazon-adsystem.com/widgets/q?ServiceVersion=20070822&amp;OneJS=1&amp;Operation=GetAdHtml&amp;MarketPlace=GB&amp;source=ss&amp;ref=as_ss_li_til&amp;ad_type=product_link&amp;tracking_id=yearlus-21&amp;language=en_GB&amp;marketplace=amazon&amp;region=GB&amp;placement=B07YD579WM&amp;asins=B07YD579WM&amp;linkId=d122c37b66a68fd72dd55fabb33d23a2&amp;show_border=true&amp;link_opens_in_new_window=true"&gt;&lt;/iframe&gt;&#10;&lt;p&gt;I therefore set up a Windows 10 VDI for us in VirtualBox with iTunes, Steam and a few other essentials: git, Powershell, VSCode. The games I had in mind would not work on so old a machine, and I found alternate arrangements for music management, BUT the initial 100GB allocated to the VM seems to have grown to over 140GB&amp;hellip; a bit pans consideredin there&amp;rsquo;s no data in the damned thing.&lt;/p&gt;</description></item><item><title>SSH key pair authentication</title><link>http://salopst.yearl.us/ssh-key-pair-authentication/</link><pubDate>Sun, 14 Dec 2014 13:20:54 +0000</pubDate><guid>http://salopst.yearl.us/ssh-key-pair-authentication/</guid><description>&lt;p&gt;Well, flummery. It&amp;rsquo;s been a while since I had to do this, so here, future self, some awesome notes&amp;hellip;&lt;/p&gt;&#10;&lt;h3 id="local"&gt;LOCAL&lt;/h3&gt;&#10;&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;$ ssh-keygen -t rsa -b &lt;span style="color:#ae81ff"&gt;4096&lt;/span&gt; -f ~/.ssh/id_rsa_4096&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;$ scp -P &lt;span style="color:#ae81ff"&gt;2222&lt;/span&gt; 192.168.0.108:/home/yearluk/.ssh/yearluk.ehecatl.pub&#10;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;h3 id="ssh-to-remote"&gt;SSH to REMOTE&amp;hellip;&lt;/h3&gt;&#10;&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;$ cat ~/.ssh/yearluk.ehecatl.pub &amp;gt;&amp;gt; authorized_keys&#10;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;</description></item><item><title>Installing Postfix and Dovecot on Debian 6 (Squeeze)</title><link>http://salopst.yearl.us/installing-postfix-and-dovecot-on-debian-6-squeeze/</link><pubDate>Sat, 03 Mar 2012 19:17:21 +0000</pubDate><guid>http://salopst.yearl.us/installing-postfix-and-dovecot-on-debian-6-squeeze/</guid><description>&lt;p&gt;Add MX records (A and AAAA) to zone file for vps.yearl.us at HE&#10;Primary files involved:&lt;/p&gt;&#10;&lt;ul&gt;&#10;&lt;li&gt;&#10;&lt;p&gt;/etc/postfix/main.cf&lt;/p&gt;&#10;&lt;/li&gt;&#10;&lt;li&gt;&#10;&lt;p&gt;/etc/postfix/sasl/smtpd.conf&lt;/p&gt;&#10;&lt;/li&gt;&#10;&lt;li&gt;&#10;&lt;p&gt;/etc/postfix/sasl/smtpd.conf&lt;/p&gt;&#10;&lt;/li&gt;&#10;&lt;/ul&gt;&#10;&lt;p&gt;start/stop&lt;/p&gt;&#10;&lt;ul&gt;&#10;&lt;li&gt;&#10;&lt;p&gt;/etc/init.d/postfix restart&lt;/p&gt;&#10;&lt;/li&gt;&#10;&lt;li&gt;&#10;&lt;p&gt;/etc/init.d/saslauthd start&lt;/p&gt;&#10;&lt;/li&gt;&#10;&lt;li&gt;&#10;&lt;p&gt;/etc/init.d/dovecot restart&lt;/p&gt;&#10;&lt;/li&gt;&#10;&lt;/ul&gt;&#10;&lt;p&gt;POSTFIX (send)&lt;/p&gt;&#10;&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;$ sudo apt-get update&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;$ sudoapt-get install postfix&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;$dpkg-reconfigure postfix&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;$ sudo sudo apt-get install mailutils&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;$ sudo mkdir /etc/skel/mail/&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;$ mkdir ~/mail/&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;$ su&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&lt;span style="color:#75715e"&gt;# mkdir ~/mail/&lt;/span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;test send:&lt;/p&gt;&#10;&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;$ mail -s Subject_Line mail_addr@yearl.us&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;testing new mail. This is the body .&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;$$mail -s &lt;span style="color:#e6db74"&gt;&amp;#34;log file&amp;#34;&lt;/span&gt; mail_addr@yearl.us &amp;lt; /etc/nginx/nginx.conf&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&lt;span style="color:#f92672"&gt;[&lt;/span&gt;CTRL+D to send&lt;span style="color:#f92672"&gt;]&lt;/span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Boomshaka!&lt;/p&gt;</description></item></channel></rss>