Thanks Mike, that did work. I am still curious as to why I had to do that when in my other images (that didn't have a problem) there is no need to.
Also, I get the hostname at the command prompt but when I use the hostname command, it returns nothing. Marcy, I did not run /sbin/SuSEconfig. I will now, but what exactly does that do? Thanks, Ryan -----Original Message----- From: Linux on 390 Port [mailto:[EMAIL PROTECTED] On Behalf Of Michael Krysiak Sent: Thursday, March 30, 2006 12:34 PM To: [email protected] Subject: Re: Setting Hostname in SuSE Linux image on VM Try using sysctl. It will set the hostname value found in /proc/sys/kernel/hostname. # sysctl -w kernel.hostname=myhostname You can place the above command in /etc/init.d/boot.local and it will be set on boot. Regards, Mike ------------------------------------------------------------------------ ------------------------------------------------------------------------ -------------------------------- This is a PRIVATE message. If you are not the intended recipient, please delete without copying and kindly advise us by e-mail of the mistake in delivery. NOTE: Regardless of content, this e-mail shall not operate to bind CSC to any order or other contract unless pursuant to explicit written agreement or government initiative expressly permitting the use of e-mail for such purpose. ------------------------------------------------------------------------ ------------------------------------------------------------------------ -------------------------------- Ryan Stewart <[EMAIL PROTECTED]> Sent by: Linux on 390 Port <[email protected]> 03/30/2006 12:24 PM Please respond to Linux on 390 Port <[email protected]> To [email protected] cc 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 ---------------------------------------------------------------------- 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
