You are not logged in.

#1 2011-02-09 07:25:01

tawan
Member
Registered: 2010-03-02
Posts: 290
Website

Red root terminal

Hi, what would be the easiest way to make a red root terminal?

I mean so it is red in colour and when I have a normal terminal open and a root one I can easily see which is which.

PS at the moment I use gnome-terminal but I don't mind using another one for this functionality (or even one for root and one for normal user)

Offline

#2 2011-02-09 07:37:52

toffyrn
Member
Registered: 2008-10-07
Posts: 221

Re: Red root terminal

You should really search the wiki for theese simple questions!
https://wiki.archlinux.org/index.php/Color_Bash_Prompt

Offline

#3 2011-02-09 08:06:04

tawan
Member
Registered: 2010-03-02
Posts: 290
Website

Re: Red root terminal

Hmm, I've already customized my PS1 and was really aiming at people who theme and alter colour schemes to recommend a way to get a red terminal.

Thinking about it now gnome-terminal has profiles and that is probably the way to go.

Offline

#4 2011-02-09 08:15:44

toffyrn
Member
Registered: 2008-10-07
Posts: 221

Re: Red root terminal

Okay. Guess I misunderstand you here?

Is adding this to "/root/.bashrc" helping you?

PS1='\[\e[1;31m\][\u@\h \W]\$\[\e[0m\] '

Offline

#5 2011-02-09 08:32:52

tawan
Member
Registered: 2010-03-02
Posts: 290
Website

Re: Red root terminal

The PS1 is useful of course as is the # instead of $ but I aim to make the terminal red in colour. e.g titlebar, background, colour scheme. I think the way is via the 'profiles' feature of the terminal.

thanks ",

Offline

#6 2011-02-09 08:40:16

tawan
Member
Registered: 2010-03-02
Posts: 290
Website

Re: Red root terminal

here you go, this is what I was thinking ...

Kbj4zs.jpg

Offline

#7 2011-02-09 19:13:35

anonymous_user
Member
Registered: 2009-08-28
Posts: 3,059

Re: Red root terminal

Changing the background color depends on the terminal however I don't think you can change the titlebar on a per user basis. You can use a different GTK theme for root so the menu will look different though.

Last edited by anonymous_user (2011-02-09 19:14:11)

Offline

#8 2011-02-09 20:06:04

tawan
Member
Registered: 2010-03-02
Posts: 290
Website

Re: Red root terminal

Yes that might be the ultimate fix. Make a variation of my GTK theme and use that for root then use two terminal emulators, one with a coloured background for root and one standard for the user. thanks.

Offline

Board footer

Powered by FluxBB