convert ppd file to LF line endings

Asked by kiriath-arba

Installed ubuntu 8.04 a week ago and really like it, plan to stay with it. Trying to install a local Brother MFC-215C printer. Have Windows driver brmf215C.pdd with CR/LF line endings. Apparently need to convert this file to LF line endings. Can I do that with ubuntu's text editor? (Applications>Acessories>Text Editor). If yes, how do I generate the line feed character?

Have tried a utility called Swiss File Knife to convert it. Downloaded sfk-linux.exe but error message said "There is no application installed for this file type" when attempting to install it. Have also tried configuring the printer via CUPS but ran into difficulties probably due to lack of knowledge as this is all a learning curve. Have tried Brother website without success so far.

Thanks.

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu tofrodos Edit question
Assignee:
No assignee Edit question
Solved by:
kiriath-arba
Solved:
Last query:
Last reply:
Revision history for this message
marcobra (Marco Braida) (marcobra) said :
#1

Open a Terminal from the menu Applications->Accessories->Terminal and type:

sudo apt-get update
sudo apt-get upgrade
sudo apt-get dist-upgrade

sudo apt-get install tofrodos

give your user password when requested, you don't see nothing when you type it, then press enter.

Then you will have to use from terminal dos2unix and unix2dos to convert your file to get usage help:

man unix2dos

and

man dos2unix

in short:

dos2unix brmf215C.pdd

Hope this helps

Revision history for this message
kiriath-arba (pjrobinson-kol-deactivatedaccount) said :
#2

Brilliant. Thanks marcobra. This solved the line ending issue on the brmf215c.pdd file but I had forgotten to mention the following:
"Missing PPD-Adobe-4.x header on line 1. REF: Page 42, section 5.2."
Do you know what I need to add here?

Revision history for this message
kiriath-arba (pjrobinson-kol-deactivatedaccount) said :
#3

I was finally able to correctly install the necessary CUPS files, so all sorted now.