LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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!

Notices


Reply
  Search this Thread
Old 07-10-2013, 09:27 AM   #1
Sefid par
Member
 
Registered: Jul 2013
Location: Iran, Shiraz
Distribution: Ubuntu
Posts: 130

Rep: Reputation: 26
Question -su: /etc/init.d/cups: No such file or directory


Recently I have installed Slackware, I want to use CUPS but when I try to use http://localhost:631/ I get nothing. And the port 631 is not listed in open ports found by Nmap.
I know that I have CUPS installed.
Code:
$cups-config --version
1.5.4
I tried to start the CUPS service by the following command but I got error:
Code:
# /etc/init.d/cups start
-su: /etc/init.d/cups: No such file or directory
What's wrong?
 
Old 07-10-2013, 10:16 AM   #2
z01krh
Member
 
Registered: May 2009
Posts: 34

Rep: Reputation: 0
Try /etc/init.d/cups status. See if the service is already running. Also some distros call it cupsd.
I don't know the command for chkconfig in Slackware but I would make sure the service is setup to run at boot and try a reboot.
 
Old 07-10-2013, 11:01 AM   #3
Sefid par
Member
 
Registered: Jul 2013
Location: Iran, Shiraz
Distribution: Ubuntu
Posts: 130

Original Poster
Rep: Reputation: 26
There is no file named "cups" or "cupsd" in "/etc/init.d". Therefore no parameters can be used for any of these files in the "init.d" directory.
 
Old 07-11-2013, 01:02 PM   #4
z01krh
Member
 
Registered: May 2009
Posts: 34

Rep: Reputation: 0
Is there any files under /etc/cups? I am not sure if that is where it is installed under Slackware.
do a find for the cupsd.conf see if it installed at all. You will need to be root.
find /etc/ -iname "cupsd.conf" -exec ls -lh {} \;

If there is no cupsd.conf I am guessing the install failed.
 
Old 07-11-2013, 02:25 PM   #5
Sefid par
Member
 
Registered: Jul 2013
Location: Iran, Shiraz
Distribution: Ubuntu
Posts: 130

Original Poster
Rep: Reputation: 26
Thanks for reply; Yes. The file "/etc/cups/cupsd.conf" is present.
Solved; As Philip sais:

Quote:
Originally Posted by Philip Lacroix View Post
You will find the rc.cups script in /etc/rc.d/. You have to make it executable first, than you can start the service:

Code:
# chmod ugo+x /etc/rc.d/rc.cups
# /etc/rc.d/rc.cups start
Instead of running chmod you can also use pkgtool: go to Setup, then services, activate the CUPS server, exit and start it as above.

Best regards,
Philip

Last edited by Sefid par; 07-12-2013 at 07:53 AM.
 
  


Reply

Tags
cups, service


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
gcc giving error linux/init.h: No such file or directory chandramohan N Debian 4 02-06-2012 02:44 AM
[SOLVED] init: open(/dev/console): No such file or directory zer0signal Linux From Scratch 5 11-26-2010 01:18 AM
init: Error parsing configuration: no such file or directory ternarybit Linux - Software 1 03-21-2010 05:00 PM
Slack 12.2 Upgrade and init: open(/dev/console): No such file or directory xr82 Slackware 2 12-28-2008 04:59 PM
/root/init.c: No File or Directory in GDB irfanhab Programming 2 01-28-2005 11:17 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:49 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