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-17-2012, 06:06 PM   #1
sigint-ninja
Member
 
Registered: Feb 2011
Location: Republic Of Ireland
Distribution: Debian,Centos,Slackware
Posts: 508

Rep: Reputation: 29
Smile installing print services on centos


hi guys,

im busy reading a book on RHEL and are using centos to follow along and hopefully learn about Red hat.

anyway...the book started on about printers and i was trying to follow and saw that there were things missing in my OS like

system - administration - printers was not in my menu...after googling i found that you need to run a yum command (is this to actually install this functionality?) so i opened a terminal and tried to run

yum install system-config-printer then it moaned at me about root access...so i googled that and went from a terminal

su

then entered the password and ran the yum command again.

it then loaded plug ins and mirror speeds (what ever they are)

then came up with an error No package system.config.printers available. followed by
nothing to do (if only that was true)

and then back to the command line...what am i missing? do i have to install a package of some sort...looked in install software but couldnt see anything relevant.

and while i have you...what is the difference with running a terminal from within the gui...and going into the shell (black screen with white writing) is there a difference regarding functionality...or is the command line from a proper shell faster as it doenst have gui in memory etc? just curious...
 
Old 07-17-2012, 06:15 PM   #2
snowday
Senior Member
 
Registered: Feb 2009
Posts: 4,667

Rep: Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411
I am surprised your Red Hat book does not explain how to use su and yum, maybe get a better book such as the excellent guide by Michael Jang (he even posts on these forums!)

Anyway, Linux is very literal. Do you see the difference between what you were asked to type:

Code:
yum install system-config-printer
and what you actually typed?

Code:
yum install system.config.printers
Try again and maybe use the Copy and Paste functions so you don't make any typos. You can also use

Code:
yum search
to find an exact package name.
 
Old 07-17-2012, 06:35 PM   #3
sigint-ninja
Member
 
Registered: Feb 2011
Location: Republic Of Ireland
Distribution: Debian,Centos,Slackware
Posts: 508

Original Poster
Rep: Reputation: 29
hi snowpine

the book is the study guide for red hat enterprise linux exams.
i did see su in the text...but it didnt actually explain how you would use it ie...i did see what it did...but had to work out how to apply it.

i copied the text yum install system.config.printers from a web site...and im still having the same error
the one with the - - - i also copied but i have tried both

thanks for your help..also did you see my question about the terminal?

i will definitly look at getting the book you suggested,,,

Last edited by sigint-ninja; 07-17-2012 at 06:40 PM.
 
Old 07-17-2012, 08:23 PM   #4
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,418

Rep: Reputation: 2785Reputation: 2785Reputation: 2785Reputation: 2785Reputation: 2785Reputation: 2785Reputation: 2785Reputation: 2785Reputation: 2785Reputation: 2785Reputation: 2785
Re Terminal; main difference is that you can start a GUI prog from a terminal-in-GUI, but I don't think you can do that from the standalone/console type terminal eg ctrl-alt-f1 etc (basically that would not be running the X-win code required).

As for your probs with yum etc, please post EXACTLY what you did and the EXACT results; even a single typo can cause major issues.

Also, to get the full root env, use
Code:
su -
Note the '-' aka hyphen; without that you get logged in as root BUT you retain your original non-root environment.



If you are using RHEL/Centos 6.x, you might find this useful http://www.linuxtopia.org/online_boo..._6_deployment/ and indeed that site has a lot of manuals.

Last edited by chrism01; 07-18-2012 at 05:44 PM.
 
Old 07-18-2012, 12:44 PM   #5
DavidMcCann
LQ Veteran
 
Registered: Jul 2006
Location: London
Distribution: PCLinuxOS, Salix
Posts: 6,199

Rep: Reputation: 2340Reputation: 2340Reputation: 2340Reputation: 2340Reputation: 2340Reputation: 2340Reputation: 2340Reputation: 2340Reputation: 2340Reputation: 2340Reputation: 2340
You should have the program system-config-printer installed by default. It should appear in the menu as System - Administration - Printing.
 
