I have created a customized Slax 6.06 LiveCD that loads X server and then launches firefox. I need a way to set the default virtual display resolution to 1024x768 (or at least have X server try that resolution first). Is there a way to do this in the .xinitrc file or even in rc.2?
I was thinking of trying the following steps:
In rc.2,
1.) run Xorg -configure (supposedly spits out a file called xorg.conf.new in home directory, yet i can't find it)
2.) run cp xorg.conf.new to /etc/X11/xorg.conf
3.) use grep and a fancy regex to find all values where "Modes" is not followed by "1024x764"
4.) use a replacement tool (sed?), to prepend the "1024x768" after the "Modes" in the xorg.conf file
Allow rc.3 to load which will startx, read the generated xorg.conf file.
.xinitrc will then launch firefox.
Is this the best way to do this? Is there an easier way in setting the preferred resolution on all computers. I want X server to generate the xorg.conf file because not all the computers we are running it on will support VESA. VGA doesn't have the correct depths. Should I use svga? Can I specify "xga" in the xorg.conf file?
Start Free Trial