一、准备工作
1.玩客云、USB公对公、镊子、取卡针
二、拆机:需要吹风机
三、底包烧录:刷底包是为了不用再短接刷机
1.所需软件:
(1)Amlogic.USB.Burning.Tool.v2.1.6.8【必须这个版本,其他可能有问题】
(2)putty
(3)flash.img
2.拆机刷机
(1)拆机
(2)短接:主板分为1.0版本,1.3版本,短接点不一样;
(i)USB数据线-连上电脑,USB接口是靠近玩客云HDMI的接口
(ii)打开USB_Burning_Tool软件,点击-文件-导入烧录包,选择安卓底包.img,勾选擦除flash和擦除bootloader,点击开始
(iii)镊子-短接主板,再通电。注意静电。
(3)通电刷机
(i)通电后,听电脑-类似插入U盘的声音,听到声音-马上松开镊子,查看软件是否出现进度条;
(ii)烧录成功,软件-点击停止,关闭软件,拔线。【注意步骤】
四、线刷Armbian 1.USB线连接电脑,USB接口是靠近玩客云HDMI的接口; 2.导入Armbian包,选择带mini,burn版本的;点击开始 3.摁住Reset,再插电;听到电脑上有连接声音了,USB_Burning_Tool上显示正在刷机,松开Reset; 4.提示烧录成功。点击停止,关闭软件,拔线。 注:若下方有报错,重新刷一次。
五、Armbian初始化
1.查看玩客云IP:192.168.31.2
2.Putty连接玩客云,用户名root,密码1234;重置密码,创建新用户
3.更新Armbian
sudo apt update
sudo apt upgrade
4.设置静态IP
ifconfig #查看ip地址,记录mac地址
nano /etc/network/interfaces
# 修改代码
allow-hotplug eth0
no-auto-down eth0
iface eth0 inet static
hwaddress ether [MAC地址]
pre-up ifconfig eth0 hw ether [MAC地址]
address 192.168.31.2
netmask 255.255.255.0
gateway 192.168.31.1
dns-nameservers 192.168.31.1
5.重启reboot
六、安装cups
1.安装cups
apt-get install cups
2.修改cups参数
nano /etc/cups/cupsd.conf
#1.修改“localhost”->“0.0.0.0”
#2.Browsing off -> Browsing on
#3.3处添加Allow all
Listen 0.0.0.0:631
Browsing On
# 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>
3.重启服务
service cups restart
4.cups页面:192.168.31.2:631
七、安装打印机驱动
1.安装驱动
#爱普生
apt install printer-driver-gutenprint
#惠普
sudo apt-get install hplip
#兄弟
apt-get install printer-driver-brlaser
2.添加打印机
(1)连接打印机至玩客云
(2)cups Web页面
(i)Administration -> Add Printer -> 输入账号root,密码-路由器登陆密码 -> 选择打印机型号 -> Continue
(ii)输入打印机的名字与注释,勾选Share This Printer
-> Continue
(iii)Model-选择自己的型号 -> Add Printer
(iv)Set Printer Options -> Set Default Options
(3)打印测试页
3.开启局域网自动发现打印机
apt-get -y install avahi-daemon avahi-discover libnss-mdns
systemctl restart avahi-daemon
service cups restart
设置开机启动
systemctl enable cups
systemctl enable avahi-daemon
八、windows添加打印机驱动
进入打印机和扫描仪,点击添加打印机或和扫描仪