This is the mail archive of the cygwin-xfree@cygwin.com mailing list for the Cygwin XFree86 project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

RE: no /etc/X11 in 4.0.3


>>>>> "HH" == Harold Hunt <huntharo@msu.edu> writes:
    HH> 
    HH> Michael,
    HH> Seems to me that you probably didn't see the User's
    HH> Guide.  Follow the instructions in the User's Guide
    HH> exactly.
    HH> 
    HH> http://xfree86.cygwin.com/docs/howto/cygwin-xfree-ug.html

I also had trouble when I followed the instructions at this
url on several W2k machines. I recall not being able to
start the X server after following the instruction
"exactly".  For example, I believe the startxwin.bat file
refers to `xfce' which is not part of the default tarballs.
I happened to find xfce tarball under `contrib' directory
which seems to work.

After poking around I figured out a way to run X
server. After that, I wrote the following makefile to
automate the process of installing cygwin-xfree. This is
what I did to run cygwin X server on several W2k
machines. YMMV.

# The directory under which the cygwin binaries are mirrored.
CYGWIN_MIRROR = cygwin

cygwin-x :
	#
	# Unpack xfree86-4.0.3-*.tar.bz2
	#
	@for x in $(CYGWIN_MIRROR)/xfree/xc-4-binaries/4.0.3/xfree86-4.0.3-*.tar.bz2; do \
	  echo "Unpacking $$x ..."; \
	  bunzip2 -c $$x | (cd /; tar xvf -); \
	done
	#
	# I don't think the user's guide says anything about
	# this, but the `startx' or `startxwin.bat' files
	# refer to xfce which is not in the tarballs just
	# unpacked. However it does seem to be in a tarball
	# in the `contrib' directory.
	#
	bunzip2 -c $(CYGWIN_MIRROR)/xfree/contrib/xfce-3.4.4-cygwin.tar.bz2 | (cd /; tar xvf -)
	#
	# It looks like I need to install /etc/X11/xserver/SecurityPolicy
	# based on the error message I get if I try to start
	# the X server.
	#
	test -d /etc/X11/xserver || mkdir /etc/X11/xserver
	cp -p $(CYGWIN_MIRROR)/xfree/xc-4-binaries/4.0.3/SecurityPolicy /etc/X11/xserver
	#
	# etc-x11-vtwm.tar.bz2 has the sample X config files which unpacks 
	# under /example-x11-rc directory.  I use .xinitrc
	# from this directory.
	#
	bunzip2 -c $(CYGWIN_MIRROR)/xfree/xc-4-binaries/4.0.3/etc-x11-vtwm.tar.bz2 \
	  | (cd "`cygpath -w /`\\.." && tar xf -)
	#
	# The default screen size is too small for me.  So change it.
	#
	echo "xwin -screen 0 1000x768x24" > $(HOME)/.xserverrc
	#
	# The default startxwin.bat file starts X server, but I cannot figure out a way
	# to launch xterm after the X server starts.  So
	# this is a hack to change the last line of the
	# sample .xinitrc file to launch xterm for me.
	#
	@if [ -f $(HOME)/.xinitrc ]; then \
	  test -f $(HOME)/.xinitrc-orig || cp -p $(HOME)/.xinitrc $(HOME)/.xinitrc-orig; \
	fi
	sed 's/exec xfwm/xterm \& ; exec xfwm/' /example-x11-rc/.xinitrc-orig > $(HOME)/.xinitrc


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]