On Mon, 13 Feb 2017 07:34:07 +0600 ssmtpmailtesting ssmtpmailtesting <ssmtpmailtest...@gmail.com> wrote:
> How is hostname set? I'm not using lfs-bootscripts. After login, I see > root@(none). Why is this? If I do sysctl kernel.hostname, it shows > can't open /proc/sys... no such file or directory. But /etc/hostname > has "myhostname". echo myhostname > /proc/sys/kernel/hostname sets the hostname to myhostname. You can read the hostname via cat /proc/sys/kernel/hostname There is also a /proc/sys/kernel/domainname If you don't have the /proc/sys filesystem, you'll have to enable that feature in the kernel. Cheers, Mike Shell -- http://lists.linuxfromscratch.org/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/blfs/faq.html Unsubscribe: See the above information page Do not top post on this list. A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing in e-mail? http://en.wikipedia.org/wiki/Posting_style