本帖最后由 zhhhhhh 于 2022-10-6 12:00 编辑
玩客云怎么刷Armbian不再赘述,网上教程一搜一大把,今天主要说说刷好Armbian后的设置 用ssh工具(随意)进入系统,默认:用户名root,密码1234。
查看系统时间
设置时区
- timedatectl set-timezone Asia/Shanghai #时区为亚洲/上海
复制代码
网络校时#先安装ntpdate
ntpdate更新网络时间
- ntpdate asia.pool.ntp.org
复制代码此时一般问题已解决
换软件源
- # 备份原文件
- cp /etc/apt/sources.list.d/armbian.list /etc/apt/sources.list.d/armbian.list.bak
- # 清华源(以下是一条命令复制完整)
- sudo tee /etc/apt/sources.list.d/armbian.list <<-'EOF'
- deb https://mirrors.tuna.tsinghua.edu.cn/armbian/ stretch main stretch-utils stretch-desktop
- EOF
- # 备份原文件
- cp /etc/apt/sources.list /etc/apt/sources.list.bak
- # 中科大源(以下是一条命令复制完整)
- sudo tee /etc/apt/sources.list <<-'EOF'
- deb http://mirrors.ustc.edu.cn/debian stretch main contrib non-free
- deb http://mirrors.ustc.edu.cn/debian stretch-updates main contrib non-free
- deb http://mirrors.ustc.edu.cn/debian stretch-backports main contrib non-free
- deb http://mirrors.ustc.edu.cn/debian-security/ stretch/updates main contrib non-free
- EOF
复制代码
更新apt-get
- apt-get update && apt-get upgrade
复制代码
安装cups服务
配置cups服务
- nano /etc/cups/cupsd.conf
复制代码
可以用上面的命令,为方便操作可以用winscp打开的 /etc/cups/cupsd.conf 将 ”Listen localhost:631“ 修改为 ”Listen 0.0.0.0:631“ 将以下四段增加 Allow all - # 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>
复制代码
保存,重启CUPS
安装打印机我的打印机是惠普M1136,安装惠普驱动
重启cups
打印机连接在玩客云的USB口,打开打印机电源,浏览器输入:http://玩客云的IP地址:631/,进入cups的管理页面
配置打印机(包括一些坑位)
苹果iOS隔空投送设置正常情况下,到这一步就已经能在手机中搜到打印机了,但是armbian是轻量级的系统,阉割了不少组件,所以这里还需要加一步,安装avahi-daemon组件 - apt install avahi-daemon
- apt install daemon
- sudo systemctl start avahi-daemon
复制代码
重启cups
如果有不懂的可以群里咨询@小蝴蝶和小阿飞
|