Subject: A couple of Problems

From: Jim Worthington <[email-masked]>
Date: Sat, 07 Sep 1996 00:54:48 -0400

I'm having the following problems, any suggestions woulg be greatly
appreciated.

Jim

(1) Netscape 3.0B7 - non debian

    The backspace key doesn't work.  Is this a setup problem?
    I'm using TCSH shell

(2) xdm - Debian 1.1.0 release

    The Debian login window appears, After a correct login it tries
    to do something (a few horizontal bars across the root window) 
    and then the login window re-appears. Same process repeats
    resulting in an endless loop. 

    An incorrect login produces a red incorrect login message as
    it should. Any Ideas?

    startx works fine.

---

From: Vadik Vygonets <[email-masked]>
Date: Sat, 7 Sep 1996 12:11:28 +0300 (IDT)

>     The backspace key doesn't work.  Is this a setup problem?

Put the following line in your /etc/X11/Xmodmap:
keycode 22 = BackSpace

Vad.

++        _ 
Vadik V. (_`    [email-masked]  http://www.nether.net/~legolas/
Vygonets (_.lf  PGP public key (ID 9FC1DED9) available from surfnet.nl
User Failure: Please Insert a Bootable Brain

---

From: "James A. Robinson" <[email-masked]>
Date: Sat, 07 Sep 1996 11:18:25 -0400

> Put the following line in your /etc/X11/Xmodmap:

I've found that I need to do a bit more then this because I use
emacs.

.Xmodmap
keycode 22      = BackSpace
keycode 107     = Delete

.Xresources
! Make VT100 Backspace send ^?, and Meta<Key>Backspace send ^[^?.
*VT100.Translations: #override ~Meta<Key>BackSpace: string(0x7F)\n\
			     Meta<Key>BackSpace: string(0x1B) string(0x7F)\n\

XTerm*eightBitInput:           False
XTerm*eightBitOutput:          True

.emacs
;;; Add a DELETE key if possible.
(define-key function-key-map [delete] nil)
(global-set-key [delete] 'delete-char)

Jim

---

From: "Miguel A. Avillez" <[email-masked]>
Date: Sat, 7 Sep 1996 16:28:49 +0000 (GMT)

Hi all

Cna anynone please tell me how do I mirror a site?
Is there any howto?

what are the procedures? Which files shall I configure?

thanks

miguel

---

From: Jim Worthington <[email-masked]>
Date: Sat, 07 Sep 1996 11:27:38 -0400

> Put the following line in your /etc/X11/Xmodmap:
 
I tried adding the line to /etc/X11/Xmodmap -- It didn't work.
I also tried creating  ~/.Xmodmap and ~/.xmodmaprc files with the 
same data.  These did not work either.

I tried typing xmodmap -e "keycode 22 = BackSpace"   This worked for
the session.  I suppose I could put it in the .cshrc file but something
is still broken. 

It looks as if my /etc/X11/Xsession file is not being read.  Where
does this get called from?  I suspect that whatever is causing this
problem is also responsible for my xdm problem. /etc/X11/config also
looks OK.

Jim

---

From: [email-masked]
Date: Sat, 7 Sep 96 12:11 EDT

Miguel> Cna anynone please tell me how do I mirror a site?  Is there any
  Miguel> howto?

No, but I've put a README with some documentation, as well as an example file
for ftp.debian.org, into the Debian mirror package. The manual page for
mirror is quite good.

  Miguel> what are the procedures? Which files shall I configure?

Install 
     ftp://ftp.debian.org/pub/debian/rex/binary-all/net/mirror_2.8-7.deb
and look at the example in /etc/mirror/packages/ftp.debian.org. I recommend
creating a package file per site in /etc/mirror/packages and then to start
the mirror as
	mirror /etc/mirror/packages/<site_name>

-- 
Dirk Eddelb"uttel                             http://qed.econ.queensu.ca/~edd

---

From: "Carlo U. Segre" <[email-masked]>
Date: Sat, 7 Sep 1996 11:17:17 -0500 (CDT)

> what are the procedures? Which files shall I configure?

If you get the mirror package, the instructions are all there but in a 
nutshell, you will need to configure the files:
	/etc/mirror/packages/site.to.mirror
	/etc/mirror/mm/site.to.mirror
and then put a file in /etc/cron.daily called mirror which invokes the 
mirror-master program to do your mirroring.  As I said, this is all in 
the documentation.

Cheers,

Carlo

    ***********************************************************************
    *                            Carlo U. Segre                           *
    *      Department of Biological, Chemical and Physical Sciences       *
    *        Illinois Institute of Technology, Chicago, IL 60616          *
    *   Voice: (312) 567-3498                      FAX: (312) 567-3494    *
    *                      [email-masked]                      *
    ***********************************************************************

---

From: Vadik Vygonets <[email-masked]>
Date: Sun, 8 Sep 1996 00:36:02 +0300 (IDT)

> problem is also responsible for my xdm problem. /etc/X11/config also

I'm sending you my /etc/X11/Xsession, install it with permissions 755,
owned by root.root, of course.  This is the standard debian Xsession
(maybe it's corrupted on your system).  Run "xmodmap /etc/X11/Xmodmap" or
re-login after installing this file...  But I can see you're not a newbie
:)

All the best,
Vad.

++        _ 
Vadik V. (_`    [email-masked]  http://www.nether.net/~legolas/
Vygonets (_.lf  PGP public key (ID 9FC1DED9) available from surfnet.nl
User Failure: Please Insert a Bootable Brain
#! /bin/sh
#
# /etc/X11/Xsession
#
# This is the global Xsession file.  It is used by both xdm and xinit.

# If /etc/environment is present, source it. It's useful to put default
# environment settings in this file, and then source it both here and in
# /etc/profile.
if [ -f /etc/environment ] ; then
  . /etc/environment
fi

sysmodmap=/etc/X11/Xmodmap
usrmodmap=$HOME/.Xmodmap
sysresources=/etc/X11/Xresources
usrresources=$HOME/.Xresources

startup=$HOME/.xsession

for errfile in \
  "$HOME/.xsession-errors" "${TMPDIR-/tmp}/xses-$USER" "/tmp/xses-$USER"
do
  if ( cp /dev/null "$errfile" 2> /dev/null )
  then
    chmod 600 "$errfile"
    exec > "$errfile" 2>&1
    break
  fi
done

case $# in
1)
  case $1 in
  failsafe)
    if grep -q ^allow-failsafe /etc/X11/config
    then
      exec xterm -geometry 80x24-0-0
    fi
    ;;
  esac
