Re: Running X11 over a network

1998-03-27 Thread Rainer Clasen
Hi!

Uhmm, I need to correct myself: I think removing xbase is only recommended
if you exactly know what you are doing. It contains all manpages,
documentation, the X wrapper, all config-files ...
And since xbase depends on xlib6 you cannot remove it, too.

Maybe someone else has a step-by-step instruction to cope without xbase...

You may still want to use the laptop's fonts (via xfs) to avoid duplicate
installation. The basic fonts do not need much space, but maybe you are
curiose enought to try to get along without xbase - and then you must get
them from a font-server.

ok, I'll try to cleanup a little:

1) set up your network (see Ben Pfaff's mail, Net-3-HOWTO)
   I assume you gave your desktop the hostname desktop and your laptop the
   hostname laptop

2) set up the laptop:

   - install xbase, xlib6, xlib6g (if you're running hamm), xfntbase, xfnt75

   - make it run xdm and xfs: Put start-xdm and start-xfs into
 /etx/X11/config to start them automatically on reboot. See
 /usr/doc/X11/debian.README for further information about this file. If
 you want to avoid a reboot, you can start xdm / xfs manually by
 executing /etc/init.d/{xfs,xdm} start

3) set up your desktop:

   The absolute minimum package to *run* your desktop as X-terminal is:
xserver-*the Xserver you need for your graphic card
   And since it simplifies the setup, provides doc, ...
xlib6if you are running hamm, you need xlib6g instead
xbase  
   During comfortable setup you additionally need
Xserver-vga16it contains XF86Setup
xfntbase

   - install all above mentioned packages
   
   - run XF86Setup to configure the xserver

   - run startx to test the configuration (maybe tweak it with help of
 xvidtune)

   - run dselect and purge 
 xserver-vga16 (if you don't intend to run it)
 xfntbase

HINT
   - this would be the point to remove, not purge xbase. Removing keeps the
 config-files (XF86Config, ...). And if you use /usr/X11R6/bin/XF86_* as
 your xserver (instead of the wrapper /usr/X11R6/bin/X) and start it as
 root you may be able to run without xbase and xlib6.
/HINT

   - tweak /etc/X11/XF86Config to use your laptop as fontserver:

 go to
Section Files
 and add a line 
FontPath tcp/laptop:7100
 to this Section. Maybe you need to comment out other FontPath entries. I
 don't know if they mustn't exist and if they are removed automatically.
   
   - check, that /etc/X11/config doesn't contain start-xdm to avoid it
 starting up atomatically
   
   - now you can start X (runnig on the laptop, displaying on the desktop) 
 with
 X -query laptop

   - since you didn't remove xbase, you should still be able to run a local
 X with startx, but your laptop always needs to be reachable, since it's
 fonts are required.

   - you may write your own /etc/init.d/Xserver or so (take a look at
 /etc/init.d/skeleton) and make the appropriate inks in /etc/rc*.d with
 update-rc.d to start the Xserver automatically.


 Incidently, do you know what kind of performance hit I will get running
 X over 20m of BNC cable (there are 2 other (Win'95) machines on the
 network)?

I agree to Ben Pfaff that this shouldn't be a bottleneck. I was using X on a
*heavy* loaded network and it was never much too slow.

 BTW, I wasthinking about the IP addresses and would it make sense for me
 to use 192.168.xxx.1 and 192.168.xxx.2 (xxx=random number) in case I
 added someone elses Linux system to my network for some reason in the
 future?

as long as xxx is constant: yes ;-)
I would reserve at least *.1 for a possible router. I think it is very
common to use this for a router

Regards
 Rainer

---
KeyID=58341901 fingerprint=A5 57 04 B3 69 88 A1 FB  78 1D B5 64 E0 BF 72 EB


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]


Re: Running X11 over a network

1998-03-27 Thread Ian Lynagh

Hi Ben  :-)

In article [EMAIL PROTECTED], Ben Pfaff
[EMAIL PROTECTED] writes

   I am also confused about how each computer knows the others IP address.
   Does it just broadcast it over the whole network and anyone who wants it
   grabs it?

No, in one sense.  Either you have to set up hostnames in the
/etc/hosts file or run a DNS server for them to `know the others [sic]
IP address'.

So I will be able to ping/ftp/etc IP addresses without doing anything?
Do I have to do anything special to be able to ping the Linux machine
from a Win'95 box (to check the network card is setup OK)?

Yes, in one sense.  This is the ARP protocol.

Can you point me at a URL on this please?

Thanks
Ian
-- 
Ian Lynagh - [EMAIL PROTECTED]
http://home.sn.no/~balchen/igloo/

If it's tourist season, why can't we shoot 'em?


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]


Re: Running X11 over a network

1998-03-27 Thread Ben Pfaff
   No, in one sense.  Either you have to set up hostnames in the
   /etc/hosts file or run a DNS server for them to `know the others [sic]
   IP address'.

   So I will be able to ping/ftp/etc IP addresses without doing anything?
   Do I have to do anything special to be able to ping the Linux machine
   from a Win'95 box (to check the network card is setup OK)?

Yes.  No.

   Yes, in one sense.  This is the ARP protocol.

   Can you point me at a URL on this please?

http://152.15.16.15/ELET3281/ch1qr_13.html is what altavista found.
You might want to consult a basic book on TCP/IP if you're really
interested in ARP, but in normal circumstances you don't have to care
about it.


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]


Re: Running X11 over a network

1998-03-26 Thread Ian Lynagh

Hi Rainer!

In article [EMAIL PROTECTED], Rainer Clasen [EMAIL PROTECTED]
writes

According to my knowledge there are two basic setups for your desktop:
- with locally installed fonts
  glancing at package dependencies it needs Xserver, xfntbase, xlib6, xbase
- using the laptop as fontserver
  now it only needs Xserver and an appropriate configured XF86Config :-)

When you become more experienced (and diskspace is an issue) you can switch
to the second setup and purge xbase, xfntbase, xlib6 (, xserver-vga16).

What changes will I need to make?

Incidently, do you know what kind of performance hit I will get running
X over 20m of BNC cable (there are 2 other (Win'95) machines on the
network)?

BTW, I wasthinking about the IP addresses and would it make sense for me
to use 192.168.xxx.1 and 192.168.xxx.2 (xxx=random number) in case I
added someone elses Linux system to my network for some reason in the
future?

I am also confused about how each computer knows the others IP address.
Does it just broadcast it over the whole network and anyone who wants it
grabs it?

Thanks
Ian
-- 
Ian Lynagh - [EMAIL PROTECTED]
http://home.sn.no/~balchen/igloo/

Why do they put Braille dots on the keypad of the drive-up ATM?


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]


Re: Running X11 over a network

1998-03-26 Thread Ben Pfaff
   Incidently, do you know what kind of performance hit I will get running
   X over 20m of BNC cable (there are 2 other (Win'95) machines on the
   network)?

It won't be too bad.  I used to regularly run Netscape remotely from
an SGI halfway across campus, and the performance was quite
acceptable.  Other than startup time (which is always slow with
Netscape), it was hard to tell that I wasn't sitting at the SGI.

   BTW, I wasthinking about the IP addresses and would it make sense for me
   to use 192.168.xxx.1 and 192.168.xxx.2 (xxx=random number) in case I
   added someone elses Linux system to my network for some reason in the
   future?

It doesn't matter.  You can always change IP addresses.  Personally, I
use 192.168.128.x just for the hell of it.

   I am also confused about how each computer knows the others IP address.
   Does it just broadcast it over the whole network and anyone who wants it
   grabs it?

No, in one sense.  Either you have to set up hostnames in the
/etc/hosts file or run a DNS server for them to `know the others [sic]
IP address'.

Yes, in one sense.  This is the ARP protocol.


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]


Re: Running X11 over a network

1998-03-25 Thread Rainer Clasen
Hi, Ian!


 So I skip the export, startx and xhost steps replacing them with X -q...
 on the desktop. 

correct!

 Packages installed as above, uses window manager on the
 laptop?

yes, this way all X-applications (including WMs) run on the laptop.

 Does XDM require you to log in? If so, can I make it
 automatically send the info I used to log in to the console (both will
 have identical user details).

I think XDM requires you to log in. But you may start the desktop's X-server
on startup to avoid you to log in twice.

 BTW, does the laptop need xbase and xlib6g?

yes, the laptop needs them and of course every application you want to run.
You needn't bother with setting up a Xserver on your Laptop if you don't
want to.

According to my knowledge there are two basic setups for your desktop:
- with locally installed fonts
  glancing at package dependencies it needs Xserver, xfntbase, xlib6, xbase
- using the laptop as fontserver
  now it only needs Xserver and an appropriate configured XF86Config :-)

I suggest to start with the first setup + xserver-vga16. Then you can use
the graphic XF86Setup to configure your desktops xserver.
When you become more experienced (and diskspace is an issue) you can switch
to the second setup and purge xbase, xfntbase, xlib6 (, xserver-vga16).

Regards
 Rainer

---
KeyID=58341901 fingerprint=A5 57 04 B3 69 88 A1 FB  78 1D B5 64 E0 BF 72 EB


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]


Re: Running X11 over a network

1998-03-24 Thread Rainer Clasen
Hi!

Ben Pfaff ([EMAIL PROTECTED]):

 Try this, which is slightly different:
 
 * Give 192.168.1.1 to the laptop.
 * Give 192.168.1.2 to the desktop.
 * Install any X software you want, but no xserver package, on the laptop.
 * Install only xserver-* (whichever you need), xbase, xlib6g on the server.

 * On the laptop do `export DISPLAY=192.168.1.2:0' in bash.
 * Run `startx', then `xhost +192.168.1.1' on the 486.
 * Run your xclients from the laptop command line.

How about running 'X -query 192.168.1.1' on the desktop?
This should give you the XDM-login of your laptop. IIRC every host can
connect to an XDM by default. Otherwise you need to add a line with a * to
/etc/X11/Xaccess.


Regards
 Rainer

---
KeyID=58341901 fingerprint=A5 57 04 B3 69 88 A1 FB  78 1D B5 64 E0 BF 72 EB


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]


