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]
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'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.
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.
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
to follow this guide you must beforehand:
stages are what runit uses to start up the system
mkdir -p /etc/runit cp -p /usr/local/share/examples/runit/init/ /etc/runit/ chmod +x /etc/runit/*
echo "csh -cf '/usr/local/sbin/runsvdir-start' &" >> /etc/rc.local
The runit programs must reside on the root partition, install them into /sbin:
install -m0500 /usr/local/sbin/runit* /sbin/
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/*
mkdir -p /var/service ln -s /etc/sv/getty-5 /var/service/
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.
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
now replace the init binary with runit
install /sbin/runit-init /sbin/init
now if it worked runit should boot up and you should be greeted by the getty login screen. (in theory)
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.
Might have a project coming up soon surrounding older style websites. More details coming soon when we can all work on it!
I accidentally fucked something up in the backend which caused all my pages to get nuked. We've rebuilt tho so we're good.
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.
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
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]