如何安装Brother HL2270dw激光打印机?

如何安装Brother HL2270dw激光打印机? 软件中心没有可用的驱动程序。

  1. 打开终端: Ctrl + Alt + T.
  2. 下载驱动程序安装脚本:

    wget http://download.brother.com/welcome/dlf006893/linux-brprinter-installer-2.0.0-1.gz 
  3. 解压缩它:

     gunzip linux-brprinter-installer-2.0.0-1.gz 
  4. 以root身份运行:

     sudo bash linux-brprinter-installer-2.0.0-1 
  5. 输入HL2270-DW作为“型号名称”,然后输入y继续

  6. 当被问到“你会指定DeviceURI吗?” USB连接选择“否”,网络连接选择“是”。

我知道很多人都有这个打印机与ubuntu和mint一起工作的主要问题,所以我想我会通过这个,因为它很轻松。 我在Ubuntu 12.04和Mint Cinnamon 13(64位版本)上的ubuntu论坛(我忘了确切位置)找到了附加的脚本(按照说明)。 只要打印机已经在您的网络上(我通过我的Windows 7分区安装我的),它应该工作。 只需将下面的代码示例复制并粘贴到空文本文档中,然后将其另存为PrinterInstall.sh即可。 然后从终端运行应用程序:

 sudo ./PrinterInstall 

它可能会告诉您需要bsdtar来运行脚本,只需使用以下命令安装:

 sudo apt-get install bsdtar 

然后再次运行./PrinterInstall

终端将询问您的init.d目录在哪里 – 只需检查文件浏览器中的选项以确认其中一个。

接下来,打开打印机并从终端运行以下命令:

 system-config-printer 

配置GUI打开后,右键单击打印机并选择“属性”。 在设备URI下,单击“更改” – >网络打印机 – >选择第一个兄弟选项 – >应用

而已!

脚本代码如下:


 #!/bin/bash # Brother HL-2270DW printer install tested on arch and ubuntu 12.04 # https://bbs.archlinux.org/viewtopic.php?id=109570 # https://bugs.gentoo.org/show_bug.cgi?id=285166#c12 # http://github.com/willejos/bash [[ $UID -ne 0 ]] && echo "Must run as root" && exit 1 which bsdtar > /dev/null if [ $? == 1 ]; then echo "you need to install bsdtar before running this script" exit 1; fi which perl > /dev/null if [ $? == 1 ]; then echo "you need to install perl before running this script" exit 1; fi echo -e "\nMake sure cups is running before proceeding...\n" read -p "Hit any button to continue." -n 1 echo -e "\n\nWhere's your init script directory?" echo -e "1. /etc/init.d/\n2. /etc/rc.d/" read -p "(Select 1 or 2): " INIT_DIR while [[ $INIT_DIR != 1 && $INIT_DIR != 2 ]]; do read -p "Where's your init script directory? (choose 1 or 2): " INIT_DIR done START_DIR=$(pwd) mkdir br_tmp && cd br_tmp wget http://www.brother.com/pub/bsc/linux/dlf/hl2270dwlpr-2.1.0-1.i386.rpm wget http://www.brother.com/pub/bsc/linux/dlf/cupswrapperHL2270DW-2.0.4-2.i386.rpm if [[ ! -f hl2270dwlpr-2.1.0-1.i386.rpm || ! -f cupswrapperHL2270DW-2.0.4-2.i386.rpm ]]; then echo -e "One or both files not found: \n hl2270dwlpr-2.1.0-1.i386.rpm \n cupswrapperHL2270DW-2.0.4-2.i386.rpm \n\n Was there a problem with the download?" exit 1; fi # extract and check directories exist bsdtar -xf hl2270dwlpr-2.1.0-1.i386.rpm bsdtar -xf cupswrapperHL2270DW-2.0.4-2.i386.rpm HL_DIR=""$START_DIR"/br_tmp/usr/local/Brother/Printer/HL2270DW/inf/" CUPS_DIR=""$START_DIR"/br_tmp/usr/local/Brother/Printer/HL2270DW/cupswrapper/" if [[ ! -d "$HL_DIR" || ! -d "$CUPS_DIR" ]]; then echo "rpm extraction failed" exit 1 fi # in-place edit files cd "$HL_DIR" perl -pi -e 's/printcap.local/printcap/g' setupPrintcap2 if [ "$INIT_DIR" == "2" ]; then cd "$CUPS_DIR" perl -pi -e 's/init.d/rc.d/g' cupswrapperHL2270DW-2.0.4 fi # copy files to system and install cupswrapper cd "$START_DIR"/br_tmp/ cp -ri usr/* /usr/ cp -ri var/* /var/ cd ../ && rm -rf br_tmp echo -e "If I hang here, be patient....\n" /usr/local/Brother/Printer/HL2270DW/cupswrapper/cupswrapperHL2270DW-2.0.4 || exit 1 echo -e "\nNext steps: " echo "Make sure printer shows up in cups config @ http://127.0.0.1:631" echo "Edit /etc/cups/printers.conf and change the DeviceURI from 'usb:xxxxx' to 'file:///dev/usb/lp0′ (or usb/lp1 or whatever exists, no quotes)." echo -e "Restart cups\n" 

