<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Vps on blog.iankulin.com</title><link>https://blog.iankulin.com/tags/vps/</link><description>Recent content in Vps on blog.iankulin.com</description><generator>Hugo</generator><language>en-AU</language><lastBuildDate>Sat, 09 Sep 2023 00:00:00 +0000</lastBuildDate><atom:link href="https://blog.iankulin.com/tags/vps/index.xml" rel="self" type="application/rss+xml"/><item><title>Basic VPS disk speed</title><link>https://blog.iankulin.com/basic-vps-disk-speed/</link><pubDate>Sat, 09 Sep 2023 00:00:00 +0000</pubDate><guid>https://blog.iankulin.com/basic-vps-disk-speed/</guid><description>&lt;p&gt;I couldn&amp;rsquo;t help but measure some VPS disk speeds while I was busting out the &lt;code&gt;fio&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;&lt;img src="https://blog.iankulin.com/images/vps.png" alt=""&gt;&lt;/p&gt;
&lt;p&gt;Binary Lane only claims &amp;ldquo;pure SSD drives&amp;rdquo; but seems pretty great. The difference between Digital Ocean SSD and NVME is disappointing. Obviously you&amp;rsquo;re sharing a drive with other users, so perhaps this depends on what else is going on.&lt;/p&gt;</description></item><item><title>Digital Ocean first impressions</title><link>https://blog.iankulin.com/digital-ocean-first-impressions/</link><pubDate>Sat, 19 Aug 2023 00:00:00 +0000</pubDate><guid>https://blog.iankulin.com/digital-ocean-first-impressions/</guid><description>&lt;p&gt;I&amp;rsquo;ve been thinking about the time it takes me to provision a guest VM in Proxmox. I seem to remember on &lt;a href="https://www.binarylane.com.au/"&gt;BinaryLane&lt;/a&gt; it was seconds rather than minutes. This seemed to be a good excuse to use the free credit I&amp;rsquo;ve heard about for &lt;a href="https://www.linode.com/lp/free-credit-100/?promo=sitelin100-02162023&amp;amp;promo_value=100&amp;amp;promo_length=60&amp;amp;utm_source=google&amp;amp;utm_medium=cpc&amp;amp;utm_campaign=11178784684_109179223363&amp;amp;utm_term=g_kwd-2629795801_e_linode&amp;amp;utm_content=466889596558&amp;amp;locationid=1000676&amp;amp;device=c_c&amp;amp;gclid=CjwKCAjw-7OlBhB8EiwAnoOEk9lQtzb_l17rAJmoU1KzhTUcWc6TF6C8KBTZU3j6tJ3d1qLWqqiRgxoC6qUQAvD_BwE"&gt;Linode&lt;/a&gt; or Digital Ocean hundreds of times in podcast adverts, so I claimed the &lt;a href="http://do.co/lnl"&gt;$200 credit for being a Late Night Linux listener&lt;/a&gt; at Digital Ocean. They extracted $5 out of me in the process, so I guess they are in front on that transaction. $200 would run a little VM for a couple of years at their rates, but of course it&amp;rsquo;s limited to two months, at the end of which I will have an account sitting there, with my credit card already recorded - so all the friction is gone if I need an internet facing machine for some purpose - which is clearly their dastardly plan&lt;/p&gt;
&lt;p&gt;&lt;a href="https://blog.iankulin.com/images/screen-shot-2023-07-11-at-7.50.07-pm.png"&gt;&lt;img src="https://blog.iankulin.com/images/screen-shot-2023-07-11-at-7.50.07-pm.png" width="351" alt=""&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;The process of creating a &amp;lsquo;droplet&amp;rsquo; (that&amp;rsquo;s what they call their VM&amp;rsquo;s) was straightforward - select the datacentre, machine size etc You can upload your SSH key which is a nice touch.&lt;/p&gt;
&lt;p&gt;When I got to the end of all that, I hit create and timed the boot up of the Debian 12 system I&amp;rsquo;d chosen - 42.13 seconds.&lt;/p&gt;
&lt;p&gt;I could ping the public IP, so it existed, but couldn&amp;rsquo;t ssh in as root, and didn&amp;rsquo;t know my user name. After trawling through their Getting Started docs, I found one that said to use your email that you signed up with. That didn&amp;rsquo;t make sense or work. I &lt;a href="https://www.youtube.com/watch?v=kzThZOZj1S4&amp;amp;t=417"&gt;watched a video&lt;/a&gt;, then searched further and found I should have gone into the advanced options and written a script to add a user - a sample one was provided.&lt;/p&gt;
&lt;p&gt;I destroyed the first machine and created a second one with the sample user script (which I&amp;rsquo;ve since gone back and searched for but could not find) which basically adds the user and assigns the ssh key. Once that was booted I could ssh in, but not sudo since I didn&amp;rsquo;t know the password.&lt;/p&gt;
&lt;p&gt;There is a &amp;lsquo;console&amp;rsquo; so I used that to set a password for the user the script had created, then was able to both ssh in and use sudo. I guess the idea of the script is great if you know what you&amp;rsquo;re doing and going to be creating a lot of VM&amp;rsquo;s, but this was a painful start compared to &lt;a href="https://www.binarylane.com.au/"&gt;BinaryLane&lt;/a&gt; or my homelab. I figured out afterwards, this was because I&amp;rsquo;d chosen Debian for the distro - you can&amp;rsquo;t ssh in as root. If I choose a more relaxed distro, I could do that, and create my user then patch up the root access.&lt;/p&gt;
&lt;p&gt;The rest of the experience was fine - the web interface is clear enough apart from my initial grumble. I couldn&amp;rsquo;t paste into the web console, and I&amp;rsquo;ve noticed that in Proxmox as well so I guess that&amp;rsquo;s some sort of limitation. In any case, once you&amp;rsquo;ve set up your ssh user properly you never need use it again.&lt;/p&gt;</description></item><item><title>Adding a Domain Name to a VPS</title><link>https://blog.iankulin.com/adding-a-domain-name-to-a-vps/</link><pubDate>Fri, 28 Apr 2023 00:00:00 +0000</pubDate><guid>https://blog.iankulin.com/adding-a-domain-name-to-a-vps/</guid><description>&lt;p&gt;I&amp;rsquo;ve had a small &lt;a href="https://www.binarylane.com.au/"&gt;BinaryLane VPS&lt;/a&gt; for a while that I use for homelab type stuff, but now need to serve a tiny amount of JSON from it. A longer term plan is to use it as a &lt;a href="https://www.wireguard.com/"&gt;Wireguard&lt;/a&gt; tunnel back to my cluster at home to expose the services that need to be internet facing. I&amp;rsquo;ve also had a domain name I bought from &lt;a href="https://porkbun.com/products/domains"&gt;Porkbun&lt;/a&gt; sitting round for a bit, so it&amp;rsquo;s probably a good time to join them up.&lt;/p&gt;
&lt;p&gt;When you type a domain name into your web browser it needs to be turned into an IP address in order to return the content you need from that web server. For example if I type in &lt;code&gt;google.com&lt;/code&gt; it needs to be turned into &lt;code&gt;172.217.24.46&lt;/code&gt; in order to fetch the front page of Google.&lt;/p&gt;
&lt;p&gt;The things that provide this translation service are the Domain Name Service (DNS). There&amp;rsquo;s several layers of DNS and if the first layer asked does not know, the request gets escalated until it is found or the request fails - but somewhere in that chain there needs to be a name server (the Authoritative DNS) that knows the domain name and the IP address. DNS is cached all over the place, so most requests don&amp;rsquo;t get all the way back there (and changes sometimes take a little while to percolate around) but there must an an authoritative name server somewhere.&lt;/p&gt;
&lt;p&gt;It&amp;rsquo;s possible to have my domain pointed to the BinaryLane name servers, but it&amp;rsquo;s currently pointed to the Porkbun name servers, and it&amp;rsquo;s simpler for me to leave it there.&lt;/p&gt;
&lt;p&gt;All I need to do at the Porkbun end is go into Domain Management, and open up the &amp;ldquo;DNS entries&amp;rdquo; for the domain, and edit the &amp;ldquo;A Records&amp;rdquo; to point at the IP address.&lt;/p&gt;
&lt;p&gt;&lt;img src="https://blog.iankulin.com/images/screen-shot-2023-04-21-at-9.24.12-am.png" alt=""&gt;&lt;/p&gt;
&lt;p&gt;And that&amp;rsquo;s enough that a few minutes later, typing the domain address into a web browser pulls up the test page from the Nginx web server running in a container on my VPS.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://blog.iankulin.com/images/screen-shot-2023-04-21-at-9.35.48-am.png"&gt;&lt;img src="https://blog.iankulin.com/images/screen-shot-2023-04-21-at-9.35.48-am.png" width="1000" alt=""&gt;&lt;/a&gt;&lt;/p&gt;</description></item><item><title>Your own Aussie server on BinaryLane</title><link>https://blog.iankulin.com/your-own-aussie-server-on-binarylane/</link><pubDate>Sun, 05 Feb 2023 00:00:00 +0000</pubDate><guid>https://blog.iankulin.com/your-own-aussie-server-on-binarylane/</guid><description>&lt;p&gt;Listening to podcasts, I&amp;rsquo;ve been jealous of US developers who seem to have masses of $5/month VPS (Virtual Private Server) options. When I looked for similar Australian offerings a few months ago, they all seem to start at around $35 which is outside of my &amp;lsquo;have a play with something&amp;rsquo; budget range.&lt;/p&gt;
&lt;p&gt;I could of course use one of the international options, but one of the main apps on my app ideas list needs to be hosted in Australia and work under Australian data privacy rules. That might be the case for Digital Ocean (or other US companies) if you select an AU server, but I&amp;rsquo;m not a lawyer. For the imaginary clients of my imaginary app, me being able to say that the hosting is with an Australian company in Australia would be a plus.&lt;/p&gt;
&lt;p&gt;I was having another look recently and discovered that &lt;a href="https://www.mammoth.com.au/"&gt;Mammoth&lt;/a&gt; (who are reputable Australian VPS providers) have a service branded &amp;ldquo;&lt;a href="https://www.binarylane.com.au/"&gt;binary lane&lt;/a&gt;&amp;rdquo; that is aimed at developers needing to quickly stand up test servers that are at this low end price point.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://www.binarylane.com.au/"&gt;&lt;img src="https://blog.iankulin.com/images/screen-shot-2023-01-28-at-12.49.14-pm.jpg" alt=""&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;I mean, &amp;ldquo;ex GST&amp;rdquo; is a bit sly, but still, this is definitely in the starting price category I&amp;rsquo;m interested in. Naturally the prices scale up as your needs do.&lt;/p&gt;
&lt;p&gt;I started hitting buttons to make an account, and true to the advertising, I was logged into an Ubuntu (you can chose from a heap of ISOs or upload your own) server that was live on the internet, hosted from Sydney, with it&amp;rsquo;s own IP address inside a minute. A few minutes after that, I&amp;rsquo;d done updates, installed Docker and had a website live on the internet.&lt;/p&gt;
&lt;p&gt;It has a nice panel interface in their web site with a console and some vital statistics and information.&lt;/p&gt;
&lt;p&gt;&lt;img src="https://blog.iankulin.com/images/screen-shot-2023-01-28-at-1.09.06-pm.jpg" alt=""&gt;&lt;/p&gt;
&lt;p&gt;Although convenient, the webpage console has a tiny lag I find unsettling, so as soon as I had the basics sorted out I switched to ssh from my MacBook terminal.&lt;/p&gt;
&lt;p&gt;This was a super painless experience, and super affordable. Since they are in the business of selling you more VPS capacity, it looks like the process of scaling up your virtual machine as needed is going to be painless as well.&lt;/p&gt;
&lt;p&gt;My plan for this VPS is to use it to learn how to add a domain, set up SSL, and eventually just keep it as a test server for apps and api endpoints.&lt;/p&gt;</description></item></channel></rss>