Re: Looking for Talk - HOWTO
- To: Debian User List <debian-user@lists.debian.org>
- Subject: Re: Looking for Talk - HOWTO
- From: Mike Schmitz <mschmitz@coinet.com>
- Date: Thu, 7 Aug 1997 07:03:24 -0700
- Message-id: <[🔎] 19970807070324.58045@mike>
- In-reply-to: <19970807103122.52441@fliwatut.scifi.com>; from Frank Barknecht on Thu, Aug 07, 1997 at 10:31:22AM +0200
- References: <19970805154948.18266@fliwatut.scifi.com> <199708051419.KAA12420@hmm.nowhere> <19970807103122.52441@fliwatut.scifi.com>
On Aug 7, Frank Barknecht wrote
> Igor Grobman hat gesagt: // Igor Grobman wrote: (igor@digicron.com):
>
> > >
> > > 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 - john@linux.demon.co.uk
#
# 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 mschmitz@bend-or.com 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/
-----------------------------------------------------------------------------
Reply to: