{"id":46,"date":"2024-01-09T01:16:58","date_gmt":"2024-01-09T09:16:58","guid":{"rendered":"https:\/\/blog.sacko.dev\/?p=46"},"modified":"2024-01-17T20:18:22","modified_gmt":"2024-01-18T04:18:22","slug":"my-first-post-moving-servers-to-save","status":"publish","type":"post","link":"https:\/\/blog.sacko.dev\/?p=46","title":{"rendered":"My First Post! Moving Servers to Save $$$"},"content":{"rendered":"\n<p>I&#8217;m not too sure what I&#8217;m doing with this blog yet. I was thinking of using it to give me a resource to look at to help me remember coding stuff I have done, maybe. We&#8217;ll figure it out.<\/p>\n\n\n\n<p>Anyway, I&#8217;m currently working on moving all my websites to this one. It&#8217;ll probably be a bit challenging due to this server only using ipv6. For the original domain, blog.sacko.dev, I used a CNAME DNS record to point to sacko.is-a-fullstack.dev; sacko.is-a-fullstack.dev has an AAAA DNS record pointing to this server&#8217;s IP address. Nothing seemed to work otherwise with Namecheap&#8217;s DNS since I couldn&#8217;t only have an AAAA or ipv6 record for a subdomain; it seemed to have wanted an A or ipv4 record. So I had to work with the DNS records like this:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>blog.sacko.dev CNAME --&gt; sacko.is-a-fullstack.dev AAAA --&gt; server_ipv6_address<\/code><\/pre>\n\n\n\n<p>This website took a couple days to set up, too. I accidentally spent hours setting it up as an apache2 web server, and when everything started working, I forgot I needed nginx. So I had to do it all over again. I also had to do odd work-arounds due to this server only supporting ipv6, such as having to download files to my laptop and scp them into my server.<\/p>\n\n\n\n<p>The main point of doing the server move is to save $3.50 a month on my server bill. Since I don&#8217;t get much traffic, it doesn&#8217;t really matter if I have a really small server. It will also be good for me to relearn how I set up all of my websites. I&#8217;d have to set up nginx server blocks for Flask, as well as some website I had automated scripts for updating it from GitHub as I was using it as the CMS for that website.<\/p>\n\n\n\n<p>I also was going to try to make an article summarizer with a Raspberry Pi 4B I have at home, as I wanted to test the capabilities of a low-end device for text generation. I found that zephyr-7B 2Q with GPT4All was the best for me so far; it&#8217;s slow and barely seems to use the RAM probably because of the CPU bottlenecking it, but it does a good job in following prompt instructions. I may experiment more with it since GPT4All seems to have compatibility issues with newer GGUF models, or overclock my Pi and see what happens once I get some cooling on it.<\/p>\n\n\n\n<p>Here&#8217;s some useful commands I learned for monitoring my Raspberry Pi.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\/\/monitors CPU and RAM usage in a neat display\nhtop\n\/\/monitors temperature; refreshes every second\nwatch -n 1 vcgencmd measure_temp\n\/\/ monitors cpu; refreshes 10 times a second\nwatch -n .1 vcgencmd measure_clock arm<\/code><\/pre>\n\n\n\n<p>That&#8217;s about all I got for now. I&#8217;ll try to post more about my technical adventures as time goes on.<\/p>\n\n\n\n<p>The site is sort of ugly at the moment, but I&#8217;ll work on it when I&#8217;m feeling it.<\/p>\n\n\n\n<div class=\"important-links\">\n<div class=\"il-box\">\n<a href=\"https:\/\/huggingface.co\/TheBloke\/zephyr-7B-beta-GGUF\">TheBloke\/zephyr-7B-beta Model I used<\/a>\n<a href=\"https:\/\/www.digitalocean.com\/community\/tutorials\/how-to-install-linux-nginx-mariadb-php-lemp-stack-on-debian-10\">Digital Ocean article on installing LEMP<\/a>\n<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>I&#8217;m not too sure what I&#8217;m doing with this blog yet. I was thinking of using it to give me a resource to look at to help me remember coding stuff I have done, maybe. We&#8217;ll figure it out. Anyway, I&#8217;m currently working on moving all my websites to this one. It&#8217;ll probably be a <a href=\"https:\/\/blog.sacko.dev\/?p=46\" class=\"more-link\">&#8230;<span class=\"screen-reader-text\">  My First Post! Moving Servers to Save $$$<\/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":[5],"tags":[],"_links":{"self":[{"href":"https:\/\/blog.sacko.dev\/index.php?rest_route=\/wp\/v2\/posts\/46"}],"collection":[{"href":"https:\/\/blog.sacko.dev\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.sacko.dev\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.sacko.dev\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.sacko.dev\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=46"}],"version-history":[{"count":7,"href":"https:\/\/blog.sacko.dev\/index.php?rest_route=\/wp\/v2\/posts\/46\/revisions"}],"predecessor-version":[{"id":79,"href":"https:\/\/blog.sacko.dev\/index.php?rest_route=\/wp\/v2\/posts\/46\/revisions\/79"}],"wp:attachment":[{"href":"https:\/\/blog.sacko.dev\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=46"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.sacko.dev\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=46"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.sacko.dev\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=46"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}