On Aug 7, Frank Barknecht wrote > Igor Grobman hat gesagt: // Igor Grobman wrote: ([EMAIL PROTECTED]): > > > > > > > So my question is: > > > How can I be talked at my local Debian-machine?? > > > > > > You need to set your hostname to the one that resolves into your ip > > address. > > For example node32.yourprovider.com This can be done by modifying > > /etc/hosts > > each time you connect, or by using hostname command (and running it as > > root). > > Running 'hostname node32.yourprovider.com' will set your default hostname > > to > > the above. > > I tried this now, but it didn't seem to work. Instead I couldn't open my local > display anymore for xterms and stuff, after I had changed the hostname as > root. > Isn't there another way? >
Rewrite your hosts file from /etc/ppp/ip-up, keeping the same name as is set in hostname. Here is an example: ----- snip ----- #!/bin/sh # /etc/ppp/ip-up: the command executed by pppd when IP comes up. # Copyright 1994 John A. Phillips - [EMAIL PROTECTED] # # Parameters: # $1 = network interface used (e.g. ppp0) # $2 = pathname of serial device file (e.g. /dev/modem or /dev/ttyS1) # $3 = device speed (e.g. 38400) # $4 = local address (e.g. 158.152.16.94) # $5 = remote address (e.g. 158.152.1.222) PATH=/usr/local/sbin:/usr/sbin:/sbin:/usr/local/bin:/usr/bin:/bin export PATH NETDEVICE=$1 TTYDEVICE=`basename $2` SPEED=$3 LOCAL_IP=$4 REMOTE_IP=$5 DATE=`date` # set DATE = current time # update the /etc/hosts file... # echo "# # This file automatically generated by /etc/ppp/ip-up and should # indicate the correct dynamically allocated IP address below. # # This file generated on $DATE # 127.0.0.1 localhost $LOCAL_IP host.provider.com host" > /etc/hosts ----- snip ----- Replace the "host" entries with your hostname :-)> HTH -- ----------------------------------------------------------------------------- Mike Schmitz [EMAIL PROTECTED] http://www.bend-or.com/~mschmitz Don't blame me - I voted libertarian! http://www.lp.org/ Use Debian Linux - the free Gnu/Linux http://www.debian.org/ -----------------------------------------------------------------------------