Search My Blog

Sunday, July 25, 2010

Brother MFC-295CN I got brpcfax working in Fedora 13!:)

Finally, I got brpcfax working!:) First off, I Reformatted the HD and installed Fedora 13. Still, had the same problems as with Fedora 12. But I knew the steps to go through to fix brpcfax. Not necessarily in this order though...

For Brother MFC-295CN Printer Scanner Fax Machine. After installing all of the Brother Drivers and Apps, my scanner still didn't work. I found this on the Brother Support Site along with the drivers and apps (that is where I downloaded them all and installed them from the RPM's). Later I saw them listed in  in Add/Remove Programs too. But I didn't see them in the list until after I did the manual downloads and installs. There are other Distros shown there too. It worked for me. The info is at...
http://welcome.solutions.brother.com/bsc/public_s/id/linux/en/instruction_scn1c.html#f12

Fedora 12 and 13 to make the Scanner Work...
1. Open"/lib/udev/rules.d/65-libsane.rules"
2. Add the following 2 lines at the last of the device entry. (just before "# The following rule...").
# Brother    ATTR{idVendor}=="04f9", ENV{libsane_matched}="yes"
3. Restart the OS.
Brother's Driver Pages
Brother MFC-295CN Printer Scanner Fax Linux Drivers
Brother Solutions Center : Brother Driver for Linux Distributions
Brother Solutions Center : Brother Driver for Linux Distributions
Brother Solutions Center : Brother Driver for Linux Distributions
Brother Solutions Center : Brother Driver for Linux Distributions
Brother Solutions Center : Brother Driver for Linux Distributions

To make BRPCFAX Work...
1. I made sure that the Printer and Fax setup on my computer were ok from these instructions on the Brother BRFAX Setup info from web site...

4-5. Check status of the LPR driver and cupswrapper driver
Command (for dpkg):  dpkg  -l  |  grep  Brother
Command (for rpm):  rpm  -qa  |  grep  -e  brmfcfaxlpd-1.0.0-1.i386.rpm  -e  brmfcfaxcups-1.0.0-1.i386.rpm
Example(for dpkg) | Example(for rpm)
Step 5a. (USB Connection) Check your fax device on the CUPS web interface
5a-1. Open a web browser and go to "http://localhost:631/printers".
5a-2. Click "Modify Printer" of "BRFAX" and set following parameters.
- Your PC-FAX device      for Device Selection
- Brother      for Make/Manufacturer Selection
- Brother BRMFCFAX for CUPS(en)      for Model/Driver Selection
Device URI is supposed to be "usb://Brother/(your printer's model name)"
Example of a USB PC-FAX entry

Step 6. Try a test fax. Without the () I used the Brother Registration Fax number here. If it works right, you will get a Fax Call Back in just a few minutes. I did the second time, any way, but nothing called back even though the fax reported to go through, the first time I used direct dial on the machine it's self... 
Command:  brpcfax  -o  fax-number=18772689575  (your .ps file)
Example
Available file format: .ps
http://welcome.solutions.brother.com/bsc/public_s/id/linux/en/instruction_pcf1a.html

2. I ran these commands from... Daniel Walsh 2010-05-24 11:05:40 EDT
# semanage fcontext -a -t cupsd_log_t '/usr/local/Brother/fax/.*\.log' # restorecon -R -v /usr/local/Brother  Should change the labels on all of the log files to be writeable by cups.     
3. I went to follow these instructions again on the new Fedora 13 system. When by shear accident I noticed that I didn't need to change mine at all. I accidentally double clicked on the /usr/bin/brpcfax file when I was trying to right click and open it to edit the file. Well... the brpcfax Dialer Opened up! So, I decided that there was no fix needed here. I figure that I must have installed Java Jre before the Brother Drivers and that is why mine is working now. But, I'm not sure and can't remember what I did first on the Fedora 12 System either.
  • Set up Brother PC-FAX interface
  • 1. Install sun-java and check the full path of the sun-java's path
    Example : /usr/lib/jvm/java-6-sun/bin/java (sun-java6-jre with Ubuntu 8.04)
    2. Edit "/usr/bin/brpcfax" script
    Edit the java's path in the following line in "/usr/bin/brpcfax"
    *** the line is located around 37th line in the file.
    Before the edit; extarg="'java -jar /usr/local/Brother/fax/brmfcfax.jar 2>/dev/null'"  After the edit; extarg="'/usr/lib/jvm/java-6-sun/bin/java -jar /usr/local/Brother/fax/brmfcfax.jar 2>/dev/null'"       
    3. Run Brother PC-FAX interface
    Command  :  brpcfax  (file name)
    Go there...
    http://welcome.solutions.brother.com/bsc/public_s/id/linux/en/instruction_pcf2.html

    4. I still had one more problem. Still getting errors when I tried to use the BRFAX Printer from the Printer Menu. I kept getting this error...
     Filter "/usr/lib/cups/filter/brfaxfilter" for printer "BRFAX" has insecure permissions (0100777)'],
     'error_log_debug_logging_unset': True}
    Page 12 (Printer state reasons):
    {'printer-state-message': u'Filter "/usr/lib/cups/filter/brfaxfilter" for printer "BRFAX" has insecure permissions (0100777)',
     'printer-state-reasons': [u'cups-insecure-filter-warning']}

    So, I went to the file in Krusader, in root mode. and changed the file permissions from all read write execute, to only allowing viewing to others. This stopped the error message and now if you try to print with BRFAX it says it goes through ok. Which I think is helpful in the whole Faxing Process. Still, I kept forgetting that this is not how you send a fix with brpcfax. What you have to do is, Print the file by using "Print to File". This will convert and save your file to a .ps Image file, (Note, the file Can Not have any Spaces in the file Name or it will not work in the Terminal or by opening the file with brpcfax in Krusader. Probably, in no file manager ether). Then open the .ps file with brpcfax. This will open up the Dialing Program. From there, just put in the Fax Recipients Telephone number and hit Send. It took allot of Research on the Web and the Brother Web site to figure all of this out. And the never answered my request tor help on there Support Page at... https://secure6.brother.co.jp/LinuxContactUs/contact/Linuxform.html It's been over 2 months since I sent in a detailed Support Request! So, I'm posting all this in hopes of helping others from going through all of this trouble again with the Brother MFC-295CN Printer Scanner Fax Machine. I will attache my files that show these changes to this But Report too.


    Here's how to Send a Fax with brpcfax...
    I cannot find the section to enter the BRFAX command in my application.



    After the driver installation, you will have a printer called "BRFAX." This printer is NOT used to print faxes directly. Instead, this printer is used by the " brpcfax" utility.
    To actually send a fax, you must use the "brpcfax" utility to process your print jobs. Some programs (like the old Mozilla default installation) allow you to specify the print program, in which case you can specify "brpcfax" (in place of lpr for example).
    This is NOT possible with most current applications including Firefox and Openoffice as distributed in popular distributions including SuSE 10.1.

    To print to fax with SuSE 10.1, for example:
    1)Use "Print to file" from your application to generate a postscript file.
    2) Right-click the file and select "Open with" using the executable "SendAsFax"
    command configured below.

    Configure konqueror to have an option to Open postscript files with brpcfax

    1. Open Konqueror.
    2. Select "Settings" -> "Configure Konqueror".
    3. Click "File Associations".
    4. Type "ps" in the search box and select "Application" -> "Postscript" from
    the list below.
    5. Click "add" and type "brpcfax" then click OK.
    6. Click the new "brpcfax" option and click "Edit".
    7. Select the "Application" tab.
    8. For the "Command:" line, enter: brpcfax -P BRFAX -o Paper=Letter
    9. For the "Name:' enter: SendAsFax
    10. Click OK to save

    Read more...
    http://solutions.brother.com/linux/sol/printer/linux/linux_faq-3.html#4

    What I do is, Print the file by using "Print to File". This will convert and save your file to a .ps Image file, (Note, the file Can Not have any Spaces in the file Name or it will not work in the Terminal or by opening the file with brpcfax in Krusader. Probably, in no file manager ether). Then open the .ps file with brpcfax. I set my Krusader to open a .ps file by default and I will do the same with other file managers on this system. This will open up the Dialing Program when you click on any .ps file. From there, just put in the Fax Recipients Telephone number and hit Send.

    Here's what I got when I registered online. I never tried to call them and I never tried to contact them again. Hope you have better luck...
    Your Products
    MFC-295CN
    Color Inkjet All-in-One with Fax and Networking
    Contact Us
    Email
    Please visit our "Ask Us" online email support system.
    Mail
    Brother International Corporation
    7777 North Brother Blvd.
    Bartlett, Tennessee 38133
    Phone
    For Multi-Function Center® (MFC and DCP series) Support, please call:
    1-877-BROTHER (877-276-8437)
    901-379-1215 (fax)
    M-F, 9:00am to 8:00pm Eastern Time
    Orders
    The account that you have created with Brother-USA.com can be used to purchase Supplies & Accessories on our Brothermall site.



    http://www.brother-usa.com/myaccount/welcome.aspx?AccountType=newreg&R3ModelID=MFC295CN&BPGUID=4BDE99F9020964E5E1000000CD8620B8

    If you need more details, download the files I uploaded on the Fedora Bug Report Page here...
    https://bugzilla.redhat.com/attachment.cgi

    2010-07-25 20:23:50 EDT
    Created an attachment (id=434306) [details] brfaxfilter for printer BRFAX has insecure permissions  If you need more details, download the files I uploaded.    
    [reply] [-] Comment 12 2010-07-25 20:26:20 EDT
    Created an attachment (id=434307) [details] 65-libsane-bk-brother-mfc-295cn-scanner-works.rules,65-libsane-original-bk.rules.html  Sending files: 65-libsane-bk-brother-mfc-295cn-scanner-works.rules,65-libsane-original-bk.rules.html    
    [reply] [-] Comment 13 2010-07-25 20:27:43 EDT
    Created an attachment (id=434308) [details] BRFAX file locations in Krusader  BRFAX file locations in Krusader    
    [reply] [-] Comment 14 2010-07-25 20:31:06 EDT
    Created an attachment (id=434309) [details] 65-libsane-bk-brother-mfc-295cn-scanner-works.rules  65-libsane-bk-brother-mfc-295cn-scanner-works.rules This is the file I renamed and used to fix the Scanner function. I had saved it from my Fedora 12 install that I had working.    
    [reply] [-] Comment 15 2010-07-25 20:38:25 EDT
    Created an attachment (id=434310) [details] Brother-Product-Registration-Test-Sheet-Scanned.ps  Brother-Product-Registration-Test-Sheet-Scanned.ps This is a working .ps file. I scanned it and then used Print to File to make a .ps file. If you want to see the file. Gimp will Import it and let you edit the file too.    
    Hope this all helps...

    Don


    Bug 590577 – SELinux is preventing /bin/bash "append" access on /usr/local/Brother/fax/txreport.log.
    https://bugzilla.redhat.com/show_bug.cgi?id=590577

    No comments: