Firefly Open Source Community

Title: how to set the hostname on android [Print This Page]

Author: macdam    Time: 9/7/2015 03:56
Title: how to set the hostname on android
Hi,

I can't find any solution to set the hostname on android

I've tried to add the value in the /system/build.prop file but since I've done
"mount -o remount,rw /system" the RK3288 doesn't boot anymore, kernel stars but not the android layer

any help is more than welcomed
Thx
Mathieu
Author: busybee    Time: 9/7/2015 17:13
Which hostname do you want to change?
Please attach a screenshot.
Author: macdam    Time: 9/8/2015 17:48
Hi

I net the value net.hostname to be set so that I can adresss our 192 Firefly plugged on the network using our local DNS
Author: busybee    Time: 9/11/2015 11:07
In /init.rc, there's the hostname setting:
on boot              
# basic network init      
    ifup lo
    hostname localhost
    domainname localdomain                       

But I doubt that you want to modify that file.

You can also use busybox to set hostname:
   busybox hostname  myname

Also, there's /system/etc/hosts, which has the list the ip and hostname.
Author: macdam    Time: 9/25/2015 23:45
is /init.r the right place to do a ifuo etho in dhcp mode?

/system/etc/hosts is read only fs, I already tryied do to a remount rw of fs /system but it lead to the system failure and the I never succeed to repair the firefly installation which starts the kernel but not the android layer.

what I need it to set this value on system boot
[net.hostname]: [android-6a369c298c876691]






Welcome Firefly Open Source Community (https://bbs.t-firefly.com/) Powered by Discuz! X3.1