Link to home
Start Free TrialLog in
Avatar of slaroche
slaroche

asked on

Change the colors from millions to thousands

I am very new to Linux.  I've just installed Linux 9 and when I changed the colors from thousands to millions, I can no longer see the screen properly.  How do I change it back from the command prompt?
Avatar of Pete Long
Pete Long
Flag of United Kingdom of Great Britain and Northern Ireland image

You can change the resolution of your Linux desktop using the following command:
sudo /pkg/pkg/tool/kiesres.sh.

You will get a menu that will allow you to change your resolution.
Your new resolution will be automaticly used the next time you login.
http://www.win.tue.nl/bcf/linux/resolutie.php?PHPSESSID=b2528187a72a00ba245f1236dd3f7b3b
Avatar of slaroche
slaroche

ASKER

at the Grub> command prompt, I've typed in the command and I get the error "error 27: unrecognized command"
This is not a grub parameter, you first need to boot your system. You can avoid booting into the graphical environment by adding either a "single" to the grub command line, or a "3".

But, you can also boot into the graphical UI and then use <Ctrl><Alt>F1  to switch to a virtual text console.
Log in as root user and then run /pkg/pkg/tool/kiesres.sh
However, I don't think that this will work, I don't think that this program is part of a RedHat installation.
Edit the file /etc/X11/XF86Config and search for the string "DefaultDepth" Change this to 16, also make sure that you have a "Display" SubSection for a Depth of 16 (you may need to change this as well).
Do this instead of running the kiesres.sh command.
Another alternative is to run the command redhat-config-xfree86
Just select "thousands of colors" and save your changes.
<ctrl><alt><F1> brought me to a screen, but typing stuff in didn't change anything.  It didn't behave like a command prompt, but rather a black notepad.  How do I edit files?  From the Grub> command line, I can't type edit without getting an unrecognized command error.  Do I need to boot to a dos command prompt?
You need to log in after you switch to the virtual terminal. Type "root" (without the quotes) as the user name and the root password that you specified.

What distribution are you using. I just noticed that you were only talking "linux 9", and I somehow assumed that it's RedHat, is this the case?

If that's the case, when you see the boot selection type "a". This will bring up the grub append dialog. Type " 3" (a space followed by the number 3 and hit return. This will bring up a login prompt, type the "root" user name and the root password.
And, once you are logged in as root, use the "redhat-config-xfree86" command. This will get you around editing config files.
the redhat config command takes me to a gui that I can't make out.  It's better, but I have no idea what I'm clicking on.  I typed help at the same command prompt to try and figure out how to edit a file, but didn't see the edit command.  Would you mind explaining how to edit the file you've specified.  If it's too much of a pain, I can just reload the OS and keep it at thousands of colors.  I am using the Redhat distribution.  
Login: root
Password: xxxxxxxx (whatever your root password)
You will see a #. At the # type:
# startx -- -depth 16

This will give you thousands of colors. Then you can make this setting permanent by clicking on the RedHat startup menu, system settings->display and make your settings permanent.
I thought about this as well, but this will fail if you don't have settings for 16bit mode in your XF86Config file.
Are you familiar with any Linux editor? I don't know what's installed on a RedHat system by default. I'm only using vi and that's always there :-) Try to edit with joe and pico:
joe /etc/X11/XF86Config
or
pico /etc/X11/XF86Config

the 16bit color was not available.  joe and pico are not recognized commands.  reload?  thanks for all your help, by the way.
Have you ever used vi? It's not the best editor for a novice, but I can walk you through it.
I'm not going to be back on the server until Tuesday...It would be great if you could walk me through vi becuase I've never used it.  I'll repost Tuesday.
Here a tutorial for vi: http://www.eng.hawaii.edu/Tutor/vi.html
You can download the complete document as PDF file and e.g. print it and keep it next to your terminal when you start to edit the XF86Config file. This tutorial is much better than anything I could come up with. Take a look and let me know if you need more information about a certain area.
ASKER CERTIFIED SOLUTION
Avatar of Member_2_1239314
Member_2_1239314

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
If the above gives error, then you can restore your backed up XF86Config file by:
# cp /etc/X11/XF86Config.backup /etc/X11/XF86Config
Before you do this, check the /etc/X11 directory to see if you already have a backup of XF86Config in this directory. It's possible that the config tool created a backup copy when you changed to "millions of colors". If that's the case, move your current version out of the way and copy the backup back:

cd /etc/X11
mv XF86Config XF86Config.millions_of_colors
cp XF86Config.backup XF86Config

(Replace XF86Config.backup with the name that's actually used for the backup copy on your system).
That worked!  Thanks for all your help.  Love this place!