LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 09-14-2005, 02:57 PM   #1
jlinkels
LQ Guru
 
Registered: Oct 2003
Location: Bonaire, Leeuwarden
Distribution: Debian /Jessie/Stretch/Sid, Linux Mint DE
Posts: 5,195

Rep: Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043
Printing from Qt apps using CUPS -- Solved


If you use CUPS and cannot print from Qt based apps (like QCAD or Opera) because you see "lp" mentioned as your only printer while you do have other printers installed. It seems that this happens especially in Debian and Ubuntu, but I am not sure.

Try:
mv /etc/printcap /etc/printcap_old
ln -s /var/run/cups/printcap /etc/printcap

You have to do this as root. If matters are worse after this, copy the old printcap back.

(This solution was posted in the QCAD users group by Fred Dei-Cont. Since it provides a broader solution, *and* I had this problem with multiple applications I decided to post it here)

jlinkels
 
Old 05-24-2007, 02:00 PM   #2
Russianspi
LQ Newbie
 
Registered: May 2007
Posts: 19

Rep: Reputation: 2
I have had problems printing (no printers showed up for me to choose) in QT applications on a newer version of Ubuntu - 7.04. This post helped me figure the problem out, although it wasn't straightforward. Here's how I fixed the problem...

cd /etc/cups/

(Use your favorite text editor - I use joe, which I had to do an apt-get install to get

sudo joe cupsd.conf)

Find line: Printcap /var/run/cups/printcap

Edit it out, and make a new line, so:

# Printcap /var/run/cups/printcap

Printcap /etc/printcap

Then restart cups:

sudo /etc/init.d/cupsys restart

Your QT based application should now print!
 
Old 06-09-2007, 05:23 AM   #3
Gimikk
LQ Newbie
 
Registered: May 2006
Location: Bulgaria
Distribution: K-Ubuntu
Posts: 1

Rep: Reputation: 0
thank you, russianspi!
im with ubuntu 7.04 also and now it works.
spasibo, 4uvak!
 
Old 05-04-2008, 03:26 AM   #4
Wed
Member
 
Registered: Sep 2005
Location: Sweden
Distribution: Slackware
Posts: 249

Rep: Reputation: 45
Thanks a whole lot!! I am using Debian testing (Lenny). In Opera printing worked fine, but QCad showed no printers available.

My /etc/cups/cupsd.conf had no line with Printcap at all, so I just added one.

After restarting Cups, QCad had to be restarted also before the printer showed up, but it did!
 
Old 05-05-2008, 05:03 PM   #5
Russianspi
LQ Newbie
 
Registered: May 2007
Posts: 19

Rep: Reputation: 2
Glad to see this is still helping people...
 
Old 06-28-2008, 03:31 AM   #6
jqv
LQ Newbie
 
Registered: Jun 2008
Location: Sweden
Posts: 1

Rep: Reputation: 0
Also works fine in Ubuntu 8.04 with the Qt app FirstClass.
Thank you!

/J

EDIT: The same thing also work in Ubuntu Ibex 8.10

Last edited by jqv; 11-10-2008 at 05:33 AM.
 
Old 10-23-2008, 04:07 PM   #7
Pete051
LQ Newbie
 
Registered: Jul 2006
Location: Sheffield England
Distribution: Linux mint 19.03
Posts: 11

Rep: Reputation: 0
Still works

Thanks a lots, this was driving crazy curious kinda bug though
 
  


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
Solved -- Font sizes of Gnome-Gtk apps in KDE jlinkels Debian 3 12-05-2005 07:51 PM
HP cups issue solved Bl4cKP3nGu1n Linux - Hardware 0 06-16-2005 03:13 AM
Windows Apps freeze when printing to network samba + cups printer urzumph Debian 1 02-17-2005 06:38 PM
remote cups printing to a smb/cups print server? justanothergeek Linux - Networking 2 09-15-2004 08:31 AM
Printing from Windows to CUPS using SAMBA 2.2.7 nothing prints SOLVED ja_nch Linux - Networking 1 09-19-2003 05:19 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:14 PM.

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