sam
@sam@cablespaghetti.dev
793 following, 721 followers
https://cablespaghetti.dev/hosting-a-static-site-on-an-original-raspberry-pi.html
@sam I think there might be something wrong with it?
@sam No, it still looks the same for me:
@sam Yeah, see my other answer (possibly not fetched by our poor Pi yet? 😉 ), I only have the issue on Firefox, Chrome displays it just fine.
@sam Okay, just tried it in Google Chrome (previous screenshots were Firefox), and there it's looking fine.
There are some HTML validity issues I’m seeing if I put it through validator.w3.org that I will endevour to fix. Maybe it’ll help. 🤷
@sam Okay, in that case it really looks like the issue is on my end, when you're seeing it properly in Firefox.
At no point did I say this was an optimal configuration for a website and social media account!
@sam looking all good now. 👍 Definitely on my to-do list moving my blog over and running on a static site.
I like the look of https://github.com/cfenollosa/bashblog i saw @cartron mention.
@sam Nice article! I love how you managed squeeze out more by compressing the pages
A few tips and tricks:
- you dont need to type the ssh key from the installer. at the "enter ssh key" question you can write "al <user>", "gl <user>" or "gh <user>", which will download your gitlab.alpinelinux.org, gitlab.com or GitHub.com <user>s ssh keys. or you should enter an https URL to your keys.
- `echo rc_after=ntpd >> /etc/conf.d/lighttpd` to make it start after ntpd.
@sam you can set up a headless machine by adding a USB stick (or any partition) with vfat label "cidata". on this you add a file meta-data with:
local-hostname: myhostname
and a file named user-data with:
#alpine-config
ssh_authorized_keys:
- ssh-ed25519 ...
packages:
- lighttpd
- tmux
A subset of cloud-init's config is supported.
With this you don't even need a screen or keyboard.