LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-16-2012, 03:58 PM   #1
tedcreyn
LQ Newbie
 
Registered: May 2012
Posts: 6

Rep: Reputation: Disabled
Change background color - No X


How do I change the screen background color on an Ubuntu sever that doesn't have X?
What I need to do is I have a server start up and then at the end of the start up script it pops up a dialog (using the dialog program) but the background around this dialog is blue and I need to change it to the color closest to my company color.
 
Old 07-16-2012, 04:30 PM   #2
corp769
LQ Guru
 
Registered: Apr 2005
Location: /dev/null
Posts: 5,818

Rep: Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007
Ubuntu server doesn't come with X by default, you will need to install it separately. Can I ask why you installed ubuntu server in the first place? If you are looking to have a GUI, you are better off installing the normal version of Ubuntu. Ubuntu server is made for servers, not for desktops, if that helps at all...

Cheers,

Josh
 
Old 07-16-2012, 04:35 PM   #3
tedcreyn
LQ Newbie
 
Registered: May 2012
Posts: 6

Original Poster
Rep: Reputation: Disabled
I know server doesn't have X, I installed server on purpose this is a server for our company's product. I don't want to install X. My question isn't about installing X, I know how to do that, I am not allowed to do so. So I repeat, is there a way to change the background without any X on the system?
 
Old 07-16-2012, 04:44 PM   #4
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4885Reputation: 4885Reputation: 4885Reputation: 4885Reputation: 4885Reputation: 4885Reputation: 4885Reputation: 4885Reputation: 4885Reputation: 4885Reputation: 4885
1. Create a config file with
Code:
dialog --create-rc dialog.conf
2. Open the file with a text editor and change the color options to your likings.
3. Set a environmental variable DIALOGRC with the path to the config file before invoking dialog.
 
Old 07-16-2012, 05:57 PM   #5
tedcreyn
LQ Newbie
 
Registered: May 2012
Posts: 6

Original Poster
Rep: Reputation: Disabled
Thanks for your answer, but unfortunately it didn't work, any other suggestions?
 
Old 07-16-2012, 06:25 PM   #6
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4885Reputation: 4885Reputation: 4885Reputation: 4885Reputation: 4885Reputation: 4885Reputation: 4885Reputation: 4885Reputation: 4885Reputation: 4885Reputation: 4885
May you like to explain what exactly you have done and at which point it doesn't work?
Changing the colors works fine here with this method.

Last edited by TobiSGD; 07-16-2012 at 06:28 PM.
 
Old 07-17-2012, 02:08 AM   #7
bsat
Member
 
Registered: Feb 2009
Posts: 347

Rep: Reputation: 72
if you are trying to change the background try using the command setterm

http://tuxthink.blogspot.in/2012/02/...ground-of.html
 
Old 07-17-2012, 02:13 AM   #8
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4885Reputation: 4885Reputation: 4885Reputation: 4885Reputation: 4885Reputation: 4885Reputation: 4885Reputation: 4885Reputation: 4885Reputation: 4885Reputation: 4885
Quote:
Originally Posted by bsat View Post
if you are trying to change the background try using the command setterm

http://tuxthink.blogspot.in/2012/02/...ground-of.html
This changes the colors of the terminal in general, not the the colors that are displayed when using dialog.
 
Old 07-17-2012, 11:22 AM   #9
tedcreyn
LQ Newbie
 
Registered: May 2012
Posts: 6

Original Poster
Rep: Reputation: Disabled
TobiSGD,

I did exactly the steps you desribed, but when the dialog came up the screen was still the same color as before.
 
Old 07-17-2012, 11:47 AM   #10
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4885Reputation: 4885Reputation: 4885Reputation: 4885Reputation: 4885Reputation: 4885Reputation: 4885Reputation: 4885Reputation: 4885Reputation: 4885Reputation: 4885
That is weird. May be my explanation wasn't clear enough. Let's try it again.
1. Create the config file:
Code:
dialog --create-rc /home/tobi/dialog.conf
2. Open the file with a text-editor, change in line 33
Code:
screen_color = (WHITE,BLUE,OFF)
to
Code:
screen_color = (WHITE,RED,OFF)
and save the file.
3. Set the environment variable DIALOGRC:
Code:
export DIALOGRC=/home/tobi/dialog.conf
4. Test it, for example with
Code:
dialog --infobox "Red Background" 0 0
Attached Thumbnails
Click image for larger version

Name:	dialog.jpg
Views:	304
Size:	120.5 KB
ID:	10139  
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to change background color ? wearetheborg Linux - Software 2 09-24-2006 01:17 AM
How to change background color of helpwindow m.harshavardhan Linux - Software 0 10-04-2005 01:05 AM
Change Background Color/Image tonyfreeman Programming 1 03-11-2005 02:32 PM
Change background color chingyenccy Linux - Newbie 6 01-23-2005 03:17 AM
Is there a way to change background color out of X? purpleburple Linux - General 1 01-23-2003 08:32 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:57 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration