LinuxQuestions.org
Help answer threads with 0 replies.
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-07-2009, 04: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, 08: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,322
Blog Entries: 28

Rep: Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141
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



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

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

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