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 |
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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
07-17-2012, 06:06 PM
|
#1
|
Member
Registered: Feb 2011
Location: Republic Of Ireland
Distribution: Debian,Centos,Slackware
Posts: 508
Rep:
|
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...
|
|
|
07-17-2012, 06:15 PM
|
#2
|
Senior Member
Registered: Feb 2009
Posts: 4,667
|
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
to find an exact package name.
|
|
|
07-17-2012, 06:35 PM
|
#3
|
Member
Registered: Feb 2011
Location: Republic Of Ireland
Distribution: Debian,Centos,Slackware
Posts: 508
Original Poster
Rep:
|
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.
|
|
|
07-17-2012, 08:23 PM
|
#4
|
LQ Guru
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,418
|
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
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.
|
|
|
07-18-2012, 12:44 PM
|
#5
|
LQ Veteran
Registered: Jul 2006
Location: London
Distribution: PCLinuxOS, Salix
Posts: 6,199
|
You should have the program system-config-printer installed by default. It should appear in the menu as System - Administration - Printing.
|
|
|
07-18-2012, 01:39 PM
|
#6
|
Senior Member
Registered: Feb 2009
Posts: 4,667
|
Quote:
Originally Posted by sigint-ninja
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.
|
|
|
07-18-2012, 05:21 PM
|
#7
|
Member
Registered: Feb 2011
Location: Republic Of Ireland
Distribution: Debian,Centos,Slackware
Posts: 508
Original Poster
Rep:
|
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...
|
|
|
07-18-2012, 05:32 PM
|
#8
|
Senior Member
Registered: Feb 2009
Posts: 4,667
|
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.
|
|
|
07-18-2012, 05:58 PM
|
#9
|
Member
Registered: Feb 2011
Location: Republic Of Ireland
Distribution: Debian,Centos,Slackware
Posts: 508
Original Poster
Rep:
|
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.
|
|
|
07-18-2012, 05:59 PM
|
#10
|
Senior Member
Registered: Feb 2009
Posts: 4,667
|
Copy & paste the output so we can see, otherwise it is difficult to help you...
|
|
|
07-18-2012, 06:07 PM
|
#11
|
LQ Guru
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,418
|
1. which version of Centos is this
2. ensure you are root
make sure you use the '-' to get root env
3. yum search
|
|
|
All times are GMT -5. The time now is 07:47 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|