diff --git a/LDP/howto/docbook/Linux-Gamers-HOWTO.sgml b/LDP/howto/docbook/Linux-Gamers-HOWTO.sgml index e7a8f232..5051e7e0 100644 --- a/LDP/howto/docbook/Linux-Gamers-HOWTO.sgml +++ b/LDP/howto/docbook/Linux-Gamers-HOWTO.sgml @@ -26,7 +26,7 @@ - 2002-02-22 v.0.9.10 + v0.9.11, 2002-04-28 2001 @@ -1755,13 +1755,14 @@ you. bucks), support bleeding edge sound cards and take a lot of guesswork out of the configuring process. - There are 4 things that can go wrong with your sound system: + There are 5 things that can go wrong with your sound system: Shared interrupt Misconfigured driver Something's already accessing the sound card You're using the wrong driver + A permissions problems @@ -1894,6 +1895,22 @@ you. + + Permissions Problem + + If the sound card works when you're root but not any other user, you prolly have a + permissions problem. If this is the case, as root, look at the group owner of the sound card + using ls -l /dev/dsp; it'll prolly be audio. Then, as + root, add your non-root user to the audio group in /etc/group. For + example, I added the users p and wellspring to group audio on my system: + + + audio:x:29:p,wellspring + + + Then log out and log back in as the non-root user. Your sound card should work. Thanks + to James Barton for reminding me to add this to the howto. + @@ -2077,19 +2094,20 @@ you. Win4Lin - Win4Lin is a commercial product by Netraverse. + Win4Lin is a commercial product by Netraverse. (www.netraverse.com/products/win4lin30/. It uses the virtual machine approach, so you'll get a big window from which you can boot - Windows and run all kinds of Windows applications. I've never used - Win4Lin, but since it's a virtual machine, I imagine it - does Direct X and games just fine. There are a few problems with using Win4Lin: - + Windows and run all kinds of Windows applications. From the documentation of Win4Lin + 3.0, this is a poor choice for Linux folk who want to run games: + It does not support Direct X or DirectDraw. This in of itself is a + show stopper for gamers since almost all Windows games use Direct X. + It only supports serial and parallel devices. It's not cheap. As of January 2002, expect to pay $80 without printed docs and $90 with printed docs. In addition, there isn't an evaluation copy available, although you get a 30 day money back guarantee. However, since - it's commercial you do get tech support. + it's commercial you do get tech support. You are required to have a licensed copy of Win95 or Win98. Win4Lin cannot use an existing Windows installation the way wine can. It can only run on x86 architectures. @@ -2181,14 +2199,44 @@ you. Infocom Adventures (Infocom, Activision) - + The Z-machine is a well documented <http://www.gnelson.demon.co.uk/zspec/index.html> virtual machine + designed by Infocom to run their interactive fiction games. This allowed them to write game + data files in a cross platform manner, since only the engine itself, the Z-machine, would be + platform dependent. Z-machine went through a number of revisions during the lifetime of + Infocom, and two further revisions (V7 and V8 created by Graham Nelson) after the Infocom's + demise. The later versions even supported limited sound and graphics! + + One of the most popular Z-machine interpreters is Frotz <http://www.cs.csubak.edu/~dgriffi/proj/frotz/>. This excellently + done page has many nice links for interactive fiction fans. Frotz is GPL, runs all versions + of Z-machine and will compile on most versions of Unix. Frotz has spawned many forks, + like a version for PalmOS and Linux based PDA's. + + jzip <http://jzip.sourceforge.net/> is + another very popular Z-machine interpreter that will run V1-V5 and V8 Z-machine data files. + jzip is very portable; it compiles on all Unices, OS/2, Atari ST and DOS. + + There are actually many other Z-machine interpreters like nitfol and rezrov (written in + Perl!). Each interpreter has its own set of strengths, and you can find links to them on the + home pages for Frotz and jzip. Scott Adams Adventures (Adventure International) - + Scott Adams is, arguably, the father of interactive fiction. Although he himself was + inspired by the first piece of interactive fiction, Adventure, Scott brought adventuring to + the masses. His games were available for Atari, Apple 2, Commodore, Sorcerer, TI, and CPM. + His company, Adventure International, released a number of much loved games between 1978 and + 1984 before folding. He recently released a new game (a Linux version is not available) but + since the decline of adventuring, he has pretty much kept out of the gaming industry. + + Alan Cox wrote scottfree, a Scott Adams adventure game file interpreter for Unix. + Using scottfree and any of the Scott Adams data files which can be downloaded from Scott's + website <http://www.msadams.com/> you can enjoy these + classics. @@ -2412,5 +2460,6 @@ you. + diff --git a/LDP/howto/docbook/TimePrecision-HOWTO/TimePrecision-HOWTO.xml b/LDP/howto/docbook/TimePrecision-HOWTO/TimePrecision-HOWTO.xml index a4fc2864..e18855c8 100644 --- a/LDP/howto/docbook/TimePrecision-HOWTO/TimePrecision-HOWTO.xml +++ b/LDP/howto/docbook/TimePrecision-HOWTO/TimePrecision-HOWTO.xml @@ -13,18 +13,38 @@ Alkalay
- avi at br.ibm.com avi at unix.sh + avi at br.ibm.com
Senior IT and Software Architect :: OpenSource/Linux Solutions IBM Linux Impact Team :: ibm.com/linux
+ + KentBorg + Suggestion to use ntpq instead of ntpdc + + + YuraMoron + Good explanations on ntpq and ntpdc info + - 0.8.1 :: 2002/04/20 + 1.0 :: 2002/04/28 + + 1.0 + 28 Apr 2002 + avi + Finalized image. + + + 0.8 + 27 Apr 2002 + avi + Switched from ntpdc example to ntpq, based on contributions. + 0.8.1 20 Apr 2002 @@ -89,7 +109,7 @@
What are Time Zones? Time Zones are a geophysical world globe division of 15o each, starting at Greenwich, in England, created to help people know what time is it now in another part of the world. - Nowadays it is much more a political division then geophysical, because sometimes people needs to have the same time as other people in not-so-far locations. And for energy savings reasons, we have today the Daylight Savings Time, that are also a Time Zone variation. + Nowadays it is much more a political division than geophysical, because sometimes people needs to have the same time as other people in not-so-far locations. And for energy savings reasons, we have today the Daylight Savings Time, that are also a Time Zone variation. Time Zones are usually defined by your country government or some astronomical institute, and is represented by 3 or 4 letters. See for examples. If you want to know what time is it now in a different world region, you can use the timezoneconverter.com website.
Daylight Savings Time @@ -272,7 +292,7 @@ Zone Brazil/Acre -5:00 Brazil BRA%sT The Rule block defines the date and time we change the Time Zone, while in the Zone block we reference the Rule will manage it. Note that the Zone name is actually the file name under /usr/share/zoneinfo directory, and here we defined several different names for the same Time Zone, just to be easyer for people to find their zone. This file's comments explains how to install these time zones, using the zic zoneinfo compiler (which already installs them also). To make it effective, you only have to link (or copy) the zoneinfo file to /etc/localtime. In some distributions, there is a higher level (and preferred) way to set the Time Zone, described in . After making /etc/localtime pointing to the correct zoneinfo file, you are already under that zone rules and DST changes are automatic -- you don't have to change time manually. - The following commands sequence shows Linux Time Zone mechanics dynamism. Note they were all issued in less then one minute: + The following commands sequence shows Linux Time Zone mechanics dynamism. Note they were all issued in less than one minute: bash$ ls -al /etc/localtime lrwxrwxrwx 1 root root 35 May 22 2001 /etc/localtime -> /usr/share/zoneinfo/Brazil/Brasilia bash$ date @@ -335,7 +355,7 @@ ARC=false
Accurate Global Time Synchronization - To have accurate time in all your systems is as important as having a solid network security strategy (achieved by much more then simple firewall boxes). It is one of the primary components of a system administration based on good practices, which leads to organization and security. Specially when administering distributed applications, web-services, or even a distributed security monitoring tool, accurate time is a must. + To have accurate time in all your systems is as important as having a solid network security strategy (achieved by much more than simple firewall boxes). It is one of the primary components of a system administration based on good practices, which leads to organization and security. Specially when administering distributed applications, web-services, or even a distributed security monitoring tool, accurate time is a must.
<acronym>NTP</acronym>: The Network Time Protocol We'll not discuss here the protocol, but how this wonderfull invention, added to the pervasiveness of the Internet, can be usefull for us. You can find more about it at www.ntp.org. Once your system is setup, NTP will manage to keep its time accurate, making very small adjustments to not impact the running applications. @@ -387,7 +407,7 @@ server ntp2.my.com # My second local relay - If your machine has a UTC time difference bigger then some minutes comparing to the NTP servers, NTP will not work. So you must do a first full sync, and I recommend you to do it in a non-production hour. You need to do it only when you are making the initial NTP setup. Never more: + If your machine has a UTC time difference bigger than some minutes comparing to the NTP servers, NTP will not work. So you must do a first full sync, and I recommend you to do it in a non-production hour. You need to do it only when you are making the initial NTP setup. Never more: First sync bash# ntpdate otherntp.research.gov 24 Mar 18:16:36 ntpdate[10254]: step time server 200.100.20.10 offset -15.266188 sec @@ -406,15 +426,22 @@ server ntp2.my.com # My second local relay bash# service ntpd restart
Watching Your Box Synchronizing - Now you have everything setup. NTP will softly keep your machine time synchronized. You can watch this process using the ntpdc command: + Now you have everything setup. NTP will softly keep your machine time synchronized. You can watch this process using the NTP Query (ntpq command: A time synchronization status -bash# ntpdc -c peers - remote local st poll reach delay offset disp -======================================================================= -=LOCAL(0) 127.0.0.1 7 64 377 0.00000 0.000000 0.43828 -=ntp.server.org 200.218.38.134 2 64 377 0.44949 -0.023418 0.44000 -=otherntp.resear 200.218.38.134 2 64 377 0.22252 -0.024405 0.93861 +bash# ntpq -p + remote refid st t when poll reach delay offset jitter +============================================================================== +-jj.cs.umb.edu gandalf.sigmaso 3 u 95 1024 377 31.681 -18.549 1.572 + milo.mcs.anl.go ntp0.mcs.anl.go 2 u 818 1024 125 41.993 -15.264 1.392 +-mailer1.psc.edu ntp1.usno.navy. 2 u 972 1024 377 38.206 19.589 28.028 +-dr-zaius.cs.wis ben.cs.wisc.edu 2 u 502 1024 357 55.098 3.979 0.333 ++taylor.cs.wisc. ben.cs.wisc.edu 2 u 454 1024 347 54.127 3.379 0.047 +-ntp0.cis.strath harris.cc.strat 3 u 507 1024 377 115.274 -5.025 1.642 +*clock.via.net .GPS. 1 u 426 1024 377 107.424 -3.018 2.534 + ntp1.conectiv.c 0.0.0.0 16 u - 1024 0 0.000 0.000 4000.00 ++bonehed.lcs.mit .GPS. 1 u 984 1024 377 25.126 0.131 30.939 +-world.std.com 204.34.198.40 2 u 119 1024 377 24.229 -6.884 0.421 The meaning of each column remote @@ -422,9 +449,9 @@ server ntp2.my.com # My second local relay Is the name of the remote NTP server. If you use the switch, you will see the IP addresses of these servers instead of their hostnames. - local + refid - Your local IP address used to communicate with remote servers. + Indicates where each server is getting its time right now. It can be a server hostname or something like .GPS., indicating a Global Positioning System source. st @@ -434,7 +461,7 @@ server ntp2.my.com # My second local relay poll - ??????????????????????????? Contribute ! + The polling interval (in seconds) between time requests. The value will range between the minimum and maximum allowed polling values. Initially the value will be smaller to allow synchronization to occur quickly. After the clocks are 'in sync' the polling value will increase to reduce network traffic and load on popular time servers. reach @@ -452,9 +479,31 @@ server ntp2.my.com # My second local relay The most important value. The difference of time between the local and remote server. In the course of synchronization, the offset time lowers down, indicating that the local machine time is getting more accurate. - disp + jitter - ??????????????????????????? Contribute ! + Dispersion, also called Jitter, is a measure of the statistical variance of the offset across several successive request/response pairs. Lower dispersion values are preferred over higher dispersion values. Lower dispersions allow more accurate time synchronization. + + + + The meaning of the signs before server hostname + - + + Means the local NTP service doesn't like this server very much + + + + + + Means the local NTP service likes this server + + + x + + Marks a bad host + + + * + + Indicates the current favorite diff --git a/LDP/howto/docbook/TimePrecision-HOWTO/ntp.png b/LDP/howto/docbook/TimePrecision-HOWTO/ntp.png index 16974afe..8c7b1086 100644 Binary files a/LDP/howto/docbook/TimePrecision-HOWTO/ntp.png and b/LDP/howto/docbook/TimePrecision-HOWTO/ntp.png differ diff --git a/LDP/howto/docbook/TimePrecision-HOWTO/ntp.prz b/LDP/howto/docbook/TimePrecision-HOWTO/ntp.prz index e7f4c1f8..644534c1 100644 Binary files a/LDP/howto/docbook/TimePrecision-HOWTO/ntp.prz and b/LDP/howto/docbook/TimePrecision-HOWTO/ntp.prz differ