Discussion:
[blfs-support] /etc/issue issue
Casey Daniels
2015-05-23 03:23:47 UTC
Permalink
Hello,
This maybe a stupid question, and can't seem to find the answer
searching as it appears each disto does it a little bit different and
couldn't find a LFS specific answer.

While not critical it is annoying, I have edited my /etc/issue file for
the log on screen to show ***@domain name. However all the log on
screens say

***@unknown_domain

how in the world do I get the domain name to show up?

Thank You,
Casey
--
http://lists.linuxfromscratch.org/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscrib
Bruce Dubbs
2015-05-23 03:41:41 UTC
Permalink
Post by Casey Daniels
Hello,
This maybe a stupid question, and can't seem to find the answer searching as
it appears each disto does it a little bit different and couldn't find a LFS
specific answer.
While not critical it is annoying, I have edited my /etc/issue file for the log
how in the world do I get the domain name to show up?
That's actually controlled by the getty you are running. LFS runs agetty by
default. The agetty man page has all the escapes listed. I think you want \O
(capital oh) or \o (lowercase oh).

Do you have your domain set in your /etc/hosts file?

-- Bruce
--
http://lists.linuxfromscratch.org/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: S
Paul Rogers
2015-05-23 06:01:47 UTC
Permalink
Post by Casey Daniels
While not critical it is annoying, I have edited my /etc/issue file
for the log on screen to show hostname at domain name. However all
the log on screens say
correcthostname at unknown_domain
how in the world do I get the domain name to show up?
Not knowing exactly HOW you tried to get the domain name in issue, there
are a few places where it should show up for login to find it. One is
resolv.conf, the other is the FQDN in hosts. My bet would be on
resolv.conf.
--
Paul Rogers
***@fastmail.fm
Rogers' Second Law: "Everything you do communicates."
(I do not personally endorse any additions after this line. TANSTAAFL
:-)
--
http://www.fastmail.com - Faster than the air-speed velocity of an
unladen european swallow
--
http://lists.linuxfromscratch.org/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: S
Casey Daniels
2015-05-24 01:35:04 UTC
Permalink
Post by Paul Rogers
Post by Casey Daniels
While not critical it is annoying, I have edited my /etc/issue file
for the log on screen to show hostname at domain name. However all
the log on screens say
correcthostname at unknown_domain
how in the world do I get the domain name to show up?
Not knowing exactly HOW you tried to get the domain name in issue, there
are a few places where it should show up for login to find it. One is
resolv.conf, the other is the FQDN in hosts. My bet would be on
resolv.conf.
I have the \n@\o in the issues file (among other things) Everything
else works fine. Its just the \o is returning "(none)"

hostname -f and hostname -d work fine.

Casey
--
http://lists.linuxfromscratch.org/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the abov
Bruce Dubbs
2015-05-24 01:51:40 UTC
Permalink
Post by Casey Daniels
Post by Paul Rogers
Post by Casey Daniels
While not critical it is annoying, I have edited my /etc/issue file
for the log on screen to show hostname at domain name. However all
the log on screens say
correcthostname at unknown_domain
how in the world do I get the domain name to show up?
Not knowing exactly HOW you tried to get the domain name in issue, there
are a few places where it should show up for login to find it. One is
resolv.conf, the other is the FQDN in hosts. My bet would be on
resolv.conf.
fine. Its just the \o is returning "(none)"
hostname -f and hostname -d work fine.
While it really isn't optimal, you could hard code the domain:

\***@example.com

But have you checked /etc/hosts? You need something like:

127.0.0.1 localhost
a.b.c.d myhost.example.org myhost

-- Bruce
--
http://lists.linuxfromscratch.org/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubs
Casey Daniels
2015-05-25 18:47:13 UTC
Permalink
Post by Bruce Dubbs
Post by Casey Daniels
Post by Paul Rogers
Post by Casey Daniels
While not critical it is annoying, I have edited my /etc/issue file
for the log on screen to show hostname at domain name. However all
the log on screens say
correcthostname at unknown_domain
how in the world do I get the domain name to show up?
Not knowing exactly HOW you tried to get the domain name in issue, there
are a few places where it should show up for login to find it. One is
resolv.conf, the other is the FQDN in hosts. My bet would be on
resolv.conf.
else works
fine. Its just the \o is returning "(none)"
hostname -f and hostname -d work fine.
127.0.0.1 localhost
a.b.c.d myhost.example.org myhost
-- Bruce
Originally I had \O but that was returning "unknown_domain", then I
realized I was supposed to have \o, but that started returning "(none)"
I went back to \O and now its working fine.

So I guess \o and \O both return the domain name, but they get them from
different places? But anyway its working.

Casey
--
http://lists.linuxfromscratch.org/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsu
Continue reading on narkive:
Loading...