Click to See Complete Forum and Search --> : How can X be used on terminals and locally?


legaviu
02-10-2001, 09:20 AM
I want to use xdm so that my kids can access a grafical workstation.

What I have:

AMD 750 Mhz 30Gigs 64MB (ip 192.168.0.1) Mandrake 7.2 Got NFS running and all works well.
a couple 486DX2 8Mb 120Mb and a 8xCD (ip 192.168.0.2 and 3) TinyLinux and MuLinux both with X and network support NFS

120Mb aint much, so burned most static system files on a CD and modified the rc scripts to reference the CD ROM to start this computers and left about 70MB free on the 120MB drive (30meg swap file), no problem here.

Now back to XDMCP read most of whats out there, but used Thomas Chao's XDMCP Howto

at section 2.4 he states the following

"...Modify /etc/rc.d/init.d/xfs and make the following changes. Change all (this is were the Font Sever port):

daemon xfs -droppriv -daemon -port -1

to

daemon xfs -droppriv -daemon -port 7100
..."

What I found in this file was

daemon xfs -droppriv -port -1 -nodaemon

so changed it to:

daemon xfs -droppriv -port 7100 -daemon

The HOWTO also explains that I should modify:

/etc/X11/xdm/Xaccess ....
* didn't change this, cause it had...
* CHOOSER BROADCAST
/etc/X11/gdm/gdm.conf....
[xdmcp] Enable = 1
Port=777 (at the end of block xdmcp)...
did so
/etc/inittab......................
id:5:initdefault:...............................
this was all set as well
/etc/X11/XServers............
:0 A local /usr/X11R6/bin/X :0
:1 B local /usr/X11R6/bin/X :1 .......
added this to /etc/X11/xdm/Xservers
chmod 755 /etc/X11/xdm/Xsetup_0 ....
chmod too 750 using group --- lclgrpxx2 for security

Restarted the server and found out that the terminals worked wonderfully, but the server (AMD 750) could not start X

Made backups of all files before modifying them. So after testing each one, found that the problem was solved when replacing /etc/rc.d/init.d/xfs with its original file. The problem was basically the port. How can I get the port to work locally at 7100??

The second question is, the /etc/X11/xdm/Xservers file should be set to something like the following??

:0 local /usr/X11R6/bin/X
kid1:0 A foreign /usr/X11R6/bin/X: 0
kid2:0 B foreign /usr/X11R6/bin/X: 0 ????

Ideas please? :eek: