Forums before death by AOL, social media and spammers... "We can't have nice things"
|    alt.os.linux.mint    |    Looks pretty on the outside, thats it!    |    30,566 messages    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
|    Message 29,564 of 30,566    |
|    Jeff Layman to Dan Purgert    |
|    Re: DistroWatch Q&A: Advice for new Linu    |
|    31 Oct 25 08:43:38    |
      XPost: alt.comp.os.windows-10       From: Jeff@invalid.invalid              On 30/10/2025 22:58, Dan Purgert wrote:       > On 2025-10-30, Jeff Layman wrote:       >> On 30/10/2025 13:13, Dan Purgert wrote:       >>> On 2025-10-30, Jeff Layman wrote:       >>>> On 30/10/2025 10:28, Dan Purgert wrote:       >>>>> On 2025-10-30, Jeff Layman wrote:       >>>>>> On 29/10/2025 21:57, Lawrence D’Oliveiro wrote:       >>>>>>> gunzip -c $(man -w bash) | groff -ktman -Tpdf | okular -       >>>>>>       >>>>>> (computer name):~$ gunzip -c $(man -w bash) | groff -ktman -Tpdf |       okular -       >>>>>>       >>>>>> groff: fatal error: cannot load 'DESC' description file for device 'pdf'       >>>>>> org.kde.okular.core: No plugin for mimetype '"application/x-zerosize"'.       >>>>>       >>>>> Chances are you've only got 'groff-base' installed, rather than the full       >>>>> 'groff' package.       >>>>> [...]       >>>>> 3. "apt install groff" to install the full package.       >>>>       >>>> Successfully installed. There's quite a lot of it, but I've plenty of       >>>> disk space.       >>>       >>> [...]       >>> Alternatively, in Mint, I believe that if you create a $HOME/bin/       >>> directory, it will be added to your $PATH on the next login. But that       >>> has the "downside" of not being globally accessible then (mostly a       >>> concern if you have multiple users on your PCs -- SO, kids,       >>> just-for-banking, whatever).       >>       >> Thanks for the script. I'm the only user of this laptop, so I'll       >> probably do it via a $HOME/bin/ directory. I've never made an executable       >> file, but I'll have a read up on how to do it.       >       > Save the file, then 'chmod o+x thefile"       >       > chmod --> change mode (permission) bits       > o+x --> for "o"wner, set the e"x"ecute bit       > thefile --> just a placeholder for the filename you saved it as       >       >>       >> I have a question or perhaps two (they might be related) - which perhaps       >> should be directed to Lawrence, but I'm pretty sure you'll know the       >> answer. After running:       >> :~$ gunzip -c $(man -w bash) | groff -ktman -Tpdf | okular -       >> the terminal remained open, and when I tried to close it was warned that       >> there was still a process running in it, and closing the terminal would       >> kill it. Why does that script not end cleanly (if that's the right term)?       >       > Because the okular (the last part of that pipeline) was still running.       >       >>       >> Also, at the end, he said:       >> (Substitution of alternative PDF viewer is left as an exercise for the       >> reader.)       >> I tried the $ gunzip... expression he used, but substituting qpdfview       >> for okular.       >>       >> That, however, resulted in qpdfview opening, but with an error message:       >> "Warning       >> Could not open '-' "       >       > you'll need to read the qpdfview manual to determine what switch (if       > any) it needs to be told "read from stdin".       >       > It may also be the case that you cannot pipe input into qpdfview (I know       > evince has this shortcoming).       >       >> I was a bit puzzled, but then remembered that when Okular opened with       >> the manual text, I tried to save it but couldn't as both "Save" and       >> "Save as" were greyed out. I was able to print that manual as "another"       >> pdf, and that's what I was referring to in my reply as being much easier       >> to use.       >       > Artifact of opening it from a pipeline.       >       > If you want to save the output as a file, this is a little more       > straightforward:       >       > gunzip -c $(man -w WHATEVER) | groff -ktman -Tpdf > WHATEVER.pdf       >       >       > Instead of sending the groff conversion output of the "WHATEVER" manpage       > into okular, the above command stuffs it into the file "WHATEVER.pdf"       > (then you can open it with whatever viewer you want).              That's all clear, thanks, and saved for reference.              --       Jeff              --- SoupGate-Win32 v1.05        * Origin: you cannot sedate... all the things you hate (1:229/2)    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
(c) 1994, bbs@darkrealms.ca