News for hackers. Stuff that matters.
Re:Serving my blog posts as Linux manual pages by yegle on Thursday February 29, 2024 @01:29PM (#39553082)
It would be cool to provide a deb repo as a way of subscribing to your blog.

So `apt update` will pull in all blog posts, `man your-blog` will show the latest post with links to the index of all your other posts.

Re:Serving my blog posts as Linux manual pages by dcminter on Thursday February 29, 2024 @03:49PM (#39554857)
On the one hand this idea is brilliant - on the other hand if it caught on, there are some obvious opportunities for malware intrinsic to the approach :'(

I think I'd be too chicken to subscribe.

Re:Serving my blog posts as Linux manual pages by codetrotter on Thursday February 29, 2024 @06:20PM (#39556517)
Make the CI pipeline create a Docker image that contains Debian slim and the man pages installed.
Re:Serving my blog posts as Linux manual pages by rezonant on Thursday February 29, 2024 @06:31PM (#39556630)
On the other hand, it's Docker, so you know every blog will use their own base image.
Re:Serving my blog posts as Linux manual pages by astrea on Thursday February 29, 2024 @11:55PM (#39558651)
Guys: Serve your blog via Docker itself. Docker image names are _already_ URLs. You could literally just have people do `docker pull myblog.com/recipes:latest` or `myblog.com/recipes:lasagna`.

Edit: and navigate like so: `docker image myblog.com/recipes` to list all recipes. God I love APIs.

Re:Serving my blog posts as Linux manual pages by mrmattyboy on Friday March 01, 2024 @12:59AM (#39558982)
And add search logic to the tag, so you don't need to know the name of the post, just the right word(s) to find it and let the "I'm feeling lucky" algorithm pick the right one :)
Re:Serving my blog posts as Linux manual pages by TeMPOraL on Friday March 01, 2024 @06:13AM (#39560689)
And then someone ports that back to regular Docker, and we get a whole new dimension of software supply chain security issues :).
Re:Serving my blog posts as Linux manual pages by tomxor on Friday March 01, 2024 @06:01AM (#39560624)
I can't tell how much of this is sarcasm. Turning what started out as a problem of "How do you load arbitrary remote TROFF sources into man" into "throw docker at it" because someone suggested an intermediate solution of "apt" which introduces security issues and no one posed that there might be an alternative that obviates any need for containerization. I mean these two things could be further from each other on the scale of incredibly lightweight to massively heavyweight.

Or maybe this is a microcosm of why docker and kuberwhatever happens so much.

Re:Serving my blog posts as Linux manual pages by TeMPOraL on Friday March 01, 2024 @06:16AM (#39560715)
It's the nerd version of that Reddit pattern of organic comment chain, each reply adding e.g. a line of song - only with pushing an absurd idea to the limits.

I'll bite: with GP's take, docker-compose would make for a good webring/blogroll. Or use it as bookmarking system.

  cd blogs/cooking
  docker-compose up
  # 20 different recipe blogs available as man pages
Re:Serving my blog posts as Linux manual pages by astrea on Saturday March 02, 2024 @02:01PM (#39574938)
Exactly this. Just having fun.
Re:Serving my blog posts as Linux manual pages by codetrotter on Friday March 01, 2024 @07:13AM (#39561023)
I can confirm that I was jesting when I said to use Docker here :^)
Re:Serving my blog posts as Linux manual pages by astrea on Saturday March 02, 2024 @02:00PM (#39574930)
I thought we were just riffing, I wasn’t actually proposing this as a genuine technical solution. Just a fun thought experiment :)
Re:Serving my blog posts as Linux manual pages by rezonant on Saturday March 02, 2024 @04:09PM (#39575792)
It's probably more satire than anything else.
Re:Serving my blog posts as Linux manual pages by u32480932048 on Friday March 01, 2024 @01:42PM (#39565180)
Weekend project: Docker pull blog posts over DNS
Re:Serving my blog posts as Linux manual pages by usr1106 on Friday March 01, 2024 @02:14AM (#39559382)
Docker is the example implementation of "containers do not contain". At least I would use podman.
Re:Serving my blog posts as Linux manual pages by westurner on Thursday February 29, 2024 @07:36PM (#39557114)
How does HTTP(S) Same Origin policy work with local file:/// URLs?

TIL there's no `ls -al /use/share/man/** | man --html`; though it would be easy to build one with Python's http.server, or bottlepy, or bash,.

Prompt: An http server ( with bash and /dev/tcp/ ) that serves HTML versions of local manpages with linkification of URLs and references to other manpages

Re:Serving my blog posts as Linux manual pages by awithrow on Thursday February 29, 2024 @11:29PM (#39558540)
> How does HTTP(S) Same Origin policy work with local file:/// URLs?

It doesn't since file:/// is just a uri and not part of the http protocol

Re:Serving my blog posts as Linux manual pages by westurner on Friday March 01, 2024 @01:45AM (#39559219)
If I open an HTML copy of a manpage that contains JS from a file:/// URL, can it read other local files and send them to another server with img URLs?

If so, Isn't it thus probably better to run an HTTP server over a permissioned socket than to serve static HTML [manpages] from file URLs [in a [DEB] package]?

Re:Serving my blog posts as Linux manual pages by awithrow on Friday March 01, 2024 @08:50AM (#39561725)
file:/// is always going to be local to the machine reading the URI. So if you're serving a page that has a file:/// uri in it and someone on another machine clicks on it, they wont be seeing the file (unless they happen to have the same path on their machine). If the goal is get them that file, then yes, it'll need to be served.
Re:Serving my blog posts as Linux manual pages by westurner on Thursday March 07, 2024 @09:35PM (#39637208)
Re:Serving my blog posts as Linux manual pages by jwilk on Friday March 01, 2024 @02:56AM (#39559614)
Re:Serving my blog posts as Linux manual pages by zerojames on Thursday February 29, 2024 @01:30PM (#39553097)
_adds to their TODO list :D_
Re:Serving my blog posts as Linux manual pages by tutfbhuf on Thursday February 29, 2024 @02:40PM (#39554001)
Please also create an AUR package for Arch Linux.
Re:Serving my blog posts as Linux manual pages by basilgohar on Thursday February 29, 2024 @02:50PM (#39554113)
Release as a Flatpak and make it distro agnostic!
Re:Serving my blog posts as Linux manual pages by gkbrk on Thursday February 29, 2024 @02:50PM (#39554123)
Make it even better and release an AppImage!
Re:Serving my blog posts as Linux manual pages by edvinbesic on Thursday February 29, 2024 @02:55PM (#39554204)
Even even better, put it on the web so it’s accessible from anywhere
Re:Serving my blog posts as Linux manual pages by abulman on Thursday February 29, 2024 @03:22PM (#39554530)
wow, there. Lets not get crazy there. It's plenty enough to support multiple package managers, but what you are considering is just too much!
Re:Serving my blog posts as Linux manual pages by hk1337 on Thursday February 29, 2024 @05:36PM (#39556154)
Okay, just create an iOS application.
Re:Serving my blog posts as Linux manual pages by zerojames on Thursday February 29, 2024 @04:30PM (#39555396)
This is now in progress.

https://github.com/capjamesg/jamesg.blog.deb has all you need to build a man-page-only deb file using:

git clone https://github.com/capjamesg/jamesg.blog.deb cd jamesg.blog.deb dpkg-deb --build --root-owner-group jamesg.blog sudo dpkg -i jamesg.blog.deb

You should see:

... Processing triggers for man-db (2.9.1-1) ...

Which indicates the man page for `man jamesg.blog` is available. There is just a placeholder in there for now. I will perhaps finish this tomorrow!

NB: This may become a blog post soon :D

Re:Serving my blog posts as Linux manual pages by out_of_memory on Thursday February 29, 2024 @02:57PM (#39554234)
first thing came to my mind when i read the blog. it would be a very cool thing. i hope this becomes a thing.
Re:Serving my blog posts as Linux manual pages by potta_coffee on Thursday February 29, 2024 @05:00PM (#39555780)
Release your blog as an Electron application please.
Re:Serving my blog posts as Linux manual pages by usr1106 on Friday March 01, 2024 @02:19AM (#39559416)
How would that fit on a RK07 disk?
Re:Serving my blog posts as Linux manual pages by dredmorbius on Thursday February 29, 2024 @10:18PM (#39558186)
There's some precedent for this. Debian used to provide access to the now-defunct Linux Gazette, and still offers numerous informational packages (package docs, manpages, info pages, RFCs, Linux HOWTOs, and more), all of which can be served locally through the dww package, "Read all on-line documentation with a WWW browser":

<https://packages.debian.org/bookworm/dwww>

(Joerg Jaspert was the former maintainer of Linux Gazette packages: <https://people.debian.org/~joerg/> (2002).)

This remains to me one of the best examples of integrating information delivery and documentation on an operating system I've ever encountered. Notably, it makes both manual and info documents more useful and usable than their traditional terminal-based interfaces.

There are Debian-associated blogs (Debian Planet), though I don't believe that was ever packaged for Debian itself.

Frankly, RSS is probably a better option for blog subscription.

Re:Serving my blog posts as Linux manual pages by anthk on Friday March 01, 2024 @04:40AM (#39560198)
You could read LG without dwww just fine by just pointing the file:/// path.

I remember getting all of those with the Debian Sarge DVD's, good stuff, among the Anarchist Faq, the 'Derivations' math book, and tons offline documentation when I didn't have internet at home.

Re:Serving my blog posts as Linux manual pages by dredmorbius on Friday March 01, 2024 @05:38AM (#39560505)
dwww need not be limited to localhost access, meaning that a single Debian system can serve docs to others (LAN, intranet, public Internet, ...).

Of course, all of the documentation that's exposed via dwww is accessible on that host's filesystem. But dwww also provides a few additional affordances: Web-formatted output, a directory of installed documentation (organised by source / type), and (if you have swish++ installed), full-text search.