Chapter 6: Configuing the X Window System, Localization, and Printing Flashcards
What is the X Window System?
It’s the GUI environment for linux.
-It’s either really easy or REALLY hard to configure.
Different versions of X
- X Free 86- dominant until 2004
- X.org-X11-based on X Free 86. Independently developed
- Accellerated-X-an alternative that you may have luck with if your video card isn’t working
Configuring X using X itself
<b>XFree86 -configure</b> or <b>Xorg -configure</b>
Configuring X using Distro-specific tools
- Fedora has Display Settings Tool (<b>system-config-display</b>)
- SUSE has <b>YaST</b> and <b>YaST2</b>
X.org-11 Configuration File Format
<b>/etc/X11/xorg.conf</b>
XFree 86 4.x
<b>/etc/X11/xF86Config</b>(<b>-4</b>)
Xfree86 3.3.6
<b>/etc/X11/XF86Config</b>
What’s the first step to configuring X?
Boot into text-only mode.
X Configuration <b>InputDevice</b> section
You can view and modify keyboard and mouse settings
How do you determine the amount of RAM your video card needs in certain configurations?
R= xres x yres x bpp / 8,388,608
R = 1280 x 1024 x 24 / 8,388,608 = 3.75 MB
<b>xdisplayinfo</b>
This command gives you tons of information about your current display. use the <b>-ext</b> option to get even more technical information.
Bitmap Fonts
Individual pixels in an array are either active or not. They’re easy to manipulate and display, so they’re good for low powered computers, but they must be optimized for display at a particular resolution. That means you’re going to need a shit load of the same character to be able to scale at different font sizes.
Outline Fonts
These are modern, scalable fonts. They don’t look as good as bitmap fonts, especially when scaled to really small font sizes.
Where are fonts typically stored?
<b>/usr/share/fonts</b> or <b>/usr/share/X11/fonts</b> with X.org-X11
<b>/usr/X11R6/lib/X11/fonts</b> in XFree86.
What do you do once you’ve copied fonts to a directory?
You create a summary file.
<b># mkfontscale #mkfontdir</b>
Simple as that.
What do you do once you’ve made your font summary file?
Add it to the X font path. Go to the <b>Files</b> section and add
<b>FontPath “/usr/share/fonts/whatever”></b>
Font Servers
A font server will make it super easy for you to be able to distribute fonts to a bunch of computers from one central location.
Add:
<b>FontPath “/unix:/7100”
Fontpath “tcp/fount.pangaea.edu:7100”</b>
Or whatever your server shit may be. 7100 tells X that it’s a local server.
Xft Font System
The X font system has several drawbacks. They’re server based, they suck to print, and they don’t support antialiasing. Xft fixes this shit.
What are the five common XDMCP servers?
X Diplay Manager (XDM) KDE Display Manager (KDM) GNOME Display Manager (GDM) Light Display Manager (LightDM) MDM Display Manager (MDM)
Configuring XDM
The main configuration file is <b>/etc/X11/xdm/xdm-config</b>
Configuring KDM
It’s based partly on XDM, so many of the configuration options are the same. The problem is that the location of the configuration files is very unpredictable.
Configuring GDM
Uses files that are usually stored in <b>/etc/X11/gdm</b> or <b>/etc/gdm</b>
You may be able to find a GUI control tool for it, which will be <b>gdmconfig</b> or <b>gdmsetup</b>
Configuring LightDM
The configuration files are usually stored in <b>/usr/share/lightdm/lightdm.conf.d</b>
What’s the difference between an X server and an X client?
The X server runs on the computer at which the user sits. The X client is any application that makes use of X.