General :: Printing A PDF From The Command Prompt Doesn't Work?
Oct 29, 2010
I have a PDF that I built using BIRT, and that works fine. At this point I'm trying to print it using lpr or some other command. It seems as though I should just be able to type lpr invoice.pdf and it should print to the default printer. However, lpstat -t shows "Empty print file!" for the printer, and the printer doesn't do anything, let alone print the file. lpr -l invoice.pdf prints the file, but unformatted - just a bunch of characters and whitespace on a seemingly infinite number of pages.
CUPS was not originally installed on my server, I have installed it but cannot print to my network printer. On my laptop, I can... they are both running the same version of Debian. What could be missing?
Here are some details...
I have two computers running the same version of Debian. One is a server with no GUI and the other is my laptop with GDM installed. My laptop (which prints with no problem) is connected via Wifi. My server is connected directly to the router via Ethernet. I cannot print from the server.
The printer is a Canon Pixma MP495 that connects to the router via Wifi. I have downloaded drivers for the printer from [url] and installed them successfully using dpkg on both computers.
Right now I have a regular text file that I am using for a test page. To print from my laptop (with success) I type:
This does not work from the server. What could I be missing?
I have just installed ubuntu 10.10 with wubi on a computer with windows vista.I have wireless access with ndiswrapper (), but i have one problem the autorun prompt doesn't work with anything.I have reinstalled wubi twice, and the same problem occurs.
I'm trying to print a PDF from Evince it don't work at all...
When I try to print in grayscale it send a blank paper to the printer...When I try to print anything in color I can't change the margin of the paper, it always put like ZERO margin and the text go throw the end of the paper.
The paper size is A5 (Half A4) and the printer is in LAN in a Windows computer.
It's me or when I print in grayscale it print faster? So, it's an update or something? Because last time I printed from Ubuntu (like a month ago) it printed perfectly OK in grayscale (I don't know about the margin).
I'm running Red Hat Linux 5.4 on HP DL580 server with 16 processors and 64 GB of RAM. I'm connecting to the server remotely through SSH. after entering the password, it takes time to return the command line, if I click ctrl+c during this time, I'll have the command line prompt but not the correct bash prompt (I have to run bash to pass to my correct prompt).I tried to install Apache on the server, ./configure took 4 hours to finish instead of 1 or two minutes, Oracle installation same behavior. Server Disks are mirrored using RAID controller.
I'm trying to change the bash prompt and based on the man pages $ should show a $ which changes to a # for a SU. However, this doesn't happen on my machine, it's $ for both user and SU.The line in .bashrc is:export PS1="u@h:w$"
" Mark the start of the text with "v", "V" or CTRL-V. The character under the cursor will be used as the start.""With CTRL-V (blockwise Visual mode) the highlighted text will be a rectanglebetween start position and the cursor."I can mark the start with "v" or "V".But it doesn't work when I push ctrl+V.
After contracting malware on Vista i decided to switch over to Linux and chose to start of with Ubuntu because of the graphical interface. that being said, you have no doubt inferred that i have no coding experience. basically i was hoping to find some nice tutorials and sites for Ubuntu. Also, i did downloaded the suggested programs and patches but im still experiencing problems with Adobe,flash, and and opening .exe files. for the latter, when i click on .exe files it is equivalent of using explorer on windows so i was wondering how to use the command prompt to open them. supposedly linux is susceptible to malware so if you could please suggest a anti -malware program.
I'm running Debian Wheezy and I don't know why, but whenI switch to console F1(Ctrl+Alt+f1) I can't enter login information. It's like Debian didn't have completely starting and wait always.The F1 console looks like this:
I'm looking for a way to get my IP address using the command prompt in Linux. I know when you type "ifconfig" you can get your local IP address (i.e. 192.168.0.103), but I'm looking for my IP address that I get from my ISP. How can I get this from Linux without having to visit some website?
I am trying to access another partition on my drive through the command prompt. I have tried to access it through the /dev directory but when I input "cd ./sda1" or "cd /sda1" it says no such file or directory.
I'm trying to run an application from the command prompt. I've set the path in .bashrc. My executable file and all other files needed by it are saved in the same directory as the path. When I enter the executable name to run it, I get an error message saying that the command is not found.
when I am running the script below,it performs on whatever logfile u type ,i.e, ./scriptname logfilename.But how do I convert it into a function and then call it from another script.I mean how do I prompt the user to enter a logname and then capture the name in the function and when calling this function from another script how do I pass the parameter.
I am working as oracle DBA on 10g . Till last day I had worked on windows platform. Now my company want me to work on Linux platform. I am first time using Linux dont know A,B,C of Linux . I want to connect sqlplus through linux command prompt. I have exported enviornment variable of oracle but I am getting permission denied Below mention steps I ahd followed . Please help me to solve it
I was curious if I would be able to view cookies from a command prompt when ssh'd into a machine. On a test machine running fedora 13, I found that the cookies were stored in a cookies.sqlite. I made sure that all instances of Firefox was closed and attempted to view the file running the following command
It loaded but I was unable to run view any of the information because the database was locked? There were no instances of Firefox running and I check to make sure there were no services of Firefox running as well. Am I doing something wrong? Is this not the correct way to view cookies from the command line ? I have tried google searches and has since been unable to come up with anything.
I have created an image out of 2 other images using the "montage" command. I want to then print it using "lpr". I view the output from montage in XV and it looks fine however when I try to print, it prints the bottom half of the first image then the second and then the bottom half again.
E.g., imagine this: Code: << end of top image << end of bottom image
The above is how it looks in xv however when printed, it looks like: Code: ------- ------- ~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~ ////////////////// ////////////////// ------- -------
I really can't understand it, I've tried opening and saving the image again but it still prints as above. I don't know if montage is outputting it incorrectly or something, however it looks right on the screen!
I am using on Windows Vista, Filezilla server. I have it set up to be accessed via outside IPs and when I use a client on the IP I have it connects normally using Filezilla client. On the same machine I have Ubuntu running in a virtual box and when using filezilla client in there it works fine. Now I want to try the command prompt. So I do the ftp xxx.xxx.xx.xxI enter the name and password and i get the ftp command prompt, but the commands are not working properly. when trying "ls" or "cd" these commands do not work. "cd" tells me that the current directory is "/" root, but this does not make sense in the windows operating system. Now the filezilla client is taking the user in the application window directly to the root folder of the permitted filespace granted to that user. How can the same be done from the command prompt, if there is a way? It is as if the command prompt takes me to the root which does not exist or even have correct permissions to move in. Is there any way to be taken to the correct directory directly, or move there especially when the slashes are the wrong way around etc?
I've got several large files sitting in my linux hosted account that I need to upload to my S3 account. I dont want to download them first and then upload it into S3. Is there any way I can "upload" it via the linux command line environment? Or access it via a website working with lynx?
I installed Fedora 10 on a pc I built from a barebones package, I have had no problems over the past couple months until recently. When I start up the pc the OS lags on a black screen with the cursor blinking. I have searched forums but I guess since I am a newbie I am still lost in the translations. What I am trying to do is save my files that are on the pc to a DVD-RW or my external hard drive before I have to reinstall the software again.
My questions are as follows: How can I locate the files on the hard drive? When I have the bootable cd-rom inserted I am unable to locate the HDD. How can I transfer my files using the command line prompt? Finally, is it possible just to upgrade to the latest Fedora without losing my files and going through the data recovery process head ache? Or can I reinstall the OS and not lose my files?