Re: Running X11 over a network

1998-03-24 Thread Ian Lynagh

Hi Rainer  :-)

In article [EMAIL PROTECTED], Rainer Clasen [EMAIL PROTECTED]
writes

Ben Pfaff ([EMAIL PROTECTED]):

 Try this, which is slightly different:
 
 * Give 192.168.1.1 to the laptop.
 * Give 192.168.1.2 to the desktop.
 * Install any X software you want, but no xserver package, on the laptop.
 * Install only xserver-* (whichever you need), xbase, xlib6g on the server.

 * On the laptop do `export DISPLAY=192.168.1.2:0' in bash.
 * Run `startx', then `xhost +192.168.1.1' on the 486.
 * Run your xclients from the laptop command line.

How about running 'X -query 192.168.1.1' on the desktop?
This should give you the XDM-login of your laptop. IIRC every host can
connect to an XDM by default. Otherwise you need to add a line with a * to
/etc/X11/Xaccess.

Just to clarify...

So I skip the export, startx and xhost steps replacing them with X -q...
on the desktop. Packages installed as above, uses window manager on the
laptop? Does XDM require you to log in? If so, can I make it
automatically send the info I used to log in to the console (both will
have identical user details).

BTW, does the laptop need xbase and xlib6g?

Thanks
Ian
-- 
Ian Lynagh - [EMAIL PROTECTED]
http://home.sn.no/~balchen/igloo/

Oxymoron #12: Dry Wine


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]


Running X11 over a network

1998-03-23 Thread Ian Lynagh

Hi all

I have a small problem and wonder if anyone can help me?

