这里还是走了弯路的
主要的步骤如下:
直接就是在armbian里装cups,然后更新cups的配置文件。

Listen 0.0.0.0:631
Listen /var/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

然后是打印机的驱动程序
1、首先安装hplip

sudo apt-get install hplip

如果是其他hp打印机应该就没啥问题了,如果是下面的打印机就需要再多一个步骤

e.g. Minolta magicolor 2200/2300/2430 DL,
HP LaserJet 1018/1020/1022/P2035,
HP LaserJet Pro CP1025nw,
HP LaserJet Pro M12a/M12w,
HP LaserJet Pro P1102/P1102w/P1566/P1606dn

2、安装foo2zjs驱动

大家最好打开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 cpwl    # Get Minolta Color PageWorks/Pro L .ICM files
$ ./getweb 2200    # Get Minolta 2200 DL .ICM files
$ ./getweb 2300    # Get Minolta 2300 DL .ICM files
$ ./getweb 2430    # Get Minolta 2430 DL .ICM files

$ ./getweb 1000    # Get HP LaserJet 1000 firmware file
$ ./getweb 1005    # Get HP LaserJet 1005 firmware file
$ ./getweb 1018    # Get HP LaserJet 1018 firmware file
$ ./getweb 1020    # Get HP LaserJet 1020 firmware file

$ ./getweb 1025    # Get HP LaserJet Pro CP1025nw .ICM files

# 编译安装
$ sudo make install

到这里装好后下一步 install-hotplug会出错,这里用apt-get remove 把那个Print什么的删了就行了,然后是下一步


# 安装热插拔响应
$ sudo make install-hotplug

# 编译cups
$ sudo make cups

重启下,再打开端口为631的网页,添加打印机
windows10下添加打印机直接就是把631那个网页里选中打印机然后在地址栏把地址复制一下,添加就行了,这里装下1020的驱动的。

桌面单击右键,选中 Open Terminal Here,使用 dd if 命令生成一个名为 swapfile 的空文件,放在 File System 下。

sudo dd if=/dev/zero of=/swapfile bs=1M count=2048
sudo chmod 600 /swapfile

标记为 Swap 文件并挂载。

sudo mkswap /swapfile
sudo swapon /swapfile

在fstab文件末尾追加挂载 /swapfile 的配置。

/swapfile none swap defaults 0 0
最后编辑:2020年02月23日 ©著作权归作者所有

发表评论

仅有一条评论

  1. 下面的是安装输入法,貌似是最后的两个命令解决了问题。
    sudo apt-get install ibus ibus-pinyin im-switch

    sudo apt-get install ibus-googlepinyin

    im-switch -s ibus
    ibus-setup