Ubuntu Servers :: Possible To Change Hostname Of Machine In GUI
Nov 27, 2010
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?
View 9 Replies
ADVERTISEMENT
Apr 1, 2010
I want to change the Hostname of my Red Hat9 Linux machine using command line. By default it show me as following
[root@localhost root]#
I want to see it as
[root@pc1 root]#
Is there any way to change host name?
View 26 Replies
View Related
May 3, 2011
I just upgraded to Ubuntu 11.0.4 (from 10). In my /etc/hostname file, I defined my machine's name, "my-machine". From the server, I'm able to SSH to myself,
ssh dave@my-machine
However, from another machine in the same network, I'm not able to SSH
Code:
davea-mbp2:systems davea$ ssh dave@my-machine
ssh: Could not resolve hostname my-machine: nodename nor servname provided, or not known
However, I'm able to SSH in using the machine's IP address. how I get my machine name recognized on the network?
View 1 Replies
View Related
Mar 26, 2011
I admit I am a little green with the "Bourne Again Shell" (Bash), even though I was always not as proficient with the Bourne or Korn shell as with C Shell. From recent research the public sway is to Bash over tcsh. I can see I have been away from Linux/UNIX way to long. Running a network of workstations (upto 6) and servers (2) running RH Enterprise Linux 5.4 plus in the same network is an old DEC Alpha running Tru64 UNIX (don't know which version): I looking for a method to get the hostname I am logged in on to use in a Bash (or if necessary sh) script. This is to be added to an auto_start shell script start up our application on Linux workstation and servers.
View 7 Replies
View Related
Oct 23, 2009
At school can connect to my computer via SMB/Samba and VNC from the Windows Machines, but not by hostname (I still cannot VNC in at home on my desktop computer and have yet to try Samba there because I wanna setup Samba there from the comfort of my laptop and therefore need VNC first). How come I cannot access this machine by it's hostname?
View 4 Replies
View Related
Jul 24, 2010
It seems whenever i create a folder it creates the folder as untitled folder, but i can't change the folder name it just says "you don't have permission to rename item" but yet i created the folder and it is there. One thing i have noticed is that once i enter a folder it won't even let me move the folder.
View 6 Replies
View Related
Nov 2, 2010
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
View 2 Replies
View Related
Apr 15, 2010
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?
View 10 Replies
View Related
Jan 19, 2011
Is there any way to change Hostname in Fedora 14?
View 4 Replies
View Related
Aug 12, 2010
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
127.0.0.1 localhost.localdomain localhost
::1 localhost6.localdomain6 localhost6
192.168.0.20 abc.com
What should my host file look like now? I am not sure if I should also modify the second line or delete it etc.
View 1 Replies
View Related
Oct 1, 2009
Yesterday, while trying on establishing mobile broadband, my hostname changed, and I can't make it yet. My /etc/hosts is
1 127.0.0.1 pc-194-101.fysik.uu.se localhost.localdomain localhost
2 127.0.0.1 pc-194-101.fysik.uu.se roddur
3 ::1 localhost.localdomain roddur
The second line I edited but after a reboot it inserted the first line all automatically and my /etc/sysconfig/network is
1 NETWORKING=yes
2 HOSTNAME=roddur
What I have to do if I have to change my hostname to "roddur"?
View 2 Replies
View Related
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).
View 9 Replies
View Related
Apr 10, 2011
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.
View 9 Replies
View Related
Jan 3, 2010
I have installed a ubuntu 9.10 server to use mostly as a fileserver. When I installed the server I set it up as DHCP and later on I have changed the /etc/network/interfaces file, the /etc/hosts file and the /etc/hostname file. I have the ip 192.168.1.100 set on the server and I can ping and SSH this address. But I can not ping my server by it's hostname enighet. I am setting up a NFS server and I would like to use my servers hostname when I do this. Why can I not ping my server by it's hostname? These are the 3 files I have changed...
Code:
johan@enighet:~$ cat /etc/network/interfaces
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
# The loopback network interface
auto lo
[Code]....
View 2 Replies
View Related
Dec 22, 2010
I've looked at several tutorials and since i'm a newb I can't figure them out. I'm trying to set my hostname on my LAMP 10.04. What files do I need to configure? (all IP's below are fake)
Here are the first lines from /etc/apache2/sites-available/default
Code:
<VirtualHost 111.111.111.111:80>
ServerAdmin webmaster@localhost
/etc/apache2/ports.conf has these lines after the comments
[Code]....
View 4 Replies
View Related
Jun 22, 2011
I am trying to set up a web server, i have put in a hostname.In terminal command: hostname shows 'promisedland, but hostname -F gives me name or service not known.How do I associate hostname properly, I have registered a hostname through DynDNS.I can access the page in my browser so I know it is there, I see the blank "u made it page".I just want to host a web server w/ a directory to my shared files (movies, music etc) that are on my server.
View 2 Replies
View Related
Aug 29, 2010
How generally to change the hostname. When the system was installed the there was given random hostname and I am wondering how to change it.
View 3 Replies
View Related
Mar 14, 2011
When browsing in WinXP Windows Explorer to view an OpenSUSE computer, the displayed name is:
Samba 3.5.4-5.3.1-2489-SUSE-SL11.3 (*hostname*)
Other Windows computers display as:
[computer description]([hostname])
How can I change the "computer description" within OpenSUSE?
View 3 Replies
View Related
Jan 15, 2011
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.
csv format:
Code:
00:11:22:33:44:55 host01
00:11:22:33:44:56 host02
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 .....
View 7 Replies
View Related
May 4, 2010
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?
View 5 Replies
View Related
Aug 18, 2010
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.
View 3 Replies
View Related
Mar 3, 2010
I have two computers.
Computer A = windows 7.
Computer B = Ubuntu Server 9.10
Computer B automatically receives an IP address from my router.
I can ping computer B from computer A using the IP address. I cannot ping computer B from computer A using its hostname.
My router did not show a hostname under it's active clients table. After some searching I found a threat where somebody suggested modifying /etc/dhcp3/dhclient.conf and adding 'send hostname "blahblah"' This allowed me to see the hostname in my router but I still cannot resolve it from my windows box.
View 9 Replies
View Related
May 11, 2011
I saw in the tutorial "The Perfect Ubuntu 11.04 Server ISPConfig3" that it is possible to turn the internal ip into a hostname.
Example: 192.168.1.170 -> myserver.example.com
Example: 192.168.1.128 -> aserver.inet
However, when I edit my /etc/hosts file and after I echo the name to the /etc/hostname file, it still doesn't work. I am using Ubuntu Server 11.04 (Natty Narwal)
- ChosenOreo
View 2 Replies
View Related
May 6, 2011
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?
View 1 Replies
View Related
Apr 1, 2011
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.
View 9 Replies
View Related
Dec 14, 2010
I am looking for a way via script to change a systems hostname and IP address!
View 1 Replies
View Related
May 25, 2010
I just built out an Ubuntu Server 10.04.
My problem is setting the hostname. I cloned the machine, then normally on the clone, I would change the /etc/hostname and /etc/hosts file.
However, when I do this, upon restart, I get the message, "init hostname main process (some process number) terminated with status 1"Then, when the machine finally boots, the hostname is set to (none). Literally has braces like: user@(none):
I've tried: sudo hostname machine_name but it says can't resolve hostname (none).
I've Google'd around a lot but can't get it. It may have something to do with 10.04? I have been using 9.04, 9.10 with no problems.
eric@(none):~$ cat /etc/network/interfaces
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
code....
View 9 Replies
View Related
Jul 13, 2010
I'm facing bit of a conundrum with my new server. It is essentially a distributed-virtual Plesk Virtuoso container with a rather simple LAMP setup (PHP5 etc) and virtual hosting. Running 10.04 LTS.
The issue is that on each reboot, the /etc/hosts and /etc/hostname files are reset with their original configs causing the virtual hosting to break, i.e. rather than hosting the vhosts correctly, it essentially routes all traffic to /var/www, or essentially 000-default ~ this beats the whole point of vhosting in the first place!
Is there any way to get around them being overwritten at boot? A very crude workaround would be to set a script to load at boot via init.d and have it rewrite both files to their correct configs - of course, I have no idea as to the point during boot at which they get replaced.
View 2 Replies
View Related
Oct 21, 2010
I have a ubuntu server 10.04 that will not boot. I saysno ip address specified and hostname not found refer to mount cifs blah blah blahmountall mount /directory/share [863] terminate with status 32I know its because I had a share mounted at boot but the server cannot mount the share for some reason. is there a way around this so I can boot the machine.I can ping the server. I just cant ssh to it. I need to get to a prompt some how so I can remove the mount from fstab.
View 1 Replies
View Related
Jan 3, 2010
I have a network of 2 WinXP machines and one linux box. I have fiddled around with the settings as you do when learning. The network is working. The network neighbourhood on the WinXP machines recognise the linux box and vice versa, (the linux Places|Network recognises the 2 WinXP). I can Ping the linux box using its hostname from a WinXp. But I cannot do the reverse. I get an 'unknown host' response. I can ping the linux to itself using its hostname.
View 7 Replies
View Related