esac

if [ -f $sysresources ]
then
  xrdb -merge $sysresources
fi

if [ -f $sysmodmap ]
then
  xmodmap $sysmodmap
fi

if grep -q ^allow-user-resources /etc/X11/config
then
  if [ -f $usrresources ]
  then
    xrdb -merge $usrresources
  fi
fi

if grep -q ^allow-user-modmap /etc/X11/config
then
  if [ -f $usrmodmap ]
  then
    xmodmap $usrmodmap
  fi
fi

if [ -x $startup ] && grep -q ^allow-user-xsession /etc/X11/config
then
  exec $startup
else
  xterm -ls &
  if [ -e /etc/X11/window-managers ]
  then
    for i in `cat /etc/X11/window-managers`
    do
      if [ -x $i ]
      then
	exec $i
      fi
    done
  fi
  if [ -x /usr/X11R6/bin/fvwm ]
  then
    exec fvwm
  fi
  exec twm
fi

---

From: Vadik Vygonets <[email-masked]>
Date: Sun, 8 Sep 1996 00:51:44 +0300 (IDT)

> problem is also responsible for my xdm problem. /etc/X11/config also

Oh I forgot...  it must be called from xdm or xinit.  All the output of
this file must go to ~/.xsession-errors, so try to echo some debug info
from /etc/X11/Xsession and look wether it's in the file.  The permissions
and owner of this file are:
marvin:/etc/X11> ls -lFd /etc /etc/X11 /etc/X11/Xsession
drwxr-xr-x  28 root     root         3072 Sep  7 04:14 /etc/
drwxr-xr-x   9 root     root         1024 Jun 29 22:54 /etc/X11/
-rwxr-xr-x   1 root     root         1534 May  7 18:00 /etc/X11/Xsession*

