OpenSUSE Network :: How To Change Hostname In SLES11
Jan 11, 2010
How do you change the hostname in SLES11? I have normally used the /etc/hostname file and rebooted the server in other distros. I only notice the way to change it is in yast2 -> network devices -> network settings -> Hostnames. I am looking for where it is stored because I want to write a script to update it (apart of a server deployment process).
I've a little trouble: I reinstalled on my notebook OpenSUSE 11.3 yesterday and I'm unable to change the hostname. I modified it, but when I type on terminal
Code: uname -a
it doesn't give the right answer but returns
Code: host
I don't know where I wrong because I did this action many times with Opensuse 11.1 and 11.3 without any problem.
I installed openSUSE on my notebook with an usb drive using openSUSE 11.4 KDE LIVE iso. The installation process set the name to "linux-ygrl" which I don't really like. (I probably just missed the setting during the installation.). I tried to change it through YaST -> Network -> Hostnames and I set everything where needed to the new name and restarted but the changed weren't applied. I searched the web and found out about the /etc/HOSTNAME file which still contains "linux-ygrl". Now I could change it manually but I was wondering if there is a GUI for it? (I mean, openSUSE has for alsmost everything a GUI.
My colleague changed the hostname using "system-config-network", but now I want to change it using any how (either system-config-network or /etc/sysconfig/network). Even I changed it from /etc/sysconfig/network. But when I reboot the system its getting old hostname. Is there some other place to change hostname?
I setup the hostname for my linux machine to Linux. If I try ping Linux from the same computer it works. If I try from another computer inside my network the host can not be resolved. If I ping the IP from another computer it works.
I take a look in my router at DHCP client list and my linux machine doesn't have the Hostname set up.
How to broadcast the hostname to the entire network?
So I've got a Dell Poweredge R410 with SUSE Linux Enterprise Server 11 installed and my boss wants me to configure it like this: Eth0 - No IP address (on general tab, activation set to "never") Eth1 - No IP address (on general tab, activation set to "never") Eth2 - No IP address (on general tab, activation set to "never") Eth3 - No IP address (on general tab, activation set to "never") bond0 - eth0, eth1, eth2, eth3 selected (Activation set to "On boot") No IP Address bridge0 - bond0 selected (Activation set to "On boot"). IP, subnet and hostname defined.
The DNS and routing has all been set correctly. The problem is when I set the network configuration as above I cannot connect to the network I'm unable to ping the gateway. I only have 1 cable connected and it's plugged into eth0 but apparently this doesn't matter. If I delete the bond and bridge and instead apply the settings to eth0 it connects no problem but my boss wants to use load balancing and states that that setup should work.
I cannot uncheck the "Change Hostname via DHCP" box because it is disabled. Next to it says "No interface with dhcp". How can I fix it? I'm using OpenSUSE 11.3/KDE4
Just completed a fresh netinstall of OpenSUSE. This machine previously had a Ubuntu install on it, but I was having all sorts of issues and decided I required a fresh start. The install itself went acceptably, although I ended up manually fixing GRUB.Now the system is running, I've got a ridiculous problem, in that I'm still seeing the old hostname- It used to be ubuntu-server, but should now be unimatrix-001.Checked both the obvious places (/etc/HOSTNAME & YaST), but the correct hostname is in both of them.
I'm trying to use LDAP with TLS but allways got Connect error. The message error is TLS : hostname does not match CN in peer certificate So I've tried to generate new certificate with my hostname for CN but my LDAP still don't want to work with TLS.
I use opensus 11.3. I used YAST2 for crating my CA and certificates.
I went into Yast and disabled the SYSLOG service, ignoring the warning of which services would be affected, I went ahead anyway and stopped it. Sure enough, a handful of other services stopped as well.Now I have almost recovered the PC from this foolish mistake of mine, the only problem I seem to be stuck with is I am now unable to locate the computer on my LAN by hostname ... does anyone know which service I should restart please (if it helps, the computer can resolve DNS names such as Google.com OK)?
Anyone know what this signifies in the Apache logs files:
Code: [Tue May 04 20:56:06 2010] [error] [client *******] client sent HTTP/1.1 request without hostname (see RFC2616 section 14.23): /w00tw00t.at.ISC.SANS.DFind:) [Tue May 04 20:56:06 2010] [error] [client *********] client sent HTTP/1.1 request without hostname (see RFC2616 section 14.23): /w00tw00t.at.ISC.SANS.DFind:) [Tue May 04 21:05:18 2010] [error] [client ********] client sent HTTP/1.1 request without hostname (see RFC2616 section 14.23): /w00tw00t.at.ISC.SANS.DFind:) [Tue May 04 21:05:18 2010] [error] [client ********] client sent HTTP/1.1 request without hostname (see RFC2616 section 14.23): /w00tw00t.at.ISC.SANS.DFind:)
.site gets appended to the end of the hostname every system bootup for me (e.g. hostname.site), even though I've changed the hostname in both the Network Settings and Hostnames sections of YaST. How can I stop this?
I've been running a SuseStudio-built VM for a few weeks with no issues. I built a new one recently, and now I can't configure a new vhost in Apache using the http-server module. It gives me this error. Screen shot 2010-11-06 at 11.42.24 AM.png. Why YaST suddenly decided that my hostnames aren't valid?
I have SLES11 installed on server. I have attached 2 SAS cables which are connected to External storage device. I have connected 3 machines to external storage device. It shows total 6 ID�s. I want to know which 2 are from which machine. I would like to find out the WWID number of HBA�s on SLES 11 machine.
Currently I run into a rather confusing case. I met bellow mount errors when I was about to enter the rescue mode on SLES11:
Code: Loading Rescue System (1/2) (19784 kB) - 100% Loading Rescue System (2/2) (10268 kB) - 100% Reading Driver Update...
[Code].....
Then I tried to extract the rescue image and to see what's wrong in the scrip, but it turn out that there is no boot script under /etc/init.d directory, either a similar one that may as it.
where is the script or which is the script does the mount things in rescue image?
PLUS, I can see /etc/init.d/boot script in SLES10 rescue image.
I have a server that is on both a standard network and a virtual network, as follows: server1 attached to standard network server1 acting as Dom0 with two linux DomU guests (under Xen) I only have one network card. How do I configure server1 to have a different hostname on the standard network than on the virtual network? Here are the relevant network configuration files for server1:
I tried to change hostname through ssh. Old hostname = server1 New hostname = server1.domain.local
I changed the hostname by editing the /etc/hostname file Old: /etc/hostname server1 New: /etc/hostname server1.domain.local
Then I executed /etc/init.d/hostname.sh, and get as below, looks OK! hostname -f server1.domain.local hostname server1.domain.local hostname -s server1
The logs are still just showing server1. Example: tail -f /var/log/auth.log Apr 15 13:30:01 server1 CRON[22783]: pam_unix(cron:session): session opened for user root by (uid=0) Apr 15 13:30:02 server1 CRON[22783]: pam_unix(cron:session): session closed for user root
Do I really have to reboot, or is this normal behaviour that it does not show the full hostname?
I have changed my hostname to - ns1.searchdns.net by
1) editing the files /etc/sysconfig/network
2) then run the command - echo "ns1.searchdns.net" > /proc/sys/kernel/hostname
3) then restarted the service /etc/init.d/network restart
I run the command hostname and it returns ns1.searchdns.net. But I am also supposed to modify the /etc/hosts file. I am not sure about this. The content looks like this at the moment
I changed my hostname by running sudo gedit /etc/hostname and changing the word there. Then I discovered that hadn't done anything so I used sudo hostname newname. My hostname was changed then but I tried to run sudo gedit /some/thing/else.txt and it said:
Code: sudo: unable to resolve host newname No protocol specified
(gedit:5512): Gtk-WARNING **: cannot open display: :0.0 and it says the same with sudo or gksudo for any program that has a gui including synaptic. I can run vi but I have no idea how to use it. I think the problem lies in the lines in /etc/hosts which still say
[Code]....
with the problem being that it still says localhost and my local IP address are ubuntu instead of newname. So if you could tell me how to edit that with vi or some other command line program
I have a problem with server bcs of the machine name. I'm wondering how to change the server name to it's IP. bcs now it has name "chrochne". I've found hostname in /etc/host and in /etc/hostname. But I'm afraid of changing it in this files. I'm using webmin and virtualmin to admin the server so can I change the name somewhere in the GUI?
I'm trying to write a script to change the hostname of the computer at the first boot. The reason why I need this script is because I manage a number of training computer and I use Ghost to re-image it every 2 months. The script will read the mac address and the hostname from a csv file and compare it with the mac address on the current machine. I have stuck and don't know what is wrong as I'm new with script.
Code: #!/bin/bash # Description # Change HOSTNAME for each machine from CSV file # # CSV File Format # Each line contains two columns - mac address & hostname # Description End .....
I built the system with one name and now want to change it.I do the usual things. change the /etc/hosts file change the hostname with the command hostname newname changed /etc/sysconfig/network and then mail stops working. Put it back to the old name and it works fine.So I am guessing I am missing something in the configuration for sendmail. I checked the sendmail.cf file under /etc/mail and no reference back to the hostname was found.I also tried the GUI on the console to change the hostbname.
first time user of F14 here. Used PCLinuxOS so far. Installed F14 fine , got samba up, set the hostname of the box to fedora.linux BUT when I connect to my wireless router (Belkin) the hostname shown in the routers DHCP client list is different: Router shows:
IP Address-----Host Name-----------------MAC Address 192.168.2.4----ralf-FK790AA-ABA-m9---00:22:5F:17:dE:98 In terminal it shows [dagaz@fedora ~]$ hostname fedora.linux [dagaz@fedora ~]$
When I search the forum or google, I end up with hostsfile or samba howtos. Those settings all show the right name : fedora.linux Why does the router show ralf-FK7 etc..? and where can I change it?