APPLICATIONNOTES62200910adv@mesnet.com.cn()传统的基于PC的打印服务器耗电成本高不稳定易中毒不易挪动提出一种完全基于开源软件的嵌入式打印服务器设计方案,包括CUPSghostscriptfoomaticfoo2ijs的编译与安装,CGI程序的编写汉化CUPS的配置客户端的连接等,给出主要问题的解决方法设计的打印服务器经实验室反复测试,运行十分稳定网络打印服务器嵌入式系统CUPS嵌入式Linux开源软件:USBEthernet,USBUSB,USB,,:;;;,,;,HP,,,[1][2],Linux,,,Linux,1USB,,USB/,USB(),,1.11SoC1000C,266MHz[3],USB,JTAG,,,1GBFlash,,,256MBSDRAM111.2,,,LinuxLinux,PostScript,cat,,PostScript(PS),Adobe,PostScript,,PS,PSAPPLICATIONNOTESpaper@mesnet.com.cn()200910Microcontrollers&EmbeddedSystems63,PostScript,,,PostScript,GhostScriptGhostscriptPostScript,,,,PPD,PPD(PostScriptPrinterDescription),,PPD,HP1020plus,CUPS,,,CUPSCUPS;PostScript,,;PPDGhostScriptPostScript;GhostScriptGhostscript,foomaticripperl,Ghostscript,PostScriptPPD22.1,,Linux,,,[4],,CUPS:patchNp1i../cups1.2.12security_fixes2.patch&&./configure&&make&&makeinstallfoomatic:./configureprefix=/usrsysconfdir=/etc&&make&&makeinstallGhostscript:patchNp1i../espgs8.15.4bov_fix1.patchsedis/bbox.dev$/x11.dev/Makefile.in./configureprefix=/usrenablethreadwithoutomnimakemakesomakeinstallmakesoinstallHPLaserjet1020plus::=/usrenableshared&&make&&makeinstall2.2CGIweb,IP,cgibinadmin.c,do_am_printer()do_modify_ip,IP,IP,,,CUPScupsFileGetscupsFileOpencupsFilePrintf,CGIcgiGetVariablecgiSetVariablecgiStartHTMIPL(title)cgiCopyTemplateLang(error_ip.tmpl)cgiEndHTML(),CUPStestfile.c2.3CUPS,,,,doc/index.html,templates,locale/cups_zh.poCUPS@mesnet.com.cn()pdfdoc,Printfilewasnotaccepted(Unsupportedformat'application/octetstream'!),631,CUPS,cupsd.confloglevelinfologleveldebug,var/log/cups/error_log,,,,,CUPS,,web,Addprinter,,,33.1Windows,,URL();samba[5],,samba,IP,3.2LinuxCUPSLinux,CUPS,(RedHatEnterpriseServer)(fedora),,LinuxCUPS,[6],,Linux,httpsamba,,,,,,[1],.Internet[J].,2007(2):6668.[2].Linux[J].,2007(12):5355.[3].SoC[M].:,2006.[4]IntroductiontoCUPS[EB/OL].[5]LinuxCUPS[EB/OL].[6]CUPS[EB/OL].徐远超(讲师博士研究生),研究领域为嵌入式软件计算机网络;江涛(助理研究员),研究领域为嵌入式系统(收稿日期:20090615)EmbeddedNetworkPrintServerBasedonOpenSourceSoftwareCapitalNormalUniversityXuYuanchaoInstituteofComputingTechnology,ChineseAcademyofSciencesJiangTaoAbstractTraditionalprintserverbasedonPChasdisadvantagessuchashighpowerconsumption,highcost,instability,liabilitytovirusinfectionandinconveniencetomove.Anewdesignmethodbasedonopensourceandembeddedsystemispresented.CompilingandinstallingCUPS/ghostscript/foomatic/foo2ijs,CGIprogrammingandlocalization,CUPSconfigurationandclientconnectionareintroduced.Experimentalresultsshowtheprintserverworkssteadily.Keywordsnetworkprintserver;embeddedsystem;CUPS;embeddedLinux;opensourcesoftware