湖濱散記部落格的樹心幽徑[login][主頁]
571:20200309讓Ubuntu可列印成pdf檔案

(1)$ sudo apt-get install cups-pdf

(2)$ sudo chmod +s /usr/lib/cups/backend/cups-pdf

(3)System/Administration/Printing/New Printer/

(4)解決無法列印的問題訊息「cups-insecure-filter」:

$ sudo chown -hR root /usr/lib/cups/filter
$ sudo chown -hR root /usr/lib/cups/backend
$ sudo chgrp -hR root /usr/lib/cups/filter
$ sudo chgrp -hR root /usr/lib/cups/backend

(5)終於列印成pdf檔成功如下:

ls  ~/PDF -l
總計 376
-rw------- 1 treehrt treehrt 381672  3月  9 20:19 252.pdf

 

 

REF: https://www.itread01.com/content/1548432908.html


select id,article_id,topic,text from lt_articles_text where article_id =571; ok. update lt_articles set num_reads=num_reads +1 where id=571; ok.