LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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-07-2009, 05:20 PM   #1
slinx
Member
 
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, 09:01 PM   #2
frankbell
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
Blog Entries: 28

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


Reply


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

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

All times are GMT -5. The time now is 01:10 PM.

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