LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 02-20-2015, 03:23 AM   #16
fatmac
LQ Guru
 
Registered: Sep 2011
Location: Upper Hale, Surrey/Hants Border, UK
Distribution: Mainly Devuan, antiX, & Void, with Tiny Core, Fatdog, & BSD thrown in.
Posts: 5,499

Rep: Reputation: Disabled

You will find this free tutorial a good start for Linux.
http://rute.2038bug.com/index.html.gz
 
1 members found this post helpful.
Old 02-20-2015, 06:58 AM   #17
TxLonghorn
Member
 
Registered: Feb 2004
Location: Austin Texas
Distribution: Mandrake 9.2
Posts: 702

Rep: Reputation: 231Reputation: 231Reputation: 231
Commands:
cp = copy
mv = move
sudo = do as Super User (root)
/home/yourusername/ = $HOME/ = ~/

If I have a newdriver.drv file in my Downloads folder, I can move it to the Documents folder (for example) with this command:
mv $HOME/Downloads/newdriver.drv $HOME/Documents/
Since usr/share/cups/model/ belongs to root, I have to do that move acting as root, with this command:
sudo mv $HOME/Downloads/newdriver.drv /usr/share/cups/model/
or
sudo cp $HOME/Downloads/newdriver.drv /usr/share/cups/model/

When you try to run that command you will be asked for your password. When you enter the password you will not see the password on the screen, for security purposes, as mentioned previously.

Last edited by TxLonghorn; 02-20-2015 at 07:43 AM.
 
Old 02-20-2015, 08:52 AM   #18
Jimmyjack67
Member
 
Registered: Jul 2013
Location: New Yor State USA
Posts: 81

Original Poster
Rep: Reputation: Disabled
fatmac, I have bookmarked the link you have suggested and will download it. Thank you, Jim
 
Old 02-20-2015, 08:53 AM   #19
Jimmyjack67
Member
 
Registered: Jul 2013
Location: New Yor State USA
Posts: 81

Original Poster
Rep: Reputation: Disabled
TxLonghorn, I will give it a shot and see what happens and let you know. Thanks. Jim
 
Old 02-20-2015, 09:09 AM   #20
Jimmyjack67
Member
 
Registered: Jul 2013
Location: New Yor State USA
Posts: 81

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by JimKyle View Post
I think that Widget had a typo in his suggested command (he and I have discussed this before; we both tend to be a bit fat-fingered at times). It should have been "cp" rather than "cd" following the "sudo" since "cd" is "Change Directory" while "cp" is CoPy."

Try "which sudo" first; that will show whether you actually have "sudo" capability. You should have, but strange things happen sometimes. If you do, this command will return the full path to the sudo program file. If it's missing, nothing will be returned.

Assuming that you do have it, enter the suggested copy command. You'll be asked to enter your login password before the command gets executed. You won't see any indication at all that it's going in, not even the stars that many program use to reassure you that the characters are being accepted. Hit ENTER when you're done and the copy should take place. You won't get any message to tell you it's done, but you can use the "ls" command to verify that it did indeed get copied.

And welcome to the wonderful world of Linux. You'll find the folk here are uniformly helpful, and also that there are usually at least a dozen different ways to do most anything. Be very cautious about blindly copying commands that you find on the web at large, however; a few malicious fellows seem to delight in answering questions with commands that not only can but will erase your entire system.
Thanks Jim, I will try this and see what hapens. I do know "sudo"works as I have use it a few times on some simple things as per other issues I first had with Ubuntu and it took care of the problem.
 
Old 02-20-2015, 10:54 AM   #21
Jimmyjack67
Member
 
Registered: Jul 2013
Location: New Yor State USA
Posts: 81

Original Poster
Rep: Reputation: Disabled
Jim, It doesn't take very much to throw me for a loop so I am going to try to ask about a few things in the command line as well as just take a stab at typing it in here as I also have "thumb problems too." I also need to get my thick head wrapped around a few things concerning names of things and whether or not I have to change what things are named in the suggested command lines. sudo cp $HOME/Downloads/ (Do I leave $HOMES) as it is or should it be named something else? Next is Downloads. I would assume that is left that way? "newdriver.drv" Would it stay named that or would I have to change that to the actual driver name?
There are "two" Windows NT 4.0 drivers that are actually one in the same that I am trying to copy one or the other to try and see if they might work for my old Epson LQ 570 printer which is a parallel cabled printer connected to the parallel port. The OpenPrint driver will not work and I found a huge manual explaining the use of a Windows NT 4.0 driver copied to the /usr/share/cups/model/ directory will work perfectly with cups. The two names of the same driver are; ESCP48.DL or, epson11076.exe -NT 4.0 Driver. The first ESCP48.DL also has a file named ESCP48.INF which is a discription of the printer and its various settings. The manual doesn't go into telling how to "NAME" anything but rather just wher to copy the file to. So, I basically need to know what I should name things to get away from file or directory not found sort of thing.
Thanks Very much, Jim
 