I have 2 computers both of which will shortly be running
Hamm and both of which will have BNC network cards. One
of them, a laptop, has a fast CPU and piles of memory
but a NeoMagic video card  :(
The other, an old 486, has a slow CPU and very little memory,
but (I hope) a supported video card. So I want to set it up
so that X runs on the laptop but displays on the Pentium.

By talking to various people this is what I have got so far.
any corrections gratefully received:

* Install Hamm and, when prompted for IP addresses, give
  192.168.1.1 and 192.168.1.2 (even though they may both be
  connecting to the 'net via a modem with a fixed IP address)
* install X on the laptop only (?)
* on the 486 type xhost +
* on the laptop type DISPLAY=ip:0.0 ; export DISPLAY (I am using Bash)
* on the laptop I type startx

Somehow this doesn't seem quite right to me.

I am also interested in how to run console aplications in this
way too.

Thanks in advance
Ian
-- 
Ian Lynagh - [EMAIL PROTECTED]
http://home.sn.no/~balchen/igloo/

Welcome to Hell. Here's your copy of Windows.


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]


Re: Running X11 over a network

1998-03-23 Thread Ben Pfaff
   * Install Hamm and, when prompted for IP addresses, give
 192.168.1.1 and 192.168.1.2 (even though they may both be
 connecting to the 'net via a modem with a fixed IP address)
   * install X on the laptop only (?)
   * on the 486 type xhost +
   * on the laptop type DISPLAY=ip:0.0 ; export DISPLAY (I am using Bash)
   * on the laptop I type startx

   Somehow this doesn't seem quite right to me.

Try this, which is slightly different:

* Give 192.168.1.1 to the laptop.
* Give 192.168.1.2 to the desktop.
* Install any X software you want, but no xserver package, on the laptop.
* Install only xserver-* (whichever you need), xbase, xlib6g on the server.
* On the laptop do `export DISPLAY=192.168.1.2:0' in bash.
* Run `startx', then `xhost +192.168.1.1' on the 486.
* Run your xclients from the laptop command line.

   I am also interested in how to run console aplications in this
   way too.

You can just telnet from one machine to the other or run an xterm.


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]


Re: Running X11 over a network

1998-03-23 Thread Ian Lynagh
In article [EMAIL PROTECTED], Ben Pfaff
[EMAIL PROTECTED] writes

Try this, which is slightly different:

* Give 192.168.1.1 to the laptop.
* Give 192.168.1.2 to the desktop.
* Install any X software you want, but no xserver package, on the laptop.
* Install only xserver-* (whichever you need), xbase, xlib6g on the server.

How CPU/RAM heavy are these 3 only?
Is it absolutely necessary t run them on the 486?

* On the laptop do `export DISPLAY=192.168.1.2:0' in bash.

Ah, that makes more sense.

* Run `startx', then `xhost +192.168.1.1' on the 486.

Presumably I could put the xhost line in the startx script?
Whereabouts should it go?

I am still confused as to how I would specify which window manager
I want to use and which computer it goes on?

* Run your xclients from the laptop command line.

   I am also interested in how to run console aplications in this
   way too.

You can just telnet from one machine to the other or run an xterm.

Doh! Of course :)

Is there anyway to run them locally without cp'ing them to the local
HD? And speaking of which, is there a way to cp across a LAN or would
I have to FTP them or use Samba or something?

And one more quick question: Do I need to tell each computer the IP
address of the other one?

Thanks
Ian
-- 
Ian Lynagh - [EMAIL PROTECTED]
http://home.sn.no/~balchen/igloo/

Welcome to Hell. Here's your copy of Windows.


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]


Re: Running X11 over a network

1998-03-23 Thread Ben Pfaff
   In article [EMAIL PROTECTED], Ben Pfaff
   [EMAIL PROTECTED] writes
   
   Try this, which is slightly different:
   
   * Give 192.168.1.1 to the laptop.
   * Give 192.168.1.2 to the desktop.
   * Install any X software you want, but no xserver package, on the laptop.
   * Install only xserver-* (whichever you need), xbase, xlib6g on the server.

   How CPU/RAM heavy are these 3 only?
   Is it absolutely necessary t run them on the 486?

xserver-*: This actually talks to the hardware.  Definitely necessary.
xbase: This is where the `xhost' program, which you need, comes from.  
xlib6g: Library required by xbase.

   * On the laptop do `export DISPLAY=192.168.1.2:0' in bash.

   Ah, that makes more sense.

   * Run `startx', then `xhost +192.168.1.1' on the 486.

   Presumably I could put the xhost line in the startx script?
   Whereabouts should it go?

It could go in /etc/X11/Xsession (near the top probably), but I don't
think it could go in startx.

   I am still confused as to how I would specify which window manager
   I want to use and which computer it goes on?

If you add /usr/X11R6/bin/xterm at the beginning of
/etc/X11/window-managers, then you can run a window manager remotely
(on the laptop), and just have an xterm running on the 486.  Maybe
there's a more elegant way to do this (any X11 wizards around?).

   Is there anyway to run them locally without cp'ing them to the local
   HD? And speaking of which, is there a way to cp across a LAN or would
   I have to FTP them or use Samba or something?

You can use the `rcp' command if you set up hosts.equiv properly.

   And one more quick question: Do I need to tell each computer the IP
   address of the other one?

That's what the `export DISPLAY' and `xhost' commands do, in part.
Other than that, there's nothing to do.


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]