N1 armbian5.77 安裝配置 cups打印機共享


修改源:

vi /etc/apt/sources.list
deb https://mirrors.ustc.edu.cn/debian/ stretch main contrib non-free
deb-src https://mirrors.ustc.edu.cn/debian/ stretch main contrib non-free
deb https://mirrors.ustc.edu.cn/debian/ stretch-updates main contrib non-free
deb-src https://mirrors.ustc.edu.cn/debian/ stretch-updates main contrib non-free
deb https://mirrors.ustc.edu.cn/debian/ stretch-backports main contrib non-free
deb-src https://mirrors.ustc.edu.cn/debian/ stretch-backports main contrib non-free
deb https://mirrors.ustc.edu.cn/debian-security/ stretch/updates main contrib non-free
deb-src https://mirrors.ustc.edu.cn/debian-security/ stretch/updates main contrib non-free


設置時區、語言,安裝OMV

armbian-config

手動設置

locale
locale -a
export LANG=zh_CN.UTF-8
export LC_ALL=zh_CN.UTF-8
echo "export LC_ALL=zh_CN.UTF8" >> ~/.bashrc

打印機共享:

airprint共享需要安裝 cups-browsed avahi-daemon

安裝cups-browsed后可以網絡發現打印機

外網打印需要配置cupsd.conf  <Location />上方增加一行:ServerAlias *     *代表所有域名,不太安全,建議指定當前域名

\\如果ios無法打印,需要在配置頁面開啟 Allow printing from the Internet

cupsd.conf配置,web配置頁面有詳細說明。

安裝打印驅動:(包含大部分驅動)

apt-get install foomatic-db-engine
apt-get install foomatic-db-gutenprint

也可以直接用PPD文件驅動

打印驅動相關資料:

https://wiki.archlinux.org/index.php/CUPS/Printer-specific_problems#CAPT

MFC-7470D 用Brother HL-2240D Foomatic/hl1250(en)    600*600,電腦手機雙面打印都OK

聯想LJ2200用hBrother HL-2140 Foomatic/hl1250(en)  600*600 電腦 手機完美  電腦 用的HL2140驅動


手工配置網絡:

vi /etc/network/interfaces
source /etc/network/interfaces.d/*
# Network is managed by Network manager
auto eth0
iface eth0 inet dhcp


transmission漢化:


xshell在vim中復制粘貼

編輯文件(默認沒有這個文件)
vim ~/.vimrc

set mouse=c
syntax on

說明:
        第一行:設置成命令行模式,設置完成后代碼高亮會消失;
        第二行:設置代碼高亮。

xshell小鍵盤不能輸入數字

sz1112-1

替換dtb

直接把dtb文件復制到/boot/dtb文件夾下,修改nEnv.ini中dtb路徑指向就好了!


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM