#注意安装下面软件前,先将cubieboard的动态地址改为静态地址!
apt-get install samba #安装samba vi /etc/samba/smb.conf //配置 workgroup = WORKGROUP security = user [printers] comment = All Printers browseable = yes * path = /var/spool/samba printable = yes guest ok = yes * read only = yes create mask = 0700 apt-get install cups #安装CUPS vi /etc/cups/cupsd.conf #Listen localhost:631 Port 631 Listen /var/run/cups/cups.sock <Location /> Order allow,deny Allow all </Location> # Restrict access to the admin pages... <Location /admin> Order allow,deny Allow all </Location>
登录:http://hostname:631 选择查找打印机
选择已经联机的打印机就可以了。由于我们的打印机是联想LJ2600D一开始费了不少劲配置,没想到在查找新打印机里能直接查到 :(
剩下的就是在windows下添加打印机,选择网络 然后输入你的机器地址就能找到了。
关于安全,通过下面两种设置,可以避免未授权的用户访问管理页面:
<Location /admin> Order allow,deny Allow from 10.10.10.5 </Location> <Location /admin> Order allow, deny Allow from 10.10.10.* </Location>
参考: