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 |
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.
|
|
08-07-2009, 05:20 PM
|
#1
|
Member
Registered: Apr 2008
Location: Cleveland, Ohio
Distribution: SuSE, CentOS, Fedora, Ubuntu
Posts: 106
Rep:
|
Changed hostname during install, now CUPS has wrong hostname on web interface
During kickstart, I assign the name "newserver" to my host. Then in the post section, I download a list of serial numbers and hostnames/IP addresses, and reassign the hostname and address based on the systems' serial number.
then when I reboot, CUPS is working, and I can browse to the webpage at <hostname>:631, but if I click on any of the menus, it fails, because the link is still "newserver" instead of the new hostname. I can't find the name "newserver" in any of the CUPS configuration files.
How do I reconfigure CUPS to the new hostname? Do I need to just install CUPS after I change the hostname?
Thanks for your help!
|
|
|
08-07-2009, 09:01 PM
|
#2
|
LQ Guru
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,623
|
In my Ubuntu 9.04 system, the hostname resides in /etc/hostname. It also appears in etc/hosts. Try opening those files in a text editor as root and editing them.
That worked for me when I wanted to change the computer name from whatever the factory gave it to "hammerhead" (all my computers are named after sea creatures).
|
|
|
All times are GMT -5. The time now is 01:10 PM.
|
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
|
|