News for hackers. Stuff that matters.
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)