Old 02-20-2015, 01:49 PM   #22
mark_alfred
Senior Member
 
Registered: Jul 2003
Location: Toronto, Ontario, Canada
Distribution: Ubuntu Linux 16.04, Debian 10, LineageOS 14.1
Posts: 1,572

Rep: Reputation: 210Reputation: 210Reputation: 210
Quote:
Originally Posted by Jimmyjack67 View Post
Widget, I didn't use any commands as I don't know them. All I did was to open the folders by clicking on them and tried to copy a file into the "share folder" and was denighed access. I want to try to insert a window NT printer driver in the "share" folder as suggested in my first post. From all of the problems just trying to drop the file into that folder, I assumed I have to go the route of using some sort of commands in the Terminal. Please see my first post. Thank you, Jim
Rather than screwing around with permissions to randomly drop ppd files into the "share" folder, perhaps try this instead:

Enter http://localhost:631/ in your browser and see if you can fix your printer there. Under the Administration tab, you'll see the button "Find new printer". Try this and see what you come up with (you'll need to enter your password). If it finds nothing, there is an option there somewhere for properly installing ppd files that you may have. I think this would be better to try than "change Permissions on Several Folders".
 
Old 02-20-2015, 01:56 PM   #23
fatmac
LQ Guru
 
Registered: Sep 2011
Location: Upper Hale, Surrey/Hants Border, UK
Distribution: Mainly Devuan, antiX, & Void, with Tiny Core, Fatdog, & BSD thrown in.
Posts: 5,499

Rep: Reputation: Disabled
So; /usr/share/cups/model/ presumably means you create a directory with the name of your printer;
Code:
sudo mkdir -p /usr/share/cups/EpsonLQ570
Then you copy the files into it;
Code:
sudo cp ESCP48.DL ESCP48.INF epson11076.exe /usr/share/cups/EpsonLQ570
Edit: Warning: Do not change any permissions on folders that the system owns - that will give you an unusable system.

Last edited by fatmac; 02-20-2015 at 01:59 PM.
 
Old 02-20-2015, 03:09 PM   #24
Jimmyjack67
Member
 
Registered: Jul 2013
Location: New Yor State USA
Posts: 81

Original Poster
Rep: Reputation: Disabled
mark, I did try the Local Host but for some reason I could't get to the printer file but,, I will give it another try just in case I missed some thing. Thank you, Jim
 
Old 02-20-2015, 03:16 PM   #25
Jimmyjack67
Member
 
Registered: Jul 2013
Location: New Yor State USA
Posts: 81

Original Poster
Rep: Reputation: Disabled
fatmac, I am going to give what you have said a shot as it looks like it may possibly do the job. If I knew more about the proper syntax it would help. However, I have to learn the ropes one way or another. So far using Ubuntu 14.04.1 LTS has not been to bad and most everything else I have connected to the computer is up and running without fooling with anything else. I have only had problems trying to get the old Epson going. Thank you, Jim
 
Old 02-20-2015, 03:30 PM   #26
mark_alfred
Senior Member
 
Registered: Jul 2003
Location: Toronto, Ontario, Canada
Distribution: Ubuntu Linux 16.04, Debian 10, LineageOS 14.1
Posts: 1,572

Rep: Reputation: 210Reputation: 210Reputation: 210
Quote:
Originally Posted by Jimmyjack67 View Post
mark, I did try the Local Host but for some reason I could't get to the printer file but,, I will give it another try just in case I missed some thing. Thank you, Jim

If it couldn't find your printer, then try "add printer" instead. Have your printer connected and turned on, and then in your browser go to localhost:631. From here click on "Administration", then "Add Printer". There should be some obvious choices. Then you'll reach a page that looks like the photo I've attached. Here, you can install a ppd file (note the browse button in the attached photo). This is a better way to do it then randomly copying them via the command line or via a file browser.

Note, you need CUPS installed. CUPS stands for "Common Unix Printing Service" (I think). It's generally what you need for getting printing working. Usually CUPS is there by default, but if not, make sure it's installed. If localhost:631 gives you a site, then it is installed.
Attached Thumbnails
Click image for larger version

Name:	LQepson.png
Views:	18
Size:	60.4 KB
ID:	17619  

Last edited by mark_alfred; 02-20-2015 at 03:36 PM.
 
Old 02-20-2015, 10:30 PM   #27
Jimmyjack67
Member
 
Registered: Jul 2013
Location: New Yor State USA
Posts: 81

