Linux - NewbieThis 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.
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.
I have an epson color 880 that I had setup and working in RH7.3, but when I moved to school, I now get a hostname assigned when my computer logs onto the network (didn't have this setup on my home network). Now, I am trying to get my printer to work again, and I get:
[kl2001@{ip} kl2001]$ lpq
Get_local_host: hostname '**-***-***-***.xxx.xx.xxxxxxxx.xxx' bad
[kl2001@{ip} kl2001]$
I tried manually setting a hostname in my /etc/sysconfig/network file, but to no avail, just get the same error, but instead of my IP, I get my chosen hostname in the error.
I tried re-installing the printer (gui) before I typed lpq into the console and saw this error, as the gui doesn't report the error, just that it can't send data to the printer.
great, it's working now, but won't I get the error again if I get assigned a different IP by my ISP??? is there a way to use wildcards to nake it so I don't have to re-do this each time I get a new IP?
no, that won't, but the results from hostname will, which is assigned by my ISP, and consists of my IP plus thier domain (i.e. 192.168.122.255.charter.com)
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.