maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Troubleshooting (https://talk.maemo.org/forumdisplay.php?f=6)
-   -   Changing Hostname on Nokia 770 (https://talk.maemo.org/showthread.php?t=8368)

Sunra 2007-08-02 00:32

Changing Hostname on Nokia 770
 
I have a nokia 770 with the 2007Hacker OS. I tried to change the hostname now I cannot use sudo gainroot I have no way of becoming root on the lpocal machine. I get the error sudo: unable to lookup via gethostbyname(). I can ssh into the nokia via ip addy as root but no local access as root.

How Can I fix this?

Thanx
SunRA

Milhouse 2007-08-02 01:07

Re: Changing Hostname on Nokia 770
 
Changing the hostname is not a good idea, lots of things fall apart. Set the hostname back to what it was originally.

Sunra 2007-08-02 01:51

Re: Changing Hostname on Nokia 770
 
Does anyone know what the default hostname is for the 2007hacker os?

Milhouse 2007-08-02 03:02

Re: Changing Hostname on Nokia 770
 
Try "Nokia-N800-48".

If you really want to change the hostname, you need to change it in both /etc/hostname and /etc/hosts.

Sunra 2007-08-02 04:38

Re: Changing Hostname on Nokia 770
 
Thanx for your help. I can now sudo gainroot but the hostname doesn't stay when I reboot. I've edited the /etc/hostname and the /etc/hosts files but still it doesn't stay. can you post your copies of these files so I can compare them. I don't know where my problem lies.

Thanx,

SunRA

Milhouse 2007-08-02 14:22

Re: Changing Hostname on Nokia 770
 
/etc/hostname

Code:

Nokia-N800-48
/etc/hosts

Code:

127.0.0.1 Nokia-N800-48 localhost

# The following lines are desirable for IPv6 capable hosts
# (added automatically by netbase upgrade)

::1    ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts


Sunra 2007-08-02 19:43

Re: Changing Hostname on Nokia 770
 
hmmm......... my file are the exact same but when I type hostname its blank and I cannot sudo to root.

Any Ideas?

Milhouse 2007-08-02 23:36

Re: Changing Hostname on Nokia 770
 
No, sorry. My advice: reflash and don't try changing it again! ;)


All times are GMT. The time now is 02:01.

vBulletin® Version 3.8.8