Manage multiple linux-machines through one linux-machine howto ?
Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Distribution: Red Hat 7.3, Red Hat 9, Solaris8, Slackware 10, Slax on USB, AIX, FreeBSD, WinXP, AIX, Ubuntu
Posts: 418
Rep:
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 ?
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.
Distribution: Red Hat 7.3, Red Hat 9, Solaris8, Slackware 10, Slax on USB, AIX, FreeBSD, WinXP, AIX, Ubuntu
Posts: 418
Original Poster
Rep:
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....
Distribution: Red Hat 7.3, Red Hat 9, Solaris8, Slackware 10, Slax on USB, AIX, FreeBSD, WinXP, AIX, Ubuntu
Posts: 418
Original Poster
Rep:
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.
Distribution: Red Hat 7.3, Red Hat 9, Solaris8, Slackware 10, Slax on USB, AIX, FreeBSD, WinXP, AIX, Ubuntu
Posts: 418
Original Poster
Rep:
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...
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
Distribution: Red Hat 7.3, Red Hat 9, Solaris8, Slackware 10, Slax on USB, AIX, FreeBSD, WinXP, AIX, Ubuntu
Posts: 418
Original Poster
Rep:
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....
Distribution: Red Hat 7.3, Red Hat 9, Solaris8, Slackware 10, Slax on USB, AIX, FreeBSD, WinXP, AIX, Ubuntu
Posts: 418
Original Poster
Rep:
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...
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.