Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Software
User Name
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.


Search this Thread
Old 08-07-2009, 04:20 PM   #1
Registered: Apr 2008
Location: Cleveland, Ohio
Distribution: SuSE, CentOS, Fedora, Ubuntu
Posts: 106

Rep: Reputation: 23
Question 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!
Old 08-07-2009, 08:01 PM   #2
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Mageia, Mint
Posts: 7,919

Rep: Reputation: 1494Reputation: 1494Reputation: 1494Reputation: 1494Reputation: 1494Reputation: 1494Reputation: 1494Reputation: 1494Reputation: 1494Reputation: 1494
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).


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
hostname changed esgaroth Fedora 12 08-23-2007 12:18 AM
hostname not being changed irfanhab Linux - Networking 3 07-31-2006 03:53 PM
Knoppix Changed Hostname deadlove75 Linux - Software 4 04-10-2006 12:15 PM
hostname changed - why? greg108 Fedora 3 12-31-2004 07:41 PM
changed hostname now problems degraffenried13 Linux - General 2 02-21-2004 06:15 PM

All times are GMT -5. The time now is 12:21 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration