Created attachment 788569 [details] bashrc - show full hostname at command prompt Description of problem: With the introduction of machine slices we should start showing full hostname at login prompt and shell(s) for administration convenience How reproducible: Steps to Reproduce: 1. 2. 3. Actual results: Expected results: Additional info:
Created attachment 788570 [details] cshrc - show full hostname at command prompt
Sounds ok... thanks for suggestion.
Thinking a bit more about this change and I don't think this is a good default. Full hostname can be pretty long - and I'm quite sure there will be disappointed users after such change. Can you please bring this up on Fedora devel list so we can have wider audience? (Personally, I prefer the shorter hostname)
(In reply to Ondrej Vasik from comment #3) > Thinking a bit more about this change and I don't think this is a good > default. Full hostname can be pretty long - and I'm quite sure there will be > disappointed users after such change. Can you please bring this up on Fedora > devel list so we can have wider audience? (Personally, I prefer the shorter > hostname) Hmm how otherwise are you going to distinguished logging and commant prompt from 1000 containers all starting with www.<foo> or ns1.<bar> or sql.<xyz> or *. Dan talk about him and the other Dan ( libvirt ) spawned 8000 containers on a single 64GB host at flock so we are talking about some serious problem to be solve here.
Yes, I can imagine the usecases for the long prompt - however it can be changed on user level in ~/.bashrc or ~/.cshrc file. For common user, short prompt is usually just fine - I have usually only few ssh sessions and short hostname is enough there. With multiple containers, of course long name is better option (if the hostname is not too long).
Feedback requested here [1] for both defaulting to long hostname as well as setting empty root password. 1.https://lists.fedoraproject.org/pipermail/devel/2013-August/188107.html
FESCO ticket https://fedorahosted.org/fesco/ticket/1161
As a side note - what about "compromise" proposal? Keeping short hostname in prompt, but adding long hostname to the header of the terminal (xterm,gnome-terminal, whatever...)? This could help differentiation and should be ok (unnoticed by common users).
(In reply to Ondrej Vasik from comment #8) > As a side note - what about "compromise" proposal? Keeping short hostname in > prompt, but adding long hostname to the header of the terminal > (xterm,gnome-terminal, whatever...)? This could help differentiation and > should be ok (unnoticed by common users). Sorry for late response been on a archery contest in sweden What you propose is not an option since the administrator might not be running "Fedora" to administrate "Fedora" as well as the fact that the short hostname is the problem and is something we should never have defaulted to. So our options are either to remove it completely thus forcing administrators to run a command to figure out which servers or containers they are "in" or show full hostname and have administrators that do not want it manually overwrite it in their home directory. The latter is better choice to default to since it helps the inexperienced administrators, as in the group that is more likely to a) not knowing how to edit bashrc or manually overwrite it and b) be prone to make mistakes on wrong server in the first place.