Old 07-18-2012, 01:39 PM   #6
snowday
Senior Member
 
Registered: Feb 2009
Posts: 4,667

Rep: Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411
Quote:
Originally Posted by sigint-ninja View Post
i copied the text yum install system.config.printers from a web site...and im still having the same error
the one with the - - - i also copied but i have tried both

thanks for your help..also did you see my question about the terminal?
Be careful copying & pasting commands from untrusted websites; that is a good way to break your system. Always make sure you understand the command before pressing Enter.

The commands and syntax are the same whether you are running in text mode or a terminal window in graphical mode.
 
Old 07-18-2012, 05:21 PM   #7
sigint-ninja
Member
 
Registered: Feb 2011
Location: Republic Of Ireland
Distribution: Debian,Centos,Slackware
Posts: 508

Original Poster
Rep: Reputation: 29
snowpine i will take what you say on board...
to the other guys...

i would have also thought that it would have been installed by default...but it most certainly isnt...there is no printers in my system - administration options

i did output su - with the command yum install system.config.printers
and it did look more positive but then returned the following error

[j0n1n@localhost ~]$ su -
Password:
[root@localhost ~]# yum install system.config.printers
Loaded plugins: fastestmirror, refresh-packagekit, security
Loading mirror speeds from cached hostfile
* base: mirror.simwood.com
* extras: mirror.simwood.com
* updates: mirror.for.me.uk
base | 3.7 kB 00:00
extras | 3.0 kB 00:00
google-chrome | 951 B 00:00 ...
updates | 3.5 kB 00:00
updates/primary_db | 663 kB 00:03
Setting up Install Process
No package system.config.printers available.
Error: Nothing to do
[root@localhost ~]#

as always thanks for all ye help...
 
Old 07-18-2012, 05:32 PM   #8
snowday
Senior Member
 
Registered: Feb 2009
Posts: 4,667

Rep: Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411
The package is called system-config-printer not system.config.printers. You need to type it exactly correctly. In this case the typo was harmless, but in the future when you are executing powerful commands such as rm as the superuser, a single error in spelling/punctuation/syntax can break your system. When in doubt use the Copy and Paste features and only use commands from reputable sources that you trust.

Last edited by snowday; 07-18-2012 at 05:35 PM.
 
Old 07-18-2012, 05:58 PM   #9
sigint-ninja
Member
 
Registered: Feb 2011
Location: Republic Of Ireland
Distribution: Debian,Centos,Slackware
Posts: 508

Original Poster
Rep: Reputation: 29
ok got that...thanks so much for your help...doh!!! i see what you mean about copying commands...i suppose sites like this and centos site is ok for copying commands

thanks so much for your help in dealing with me

Last edited by sigint-ninja; 07-18-2012 at 06:14 PM.
 
Old 07-18-2012, 05:59 PM   #10
snowday
Senior Member
 
Registered: Feb 2009
Posts: 4,667

Rep: Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411
Copy & paste the output so we can see, otherwise it is difficult to help you...
 
Old 07-18-2012, 06:07 PM   #11
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,418

Rep: Reputation: 2785Reputation: 2785Reputation: 2785Reputation: 2785Reputation: 2785Reputation: 2785Reputation: 2785Reputation: 2785Reputation: 2785Reputation: 2785Reputation: 2785
1. which version of Centos is this
Code:
cat /etc/*release*
2. ensure you are root
Code:
su -
make sure you use the '-' to get root env

3. yum search
Code:
yum search printer
 
  


Reply


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
LXer: Learn Linux, 302 (Mixed environments): Print services LXer Syndicated Linux News 0 08-10-2011 06:30 AM
terminal services in centos 5 harveer Linux - Newbie 4 10-05-2009 09:11 AM
How can I print when using Windows terminal services AGazzaz Linux - Software 1 03-19-2009 02:34 PM
Print Services Not Found 87stang Linux - Hardware 1 01-02-2007 03:56 PM
Need help with Print services.... Tenover Linux - Newbie 0 08-27-2003 12:26 PM

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

All times are GMT -5. The time now is 07:47 AM.

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