2017-02-14 8:07 GMT+01:00 Bruce Dubbs <[email protected]>:
> 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
>
>
>
try this as root:
echo hostname > /etc/hostname

> --
> 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
-- 
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

Reply via email to