[3654] in RedHat Linux List
Re: xdm
daemon@ATHENA.MIT.EDU (Joerg Mertin)
Sat Nov 9 21:42:11 1996
From: smurphy@stardust.bln.sub.org (Joerg Mertin)
To: redhat-list@redhat.com
Date: Sat, 9 Nov 1996 22:45:02 +0100 (MET)
Reply-To: smurphy@antares.zrz.TU-Berlin.DE
In-Reply-To: <199611092019.PAA04127@redhat.com> from Wierdl Mate at "Nov 9, 96 02:19:58 pm"
Resent-From: redhat-list@redhat.com
According to Wierdl Mate:
> For xdm, you need to do two things:
>
> 1) Set up your environment in ~/.xsession (.xsession is read at
> login under xdm). Here is my .xsession:
Well, that nice, bu only the User will have the enviroenement. I make
all this in /etc/X11/xdm Directory:
>
> #!/bin/bash
> # begin ~/.xsession
>
> # systemwide config
>
> if [ -f /etc/profile ]; then
> source /etc/profile
> fi
>
>
> if [ -f /etc/bashrc ]; then
> source /etc/bashrc
> fi
>
>
> # my profile
>
> if [ -f ~/.bash_profile ]; then
> source ~/.bash_profile
> fi
>
> # keymaps
> if [ -f ~/.Xmodmap ]; then
> xmodmap ~/.Xmodmap
> fi
>
> # pland daemon for plan
>
> pland -k
>
> rxvt &
>
> xhost moni
> xhost zebra
^^^^^^^^^^^^^Hmmm... Big Security Breach. Why not Create a .Xauthority
file in $HOME ??? I use the following Script for this. Each new
X-Session uses it:
--------------------------------------Cut------------------------------
#!/bin/sh
#
# /usr/bin/newcookie
# started in .xserverrc - Xserver startup file
#
HOST=`hostname`
authfile="${XAUTHORITY-$HOME/.Xauthority}"
chmod 600 "${authfile}"
gencookie='
# generate random cookie from portable shell tools
( ps -ael ; netstat -n ) |
compress |
tr "\100-\377" "\007-\077\001-\077\001-\077\001-\077" |
tr "\001-\077" "9a-f0-9a-f0-9a-f0-9a-f0-9" |
fold -32 |
awk "{ l1=l2; l2=l3; l3=l4; l4=\$0; } END { print l1 }"
'
COOKIE="`eval \"$gencookie\"`"
case "$COOKIE" in
????????????????????????????????) ;; # length is ok
*) echo "illegal cookie made!? please verify $0" >&2; exit 1 ;;
esac
xauth add :0 . "$COOKIE"
xauth add ${HOST}:0 . "$COOKIE"
--------------------------------------Cut------------------------------
Ok, its a bad Hack, but it works :) If the Homedirectoreis are mounted
by NFS, it#s absolutely no Problem in using these, since the
.Xauthority file exists in the Homedir. Else, you'll hve to ftp the
current .Xauthority file before you start a Programm from the Remote
Host on your Display.
>
> if [ ! -z $(type -path oclock) ]; then
> oclock -geometry +0+0 &
> else
> xclock -geometry +0+0 &
> fi
>
> if [ ! -z $(type -path fvwm) ]; then
> exec fvwm
> else
> exec twm
> fi
>
> # end ~/.xsession
>
> You probably want to modify this (especially, if you have a different
> shell from bash). You (probably) also want to have the
> following in ~/.Xmodmap
>
> keycode 22 = BackSpace
> keycode 107 = Delete
OK. Could be included there too.
>
>
> To try out xdm, do
> $ /usr/bin/X11/xdm -nodaemon
Correct :)
>
>
> 2) Make 5 your default runlevel. You do this by making this change in
> /etc/inittab
>
> #id:3:initdefault:
> id:5:initdefault:
>
>
> To try out xdm, do
> $ /usr/bin/X11/xdm -nodaemon
> If it looks OK, reboot.
cu
--
`*** Fatal Error: Found [MS-Windows] -> Repartitioning Disk for LiNUX...'
------------------------------------------------------------------------
| Joerg Mertin : smurphy@linux.de (Home) |
| in Berlin Spandau at : joerg@pc50.zrz.tu-berlin.de |
| Stardust's LiNUX System : Data, Fax & Voice 49 30 3627345 |
| PGP 2.6.2i Key on Demand : ZyXEL Link |
------------------------------------------------------------------------
PGP Key fingerprint = C6 3F A3 12 D7 EE 60 27 88 A0 01 E6 0B 11 45 67
--
PLEASE read the Red Hat FAQ, Tips, Errata and the MAILING LIST ARCHIVES!
________________________________________________________________________
http://www.redhat.com/RedHat-FAQ http://www.redhat.com/RedHat-Errata
http://www.redhat.com/RedHat-Tips http://www.redhat.com/mailing-lists
------------------------------------------------------------------------
To unsubscribe: mail -s unsubscribe redhat-list-request@redhat.com < /dev/null