<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>HL-2240D &#8211; richliu&#039;s blog</title>
	<atom:link href="https://richliu.com/tag/hl-2240d/feed/" rel="self" type="application/rss+xml" />
	<link>https://richliu.com</link>
	<description>Linux, 工作, 生活, 家人</description>
	<lastBuildDate>Sun, 12 Oct 2014 16:30:57 +0000</lastBuildDate>
	<language>zh-TW</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.4</generator>
	<item>
		<title>[Gentoo] 裝 Brother HL-2240D Driver + Samba 分享</title>
		<link>https://richliu.com/2014/10/13/1681/gentoo-%e8%a3%9d-brother-hl-2240d-driver-samba-%e5%88%86%e4%ba%ab/</link>
					<comments>https://richliu.com/2014/10/13/1681/gentoo-%e8%a3%9d-brother-hl-2240d-driver-samba-%e5%88%86%e4%ba%ab/#respond</comments>
		
		<dc:creator><![CDATA[richliu]]></dc:creator>
		<pubDate>Sun, 12 Oct 2014 16:28:33 +0000</pubDate>
				<category><![CDATA[Gentoo]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[隨手札記]]></category>
		<category><![CDATA[cups]]></category>
		<category><![CDATA[HL-2240D]]></category>
		<category><![CDATA[kernel]]></category>
		<category><![CDATA[samba]]></category>
		<guid isPermaLink="false">https://richliu.com/?p=1681</guid>

					<description><![CDATA[<p>Linux 支援 Brother HD-2240D driver 可以用 Samba + CUPS 提供服務. [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://richliu.com/2014/10/13/1681/gentoo-%e8%a3%9d-brother-hl-2240d-driver-samba-%e5%88%86%e4%ba%ab/">[Gentoo] 裝 Brother HL-2240D Driver + Samba 分享</a> appeared first on <a rel="nofollow" href="https://richliu.com">richliu&#039;s blog</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>Linux 支援 Brother HD-2240D driver 可以用 Samba + CUPS 提供服務.</p>
<p><span id="more-1681"></span></p>
<p>1. 首先打開 Linux kernel 對 USB print driver 的支援<br />
我是用 genkernel , 所以預設是沒有支援的</p>
<p>Device Drivers &#8212;&gt;<br />
[*] USB support &#8212;&gt;<br />
&lt;m&gt; USB Printer support ==&gt; 選擇<br />
重編 kernel<br />
# genkernel &#8211;no-clean &#8211;no-mrproper all</p>
<p>2. 開機預設 insert usblp driver<br />
# vim /etc/conf.d/modules<br />
加上 usblp</p>
<p>3. 編輯 /etc/portage/package.use 替 CUPS 加上 usb support, 替 samba 加上 cups 支援</p>
<p>sys-print/cups -php usb<br />
net-fs/samba cups</p>
<p># emerge samba cups</p>
<p>記得重啟 cups 和 samba</p>
<p>4. 下載 HL-2240D Driver<br />
<a href="http://support.brother.com/g/b/downloadtop.aspx?c=eu_ot&amp;lang=en&amp;prod=hl2240d_all" target="_blank" rel="noopener">HL-2240D Driver Download</a><br />
我是下載 source code</p>
<p>5. 將印表機開機並插上 Linux 機器,<br />
執行 lpinfo -v</p>
<p># lpinfo -v<br />
network https<br />
network socket<br />
network ipp<br />
network http<br />
network lpd<br />
network ipps<br />
direct usb://Brother/HL-2240D%20series<br />
network smb</p>
<p>如果沒有出現 direct usb://Brother/HL-2240D%20series, 可以看看 usblp 和 cups usb 支援有沒有設好.</p>
<p>6. 解開 Driver 後執行 cupswrapperHL2240D-2.0.4, 這個程式會安裝 HL2240D.ppd 到 /usr/share/cups/model<br />
並且設定好 HL2240D 的印表機.</p>
<p>如果手動設定無效, 可以試試看到/usr/share/cups/model 下執行<br />
# lpadmin -p HL2240D -E -v usb://Brother/HL-2240D%20series -P HL2240D.ppd</p>
<p>7. 查看結果<br />
# lpstat -a<br />
HL2240D accepting requests since Sun Oct 12 22:21:45 2014</p>
<p>8. 編輯 /etc/samba/smb.conf 加上<br />
[printers]<br />
comment = Brother printers<br />
path = /var/spool/samba<br />
browseable = no<br />
guest ok = no<br />
writable = no<br />
printable = yes<br />
public = yes<br />
printer name = HL2240D</p>
<p>重啟 samba.</p>
<p>9. 在 windows 下載 Driver, 解壓之後內有 driver<br />
<a href="http://support.brother.com/g/b/downloadtop.aspx?c=eu_ot&amp;lang=en&amp;prod=hl2240d_all" target="_blank" rel="noopener">HL-2240D Driver Download</a></p>
<p>在網芳可以看到 hl-2240d 的目錄, 可以選連線後選擇要安裝的 Driver.</p>
<p>ref.<br />
<a href="http://wiki.gentoo.org/wiki/Printing" target="_blank" rel="noopener">Gentoo Print Guide </a></p>
<p>The post <a rel="nofollow" href="https://richliu.com/2014/10/13/1681/gentoo-%e8%a3%9d-brother-hl-2240d-driver-samba-%e5%88%86%e4%ba%ab/">[Gentoo] 裝 Brother HL-2240D Driver + Samba 分享</a> appeared first on <a rel="nofollow" href="https://richliu.com">richliu&#039;s blog</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://richliu.com/2014/10/13/1681/gentoo-%e8%a3%9d-brother-hl-2240d-driver-samba-%e5%88%86%e4%ba%ab/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
