Re: X server via network.

1997-06-10 Thread Sebastien Phelep

On 9 Jun 1997, Chris Brown wrote:

> 
>  The other day I set up a couple of new machines and decided to 
> monitor then from home.  One thng that I thought would be nice was to 
> run the procmeter on the remote machine.  I'v never run any 
> applications on X via a network connection befor so I thought this 
> would be interesting.  After doing an rlogin and setting the DISPLAY 
> environvent variable like so: "foo.bar.com:0.0".  I ran the procmeter 
> and it said that it didn't have permission to connect to the X 
> server.  Somewhere there must be a file that I need to grant this 
> permission in but I am not familiar enough with X to know about 
> this one and I'm not even sure where to look.  Can someone point me 
> in the right direction.
>
You need to tell your local machine that X connections from your remote
ones are allowed. This is done using "xhost".
Here's an example:

Your remote machine is remote.foobar.com, your local one local.foobar.com;
On your local machine, type "xhost + remote.foobar.com", on the remote
one, type "setenv DISPLAY local.foobar.com:0.0" (C Shell) or "export
DISPLAY=local.foobar.com:0.0" (Bourne Shell).

You should now be able to get what you wanted.
Warning: anybody can display a program on your own Display once you've
granted permissions with xhost.

[META ON]
Curiously, SUN workstations seem to refuse granting remote Linux
workstations such rights...
Apparently, the two machine's domains must be the same.
[META OFF]


Hope it helps,
Seb.

---
Sébastien Phélep -  Etudiant en deuxième année d'informatique, IUT de Vannes.
[EMAIL PROTECTED] --- [EMAIL PROTECTED] --- [EMAIL PROTECTED]



--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to
[EMAIL PROTECTED] .
Trouble?  e-mail to [EMAIL PROTECTED] .


Problems with g++

1997-06-09 Thread Sebastien Phelep
 Hello.
 
I'm having problems with g++: when I launch a program I've compiled with
it, I have a segmentation fault; I first thought that it was my program
that was bad, but even if I make a *very* simple program (a Point class,
with a main that just adds a new point and deletes it immediately after),
I get a SEGV signal.
I've tried to find what was wrong with gdb; it says that it comes from
getenv()... even if I don't use getenv !

gcc is 2.7.2.2-4; libg++ is 2.7.2.1-9 / 2.7.2.5-1

I guess it's because I've used "unstable" packages, but I'm note sure.
Does anybody knows what's the problem is ?

Thanks,
Seb.


PS: Oh yes, it compiles without any warnings...
---
Sébastien Phélep -  Etudiant en deuxième année d'informatique, IUT de Vannes.
[EMAIL PROTECTED] --- [EMAIL PROTECTED] --- [EMAIL PROTECTED]




--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to
[EMAIL PROTECTED] .
Trouble?  e-mail to [EMAIL PROTECTED] .