Ubuntu changing background color in text mode boot
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
command-line bash colors
add a comment |
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
command-line bash colors
Possible duplicate of How can I customize a full-screen console background (TTY)?
– Olorin
7 hours ago
1
Booting to command-line only mode, you are not using GNOME Terminal (which this method is for), but the TTY (see dupe).
– Olorin
7 hours ago
On second thought, a better dupe would be Changing colour of text and background of terminal?
– Olorin
7 hours ago
@Olorin Thank you...I have already tried those links....esp the second one...the setterm works weirdly...when I set the background color to white...on keyboard enter, I get to see the white background...however if i typels
the contents gets displayed with black background only....hence the question. The gconftool is not working nor provides any output
– Apricot
7 hours ago
Hmm, that would be because the escape sequences output byls
include code to reset the color. How aboutecho -en 'e]P0FFFFFF' 'e]PF000000'
? This changes what the TTY "thinks" black and white are (the first sets black, aka colour 0 toFFFFFF
, and the second sets white (colourF
) to000000
. From askubuntu.com/a/153493/760903
– Olorin
6 hours ago
add a comment |
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
command-line bash colors
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
command-line bash colors
command-line bash colors
asked 7 hours ago
ApricotApricot
1062
1062
Possible duplicate of How can I customize a full-screen console background (TTY)?
– Olorin
7 hours ago
1
Booting to command-line only mode, you are not using GNOME Terminal (which this method is for), but the TTY (see dupe).
– Olorin
7 hours ago
On second thought, a better dupe would be Changing colour of text and background of terminal?
– Olorin
7 hours ago
@Olorin Thank you...I have already tried those links....esp the second one...the setterm works weirdly...when I set the background color to white...on keyboard enter, I get to see the white background...however if i typels
the contents gets displayed with black background only....hence the question. The gconftool is not working nor provides any output
– Apricot
7 hours ago
Hmm, that would be because the escape sequences output byls
include code to reset the color. How aboutecho -en 'e]P0FFFFFF' 'e]PF000000'
? This changes what the TTY "thinks" black and white are (the first sets black, aka colour 0 toFFFFFF
, and the second sets white (colourF
) to000000
. From askubuntu.com/a/153493/760903
– Olorin
6 hours ago
add a comment |
Possible duplicate of How can I customize a full-screen console background (TTY)?
– Olorin
7 hours ago
1
Booting to command-line only mode, you are not using GNOME Terminal (which this method is for), but the TTY (see dupe).
– Olorin
7 hours ago
On second thought, a better dupe would be Changing colour of text and background of terminal?
– Olorin
7 hours ago
@Olorin Thank you...I have already tried those links....esp the second one...the setterm works weirdly...when I set the background color to white...on keyboard enter, I get to see the white background...however if i typels
the contents gets displayed with black background only....hence the question. The gconftool is not working nor provides any output
– Apricot
7 hours ago
Hmm, that would be because the escape sequences output byls
include code to reset the color. How aboutecho -en 'e]P0FFFFFF' 'e]PF000000'
? This changes what the TTY "thinks" black and white are (the first sets black, aka colour 0 toFFFFFF
, and the second sets white (colourF
) to000000
. From askubuntu.com/a/153493/760903
– Olorin
6 hours ago
Possible duplicate of How can I customize a full-screen console background (TTY)?
– Olorin
7 hours ago
Possible duplicate of How can I customize a full-screen console background (TTY)?
– Olorin
7 hours ago
1
1
Booting to command-line only mode, you are not using GNOME Terminal (which this method is for), but the TTY (see dupe).
– Olorin
7 hours ago
Booting to command-line only mode, you are not using GNOME Terminal (which this method is for), but the TTY (see dupe).
– Olorin
7 hours ago
On second thought, a better dupe would be Changing colour of text and background of terminal?
– Olorin
7 hours ago
On second thought, a better dupe would be Changing colour of text and background of terminal?
– Olorin
7 hours ago
@Olorin Thank you...I have already tried those links....esp the second one...the setterm works weirdly...when I set the background color to white...on keyboard enter, I get to see the white background...however if i type
ls
the contents gets displayed with black background only....hence the question. The gconftool is not working nor provides any output– Apricot
7 hours ago
@Olorin Thank you...I have already tried those links....esp the second one...the setterm works weirdly...when I set the background color to white...on keyboard enter, I get to see the white background...however if i type
ls
the contents gets displayed with black background only....hence the question. The gconftool is not working nor provides any output– Apricot
7 hours ago
Hmm, that would be because the escape sequences output by
ls
include code to reset the color. How about 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
, and the second sets white (colour F
) to 000000
. From askubuntu.com/a/153493/760903– Olorin
6 hours ago
Hmm, that would be because the escape sequences output by
ls
include code to reset the color. How about 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
, and the second sets white (colour F
) to 000000
. From askubuntu.com/a/153493/760903– Olorin
6 hours ago
add a comment |
0
active
oldest
votes
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "89"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1110469%2fubuntu-changing-background-color-in-text-mode-boot%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
Thanks for contributing an answer to Ask Ubuntu!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1110469%2fubuntu-changing-background-color-in-text-mode-boot%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Possible duplicate of How can I customize a full-screen console background (TTY)?
– Olorin
7 hours ago
1
Booting to command-line only mode, you are not using GNOME Terminal (which this method is for), but the TTY (see dupe).
– Olorin
7 hours ago
On second thought, a better dupe would be Changing colour of text and background of terminal?
– Olorin
7 hours ago
@Olorin Thank you...I have already tried those links....esp the second one...the setterm works weirdly...when I set the background color to white...on keyboard enter, I get to see the white background...however if i type
ls
the contents gets displayed with black background only....hence the question. The gconftool is not working nor provides any output– Apricot
7 hours ago
Hmm, that would be because the escape sequences output by
ls
include code to reset the color. How aboutecho -en 'e]P0FFFFFF' 'e]PF000000'
? This changes what the TTY "thinks" black and white are (the first sets black, aka colour 0 toFFFFFF
, and the second sets white (colourF
) to000000
. From askubuntu.com/a/153493/760903– Olorin
6 hours ago