difficulty sustaining configuration of printer using KDE
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
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.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
difficulty sustaining configuration of printer using KDE
I am just a simple home user and know next to nothing about Linux and most programs in general but am trying to install and set-up SuSE Linux 9.0 and have had really extensive trouble when trying to make my printer work.
I have no MS Windows OS on my computer. I have a Pentium 3 computer and the printer is Epson Stylus Color 740.The first time I installed Suse Linux everything went OK and I could print my old Word or Excel files from Open Office, however not from my browser, e.g. Mozilla browser, or my Mozilla email browser.
So I uninstalled Linux altogether and re-installed Linux from scratch and after this the printer did not work at all. I got the advice to use a diagnostic tool site on the net called localhost:631, but it did not let me in the second time because it did not accept my password, which I know was right!
Then I read one could use a KDE wizard by calling it up from the second printer window that comes up after one has already given the order to print in a first window. KDE is apparently connected to localhost:631. You guessed it: there was no permanent solution for me!
Anyway, in the second window, which also has various choices like CUPS, there is an icon which looks like a torch and which activates the KDE wizard. Somewhere in the middle of all the configuration process it invites one to test the printer. I tried to test it but KDE would not let me because the password I was required to enter for the test was not accepted. I continued anyway, and lo the printer worked, not only from Open Office but also from my browser and email browser. Success.
End of story? No. Next day the printer does not work again. I try to repeat the prodecure with with the KDE wizard but the printer continues to print rubbish for about six lines then spews out copious sheets of paper.
Any ideas on both the printer configuration or how to get a new password on localhost:631? Incidentally I did try configuring via YaST hardware at an earlier stage before I tried KDE, but just went round in circles. The printer showed the same behaviour then too. Epson have instructed per telephone to run tests on the printer and it is OK, and the cable connections are OK. I get the same problem whether using a parallel pot or USB.
I would be grateful for some help on this vexing problem.
Sounds like you are using CUPS as the printer daemon. This works as a daemon that sits on udp port 631. The configuration for CUPS is based in the directory /etc/cups and has both a server and client configuration.
It maybe that each time you start/shutdown the machine, the daemon is being started/shutdown. Try opening up a terminal and testing with the following:
enter password: <this would be the root password>
bash> /etc/init.d/cups stop (shuts down the daemon)
bash> /etc/init.d/cups start (starts the daemon)
The cupsd.conf file configures the cups daemon while the cups.conf file configures the client.
Suse, Mandrake and Redhat tend to adopt the use of cups as the default method for getting to printers. Cups exists as an installed package independant of KDE or any other window manager.
Localhost:631 is not a net tool as such but a browser configuration tool. Cups uses port 631 for all connection requests so that another computer on a network can connect to the printer simply by connecting via port 631 much the same way as a mail client connects to an SMTP server via port 25. Localhost is your computer.
Open a terminal and try the following:
su to root or login with root (the former is much safer)
type 'netstat -an | more' This displays all listening ports on your machine (ie. all services running open ports) and if cups is installed and running then you should see something like:
tcp 0 0 0.0.0.0:631 0.0.0.0:* LISTEN
udp 0 0 0.0.0.0:631 0.0.0.0:*
If it doesnt then either cups is not running or not installed. For the latter... try
typing 'rpm -qa | grep cups' and you should see something similar to (but not exactly the same as you are Suse and not Mandrake):
If not then you will have to install cups.
Assuming cups is installed or you have installed it, then the YAST type tools, if like drakconf in Mandrake, deal with the daemon part of cups (installs the printer and makes it available on port 631) while KDE tools will deal with connecting to any Cups served printers on the network (in your case one computer).
I reinstalled everything and then I did as you said and the tcp * LISTEN and the udp * are there.
When I again tried to use YAST the printer prints rubbish. When I try and use the KDE wizard to configure the printer it installs new drivers but before it is finished it asks me (with my user username pre-provided) for my password, but does not accept it! (Despite the total reinstallation from scratch during which I had to give my username and password.) I have looked for a place to find my user username's password with no success. KDE will not accept root as username plus root's password either.
I had the same problem before the complete reinstallation.
I did ask for this thread to be closed because of the lack of continuation. In the meanwhile,
since so many new visitors look at it every day, some may want to continue looking at the throes and woes in this problem as they are continuing on my other thread:
'Difficulty getting CUPS to configure the printer'