Chapter 6: Configuing the X Window System, Localization, and Printing Flashcards

1
Q

What is the X Window System?

A

It’s the GUI environment for linux.

-It’s either really easy or REALLY hard to configure.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Different versions of X

A
  • 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
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Configuring X using X itself

A

<b>XFree86 -configure</b> or <b>Xorg -configure</b>

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Configuring X using Distro-specific tools

A
  • Fedora has Display Settings Tool (<b>system-config-display</b>)
  • SUSE has <b>YaST</b> and <b>YaST2</b>
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

X.org-11 Configuration File Format

A

<b>/etc/X11/xorg.conf</b>

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

XFree 86 4.x

A

<b>/etc/X11/xF86Config</b>(<b>-4</b>)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Xfree86 3.3.6

A

<b>/etc/X11/XF86Config</b>

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What’s the first step to configuring X?

A

Boot into text-only mode.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

X Configuration <b>InputDevice</b> section

A

You can view and modify keyboard and mouse settings

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

How do you determine the amount of RAM your video card needs in certain configurations?

A

R= xres x yres x bpp / 8,388,608

R = 1280 x 1024 x 24 / 8,388,608 = 3.75 MB

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

<b>xdisplayinfo</b>

A

This command gives you tons of information about your current display. use the <b>-ext</b> option to get even more technical information.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Bitmap Fonts

A

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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Outline Fonts

A

These are modern, scalable fonts. They don’t look as good as bitmap fonts, especially when scaled to really small font sizes.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Where are fonts typically stored?

A

<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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

What do you do once you’ve copied fonts to a directory?

A

You create a summary file.

<b># mkfontscale
#mkfontdir</b>

Simple as that.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

What do you do once you’ve made your font summary file?

A

Add it to the X font path. Go to the <b>Files</b> section and add

<b>FontPath “/usr/share/fonts/whatever”></b>

17
Q

Font Servers

A

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.

18
Q

Xft Font System

A

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.

19
Q

What are the five common XDMCP servers?

A
X Diplay Manager (XDM)
KDE Display Manager (KDM)
GNOME Display Manager (GDM)
Light Display Manager (LightDM)
MDM Display Manager (MDM)
20
Q

Configuring XDM

A

The main configuration file is <b>/etc/X11/xdm/xdm-config</b>

21
Q

Configuring KDM

A

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.

22
Q

Configuring GDM

A

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>

23
Q

Configuring LightDM

A

The configuration files are usually stored in <b>/usr/share/lightdm/lightdm.conf.d</b>

24
Q

What’s the difference between an X server and an X client?

A

The X server runs on the computer at which the user sits. The X client is any application that makes use of X.

25
Q

Using X on remote clients

A

If you have a powerful machine running X, you can SSH into it from your computer and tell it to run the powerful machine’s X server.

26
Q

Sticky Keys

A

When you push a special key (like ctrl, alt, shift), the operating system sees it as staying pressed for longer. This is good for people who have difficulty pressing multiple keys at once.

27
Q

Toggle Keys

A

Plays a beep at you when you press CAPS LOCK or num lock or something

28
Q

Mouse Keys

A

This lets you use the cursor keypad on your keyboard to emulate a mouse. cool?

29
Q

Bounce (or debounce) Keys

A

If you press a single key multiple times by accident, Bounce Keys can compensate for it

30
Q

Slow Keys

A

You have to press a key for a while for it to register the keypress.

31
Q

Keyboard Repeat Rate

A

How long it takes for the keyboard to repeat the key you’re holding down

32
Q

Time Out

A

You specify a time for AccessX to stop doing shit

33
Q

AccessX

A

A completely OUT OF DATE AND DEFUNCT APPLICATION THAT WE NEED TO LEARN that lets you configure accessibility options that may otherwise be hard to fuck with.

34
Q

Where is your time zone information stored?

A

<b>/etc/localtime</b>
It’s not a plaintext file. Do not attempt to modify it with a text editor.

it can also be contained in
<b>/etc/timezone</b> (Debian)
<b>/etc/sysconfig/clock</b> (Fedora)

35
Q

What command will you use to set a timezone specification for one user?

A

TZ. You probably won’t ever actually have to do it.

36
Q

Codesets

A

The oldest encoding method is ASCII. It only supported English and punctuation. ISO-8859 was added after that, but it needed to be split into different subsets for different regions. UTF-8 is the most recent, and supports all Unicode characters.

37
Q

How to change Locale

A

Temporarily? Set the LC_ALL environment variable. You should also set LANG.

Permanently? Adjust your <b>bash</b> startup scripts.