summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorKaleb Keithley <kaleb@freedesktop.org>2003-11-14 15:54:53 +0000
committerKaleb Keithley <kaleb@freedesktop.org>2003-11-14 15:54:53 +0000
commitdf3e1beed5bbb631975127133464b7e24fc38497 (patch)
tree6291fb1c51fb790c2f236249b5f44eb9bedfdc7b /config
R6.6 is the Xorg base-lineXORG-MAIN
Diffstat (limited to 'config')
-rw-r--r--config/GiveConsole10
-rw-r--r--config/README11
-rw-r--r--config/TakeConsole7
-rw-r--r--config/Xaccess68
-rw-r--r--config/Xservers.fs11
-rw-r--r--config/Xservers.ws.cpp13
-rw-r--r--config/Xsetup_03
-rw-r--r--config/xdm-config.cpp19
8 files changed, 142 insertions, 0 deletions
diff --git a/config/GiveConsole b/config/GiveConsole
new file mode 100644
index 0000000..ab2dee5
--- /dev/null
+++ b/config/GiveConsole
@@ -0,0 +1,10 @@
+#!/bin/sh
+# Assign ownership of the console to the invoking user
+# $Xorg: GiveConsole,v 1.3 2000/08/17 19:54:17 cpqbld Exp $
+#
+# By convention, both xconsole and xterm -C check that the
+# console is owned by the invoking user and is readable before attaching
+# the console output. This way a random user can invoke xterm -C without
+# causing serious grief.
+#
+chown $USER /dev/console
diff --git a/config/README b/config/README
new file mode 100644
index 0000000..4d49f91
--- /dev/null
+++ b/config/README
@@ -0,0 +1,11 @@
+$Xorg: README,v 1.3 2000/08/17 19:54:17 cpqbld Exp $
+
+Xdm Sample Configuration
+
+This directory contains a collection of files which describe a sample
+configuration of xdm. Choose between the sample Xservers.* files; copy the
+appropriate one to "$(XDMDIR)/Xservers" along with the other
+files in this directory.
+
+Only a few of the many configuration parameters which xdm can be tuned with
+are set in this sample, read the xdm manual page for a complete description.
diff --git a/config/TakeConsole b/config/TakeConsole
new file mode 100644
index 0000000..005c5e0
--- /dev/null
+++ b/config/TakeConsole
@@ -0,0 +1,7 @@
+#!/bin/sh
+# Reassign ownership of the console to root, this should disallow
+# assignment of console output to any random users's xterm
+# $Xorg: TakeConsole,v 1.3 2000/08/17 19:54:17 cpqbld Exp $
+#
+chmod 622 /dev/console
+chown root /dev/console
diff --git a/config/Xaccess b/config/Xaccess
new file mode 100644
index 0000000..b41c4c3
--- /dev/null
+++ b/config/Xaccess
@@ -0,0 +1,68 @@
+# $Xorg: Xaccess,v 1.3 2000/08/17 19:54:17 cpqbld Exp $
+#
+# Access control file for XDMCP connections
+#
+# To control Direct and Broadcast access:
+#
+# pattern
+#
+# To control Indirect queries:
+#
+# pattern list of hostnames and/or macros ...
+#
+# To use the chooser:
+#
+# pattern CHOOSER BROADCAST
+#
+# or
+#
+# pattern CHOOSER list of hostnames and/or macros ...
+#
+# To define macros:
+#
+# %name list of hosts ...
+#
+# The first form tells xdm which displays to respond to itself.
+# The second form tells xdm to forward indirect queries from hosts matching
+# the specified pattern to the indicated list of hosts.
+# The third form tells xdm to handle indirect queries using the chooser;
+# the chooser is directed to send its own queries out via the broadcast
+# address and display the results on the terminal.
+# The fourth form is similar to the third, except instead of using the
+# broadcast address, it sends DirectQuerys to each of the hosts in the list
+#
+# In all cases, xdm uses the first entry which matches the terminal;
+# for IndirectQuery messages only entries with right hand sides can
+# match, for Direct and Broadcast Query messages, only entries without
+# right hand sides can match.
+#
+
+* #any host can get a login window
+
+#
+# To hardwire a specific terminal to a specific host, you can
+# leave the terminal sending indirect queries to this host, and
+# use an entry of the form:
+#
+
+#terminal-a host-a
+
+
+#
+# The nicest way to run the chooser is to just ask it to broadcast
+# requests to the network - that way new hosts show up automatically.
+# Sometimes, however, the chooser can't figure out how to broadcast,
+# so this may not work in all environments.
+#
+
+* CHOOSER BROADCAST #any indirect host can get a chooser
+
+#
+# If you'd prefer to configure the set of hosts each terminal sees,
+# then just uncomment these lines (and comment the CHOOSER line above)
+# and edit the %hostlist line as appropriate
+#
+
+#%hostlist host-a host-b
+
+#* CHOOSER %hostlist #
diff --git a/config/Xservers.fs b/config/Xservers.fs
new file mode 100644
index 0000000..5c1c900
--- /dev/null
+++ b/config/Xservers.fs
@@ -0,0 +1,11 @@
+# $Xorg: Xservers.fs,v 1.3 2000/08/17 19:54:17 cpqbld Exp $
+#
+# Xservers file, fileserver prototype (any machine without a display)
+#
+# Put X terminals which don't support XDMCP in this file; you will
+# want to leave those terminals on and connected to the network, else
+# xdm will have a tougher time managing them.
+#
+# Each line should look like:
+#
+# XterminalName:0 foreign
diff --git a/config/Xservers.ws.cpp b/config/Xservers.ws.cpp
new file mode 100644
index 0000000..6153daf
--- /dev/null
+++ b/config/Xservers.ws.cpp
@@ -0,0 +1,13 @@
+XCOMM $Xorg: Xserv.ws.cpp,v 1.3 2000/08/17 19:54:17 cpqbld Exp $
+XCOMM
+XCOMM Xservers file, workstation prototype
+XCOMM
+XCOMM This file should contain an entry to start the server on the
+XCOMM local display; if you have more than one display (not screen),
+XCOMM you can add entries to the list (one per line). If you also
+XCOMM have some X terminals connected which do not support XDMCP,
+XCOMM you can add them here as well. Each X terminal line should
+XCOMM look like:
+XCOMM XTerminalName:0 foreign
+XCOMM
+:0 local BINDIR/X
diff --git a/config/Xsetup_0 b/config/Xsetup_0
new file mode 100644
index 0000000..8e30694
--- /dev/null
+++ b/config/Xsetup_0
@@ -0,0 +1,3 @@
+#!/bin/sh
+# $Xorg: Xsetup_0,v 1.3 2000/08/17 19:54:17 cpqbld Exp $
+xconsole -geometry 480x130-0-0 -daemon -notify -verbose -fn fixed -exitOnFail
diff --git a/config/xdm-config.cpp b/config/xdm-config.cpp
new file mode 100644
index 0000000..0f81104
--- /dev/null
+++ b/config/xdm-config.cpp
@@ -0,0 +1,19 @@
+! $Xorg: xdm-conf.cpp,v 1.3 2000/08/17 19:54:17 cpqbld Exp $
+DisplayManager.errorLogFile: XDMDIR/xdm-errors
+DisplayManager.pidFile: XDMDIR/xdm-pid
+DisplayManager.keyFile: XDMDIR/xdm-keys
+DisplayManager.servers: XDMDIR/Xservers
+DisplayManager.accessFile: XDMDIR/Xaccess
+! All displays should use authorization, but we cannot be sure
+! X terminals will be configured that way, so by default
+! use authorization only for local displays :0, :1, etc.
+DisplayManager._0.authorize: true
+DisplayManager._1.authorize: true
+! The following three resources set up display :0 as the console.
+DisplayManager._0.setup: XDMDIR/Xsetup_0
+DisplayManager._0.startup: XDMDIR/GiveConsole
+DisplayManager._0.reset: XDMDIR/TakeConsole
+!
+DisplayManager*resources: XDMDIR/Xresources
+DisplayManager*session: XDMDIR/Xsession
+DisplayManager*authComplain: false