The way the AA1 starts up its network is a little peculiar. It gets its hostname form /etc/sysconfig/network (if not, it calls itself localhost.localdomain). But, annoyingly it rewrites its own /etc/hosts file every reboot, so anything in /etc/hosts you put there will be lost.
However, because of a problem in the way its building its hosts file it'll only work if the HOSTNAME in /etc/sysconfig/network is not an FQDN (i.e. mycomputer not mycomputer.mydomain) because it'll put mycomputer.mydomain into your hosts file (twice) and set the machine's name to mycomputer and so it goes unrecognized by xfce (this is actually fixable, as its just a small problem in the startup script).
The script, /etc/rc.d/rc.5 reads (near the top):
Code:
linpus_host="`cat /etc/sysconfig/network | grep HOSTNAME | cut -d "=" -f2`"
echo "127.0.0.1 localhost localhost
127.0.0.1 ${linpus_host} ${linpus_host}
" > /etc/hosts
echo ${linpus_host} > /etc/HOSTNAME
/bin/hostname $(cat /etc/HOSTNAME | cut -f1 -d .)
Where it should actually read (or something like this)
Code:
linpus_fqdn_host="`cat /etc/sysconfig/network | grep HOSTNAME | cut -d "=" -f2`"
linpus_host="`cat /etc/sysconfig/network | grep HOSTNAME | cut -d "=" -f2 | cut -f1 -d .`"
echo "127.0.0.1 localhost localhost
127.0.0.1 ${linpus_fqdn_host} ${linpus_host}
" > /etc/hosts
echo ${linpus_fqdn_host} > /etc/HOSTNAME
/bin/hostname $(cat /etc/HOSTNAME | cut -f1 -d .)
IMHO, this is a pretty dodgy way of dealing with naming (from acer or linpus), if you wanted your own hosts file, that you could do something like this:
Code:
linpus_fqdn_host="`cat /etc/sysconfig/network | grep HOSTNAME | cut -d "=" -f2`"
linpus_host="`cat /etc/sysconfig/network | grep HOSTNAME | cut -d "=" -f2 | cut -f1 -d .`"
echo "127.0.0.1 localhost localhost
127.0.0.1 ${linpus_fqdn_host} ${linpus_host}
" > /etc/hosts
cat /etc/myhosts >> /etc/hosts
echo ${linpus_fqdn_host} > /etc/HOSTNAME
/bin/hostname $(cat /etc/HOSTNAME | cut -f1 -d .)
and add your hosts to a file called /etc/myhosts
as for why this is happening:
Code:
127.0.0.1 localhost localhost
127.0.0.1 ONE.Belkin
localhost.localdomain ONE.Belkin
localhost.localdomain
Thats just wierd. its like something is setting you hostname somewhere to ONE.Belkin\nlocalhost.localdomain. Is there anything odd in /etc/sysconfig/network?
I originally thought it was getting the hostnames from dhcp, but it appears thats not the case at all.