{"id":1,"date":"2021-11-10T00:03:56","date_gmt":"2021-11-09T11:03:56","guid":{"rendered":"http:\/\/192.168.1.239\/?p=1"},"modified":"2021-11-10T00:03:56","modified_gmt":"2021-11-09T11:03:56","slug":"hello-world","status":"publish","type":"post","link":"https:\/\/rayssite.ddns.net\/index.php\/2021\/11\/10\/hello-world\/","title":{"rendered":"Hello world!"},"content":{"rendered":"\n<p>A personal blog has long been something I wanted to have but never high enough on my list of things to do. Recently, I realised this may be a great medium to document my various projects, big or small, from time to time. It&#8217;ll probably also be great to document some of my hardware &#8220;hacking&#8221; steps and resources that may also help someone doing something similar.<\/p>\n\n\n\n<p>I had previously played with Raspberry Pi&#8217;s in 2018 and had a go at running a Nginx server, but I had no idea what components a blog would have so nothing solid really came out of it. Still, with that experience, doing this wasn&#8217;t completely new.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-style-default\"><img decoding=\"async\" width=\"766\" height=\"1024\" data-src=\"https:\/\/rayssite.ddns.net\/wp-content\/uploads\/2021\/11\/blog_server_front_4mp-766x1024.jpg\" alt=\"A little Atom laptop as the server currently running this blog\" class=\"wp-image-51 lazyload\" data-srcset=\"https:\/\/rayssite.ddns.net\/wp-content\/uploads\/2021\/11\/blog_server_front_4mp-766x1024.jpg 766w, https:\/\/rayssite.ddns.net\/wp-content\/uploads\/2021\/11\/blog_server_front_4mp-224x300.jpg 224w, https:\/\/rayssite.ddns.net\/wp-content\/uploads\/2021\/11\/blog_server_front_4mp-768x1026.jpg 768w, https:\/\/rayssite.ddns.net\/wp-content\/uploads\/2021\/11\/blog_server_front_4mp-1149x1536.jpg 1149w, https:\/\/rayssite.ddns.net\/wp-content\/uploads\/2021\/11\/blog_server_front_4mp-1532x2048.jpg 1532w, https:\/\/rayssite.ddns.net\/wp-content\/uploads\/2021\/11\/blog_server_front_4mp-1568x2096.jpg 1568w, https:\/\/rayssite.ddns.net\/wp-content\/uploads\/2021\/11\/blog_server_front_4mp-rotated.jpg 1771w\" data-sizes=\"(max-width: 766px) 100vw, 766px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 766px; --smush-placeholder-aspect-ratio: 766\/1024;\" \/><figcaption>The server currently running this blog is a little Atom laptop \ud83d\ude00<\/figcaption><\/figure>\n\n\n\n<p>I always fancy repurposing old, perfectly functional items into something else useful, especially electronics. I got this laptop from TradeMe (a local trading site), in a box(!) of old laptops. Turns out there&#8217;s still something decent-ish in them, and this laptop is one. It has an Intel Atom N450 processor (1C 2T) and a DDR2 RAM slot. No charger, no hard drive, but that&#8217;s no problem! Even the battery still holds charge (ACPI says it&#8217;s only 20% worn). It&#8217;s currently powered by a 12V adapter boosted to 19V through a DC\/DC module, and I put in an old 80GB hard drive (from another old electronics collection off TradeMe) as the main drive. It was initially meant for testing only until I realised none of the other laptops were better&#8230; would definitely need to upgrade this in the future, but it&#8217;s good for now. I then installed Ubuntu Server 20.04 (Focal Fossa).<\/p>\n\n\n\n<p>When running benchmarks using hardinfo, it still outperforms a Raspberry Pi 3 &#8211; I know, Pi&#8217;s aren&#8217;t known for performance, but this is like a Pi with a screen, a battery and a keyboard! For almost nothing too (it was $30 for the whole lot). When the screen is off, it draws just over 10W with little CPU load, so I see that as still fairly low-power.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"1024\" height=\"766\" data-src=\"https:\/\/rayssite.ddns.net\/wp-content\/uploads\/2021\/11\/blog_server_back_4mp-1024x766.jpg\" alt=\"Back of the Atom laptop\" class=\"wp-image-52 lazyload\" data-srcset=\"https:\/\/rayssite.ddns.net\/wp-content\/uploads\/2021\/11\/blog_server_back_4mp-1024x766.jpg 1024w, https:\/\/rayssite.ddns.net\/wp-content\/uploads\/2021\/11\/blog_server_back_4mp-300x224.jpg 300w, https:\/\/rayssite.ddns.net\/wp-content\/uploads\/2021\/11\/blog_server_back_4mp-768x575.jpg 768w, https:\/\/rayssite.ddns.net\/wp-content\/uploads\/2021\/11\/blog_server_back_4mp-1536x1149.jpg 1536w, https:\/\/rayssite.ddns.net\/wp-content\/uploads\/2021\/11\/blog_server_back_4mp-2048x1532.jpg 2048w, https:\/\/rayssite.ddns.net\/wp-content\/uploads\/2021\/11\/blog_server_back_4mp-1568x1173.jpg 1568w\" data-sizes=\"(max-width: 1024px) 100vw, 1024px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 1024px; --smush-placeholder-aspect-ratio: 1024\/766;\" \/><figcaption>Back of the laptop currently running this blog. I designed a 3D-printed clamp as the HDD bracket was missing<\/figcaption><\/figure>\n\n\n\n<p>The setup I have for the blog is LNMP &#8211; Linux (Ubuntu), Nginx, MySQL and PHP. For the start, I largely followed <a href=\"https:\/\/www.nginx.com\/blog\/installing-wordpress-with-nginx-unit\/\">this blog by Nginx<\/a>. I then added DDNS with no-ip and HTTPS with LetsEncrypt. I also installed fail2ban for brute-force protection. WordPress was completely new to me so a few weekends were spent when stuff didn&#8217;t work as expected. In the end, I learned heaps and it was all worth it!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>A personal blog has long been something I wanted to have but never high enough on my list of things to do. Recently, I realised this may be a great medium to document my various projects, big or small, from time to time. It&#8217;ll probably also be great to document some of my hardware &#8220;hacking&#8221;&hellip; <a class=\"more-link\" href=\"https:\/\/rayssite.ddns.net\/index.php\/2021\/11\/10\/hello-world\/\">Continue reading <span class=\"screen-reader-text\">Hello world!<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[],"class_list":["post-1","post","type-post","status-publish","format-standard","hentry","category-misc","entry"],"_links":{"self":[{"href":"https:\/\/rayssite.ddns.net\/index.php\/wp-json\/wp\/v2\/posts\/1","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/rayssite.ddns.net\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/rayssite.ddns.net\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/rayssite.ddns.net\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/rayssite.ddns.net\/index.php\/wp-json\/wp\/v2\/comments?post=1"}],"version-history":[{"count":2,"href":"https:\/\/rayssite.ddns.net\/index.php\/wp-json\/wp\/v2\/posts\/1\/revisions"}],"predecessor-version":[{"id":53,"href":"https:\/\/rayssite.ddns.net\/index.php\/wp-json\/wp\/v2\/posts\/1\/revisions\/53"}],"wp:attachment":[{"href":"https:\/\/rayssite.ddns.net\/index.php\/wp-json\/wp\/v2\/media?parent=1"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/rayssite.ddns.net\/index.php\/wp-json\/wp\/v2\/categories?post=1"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/rayssite.ddns.net\/index.php\/wp-json\/wp\/v2\/tags?post=1"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}