美文网首页
N1 刷armbian,安装cpus打印机

N1 刷armbian,安装cpus打印机

作者: RelaxedAndHappy | 来源:发表于2024-06-24 12:21 被阅读0次

    一,安装armbian
    要用的镜像,以及需要更改的文件,https://pan.baidu.com/s/1oj4aJtR6WoPGHLOsJmO8xg?pwd=aesd
    刷机教程不做赘述,网上很多,只讲一些,自己刷机过程中出现的问题。
    1, 写入u盘后 复制meson-gxl-s905d-phicomm-n1-xiangsm.dtb到dtb/meson-gxl-s905d-phicomm-n1-xiangsm.dtb下面
    2,并且修改uEnv.ini文件指向dtb_name=/dtb/meson-gxl-s905d-phicomm-n1-xiangsm.dtb
    完成以上两部就可以正常插入U盘,设置n1 U盘启动,进入系统
    写入MECC:nand-sata-install
    二,安装cups,
    1,更改时区:
    ln -sf/usr/share/zoneinfo/Asia/Shanghai /etc/localtime && echo"Asia/Shanghai" > /etc/timezone
    2,设置中文:
    export LC_ALL=zh_CN.UTF-8
    export LANG=zh_CN.UTF-8
    3,更换下载源
    https://mirrors.tuna.tsinghua.edu.cn/help/debian/](https://mirrors.tuna.tsinghua.edu.cn/help/debian/,建议用debian10
    输入nano /etc/apt/source.list复制上面网站上的内容 Ctrl+X,Ctrl+y 退出
    更新包apt update && apt upgrade
    4,安装cups
    apt install cups
    安装驱动apt install printer-driver-foo2zjs
    修改配置文件nano /etc/cups/cupsd.conf/

    Listen 0.0.0.0:631
    Listen /run/cups/cups.sock
    
    # Show shared printers on the local network.
    Browsing On
    BrowseLocalProtocols dnssd
    
    # Default authentication type, when authentication is required...
    DefaultAuthType Basic
    
    # Web interface setting...
    WebInterface Yes
    
    # Restrict access to the server...
    <Location />
      Order allow,deny
      Allow all
    </Location>
    
    # Restrict access to the admin pages...
    <Location /admin>
      Order allow,deny
      Allow all
    </Location>
    
    # Restrict access to configuration files...
    <Location /admin/conf>
      AuthType Default
      Require user @SYSTEM
      Order allow,deny
      Allow all
    </Location>
    
    # Restrict access to log files...
    <Location /admin/log>
      AuthType Default
      Require user @SYSTEM
      Order allow,deny
      Allow all
    </Location>
    

    Allow all 代表允许所有机器访问,也可以改为对应的IP或IP段,Allow 192.168.1.*

    接着就是正常添加打印步骤,不做赘述
    如果需要苹果IOS进行WIFI打印,需要添加一下
    apt install avahi-daemon
    apt install daemon
    sudo systemctl start avahi-daemon
    重启cups systemctl restart cups

    相关文章

      网友评论

          本文标题:N1 刷armbian,安装cpus打印机

          本文链接:https://www.haomeiwen.com/subject/azgrcjtx.html