Good luck.
Vad.

++        _

---

From: Vadik Vygonets <[email-masked]>
Date: Sun, 8 Sep 1996 00:42:06 +0300 (IDT)

> keycode 107     = Delete

107 is Delete by default.

> Jim

The .xresources and .emacs code is nice, thanks, I copied it to my
configs.

Vad.

++        _

---

From: "Susan G. Kleinmann" <[email-masked]>
Date: Sat, 07 Sep 1996 19:48:16 -0400

Hi Jim --
> same data.  These did not work either.

Did you run xmodmap ~/.xmodmaprc after you changed it?  If not, then the
edits you made wouldn't have any effect. 

Edits to the system file (/etc/X11/Xmodmap) are meant to be read in 
during X initialization, either by the system xinitrc or by the system
Xsession file, both of which are in /etc/X11.

Good luck,
Susan Kleinmann

---

From: Jim Worthington <[email-masked]>
Date: Sun, 08 Sep 1996 12:10:40 -0400

Vadik Vygonets wrote:
> > It looks as if my /etc/X11/Xsession file is not being read.

After several hours of floundering, I got xdm working. xdm was not
running, I believe because some of the xdm startup files including
/etc/X11/Xsession were not executable.
One of the files in the /etc/X11/xdm directory was missing.

I've found that if there is an installation problem, that merely
rerunning dpkg -i on the .deb package won't necessarily resolve the
problem even if no error messages are reported on the second try.  I've
found that the bad install must first be removed before trying a
reinstall.  This has been the cause of most the installation problems
that I have encountered.
 
> from /etc/X11/Xsession and look wether it's in the file.

I tried echoing messages from the /etc/X11/Xsession file.  I found that
this
file only gets invoked from xdm.  It does not get invoked from xstart or
xinit.
Since /etc/X11/Xmodmap is called from /etc/X11/Xsession, it also would
not be
invoked from xinit.

I prefer using xinit over xdm since I use several different windows
managers.  I ended up putting the statement "xmodmap .Xmodmap" in my
.xinitrc file.  I don't care for the long script provided in the system
xinitrc file.  It is actually a link to the /etc/X11/Xsession file.  I
don't include the script in my .xinitrc file since it makes maintenance
of my desktop difficult. I like to use the save desktop module thats
provided with fvwm2-95.  If the script is present, I have to do a lot of
editing.  It would be nice if both the system xinitrc and the ~/.xinitrc
could be called.  The system file for the scripts and the .xinitrc for
the desktop.  The system file, however is not invoked if the user's file
is present.

Thanks for the help,

Jim

---

From: Shaya Potter <[email-masked]>
Date: Sun, 8 Sep 1996 16:03:37 -0400 (EDT)

netscape is a motif application, and all motif application will show that 
behavior, there is a program written by one of the people at netscape 
that is included in some X distributions.  If you want it look at the 
netscape faq at netscape site, it will give you a link to the program.

Hope this helps,

Shaya
--
Shaya Potter
[email-masked]

---

From: "Brian C. White" <[email-masked]>
Date: Sun, 08 Sep 1996 14:26:09 -0400

>     The backspace key doesn't work.  Is this a setup problem?

You need to tell Netscape how to find the XKeySymDB file.  Try this:

setenv XKEYSYMDB /usr/X11R6/lib/X11/XKeysymDB

Or, use the Debian package.
                                             
                                          Brian
                                 ( [email-masked] )
                                             
-------------------------------------------------------------------------------
    In theory, theory and practice are the same.  In practice, they're not.

---

From: Vadik Vygonets <[email-masked]>
Date: Mon, 9 Sep 1996 19:35:56 +0300 (IDT)

> file only gets invoked from xdm.  It does not get invoked from xstart or

You meant startx, not xstart.

> Since /etc/X11/Xmodmap is called from /etc/X11/Xsession, it also would

Same here.  Just put the line "xmodmap /etc/X11/Xmodmap" in your
.xsession, that's all you can do :)

> managers.

So what?  Do you want to execute X without any window manager?  Just make
your .xsession look like this:

xmodmap ~/.anything
xterm -geometry +0+0

That's all!

Vad.

++        _