hostname wont change

Post here if you are a new Porteus member and you're looking for some help.
Post Reply
mailmegx
White ninja
White ninja
Posts: 29
Joined: 23 Mar 2012, 18:44
Distribution: Porteus 1.2 XFCE 64bit
Location: Cyprus

hostname wont change

Post#1 by mailmegx » 03 Aug 2012, 10:32

Hi all

Im using Porteus 1.2 64bit XFCE

previous version even up till 1.2rc2 I had changed my hostname but for some reason in the final it does not apply!

Code: Select all

root@porteus:/mnt/sys/home/gx# hostname 
porteus
root@porteus:/mnt/sys/home/gx# cat /etc/HOSTNAME 
gx_xps.example.net
root@porteus:/mnt/sys/home/gx# cat /etc/hosts
#
# hosts		This file describes a number of hostname-to-address
#		mappings for the TCP/IP subsystem.  It is mostly
#		used at boot time, when no name servers are running.
#		On small systems, this file can be used instead of a
#		"named" name server.  Just add the names, addresses
#		and any aliases to this file...
#
# By the way, Arnt Gulbrandsen <agulbra@nvg.unit.no> says that 127.0.0.1
# should NEVER be named with the name of the machine.  It causes problems
# for some (stupid) programs, irc and reputedly talk. :^)
#

# For loopbacking.
127.0.0.1	localhost
# This next entry is technically wrong, but good enough to get TCP/IP apps
# to quit complaining that they can't verify the hostname on a loopback-only
# Linux box.
127.0.0.1	gx_xps.example.net gx_xps

# End of hosts.
root@porteus:/mnt/sys/home/gx# 

Any idea what Im doing wrong? /etc/hosts and /etc/HOSTNAME are in rootcopy

Regards

GX

Posted after 15 minutes 20 seconds:
I found this file /etc/NetworkManager/NetworkManager.conf which has hostname=porteus

I commented the line and am going to reboot.. wish me the best ;)


GX

Posted after 3 minutes 51 second:
Ok that did the trick so in case anyone needs to know

GX

bour59
Samurai
Samurai
Posts: 118
Joined: 29 Dec 2010, 08:10
Distribution: porteus v3.2.2-xfce
Location: France

Re: hostname wont change

Post#2 by bour59 » 03 Aug 2012, 13:46

same issue for me in V1.2 32bits
your soluce seems good
many thanks

Post Reply