我有一篇关于如何在Ubuntu 12.04 64位中安装无线wifi打印机的博客文章。 注意我的版本是特定的,只测试了64位版本的Ubuntu。 兄弟不包括HL-2270DW驱动程序的64位驱动程序,但我修补了驱动程序,使它们可以使用64位版本。 修补后的驱动程序可以访问打印机的所有function。 链接是http://chadchenault.blogspot.com/2012/05/brother-hl-2270dw-printer-driver.html

脚步:

1.从上面的链接下载修补的驱动程序以使用64位ubuntu。 您也可以使用命令行和Brother网站上的说明自行修补它们。
2.打开终端窗口“ctrl + alt + t”
3.切换到下载文件的目录
4.从终端窗口输入以下两个命令。

 sudo dpkg -i --force-all hl2270dwlpr-2.1.0-1a.i386.deb sudo dpkg -i --force-all cupswrapperHL2270DW-2.0.4-2a.i386.deb 

USB打印现在应该可行。 如果要配置wifi或以太网打印,则需要配置CUPS。 我在博客上有照片说明。

Eric Carvalho的答案很好,有一个限定符:下载位置对我不起作用。 看起来哥哥可能会重新组织他们的下载。 我的第一步是从Brother的支持网站开始手动下载:

– 来到brother.com(对我来说,这个重定向到brother-usa.com) – 点击支持 – 输入型号中的HL-2270DW,然后点击搜索 – 在下载和驱动程序中,点击’下载从我们的解决方案中心’ – 选择操作系统(linux)和版本(deb) – 点击驱动程序安装工具 – 接受许可协议

这是一个很小的文件,因此下载时间不会太长。

现在解压缩并运行脚本,正如卡瓦略先生所说。 为我工作完美。

它在等你specify the Device URI? ,并允许您从它知道打印机可以连接的11种方式中挑选。 它认为你会想要选择11 (A): Auto. (usb://dev/usblp0) 11 (A): Auto. (usb://dev/usblp0) ,因此它已预填充字段,并等待您按Enter键接受选择11 ,或指定您自己的选项,然后按Enter键 。 如果您的打印机通过USB连接,则11 (A): Auto. (usb://dev/usblp0) 11 (A): Auto. (usb://dev/usblp0)是您想要的选择。

这是我在14.04(64位)下的安装说明。 我不知道所有这些步骤都是必要的。 我把它安装为网络打印机。

我从兄弟运行了一个脚本:linux-brprinter-installer-2.0.0-1

在下载的文件中:来自support.brother.com的linux-brprinter-installer-2.0.0-1.gz。 这似乎成功运行并安装各种包。

我下载的网站上还有两个文件:

  • cupswrapperHL2270DW-2.0.4-2a.i386.deb

  • hl2270dwlpr-2.1.0-1a.i386.deb

我使用了synaptic来查看它们是否已由上面的脚本安装。

cupswrapperHL2270DW-2.0.4-2显示为已安装。

使用软件中心安装“a”版本和hl2270 * a.i386.deb软件包。

尽管软件中心警告它“质量差”,但我安装了它。

重新启动计算机并关闭/打开打印机。

使用的系统设置>打印机>添加打印机>网络打印机

单击查找按钮(主机空白)拉出两个Brother HL-2270DW,一个有IP地址。

对于这个,描述说通过DNS-SD的AppSocket / JetDirect网络打印机

另一个说主机BRW008092BA5199和队列Binary_P1的LPD网络打印机

我正在尝试使用ip地址的那个。 现在在打印机驱动程序下,我有用于CUPS的HL-2270DW,这是我之前没有的。

选择这个。 测试页有效。

这些说明适用于Kubuntu和Linux Mint 17.1。

从http://support.brother.com/g/b/downloadlist.aspx?c=us&lang=en&prod获取软件包brgenml1lpr-3.1.0-1.i386.debbrgenml1cupswrapper-3.1.0-1.i386.deb = hl2270dw_all&OS = 128

 sudo apt-get install apparmor-profiles lib32z1 sudo dpkg -i ~/packages/brother_printer/brgenml1lpr-3.1.0-1.i386.deb sudo dpkg -i ~/packages/brother_printer/brgenml1cupswrapper-3.1.0-1.i386.deb 

现在使用KDE或Mint / Gnome打印机配置窗口删除不存在的自动安装的USB打印机,然后使用BrGenML1驱动程序安装HL-2270DW。

应自动检测打印机。 如果没有尝试使用下面列出的URI。

设置双面打印DuplexNoTumble在页面的两面打印,在长边上翻页

URI:lpd://(打印机的IP地址)/ binary_p1

我在本文开头尝试了这些说明,但是当我结束时,即当被问到“你会指定DeviceURI吗?”时 USB连接选择“否”,网络连接选择“是”。 我得到了一个可供选择的11个URI列表,其中没有一个对我来说是一个neophite Ubuntu用户。 见下文:

 Will you specify the Device URI? [Y/n] ->Y 0: socket 1: http 2: ipp 3: https 4: ipps 5: lpd 6: ipp14 7: hp 8: hpfax 9: smb 10 (I): Specify IP address. 11 (A): Auto. (usb://dev/usblp0) select the number of destination Device URI. ->11 

似乎这些指令在中游结束,因此我无法继续。

Bob Thomson渥太华加拿大