見出し画像

DCP-7060D+Orange Pi ZeroLTSでプリンターサーバー1

備忘録として、内容のみ簡潔に。

OSはArmbian buster、RufusでWin上からインストール。
同一LAN上でIPを探して、sshで接続。
とりあえず、armbian-configから、IPをstaticに。

adduser user_name

ユーザー追加、printerとでも。

gpasswd -a user_name sudo

sudoグループ追加。

以下、root権限で。

nano /etc/apt/sources.list

ミラーを日本鯖に変更。ftp.jp.debian.orgへ。
Ctl+o上書き、Ctl+x閉じる。

apt update
apt upgrade

最新版へ更新。

apt install -y avahi-daemon

avahi導入。

systemctl start avahi-daemon

サービス起動。

systemctl enable avahi-daemon

サービス自動起動。

ufw allow 5353/udp

ファイアウォール設定。ポート5353(mDNS)にudpを許可。

ここでCouldn't determine iptables versionとエラー。

update-alternatives --set iptables /usr/sbin/iptables-legacy

海外サイトによると、iptableをレガシーに変更するといいとか。busterでiptableがnftablesに置き換わったことが原因とのこと。

apt install -y cups

cups導入。

systemctl start cups

サービス起動。

systemctl enable cups

サービス自動起動。

nano /etc/cups/cupsd.conf

cups設定ファイル編集。

# Only listen for connections from the local machine.
#変更前
Listen localhost:631
#変更後
Port 631

# Show shared printers on the local network.
#変更前
Browsing Off
#変更後
Browsing On

<Location />
  Order allow,deny
#追記
  Allow @LOCAL
#追記終了
</Location>
systemctl restart cups

cups再起動。

ufw allow in from 192.168.x.xxx/24 to any port 631

ポート開放。

一旦ここまで。次回はドライバの導入(面倒)。



この記事が気に入ったらサポートをしてみませんか?