sam

@sam@cablespaghetti.dev

Father of two, husband, lover of dogs but owner of many cats. Runner. Technology enthusiast. Metalhead. AuADHDer. Cloudy DevOps type person. Formerly known as @sam@running.cafe

793 following, 721 followers

40 ★ 21 ↺

[?]sam »
@sam@cablespaghetti.dev

Here's a blog post on setting up Alpine Linux on my old 256MB Raspberry Pi in diskless mode and having it host a static site (and now my blog). I'll write up another on how I got Snac installed to have it host my fediverse presence over the next few days. Enjoy!

https://cablespaghetti.dev/hosting-a-static-site-on-an-original-raspberry-pi.html


    ...
    Older...

    [?]Michael »
    @mmeier@social.mei-home.net

    @sam I think there might be something wrong with it?

    A screenshot of the blog post, with text in code boxes visible, but otherwise there is no text, just a couple of icons.

    Alt...A screenshot of the blog post, with text in code boxes visible, but otherwise there is no text, just a couple of icons.

      ...
      0 ★ 0 ↺

      [?]sam »
      @sam@cablespaghetti.dev

      @mmeier@social.mei-home.net @sam I ever so slightly broke the Pi posting the link to the fediverse and every instance hitting it all at once. Is it good on your end now?

        ...

        [?]Michael »
        @mmeier@social.mei-home.net

        @sam No, it still looks the same for me:

        Another screenshot of the post, similar to the first one, only text in code blocks is visible.

        Alt...Another screenshot of the post, similar to the first one, only text in code blocks is visible.

          ...
          0 ★ 0 ↺

          [?]sam »
          @sam@cablespaghetti.dev

          @mmeier@social.mei-home.net @sam Very interesting. Which browser are you using? It works fine on all my devices/browsers.

            ...

            [?]Michael »
            @mmeier@social.mei-home.net

            @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.

              [?]Michael »
              @mmeier@social.mei-home.net

              @sam Okay, just tried it in Google Chrome (previous screenshots were Firefox), and there it's looking fine.

                ...
                1 ★ 0 ↺

                [?]sam »
                @sam@cablespaghetti.dev

                @mmeier@social.mei-home.net @sam I am also a Firefox user but don’t have the same issue. Very strange. Thanks for flagging.

                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. 🤷

                  ...

                  [?]Michael »
                  @mmeier@social.mei-home.net

                  @sam Okay, in that case it really looks like the issue is on my end, when you're seeing it properly in Firefox.

                    ...
                    0 ★ 0 ↺

                    [?]sam »
                    @sam@cablespaghetti.dev

                    @mmeier@social.mei-home.net @sam I think you probably loaded it at the peak of it being overloaded and something only partially transferred and then that got cached for you. That’s my theory anyway. Have you tried a Ctrl-Shift-R which I think forces a refresh?

                      2 ★ 1 ↺
                      Jo Hawkins boosted

                      [?]sam »
                      @sam@cablespaghetti.dev

                      If anyone is having issues loading my blog post or it renders strangely in your browser, please let me know. I think it might have been a result of all the Mastodon servers trying to download it at the same time and causing partial transfers of the html

                      At no point did I say this was an optimal configuration for a website and social media account!

                        [?]Ivor Hewitt »
                        @ivor@social.ivor.org

                        @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 github.com/cfenollosa/bashblog i saw @cartron mention.

                          [?]Natanael Copa »
                          @ncopa@fosstodon.org

                          @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.

                            ...

                            [?]Natanael Copa »
                            @ncopa@fosstodon.org

                            @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:
                            -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.

                              ...
                              0 ★ 0 ↺

                              [?]sam »
                              @sam@cablespaghetti.dev

                              @ncopa@fosstodon.org @sam@fosstodon.org Thanks these are really great tips. I’m new to Alpine but really enjoying playing with it. I’ll try them out and maybe even add them to the blog post. 🙂

                                History