Original Poster
Rep: Reputation: Disabled
fatmac, The first command that you listed to make the directory did so. I went through the folders and found it as named. I tried the second command as posted but it choked out about the same as you see below. I decided to try copying the files from "downloads" to the desktop so I could copy and paste them in so I wouldn't fowel up the typing, caps,and etc. The output is the same concerning "no suchfile or directory." I did try the command exactly as you had posted but the results was the same as below. The LQ570 folder has 0 items in it when I go to it in the root and look at it. Jim



james@james-System-Product-Name:~$ sudo cp file:///home/james/Desktop/ESCP48.DL_ file:///home/james/Desktop/ESCP48.INF file:///home/james/Desktop/epson11076.exe /usr/share/cups/EpsonLQ570
[sudo] password for james:
cp: cannot stat ‘file:///home/james/Desktop/ESCP48.DL_’: No such file or directory
cp: cannot stat ‘file:///home/james/Desktop/ESCP48.INF’: No such file or directory
cp: cannot stat ‘file:///home/james/Desktop/epson11076.exe’: No such file or directory
james@james-System-Product-Name:~$
 
Old 02-20-2015, 10:35 PM   #28
Jimmyjack67
Member
 
Registered: Jul 2013
Location: New Yor State USA
Posts: 81

Original Poster
Rep: Reputation: Disabled
mark, I did go back to the LocalHost 631 to see if I might be able to do the inserting of the files. What I see it that it doesn't recognise the downloaded drivers and just shows a blank page even though I know those drivers are there.
Thank you, Jim.
 
Old 02-21-2015, 03:46 AM   #29
mark_alfred
Senior Member
 
Registered: Jul 2003
Location: Toronto, Ontario, Canada
Distribution: Ubuntu Linux 16.04, Debian 10, LineageOS 14.1
Posts: 1,572

Rep: Reputation: 210Reputation: 210Reputation: 210
Quote:
Originally Posted by Jimmyjack67 View Post

james@james-System-Product-Name:~$ sudo cp file:///home/james/Desktop/ESCP48.DL_ file:///home/james/Desktop/ESCP48.INF file:///home/james/Desktop/epson11076.exe /usr/share/cups/EpsonLQ570
[sudo] password for james:
cp: cannot stat ‘file:///home/james/Desktop/ESCP48.DL_’: No such file or directory
cp: cannot stat ‘file:///home/james/Desktop/ESCP48.INF’: No such file or directory
cp: cannot stat ‘file:///home/james/Desktop/epson11076.exe’: No such file or directory
james@james-System-Product-Name:~$
The diction is wrong. It's incorrect to annotate the name of the file with "file:///". Just use /home/james/Desktop/ESP48.DL_

Anyway, I don't think putting in the file "epson11076.exe" is going to do anything. This is a compressed Windows file. It needs to be wined and unzipped. Forget it.

Here's the ppd file I think you're looking for. Try it (and again, I recommend using http://localhost:631 to place it.) Here's the page I got the ppd link from: http://www.openprinting.org/printer/...son-LQ-570plus


ETA: There's a page on a forum I found that might be of help if the ppd file doesn't work. It's here: http://forums.openprinting.org/read.php?26,14669 This gives a repository with a package, containing most of the Epson drivers, that can be installed. It likely would work.

Last edited by mark_alfred; 02-21-2015 at 04:08 AM.
 
Old 02-21-2015, 09:06 AM   #30
Jimmyjack67
Member
 
Registered: Jul 2013
Location: New Yor State USA
Posts: 81

Original Poster
Rep: Reputation: Disabled
Mark, I have tried that PPD a number of times already (I believe} as I downloaded it from openprinting.org. It doesn't adress the printer as a direct connected parallel printer. It only considers USB connected printers and printers going throuh a URL and some other things. I don't rmember all the things at the moment but the closest connection is a serial port which will not work at all for my printer. Any other setup that the PPD allows will only print a few garbage symbols and continious pages being spit through the tractor feed non-stop unless you power off the printer. The PPD only allows (seemingly) single sheet paper 8.5 x11 and doesn't consider American 9.5" x 11" tractor fed paper. If I knew how to possibly modifie the PPD it might be made to work but as far as the setup through the LocalHost 631 goes, the necessary setup options are not available. I believe that the PPD is version 4.3 cups/ Apple etc.
I will try it again after looking at the same PPD I already have from OpenPrint.org but I don't know how to possibly edit it to make it work correctly. I just do not have that kind of know-how being I am no sort of programmer.
Thank you, Jim
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Change Permissions Write/Read to Ipod nano 2nd Folders Alchemikos Linux - Newbie 1 07-24-2012 11:32 AM
Permissions on Folders yankwizera Linux - Newbie 6 06-20-2012 12:02 PM
Permissions on /etc and other folders Brandon.Wamboldt Linux - Server 3 05-04-2009 06:51 PM
Change file permissions of files in folders dotancohen Linux - Newbie 1 05-19-2007 02:56 AM
change permissions of all folders and sub folders cad Linux - General 3 01-28-2007 10:21 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 05:24 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration