LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 10-31-2006, 09:35 AM   #1
Merlin53
Member
 
Registered: May 2003
Location: Dayton, Ohio
Distribution: Redhat/IRIX/Windows
Posts: 35

Rep: Reputation: 15
Console graphics access w/ nobody logged on, using rsh??


Hello,

I posted this question months ago, with no answer. Now I'm back on this same task. I need to be able to start a graphics application from either a rsh or a rlogin with nobody logged into the console. We are using Red Hat 9, init 5, on all our systems. How can I invoke a graphics application that is passed data via the network to display graphics on the console screen without someone having to physically log on to the console first? I know we can log on and run xhost +, but we need to be able to fire up an application on many systems that use the console graphics without someone being logged in. This is on about twenty systems that are rack mounted, and we just need to use the graphics outputs.
Any possible solutions are welcome! This is a high priority for me to resolve soon. These systems are used just to output graphics displays. Oh, all have Nvidia cards, and we're using KDE on most if not all.

Thanks in advance for any help!!
Merlin
 
Old 11-01-2006, 07:28 AM   #2
matthewg42
Senior Member
 
Registered: Oct 2003
Location: UK
Distribution: Kubuntu 12.10 (using awesome wm though)
Posts: 3,530

Rep: Reputation: 65
I'm not 100% sure I understand what you want. If I try to give an example, tell me if it matches what you want to do...

You are logged into a machine, lets call it bertie. You have other machines, lets call one of them jeeves.

jeeves is running a local X server with KDE as the desktop environment.

You want to rsh from bertie to jeeves, and run a program which displays on jeeves' X server? For example

Code:
kdialog --msgbox "Hello jeeves user, from bertie"
...and you want to do this for lots of machines which are set up like jeeves?
 
Old 11-01-2006, 12:51 PM   #3
Merlin53
Member
 
Registered: May 2003
Location: Dayton, Ohio
Distribution: Redhat/IRIX/Windows
Posts: 35

Original Poster
Rep: Reputation: 15
You're basically correct. I have a graphics application that executes on system "jeeves" and gets all it's inputs over the network. I have a interface system "bertie" that I have another application that gathers data, computes eyepoint direction and position/orientation and passes that over the network to system "jeeves".
I would like "jeeves" to be sitting there idle with no physical log-on, and accept a signal (ssh/rsh/etc.) from "bertie" to start up his own local copy of the application, and output to his "normal" console output screen which would be his physical output from his graphics card.
I can do this now, but I have to physically log into "jeeves" to start the window manager session, and then execute "xhost +" to allow a graphics application to be invoked and gain access to the screen.
This may not seem like much extra work, but we have 16 systems to log into, and soon 32. Each time I get up to leave the room, I have to log out of each system. When I come back I have to log back into each system. My goal is to make these "jeeves" systems stand-alone turn-key display servers. The problem is getting access to the display without a user being physically logged on the console.

Any Thoughts??

Thanks,
Merlin
 
Old 11-01-2006, 02:05 PM   #4
matthewg42
Senior Member
 
Registered: Oct 2003
Location: UK
Distribution: Kubuntu 12.10 (using awesome wm though)
Posts: 3,530

Rep: Reputation: 65
When you log into jeeves using rsh/ssh/whatever, are all the command executed on the command-line? e.g.

Code:
betie$ ssh user@jeeves
Password for user@jeeves> ********
user@jeeves$ command1
user@jeeves$ command2
user@jeeves$ exit
bertie> ssh user@jeeves2
...
If so, there are a few approaches.
  1. Using public key authentication with ssh, you can execute remote commands without needing to enter a password. This means you can script commands from bertie, like this:
    Code:
    #!/bin/bash
    ssh user@jeeves command1
    ssh user@jeeves command2
    ssh user@jeeves2 command1
    ssh user@jeeves2 command2
  2. You can use expect to automate logins, execute commands and conditionally perform tasks according to the output of those commands.

If however, you need to do stuff with the GUI, you'd need an X progam which does something like winrunner. I'm not sure about that. It's not a certain cause for depression though - many KDE applications can be instructed to do GUI things from the command line via the dcop interface. If course this requires that the app you want to control has a dcop interface and that it is designed to do what you want in a script-able manner.
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
allowing rsh access uerden Linux - Networking 5 11-08-2006 02:15 PM
rsh with root access? asadarfeen Linux - Enterprise 1 08-23-2005 06:34 PM
Xhost/xauth: Can I get access to the graphics console without anyone being logged in? Merlin53 Linux - General 10 01-07-2005 01:32 PM
how to verify rsh access uerden Linux - General 3 02-20-2004 10:13 AM
rsh access uerden Linux - General 2 02-05-2004 07:39 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 08:37 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
Open Source Consulting | Domain Registration