REM *** Petr Mikulik's script that starts XFree86-OS/2 *** REM Usage: REM mystartx -- starts itself as Xserver REM mystartx MachineAddress -- logs as Xterminal into specified machine REM Requirements: REM 1. In CONFIG.SYS: DEVICE=e:\XFree86\lib\XF86SUP.SYS REM 2. A. xor B. version: REM Either A. or B. or (even better) put it into TCPSTART.CMD (LANSTART.CMD) REM A. We are running TCP/IP stack (e.g. FreeTCP): rem ifconfig lo 127.0.0.1 REM B. We are not on the Net or we disable TCP/IP by this loopback: rem ifconfig lo 127.0.0.1 up REM *** Here the script starts: *** SET PATH=E:\XFree86\bin;E:\XFree86\MyBin;%PATH% SET BEGINLIBPATH=E:\XFree86\lib rem SET MANPATH=E:/XFree86/man SET X11ROOT=E: SET MYXSERVER=XF86_SVGA.exe SET XSERVER=E:/XFree86/bin/%MYXSERVER% rem This depends on your video card SET TMP=E:\TMP rem Must be on HPFS rem The following 2 SETs overwrite those of EMX (from CONFIG.SYS): SET TERM=ansi SET TERMCAP=E:/XFree86/lib/X11/etc/emx.termcap.x11 SET EDITOR=start /min/n xed SET HOME=e:\home\petr SET USER=petr SET LOGNAME=petr SET HOSTNAME=localhost SET DISPLAY=local/127.0.0.1:0.0 rem Use pipe transport rem SET DISPLAY=127.0.0.1:0.0 rem This is socket transport SET USE_HOSTS_FIRST=1 rem set & pause rem This you need while setting X up: rem call checkinstall.cmd e: rem xf86config rem goto exit if not "%1"=="" goto LogToOther e:\XFree86\bin\startx.cmd 2>error.log goto exit :LogToOther rem This will start up the server with XDMCP and will connect to that machine %MYXSERVER% -query %1 2>error.log :goto exit :exit