0

I have changed the setting in my ubuntu desktop 16.04 to boot only on command line mode. Upon reboot, the interface that opened had black background, text in white, directories in blue and so on and so forth...normal terminal color options.

I am trying to change the background color to white and text to black so that the visibility of the content is better. I used the following code (taken from this post):

dconf write /org/gnome/terminal/legacy/profiles:/:b1dcc9dd-5262-4d8d-a863-c897e6d979b9/background-color "'rgb(0,0,255)'"

But got an error

error: Cannot autolaunch D-Bus without X11 display
Usage:
    dconf write KEY VALUE

Write a new value to a key

Arguments:
    KEY   A key path (starting, but not ending with '/')
    VALUE The value to write (in GVariant format)

I understand the error related to X11 display. However, the rest I could not. How to I set the background to white / blue(in the above case it is blue) and text to black

Apricot
  • 173

1 Answers1

1

One thing you can try is to change the palette of the terminal (i.e., change the definitions of the colours). For example:

echo -en '\e]P0FFFFFF' '\e]PF000000'

This changes what the TTY "thinks" black and white are (the first sets black, aka colour 0 to FFFFFF (hex for white), and the second sets white (colour F) to 000000 (hex for black). So when some command (like ls, for example), sends the escape code to set background to "white", it will actually be set to black, and so on.

See this answer for the full list of colours.

Olorin
  • 3,488