N1盒子刷Armbian安装CUPS共享惠普1020为网络打印机【更新】 |
您所在的位置:网站首页 › 惠普1020报错 › N1盒子刷Armbian安装CUPS共享惠普1020为网络打印机【更新】 |
2022年10月6日更新: 因为实际使用中的某些问题,本篇文章讲述的方法可能并不稳定,加上时间的推移,一些提供驱动及软件源码包的网站也不能访问,软件安装方法也有变动,本文将不再更新,新的系统及软件安装方法请移步我的另一篇文章:电视盒子安装CUPS共享惠普1020为无线网络打印机【新版】 N1装Armbian不再复述,下载地址如下:https://yadi.sk/d/_rQgn_FosYuW0g,需要注意的是TV Box Armbian的作者balbes150已经将瑞芯微(RK)、晶晨(AML)、全志(AW)三个平台合并为一个镜像。如果刷入后System load过高,可以考虑换一个稳定版刷入。 2020年10月17日更新: 请注意。Armbian从版本20.08(20200814)开始,使用的DTB的配置顺序将更改。 用于启动系统的初始配置算法已更改。现在使用文件“/extlinux/extlinux.conf”代替文件“uEnv.txt”。编辑文件的规则保持不变。 现在,所有Amlogic型号都需要“u-boot.ext”文件。 在Amlogic上启动之前,必须将现有文件之一“u-boot-*”复制或重命名为“u-boot.ext”。 对于S905(非X)-使用u-boot-s905 对于S905x和S912-使用u-boot-s905x-s912 对于S905x2和S922-使用u-boot-s905x2-s922 对于g12a\g12b型号,现在使用单个文件(文件u-boot.sd和u-boot.usb现在替换为统一的一个u-boot-s922文件)。 对于N1的S905D,我使用了u-boot-s905x-s912这个UBOOT文件,经测试可以正常使用。 安装完以后需要将软件源改为国内源,这样更新起来更快。 sudo nano /etc/apt/sources.list注释掉原来的内容,加入以下国内源: deb http://mirrors.ustc.edu.cn/debian buster main contrib non-free #deb-src http://mirrors.ustc.edu.cn/debian buster main contrib non-free deb http://mirrors.ustc.edu.cn/debian buster-updates main contrib non-free #deb-src http://mirrors.ustc.edu.cn/debian buster-updates main contrib non-free deb http://mirrors.ustc.edu.cn/debian buster-backports main contrib non-free #deb-src http://mirrors.ustc.edu.cn/debian buster-backports main contrib non-free deb http://mirrors.ustc.edu.cn/debian-security/ buster/updates main contrib non-free #deb-src http://mirrors.ustc.edu.cn/debian-security/ buster/updates main contrib non-free然后,更新系统: apt-get update apt-get upgrade安装相关的软件: apt-get install ghostscript apt-get install dc apt-get install foomatic-db-engine apt-get install cups编辑CUPS的配置文件: nano /etc/cups/cupsd.conf首先需要将 Listen localhost:631改成 Listen 0.0.0.0:631然后,将以下4段加入Allow all: # Restrict access to the server... Order allow,deny Allow all # Restrict access to the admin pages... Order allow,deny Allow all # Restrict access to configuration files... AuthType Default Require user @SYSTEM Order allow,deny Allow all # Restrict access to log files... AuthType Default Require user @SYSTEM Order allow,deny Allow all保存。重启CUPS进程。 service cups restart然后安装惠普1020打印机驱动(其他型号打印机请参考驱动官方网站http://foo2zjs.rkkda.com/说明): wget -O foo2zjs.tar.gz http://foo2zjs.rkkda.com/foo2zjs.tar.gz tar zxf foo2zjs.tar.gz cd foo2zjs make ./getweb 1020 make install make install-hotplug make cupsUSB口连接好打印机并打开电源以后,在电脑浏览器输入:http://N1盒子的IP地址:631/ 至于苹果手机,CUPS本来就是苹果公司开发的,苹果的设备肯定是支持的,我手头没有苹果手机,这方面就不写了,大家百度一下相关教程就行了。 |
今日新闻 |
推荐新闻 |
CopyRight 2018-2019 办公设备维修网 版权所有 豫ICP备15022753号-3 |