118 Part I . Linux First Steps . (Hosting your own web site)
Friday, April 20th, 2007118 Part I . Linux First Steps . Screen resolution The last major piece of information you may want to add is the screen resolution and color depth. There will be a screen resolution associated with each video card installed on your computer. The Screen section defines default color depths (such as 8, 16, or 24) and modes (such as 1024×768, 800×600, or 640×480). Set the DefaultDepth to the number of bits representing color depth for your system, and then add a Modes line to set the screen resolution. To read more about how to set options in your xorg.conf file, type man xorg.conf. If your X server is XFree86, type man XF86Config. Choosing a Window Manager Fully integrated desktop environments have become somewhat unfriendly to changing out window managers. However, you can completely bypass KDE or GNOME, if you like, and start your desktop simply with X and a window manager of your choice. Although I m using Slackware as the reference distribution for describing how to change window managers, the concept is the same on other Linux systems. In general, if no desktop environment is running in Linux, you can start it by typing: $ startx This command starts up your desktop environment or window manager, depending on how your system is configured. Although a variety of configuration files are read and commands are run, essentially which desktop you get depends on the contents of two files: . /etc/X11/xinit/xinitrc If a user doesn t specifically request a particular desktop environment or window manager, the default desktop settings will come from the contents of this file. The xinitrc file is the system-wide X configuration file. Different Linux systems use different xinitrc files. . $HOME/.xinitrc The .xinitrc file is used to let individual users set up their own desktop startup information. Any user can add a .xinitrc file to his or her own home directory. The result is that the contents of that file will override any system-wide settings. If you do create your own .xinitrc file, it should have as its last line exec windowmanager, where windowmanager is the name of your window manager; for example: exec /usr/X1R6/bin/blackbox Slackware has at least seven different window managers from which you can choose, making it a good place to try out a few. It also includes a tool called xwmconfig, which lets you change the window manager system-wide (in the /etc/X11/xinit/xinitrc file). To use that tool, as the root user simply type xwmconfig from any shell on a Slackware system. Figure 3-15 shows an example of that screen.
Note: If you are looking for cheap and reliable webhost to host and run your web application check Vision coldfusion web hosting services