Summary/Minutes from today's FESCo Meeting (2013-09-11)

"Jóhann B. Guðmundsson" johannbg at gmail.com
Wed Sep 11 23:30:18 UTC 2013


On 09/11/2013 10:59 PM, Lennart Poettering wrote:
> On Wed, 11.09.13 21:17, Marcela Mašláňová (mmaslano at redhat.com) wrote:
>
>> * #1161 fqdn should be clearly display at login and command prompt
>>    (mmaslano, 18:11:07)
>>    * AGREED: fqdn should be clearly display on login prompt, but not on
>>      commandline prompt (+7,-0,0)  (mmaslano, 18:17:19)
> What weird "decision" is this? What precisely has been decided here?

In this case that agetty displayed --long-hostname under Host: entry in 
/etc/issue which would make the login prompt look like this

Fedora release 20 (Rawhide)
Kernel 3.11.0-0.rc5.git6.1.fc20.x86_64 on an x86_64 (console)
Host: www.example.com <-- fqdn added


login:


>
> That /sbin/login should do a reverse name lookup on the hostname to turn
> it into an fqdn? That be really broken, if DNS hangs... You couldn't log
> in then anymore.

?

The other thing that I was proposing was that change the default bashrc 
and cshrc

[testuser at www ~]$ becomes --> [testuser at www.example.com ~]$


With the following changes..

bashrc

--- a/bashrc
+++ b/bashrc
@@ -38,7 +38,7 @@ if [ "$PS1" ]; then
    history -a
    # Turn on checkwinsize
    shopt -s checkwinsize
-  [ "$PS1" = "\\s-\\v\\\$ " ] && PS1="[\u@\h \W]\\$ "
+  [ "$PS1" = "\\s-\\v\\\$ " ] && PS1="[\u@\H \W]\\$ "
    # You might want to have e.g. tty in prompt (e.g. more virtual machines)
    # and console windows
    # If you want to do so, just add e.g.
-- 

And

cshrc

-- a/csh.cshrc
+++ b/csh.cshrc
@@ -16,11 +16,11 @@ endif
  if ($?prompt) then
    if ($?tcsh) then
      set promptchars='$#'
-    set prompt='[%n@%m %c]%# '
+    set prompt='[%n@%M %c]%# '
      # make completion work better by default
      set autolist
    else
-    set prompt=\[$user@`hostname -s`\]\$\
+    set prompt=\[$user@`hostnamectl --static`\]\$\
    endif
  endif

@@ -38,12 +38,12 @@ if ($?prompt) then
      switch($TERM)
        case xterm*:
          if ($?tcsh) then
-         set prompt='%{\033]0;%n@%m:%c\007%}[%n@%m %c]%# '
+         set prompt='%{\033]0;%n@%M:%c\007%}[%n@%M %c]%# '
          endif
          breaksw
        case screen:
          if ($?tcsh) then
-          set prompt='%{\033k%n@%m:%c\033\\%}[%n@%m %c]%# '
+          set prompt='%{\033k%n@%M:%c\033\\%}[%n@%M %c]%# '
          endif
          breaksw
        default:



>
> Or that /etc/hostname now has to contain an FQDN always? That be bogus
> too, it doesn't work for anything but single-homed servers...

I just assume these would turn up empty if not filled out.

> And where is this all supposed to be implemented?

In 3 components

>
> And why is this discussed at FESCO right at the beginning?

Because the setup maintainer wanted it to be discussed in wider audience 
( with what 5 different people participate in that discussion ) and that 
discussion let nowhere and I have better things with my free time 
dealing essentially with people that want to show of their bashrc foo 
failing to understand this was meant for an group of audience that did 
not know their bashrc foo hence not capable of overwriting it.

>
> The IRC discussion is not very enlightening, it really appears as if the
> folks pushing and discussing this have no idea what this actually takes
> to implement....

Lennart thanks for the vote of confidence and filing I guess filling the 
necessary patches to actually implementing this clearly showed that I 
did not know what I was doing but worried not I closed all the bugs that 
had those patches wontfix anyway so have a nice evening.

JBG


More information about the devel mailing list