Re: 'fbgs' non legge i file .pdf su console

Davide Prina <[email protected]>
Newsgroups gmane.linux.debian.user.italian
Message-ID <trinity-ed97fe18-8423-474a-8601-5d0c15ed24a1-1745741595865@3c-app-mailcom-lxa11>
> Ennio-Sr ha scritto:

> Ho da poco trasferito i miei dati da un vecchio PC su un 'Belink Mini PC'

> - premesso che su entrambi i PC è montato:
> Linux deby-min 6.1.0-31-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.128-1  \ 
>       (2025-02-07) x86_64 GNU/Linux
> e che anche i dpkg installati dovrebbero essere gli stessi
> vedo che sul nuovo non riesco ad aprire un semplicissimo file .pdf con il
> comando 'fbgs', che sul vecchio va benissimo.
> 
> Tra i vari tentativi ho anche visto che il con 'zathura' oppure con 
> 'pdftotext -layout file.pdf - | less'
> il file viene letto, ma mi incuriosisce il mancato funzionamento del
> vecchio comando 'fbgs'. 

se non erro, dato che non conosco bene l'argomento, da quel che vedo:
* pdftotext ti visualizza un testo
* sathura ti visualizza su ambiente grafico X.org o Wayland
* fbgs ti visualizza su framebuffer

La differenza, per quel che dici, potrebbe essere:
* diverso terminale usato
  $ echo $TERM
* uso di un diverso ambiente grafico, su un PC usi X.Org e l'altro Wayland
  $ echo $XDG_SESSION_TYPE
  $ echo $WAYLAND_DISPLAY
* moduli Linux diversi caricati (qui potrebbe dipendere dalla scheda video)
  $ lsmod
* non presenza di /dev/fb0 sul nuovo PC
  $ ls -l /dev/fb0

secondo me potrebbe essere dovuto alla diversa shell che stai usando.

Ad esempio io con foot posso visualizzare immagini come se fossi in un
ambiente grafico:
foot supports all fonts that can be loaded by freetype, 
including bitmap fonts and color emoji fonts[¹]

Se invece sul nuovo PC stai usando una sessione Wayland può essere che
non hai installato qualcosa di wayland specifico o che la versione di
wayland che stai usando è vecchia e non supporta il framebuffer
(wayland non è ancora completo al 100% e neppure tutto ciò che 
supporta wayland è completo al 100%).

Ciao
Davide

[¹] https://codeberg.org/dnkl/foot

--
La mia privacy non è affar tuo
https://noyb.eu/it
- You do not have my permission to use this email to train an AI -
If you use this to train your AI than you accept to distribute under AGPL
license >= 3.0 all the model trained, all the source you have used to
training your model and all the source of the program that use that model
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.