LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices



Reply
 
Search this Thread
Old 05-24-2003, 07:59 AM   #1
Satriani
Member
 
Registered: Mar 2003
Location: The Netherlands
Distribution: Red Hat 7.3, Red Hat 9, Solaris8, Slackware 10, Slax on USB, AIX, FreeBSD, WinXP, AIX, Ubuntu
Posts: 418

Rep: Reputation: 30
Unhappy Manage multiple linux-machines through one linux-machine howto ?


Hi everybody,

I searched everywhere, but I'm still stuck... Can someone please help me, or at least put me in the right direction?

Here is what I want:

I have laptop, running linux. (working great btw). This starts with a graphical login.
I also have two linux PC's, also providing a graphical login.
When I use M$-windows's x-win-pro (or winaxe / hummingbird exceed, or whatever win X-server) I get a box, displaying all the machines I can access (pc's are configured with xdmcp)

Now here's what I want:
When I start the laptop, I would like to see that same box, giving me the choice: login local, or remote to the Linux PC's..
Or even better: on display 1 (ctrl-alt-f7) logon local and display 2 (ctrl-alt-f8) a graphical display with the ability to choose one of the other linux machines...
Or even more better: (the perfect world): on display 1, just a local login, and all other displays (2-4) a graphical box to choose which machine I want to use.

Also, i prefer a kind of startup script, with a command to check if I am connected to a network, and if so, start the other displays, otherwise don't..

I think this should be possible. I am running Redhat 7.3 and the PC's are configured with xdmcp.

Can anyone shed some light on where / how to start ?

I would be really greatful...
 
Old 05-24-2003, 09:09 AM   #2
allo
Member
 
Registered: Jan 2003
Location: Toulouse, France
Distribution: slackware 8.1+
Posts: 35

Rep: Reputation: 15
Hello,

A simple solution:

Suppose the local linux machine - with the display in front of you have ad IP A and the remote linux boxes have adresses IP B, C, ....

type on machine A :
xhost +B
xhost +C
xhost + ...

and login in on the remote linuxes box B,C ...

telnet B
<user defined on B>
passwd : <passwd>
export DISPLAY=A:0

now if you type something like "xclock &" you have xclock on the display of machine A. and it's not necessary to launch a GUI on remote linux boxes B, C ... It's pretty useful to launch emacs like that to control your remote box.

And for simple administration of users, host files, services ... NIS - aka YP - allow you to make changes on one box and to apply theses changes on all boxes on the same NIS domain.

HTH
 
Old 05-24-2003, 09:49 AM   #3
Satriani
Member
 
Registered: Mar 2003
Location: The Netherlands
Distribution: Red Hat 7.3, Red Hat 9, Solaris8, Slackware 10, Slax on USB, AIX, FreeBSD, WinXP, AIX, Ubuntu
Posts: 418

Original Poster
Rep: Reputation: 30
Thanks, but thats how I use it now...
However, I would like to use the laptop as a display only, the PC with linux on it is much heavier equipped.....
So thats why I want to work on Display 2 as if i was on the box itself, and able to choose which machine to use.

After selecting the machine from a list on display2, i would like to see the grapchical loginscreen of that one....
 
Old 05-24-2003, 11:20 AM   #4
Satriani
Member
 
Registered: Mar 2003
Location: The Netherlands
Distribution: Red Hat 7.3, Red Hat 9, Solaris8, Slackware 10, Slax on USB, AIX, FreeBSD, WinXP, AIX, Ubuntu
Posts: 418

Original Poster
Rep: Reputation: 30
What have I done sofar:

Okay, here's where I am now:

When booting my machine, it's all default. So i get 1 X display, with a graph login.

Next I go to a terminal (ctrl-alt-f1) and login as root (using bash)
There I type:
X :1 &

This will start a second X server on display 1 (ctrl-alt-f8)

Now I type:
DISPLAY=localhost:1;export DISPLAY

Now when I type xclock in the shell, it will start xclock nicely on the X server I just started....
So far so good!

Now I run chooser BROADCAST
and indeed: all my servers show up in the chooser menu.
Then I choose the server I want to work on from the menu, and click OK.

I was hoping to see the graphical login of that server, however, nothing happens.

I do see a message Cannot create response socket

Anyone ideas ???
 
Old 05-24-2003, 03:07 PM   #5
Satriani
Member
 
Registered: Mar 2003
Location: The Netherlands
Distribution: Red Hat 7.3, Red Hat 9, Solaris8, Slackware 10, Slax on USB, AIX, FreeBSD, WinXP, AIX, Ubuntu
Posts: 418

Original Poster
Rep: Reputation: 30
Is there any way of making this work (and a way to do this at boot?)
 
Old 05-25-2003, 05:37 PM   #6
Satriani
Member
 
Registered: Mar 2003
Location: The Netherlands
Distribution: Red Hat 7.3, Red Hat 9, Solaris8, Slackware 10, Slax on USB, AIX, FreeBSD, WinXP, AIX, Ubuntu
Posts: 418

Original Poster
Rep: Reputation: 30
What is wrong with this thread? Is this question too difficult? (Or am I too stupid?)
Why are there no answers? Someone should know how ??? C'mon guys, (and girls) help me out a bit, I'm really stuck here...
 
Old 05-25-2003, 06:59 PM   #7
allo
Member
 
