LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 08-20-2008, 06:51 AM   #1
xgme
LQ Newbie
 
Registered: Aug 2008
Posts: 3

Rep: Reputation: 0
Cups Hostname Problem


Hi there,
I share my printers with cups. I'm using linux-to-linux share.
On clients, if i introduce my server hostname and its ip in /etc/hosts everything is working. If I dont write clients cannot understand my server ip.
My problem is if there is any way to achieve this in another way. I want clients to recognize my server automatically. I should configure only server. Can I introduce my server to the clients with its ip?

Thanks for any help

Last edited by xgme; 08-20-2008 at 06:56 AM. Reason: clarity
 
Old 08-21-2008, 08:38 AM   #2
xgme
LQ Newbie
 
Registered: Aug 2008
Posts: 3

Original Poster
Rep: Reputation: 0
Anyway I found the way and I do not have to introduce my printer server in clients' /etc/hosts anymore
It works wonderful!!!
 
0 members found this post helpful.
Old 06-06-2010, 06:11 AM   #3
theking2
LQ Newbie
 
Registered: Mar 2007
Posts: 7

Rep: Reputation: 0
why not tell us what you did or where you find the solution? It would greatly help this thread.
 
Old 06-07-2010, 04:01 AM   #4
xgme
LQ Newbie
 
Registered: Aug 2008
Posts: 3

Original Poster
Rep: Reputation: 0
it was years ago, but as I remember I changed server-name for printer in Samba (not CUPS) to localhost. The problem was that servers are broadcasting themselves to clients via a machine name like "John's machine" and printer "John's printer" but clients search network hardware by their ip. Therefore, I could not establish an automatic recognition for clients.

I know setting server-name for printer to localhost is not a good way, because user may want to broadcast his printer with a specific name, but that time I could not find another solution.

In this configuration, there was some strange thing. When I set that configuration, client linux machines also automatically add that printer to their OS without any configuration or a command like "Add". Maybe this can be a security bug in linux machines because i can create a virtual machine and broadcast it as "localhost" and then i can automatically connect to clients in my LAN. It was the reason that i did not write the answer because this is really naive solution.

Last edited by xgme; 06-07-2010 at 04:03 AM.
 
  


Reply

Tags
cups, hostname, ip, printer, sharing



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
hostname problem matrixon Linux - Software 3 06-24-2005 03:27 PM
Printing Problem (cups / cups-lpd) daleman Linux - Software 3 04-08-2005 08:01 AM
Problem with networked printing with CUPS-- hostname showing up where it shouldn't pingswept Linux - General 1 06-29-2004 09:38 PM
hostname problem bm1 Linux - Networking 11 05-12-2003 02:14 PM
hostname command vs. $HOSTNAME env. variable Silly22 Linux - Networking 2 03-29-2002 05:01 PM

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

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