num @ soda

the raw stream of consciousness

← [go home]

This is my blog, iteration 3585843852...

Instead of trying to automate it with a bash script as pointed out here I'll just be adding entries manually and updating the index manually. For some reason the manual experience makes it more worth it for me.

I've added categories to the index so when you look at it you can instantly tell the date, what the post is about (category) and what the name of it is plus there is a link to the post.

Current categories are as follows: [tech], [site], [rant]


July 2020 February 2020 January 2020 December 2019

Using rsync to make uploading my site easier.

| category: [site]

Finally I bit the bullet and made an rsync script in bash to upload all the contents of my site to the server. To understand why this is a big deal to me you need to know some context of how I've managed this site in the past.

Back when I would make iterations of this site I would create them locally, tar them up, upload them to some file host, go on to the server, wget them down then remove the old site and untar the archive and boom a new site was uploaded. Now, this method worked but was manual and time consuming. I found an old archive of a really old version of the site one time and accidentally untarred it in the same directory as my site which nuked all the files and that was a big motivator for me to finally make this script and I really don't regret making it.

Now I can make a change to a local copy then just run the script, do some auth things then it uploads it to the server. This is perfect

I hate Twitter.

| category: [rant]

I'm done with Twitter. Twitter is 100% marketed towards a certain political leaning, and as 2020 has shown, it's a tool to pit people against one another. I'm fed up going on there to see people screech about retarded shit or to see who's getting dogpilled on next without hearing what the other side of whatever situation has to say (cancel culture). I remember back when the guy got killed by the cop all these antifa retards turning rightfully done black lives matter protests into anarchist movements and thinking to myself, "Why am I on a site that encourages this shit?". Then "anonymous" came back except this "anonymous" seemed very interested in promoting antifa and its tweets spread like wild fire breeding the hate machine. Once something gets too big then it goes to shit and that's true for Twitter and it's true for sites like Reddit too.

Gonna just not look at Twitter or use it anymore cause it's a waste of mental energy and is such a fucking shithole especially this year.

Also to be clear I'm not a centrist but I think both sides of the spectrum are equally dumb as shit.

Making my site a just werks site.

| category: [site]

I've decided after many iterations of my site to just make it as simple as possible also known as making it just werk. I tried something like this before where it was just a monospace font, white foreground and black background and it was cool but didn't appeal to me that well and was done away with.

But now I think may be the final design change I make to the site. I am no webdev and do this for fun and the past iterations have been really complex to manage because I was trying to fit a design of like a minimal but aesthetically pleasing website, and because design isn't my forte, it didn't go as planned and became more of a headache to work on than something of a hobby.

I tried making an automated blog in bash and having to manipulate HTML in a shell language is no easy task and since that headache I haven't really touched the idea of making another blog till now. This one will just be manually typed out because honestly that's way easier to manage.

Installing runit on *BSD.. sort of.

| category: [tech]


So I randomly came up with this idea, after hearing what my friend had to say about using runit as his init on his Void Linux machine, of would runit work and be usable with OpenBSD? So I did some research and found that runit could work on BSD systems (emphasis on could but we'll get to that). So I looked up a tutorial on how to do this because surely there must be at least a couple, right? very wrong.

I found this article, from what seemed to be at least 2001, on how to install and use runit as your init on OpenBSD 2.6. Yes a version of OpenBSD from 1 December 1999. After learning about this I guessed that the chances of this working would be slim but I would give it a shot anyway. The guide listed out instructions to which I followed and on my first try it failed to start runit and kernel panic'd. I tried many times after to the point that I got it to work but the getty never came up. So this is my modified version of that article that should theoretically work but doesn't.

Table of Contents
  1. 0 introduction
  2. 1 stages
  3. 1.1 stage files
  4. 1.2 runsvdir
  5. 2 runit programs
  6. 3 getty
  7. 3.1 telling runsvdir about the getty
  8. 3.2 testing stage 2
  9. 4 replacing the init binary
  10. 4.1 create backup binary
  11. 4.2 replace init binary
  12. 5 reboot

0 introduction

to follow this guide you must beforehand:

1 stages

stages are what runit uses to start up the system

1.1 stage files

                mkdir -p /etc/runit
                cp -p /usr/local/share/examples/runit/init/[123] /etc/runit/
                chmod +x /etc/runit/*

1.2 runsvdir

                echo "csh -cf '/usr/local/sbin/runsvdir-start' &" >> /etc/rc.local

2 runit programs

The runit programs must reside on the root partition, install them into /sbin:

                install -m0500 /usr/local/sbin/runit* /sbin/

3 getty

                mkdir -p /etc/sv/getty-5
                cp -p /usr/local/share/examples/runit/init/getty-tty5/run /etc/sv/getty-5/
                cp -p /usr/local/share/examples/runit/init/getty-tty5/finish /etc/sv/getty-5/
                chmod +x /etc/sv/getty-5/*

3.1 telling runsvdir about the getty

                mkdir -p /var/service
                ln -s /etc/sv/getty-5 /var/service/

3.2 testing stage 2

invoke sh when running this command. I installed bash beforehand and when I tried it with bash I got a `permission denied` error but when I prefixed it with sh it ran without errors so just prefix it with sh to be sure

                sh /etc/runit/2 &

if you don't get an error and it outputs the normal stuff you'd see when using an ampersand at the end then it has worked.

4 replacing the init binary

4.1 create backup binary

create a backup of the init system so if something goes wrong (which it shouldn't) then you can use that

                cp -p /sbin/init /sbin/init.bsd

4.2 replace init binary

now replace the init binary with runit

                install /sbin/runit-init /sbin/init

5 reboot

then reboot


now if it worked runit should boot up and you should be greeted by the getty login screen. (in theory)

new blog page format coming soon

| category: [old]

new formatting style for this coming soon which makes it easier to search. instead of having it all on one page it'll be split into multiple.

old websites

| category: [old]

Might have a project coming up soon surrounding older style websites. More details coming soon when we can all work on it!

The page is back!

| category: [old]

I accidentally fucked something up in the backend which caused all my pages to get nuked. We've rebuilt tho so we're good.

Automating my site

| category: [old]

Been tryna come up with ways to automate this site a bit better.

One of the ideas I came up with was to make a program that updates the header links for when I add new pages. Another was to automate the creation of links on the link list which I'm going to do for sure sometime soon.

Hell this blog script was the start of automating soda so yeah. Still gathering ideas to cut down on the manual editing of every page which can be a hastle.

I'm also off for a couple weeks so I'll need to entertain myself. Should be interesting.

First ACTUAL Post

| category: [old]

I actually got a decent thing going for the blog

Now I can do these breaklines like normal and not need to add the br html tag all the time to act as a seperator. yay for that.

This was a sleepless night and i was bored so you're welcome future me

First post

| category: [old]

This is my hacked together with bash blog!

So like yeah it's a script which makes posts. It's a bit rough round the edges and is changing a lot as I come up with new ideas which means it breaks a lot and does weird stuff. oh well. posting...

[back to the top]