Setting Up a Network Printer under FreeBSD

1.安装cups
cd /usr/ports/print/cups && make install clean

2.为相关文件和设备赋权
chown -R cups:cups /usr/local/libexec/cups
chown -R cups:cups /dev/ulpt0
chown -R cups:cups /dev/unlpt0

3.修改cupsd配置文件
cupsd.conf:修改可调用打印机的网络范围,可修改为192.168.1.0/24

<Location />
# Allow shared printing…
Order allow,deny
Allow 192.168.1.0/24
</Location>

mime.types,mime.convs:去掉application/octet-stream前面的注释,以便接受远程打印文件。

4.下载打印机相应的驱动ppd安装到程序。

5,为客户端添加打印机,使用控制面板添加网络打印机,将URI直接填入,例如:http://192.168.1.1/printers/1600

一台网络打印服务器硬件,少则数百元,多则上千元,真是暴利~

Change CLI display resolution under freebsd

Kernel:
options VESA
options SC_PIXEL_MODE

List mode:(local)

#vidcontrol -i mode

Choose font:

#vidcontrol -f 8×16 /usr/share/syscons/fonts/ +tab
cp1251-8×8.fnt haik8-8×16.fnt iso08-8×8.fnt
cp437-8×14.fnt haik8-8×8.fnt iso09-8×16.fnt……

#vidcontrol -f 8×16 /usr/share/syscons/fonts/cp866-8×16.fnt
#vidcontrol MODE_277

Add to /etc/rc.conf

allscreens_flags=”MODE_277″