Home | Bug Tracker | Wiki | Mailing Lists | Forums    
   Username:  Password:  Signup
   
   Main Menu
· Home
· Search
· Site Stats
   Donate to Parsix
Help us to move faster and make a better system for you. Donations are highly appreciated.

Donations Sum: $ 370,00
   Search
   Download
· SF.Net Mirrors
   Bug Report
Help us to fix problems and defects. Please report bugs here.
   Online Users
Admin
No Online Admins
Members:Online
Members:Members:0
Guests:Guests:33
Total:Total:33
Online Members
No online members
   Sponsored Links



Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
nomadicOffline
Post subject: [SOLVED] cups / printing problem in Parsix 1.5  PostPosted: Jul 04, 2008 - 07:28 AM



Joined: Jul 04, 2008
Posts: 4

Status: Offline
CUPS is not running as a service, even tho the various CUPS packages are installed.
I cannot add my usb printer using system/administration/printing - I get the error message There was an error during the CUPS operation: 'httpConnectionEncrypt failed'.
If I try using applications/Parsix/Printer Manager, I get the message "IceWeasel cant establish connectivity with localhost:631.
I get this last message also if I try to connect th http://localhost:631 through Iceweasel directly.

Is this just because CUPS is not running, and if so, how can I get it to run please?

nomadic


Last edited by nomadic on Jul 06, 2008 - 07:16 AM; edited 1 time in total
 
 View user's profile Send private message  
Reply with quote Back to top
cmostOffline
Post subject:   PostPosted: Jul 04, 2008 - 11:04 AM



Joined: Feb 19, 2008
Posts: 96
Location: Cincinnati, Ohio
Status: Offline
I noticed this problem too, which also, by the way, affects NFS services (meaning that NFS shares are not automatically mounted at boot because the NFS services are not running.)

To solve your problem, simply add the following two commands BEFORE the last line in /etc/rc.local (Note: You must edit rc.local as root.)

At the command line:
sudo gedit /etc/rc.local

add...
sleep 20
/etc/init.d/cups restart
...before the last line...

save the file
restart the computer

CUPS should start at each boot now. Good luck!
 
 View user's profile Send private message  
Reply with quote Back to top
nomadicOffline
Post subject:   PostPosted: Jul 04, 2008 - 11:29 AM



Joined: Jul 04, 2008
Posts: 4

Status: Offline
Hi cmost
thank you for the quick reply.

good news and bad news
the bad news is that the edit has had no effect and cups does not start.:
the good news is that your reply gave me the info to restart CUPS manually (/etc/init.d/cups restart). I manually started cups and set up my printer ok.

So the urgency is gone but I would still like to have cups starting automatically.

In case I have done something wrong, the contents of /etc/rc.local after the edit are as follows

#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.
sleep 20
/etc/init.d/cups restart

exit 0

nomadic
 
 View user's profile Send private message  
Reply with quote Back to top
cmostOffline
Post subject:   PostPosted: Jul 04, 2008 - 11:55 AM



Joined: Feb 19, 2008
Posts: 96
Location: Cincinnati, Ohio
Status: Offline
Hmmm... adding the two aforementioned lines to your rc.local file should indeed force CUPS to restart at each boot. On the other hand, if your rc.local file is not executable, then it may not execute. In a terminal, as root, execute the following:

sudo chmod a+x /etc/rc.local

Beyond that, I'm not sure why the contents of your rc.local file are not being executed. You could always add the cups command to your Gnome session manager... Smile A dirty way to do it but it probably would work nonetheless. Keep me posted on your progress. Other users will no doubt benefit.
 
 View user's profile Send private message  
Reply with quote Back to top
nomadicOffline
Post subject:   PostPosted: Jul 04, 2008 - 02:38 PM



Joined: Jul 04, 2008
Posts: 4

Status: Offline
hi cmost

chmod made no difference, although something has changed.

After boot,
- cups does not appear in system/adminintration/services.
- Going to system/administration/printing still fails (not connecting)
- going to applications/Parsix/printer manager DOES work (connects to localhost) BEFORE I manually start cups
- From the browser I can go directly to localhost:631 BEFORE I manually start cups

(I still have those two lines in /rc.local)

I included the command "/etc/init.d/cups restart" as a start-up job in system/preferences/sessions but it is not starting cups.

I can carry on starting cups manually but I would like to find out why this is necessary.

nomadic.
 
 View user's profile Send private message  
Reply with quote Back to top
cmostOffline
Post subject:   PostPosted: Jul 04, 2008 - 04:13 PM



Joined: Feb 19, 2008
Posts: 96
Location: Cincinnati, Ohio
Status: Offline
Have a look at this page... It will assist you in creating a script to start (or stop) the CUPS service manually. I am thinking about using this method to create a few custom scripts myself. Good luck!

http://www.debian-administration.org/articles/28
 
 View user's profile Send private message  
Reply with quote Back to top
alanOffline
Post subject:   PostPosted: Jul 04, 2008 - 05:55 PM
Site Admin


Joined: Jan 25, 2005
Posts: 294

Status: Offline
Simply use the following command to enable cups at boot:

Code:

# ln -s /etc/init.d/cups /etc/rc5.d/S99cups


cups service name has changed from cupsys to cups, the installer system needs to be updated. will be fixed in Viola r1.
 
 View user's profile Send private message Send e-mail Visit poster's website  
Reply with quote Back to top
nomadicOffline
Post subject: Solved - cups not starting at boot  PostPosted: Jul 05, 2008 - 06:42 AM



Joined: Jul 04, 2008
Posts: 4

Status: Offline
alan
that solved the problem.
thanks for your help and also to cmost

nomadic
 
 View user's profile Send private message  
Reply with quote Back to top
cmostOffline
Post subject: RE: Solved - cups not starting at boot  PostPosted: Jul 05, 2008 - 10:51 AM



Joined: Feb 19, 2008
Posts: 96
Location: Cincinnati, Ohio
Status: Offline
Alan is the boss!
@nomadic, can you mark this topic as [solved]?
 
 View user's profile Send private message  
Reply with quote Back to top
bartosOffline
Post subject: RE: Solved - cups not starting at boot  PostPosted: Aug 14, 2008 - 06:48 PM



Joined: Aug 14, 2008
Posts: 1

Status: Offline
Alan's post of
Code:
# ln -s /etc/init.d/cups /etc/rc5.d/S99cups
solved my problem.

Thanks
 
 View user's profile Send private message  
Reply with quote Back to top
mandog
Post subject:   PostPosted: Aug 15, 2008 - 05:50 AM



Joined: Jan 25, 2008
Posts: 150
Location: UK
Just a foot note cups is back on track on 1,5r1

_________________
Parsix running AMD 6000 x2 64bt, Asus mother board 8gb ram, Nvidia graphic card 1gb unboard ram, Plextor PX760, EPSON R300, 2x 500gb sata+2x 500gb usb Hardrive, Netgear, 19" DELL monitor 1600X1200 X 75hz Resolution
 
 View user's profile Send private message Send e-mail  
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT + 3.5 Hours
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Copyright© 2005-2007 Parsix Project
Contact: webmaster AT parsix DOT org