UbuntuThis forum is for the discussion of Ubuntu Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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.
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
Distribution: Ubuntu Linux 16.04, Debian 10, LineageOS 14.1
Posts: 1,572
Rep:
Quote:
Originally Posted by Jimmyjack67
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".
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
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
Distribution: Ubuntu Linux 16.04, Debian 10, LineageOS 14.1
Posts: 1,572
Rep:
Quote:
Originally Posted by Jimmyjack67
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.
Last edited by mark_alfred; 02-20-2015 at 03:36 PM.
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:~$
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.
Distribution: Ubuntu Linux 16.04, Debian 10, LineageOS 14.1
Posts: 1,572
Rep:
Quote:
Originally Posted by Jimmyjack67
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.
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.
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
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.