1

I am trying to set the colors of my Ubuntu Box to match the 16 colors palette of the Solarized color theme.

I have installed Ubuntu 14.04 Server, no GUI option enabled.

When I ssh into this VM and I do a

$ echo $ TERM

it displays the value xterm. So I was guessing I could use .Xresources to set the colors.

But when I enter

$ xrdb ~/.Xresources

it shows a message which says No display found. What does it mean? Does it mean there is no XServer running? Do I have to set the colors by echo'ing color codes in my .bashrc?

  • What do you get with echo $DISPLAY ? – PM 2Ring Oct 22 '14 at 8:24
  • @PM2Ring It doesn't display anything. – helpermethod Oct 22 '14 at 16:41
  • 1
    Sorry, I wasn't thinking properly when I wrote the previous comment. Since your server has no GUI you're working with a simple CLI terminal and there's no X server running. I guess there are various X commands on your HD in case you do want to run X. OTOH, it's weird that $TERM is xterm... Anyway, I've never played with this stuff myself, but you should be able to customize your terminal's palette. Have a look at setcolors - Change your Linux VT color palette - he even provides a colorscheme file for Solarized. – PM 2Ring Oct 23 '14 at 7:57
  • 1
    Also see the man page for console_codes. The ESC ] Pnrrggbb codes look promising. – PM 2Ring Oct 23 '14 at 7:58
  • Thank you so much, this was exactly what I was looking. Post it as an answer and I will accept it. – helpermethod Oct 23 '14 at 8:50
1

Since your server has no GUI you're working with a simple CLI terminal and there's no X server running. I guess there are various X commands on your HD in case you do want to run X. OTOH, it's weird that $TERM is xterm...

Anyway, I've never played with this stuff myself, but you should be able to customize your terminal's palette. Have a look at setcolors - Change your Linux VT color palette - he even provides a colorscheme file for Solarized.

Also see the man page for console_codes. The ESC ] Pnrrggbb codes look promising.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.