Registered: Jan 2003
Location: Toulouse, France
Distribution: slackware 8.1+
Posts: 35

Rep: Reputation: 15
<Quote>
Cannot create response socket
</Quote>

The remote server you want to connect probably don't have the right to create socket on your local computer - perhaps a xhost + remote IP on your laptop would help
 
Old 05-26-2003, 03:49 AM   #8
Satriani
Member
 
Registered: Mar 2003
Location: The Netherlands
Distribution: Red Hat 7.3, Red Hat 9, Solaris8, Slackware 10, Slax on USB, AIX, FreeBSD, WinXP, AIX, Ubuntu
Posts: 418

Original Poster
Rep: Reputation: 30
Thanks allo!

However, I already did that, and it still didn't work...
 
Old 06-02-2003, 09:58 AM   #9
Satriani
Member
 
Registered: Mar 2003
Location: The Netherlands
Distribution: Red Hat 7.3, Red Hat 9, Solaris8, Slackware 10, Slax on USB, AIX, FreeBSD, WinXP, AIX, Ubuntu
Posts: 418

Original Poster
Rep: Reputation: 30
Anyone have ideas ?

Im trying this for weeks now, but it seems no-one knows the answer....
 
Old 06-02-2003, 01:44 PM   #10
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 65
Take a look at these 2 docs:
http://www.ibiblio.org/pub/Linux/doc...XDM-Xterm.html
http://www.ibiblio.org/pub/Linux/doc...te-X-Apps.html
 
Old 06-02-2003, 03:26 PM   #11
Satriani
Member
 
Registered: Mar 2003
Location: The Netherlands
Distribution: Red Hat 7.3, Red Hat 9, Solaris8, Slackware 10, Slax on USB, AIX, FreeBSD, WinXP, AIX, Ubuntu
Posts: 418

Original Poster
Rep: Reputation: 30
David_Ross: A real Guru Indeed.... This was exactly what I was looking for!!! Thanks... I knew it had to be simple....

For all who are interested on how to:

I run the following command:

X :1 -query the.remote.machine

This will start a second display on my machine (ctrl-alt-F8) showing the login screen of the.remote.machine

I also found a second option, but it's not running yet (Maybe I am doing something wrong:

X :1 -indirect my.xdmcp.server

According to above links, it should show a display showing all available XDMCP-hosts in my network. But for some reason, the screen flickers a few times, but there's no lit shown....
 
Old 06-03-2003, 06:13 AM   #12
Satriani
Member
 
Registered: Mar 2003
Location: The Netherlands
Distribution: Red Hat 7.3, Red Hat 9, Solaris8, Slackware 10, Slax on USB, AIX, FreeBSD, WinXP, AIX, Ubuntu
Posts: 418

Original Poster
Rep: Reputation: 30
How can I run this command at boot, but after X has started?


I created a simple script that checks if I can reach the.remote.machine (using a ping)
If it can be reached, it should run the command, and if it's not reachable, do nothing...


Now, where to place this ?
 
Old 06-03-2003, 06:26 AM   #13
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 65
ping OTHER_HOST -c 3 -w 5 > /dev/null

If it returns 1 then the host is dead, 0 the host is alive and 2 if an error occured.
 
Old 06-03-2003, 06:26 AM   #14
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 65
As for placement I would go for rc.local
 
Old 06-03-2003, 09:42 AM   #15
Satriani
Member
 
Registered: Mar 2003
Location: The Netherlands
Distribution: Red Hat 7.3, Red Hat 9, Solaris8, Slackware 10, Slax on USB, AIX, FreeBSD, WinXP, AIX, Ubuntu
Posts: 418

Original Poster
Rep: Reputation: 30
Hi David,

I created a script with this in it:

--------------------------------------------------------------
#!/bin/bash

/usr/X11R6/bin/X :1 -query 1.2.3.4
---------------------------------------------------------------

I saved this script as /etc/X11/xconnect

Then, in rc.local I added a line:

/etc/X11/xconnect

This script generates output, and the machine starts waiting untill this job is finished. However, it's never finished. (Running X throws some information, and keeps running)



I hope you understand what i mean. It's difficult to explain if you don't know all correct terms...

The preferred outcome should be:

When I boot my machine in runlevel 5:
The default Xserver starts, (sitting in ctr-alt-f7) and showing me the login screen
then:
when 1.2.3.4 is available it should run the xconnect-script.
this script should start the remote xdm on :1 (sitting on ctr-alt-f8 ), and show me the loginscreen of the remote machine (1.2.3.4)

When i boot in runlevel 3 (or init back to init 3) it should stop all X servers running on the local machine.

Hopefully this is clear ?? Thank you in advance!

Last edited by Satriani; 06-03-2003 at 09:47 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
howto: crossover connection between two linux machines? anGeR Linux - Networking 18 07-24-2013 12:23 AM
XP machine cannot find Linux machines moonmoth Linux - Networking 1 07-31-2005 02:26 PM
browsing windows machines in linux machine SSENT12 Linux - Networking 8 07-21-2003 10:04 PM
Multiple Linux Machines using sendmail... needamiracle Linux - General 13 08-28-2002 03:38 PM
How to view NT machines on Linux machine? LenkaNguyen Linux - Networking 2 02-01-2002 11:29 AM


All times are GMT -5. The time now is 04:22 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration