Re: color ssh/sftp -

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 01/23/2013 09:58 PM, Bob Goodwin - Zuni, Virginia, USA wrote:
> On 01/23/2013 08:35 AM, Reindl Harald wrote:
>> what is .bash and /home/bobg/sshcolor??
>> .bashrc of whatever user as shown
>>
>> the "[root@srv-rhsoft:~]$" aka promt is red
>> not a background-color change which is not possible AFAIk and unuseable
>
>    I think we have a problem with text encoding or something? Your
>    message contains odd characters.
>
>    This is a new F-18 and Thunderbird installation and I am trying to
>    copy and paste from your message, obviously there is a problem that
>    I have not seen before.
>

FWIW, the PS1 variable came through just fine here....

You can simply place

PS1="\[\033[1;31m\][\u@\h:\w]$\[\033[0m\]"

In the .bashrc file of the system where you want the prompt color to be "red"

Now, if you want your background to be different it can be done....  But it would open a new terminal.
To do this in KDE and konsole....

1.  On your remote system you'd define a profile for konsole with the background color you want for remote connections.  You can call it remote.

2.   Set up your ssh to use private/public keys so that password prompts are unnecessary.

3.  Then when you want to ssh to that system you just issue the command
     ssh -X systemname konsole --profile remote &    This will, of course, ope a new window  on your local system....but at least there should be no confusion.


-- 
Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning. -- Rick Cook, The Wizardry Compiled
-- 
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux