Re: [lfs-support] How can I set hostname?
ssmtpmailtesting ssmtpmailtesting wrote: I added: echo myhostname > /proc/sys/kernel/hostname Still same prompt = root@(none) But if I install lfs-bootscript, then it changes to root@myhostname. I also added /etc/fstab and /etc/inittab Did I miss anything? Yes. For systemd, Section 7.2.3. After bootup, use hostnamectl. -- Bruce -- 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
Re: [lfs-support] How can I set hostname?
I added: echo myhostname > /proc/sys/kernel/hostname Still same prompt = root@(none) But if I install lfs-bootscript, then it changes to root@myhostname. I also added /etc/fstab and /etc/inittab Did I miss anything? -- 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
Re: [lfs-support] How can I set hostname?
On Mon, 13 Feb 2017 07:34:07 +0600 ssmtpmailtesting ssmtpmailtesting 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