When I mess around with HOSTNAME I use rpl (http://www.laffeycomputer.com/rpl.html), signal shutdown and then xautolog the guest.
For SUSE SLES9 rpl makes changes in the following files: linux5:~ # uname -r 2.6.5-7.252-s390x linux5:~ # rpl -Rs "linux5" "linux6" /etc Simulating replacement of "linux5" with "linux6" (case sensitive) (partial words matched) The files listed below would be modified in a replace operation. /etc/HOSTNAME /etc/ssh/ssh_host_dsa_key.pub /etc/ssh/ssh_host_key /etc/ssh/ssh_host_key.pub /etc/ssh/ssh_host_rsa_key.pub /etc/postfix/main.cf /etc/aliases.db I'm not sure if there are better ways to do this, but this has worked for me for quite a while now. Regards, Kevin -----Original Message----- From: Linux on 390 Port [mailto:[EMAIL PROTECTED] On Behalf Of Ryan Stewart Sent: Thursday, March 30, 2006 9:25 AM To: [email protected] Subject: Setting Hostname in SuSE Linux image on VM Hi all, Does anyone know the proper way to set the hostname in SuSE. I had a problem recently with the modprobe utility. I was conversing with Novell about the issue via email and after spending some time on the problem (since this was just a test image), I was going to reinstall. I played with it a little longer and figured out when I compared the file /sbin/modprobe to the same file on another image, they were different. So I copied the file from the good image to the bad one. Everything works (or so it seems to so far), but at my prompt I have a hostname of (none). For some reason I cannot set the hostname using the hostname command either. I have added it to the /etc/hosts file. The hostname is correct in the /etc/HOSTNAME file. One thing I noticed is in the /proc/sys/kernel/hostname file it says (none) for the hostname. I am not sure what else to check or change. Anyone have any thoughts on the issue? Thanks, Ryan Stewart Indian River Community College [EMAIL PROTECTED] ---------------------------------------------------------------------- For LINUX-390 subscribe / signoff / archive access instructions, send email to [EMAIL PROTECTED] with the message: INFO LINUX-390 or visit http://www.marist.edu/htbin/wlvindex?LINUX-390 ---------------------------------------------------------------------- For LINUX-390 subscribe / signoff / archive access instructions, send email to [EMAIL PROTECTED] with the message: INFO LINUX-390 or visit http://www.marist.edu/htbin/wlvindex?LINUX-390
