The website for craig.stewart.zone https://craig.stewart.zone/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

7 lines
5.2 KiB

<?xml version="1.0" encoding="utf-8"?><feed xmlns="http://www.w3.org/2005/Atom" ><generator uri="https://jekyllrb.com/" version="3.8.7">Jekyll</generator><link href="/blog/feed/entries/by_tag/sysadmin.xml" rel="self" type="application/atom+xml" /><link href="/" rel="alternate" type="text/html" /><updated>2021-01-02T22:26:17+00:00</updated><id>/blog/feed/entries/by_tag/sysadmin.xml</id><title type="html">My Blog</title><subtitle>The Personal Blog of a Geek</subtitle><entry><title type="html">Migrating my blog workflow to WSL</title><link href="/blog/2020/08/02/migrating-to-wsl.html" rel="alternate" type="text/html" title="Migrating my blog workflow to WSL" /><published>2020-08-02T21:30:00+01:00</published><updated>2020-08-02T21:30:00+01:00</updated><id>/blog/2020/08/02/migrating-to-wsl</id><content type="html" xml:base="/blog/2020/08/02/migrating-to-wsl.html">&lt;p&gt;I’m a Linux systems administrator. This means I am not as skilled at supporting and maintaining windows based systems as I am Linux systems. As such my personal laptop has Debian installed, and I have a number of Debian servers (some hosted at a VPS provider, some at home). I also have a Desktop that I built myself, using high spec components (at the time). As the desktop was intended to be used for gaming I bought a Windows license for it. At the time the intent was to install Debian, and then create a KVM virtual machine to run Windows in. However out of impatience, laziness, and hubris (I could always fix it later right?) I installed windows directly onto the system drive. And now the hinge on my laptop lid is broken. As my blog is split across two git repositories (one private, and one public) and publishing new posts involves a workflow that requires me to use a number of linux based systems this is a sub-optimal state of affairs.&lt;/p&gt;
&lt;p&gt;So the work flow as it is involves the private git repository, which contains my site as a jekyll site. This is checked out on my laptop, and I make edits using vim. I use jekyll to serve a version of this site on localhost whilst I am making changes to ensure I am happy with how it looks (well as happy as I can be given the design, I still need to work on that). These changes are then built to a directory that is a copy of the public repository also checked out on my laptop, but on a non-default branch. I then commit these changes, push them to my git server and raise a pull request. Once the pull request is merged the changes are pushed to the servers. Now I recognise that this is a slightly clunky workflow, and I could probably improve it with a little effort. But it works for me, on Linux, that I am used too. Now that my laptop is broken (actually I’ve fixed it, but the fix is temporary at best) I should probably get this workflow working somewhere that is usable.&lt;/p&gt;
&lt;p&gt;So I have a Windows 10 desktop computer, which has plenty of system resources, and outside of the command line a GUI is a GUI, and I can work reasonably comfortably in KDE or Windows without too much mental effort to switch (subject to the differences between the software packages in use). So all I really need for this workflow is a browser (I favour Firefox, which I use on Windows and Debian) and a Linux command line. Windows 10 has a feature Windows Subsystem for Linux. So I already had a basic Debian install set up, but I have only really used this to ssh to my servers. Well now is the time to install Ruby, Jekyll, git, and vim (oh and tmux, but that is less important for this workflow).&lt;/p&gt;
&lt;p&gt;Well it turns out to work quite well. Running jekyll on WSL allows you to access the site in Firefox in Windows. I have written this post on my Windows desktop, which has two high resolution monitors. I move windows to the background less often. It’s still the same clunky workflow as it was before, but slightly less clunky. I should have tried this ages ago. I still need to configure a few things. Vim has a spell checker that I need to configure on my desktop. I need to configure tmux. But otherwise everything works quite well.&lt;/p&gt;</content><author><name>Craig Stewart</name><email>craig@craig-james-stewart.co.uk</email></author><category term="sysadmin" /><category term="jekyll" /><category term="blog" /><category term="git" /><summary type="html">I’m a Linux systems administrator. This means I am not as skilled at supporting and maintaining windows based systems as I am Linux systems. As such my personal laptop has Debian installed, and I have a number of Debian servers (some hosted at a VPS provider, some at home). I also have a Desktop that I built myself, using high spec components (at the time). As the desktop was intended to be used for gaming I bought a Windows license for it. At the time the intent was to install Debian, and then create a KVM virtual machine to run Windows in. However out of impatience, laziness, and hubris (I could always fix it later right?) I installed windows directly onto the system drive. And now the hinge on my laptop lid is broken. As my blog is split across two git repositories (one private, and one public) and publishing new posts involves a workflow that requires me to use a number of linux based systems this is a sub-optimal state of affairs.</summary></entry></feed>