LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices



Reply
 
Search this Thread
Old 05-14-2009, 01:46 PM   #1
karinem
LQ Newbie
 
Registered: May 2009
Posts: 2

Rep: Reputation: 0
start red hat linux box remotely, not login, ssh ....


sorry, I think my question wasn't clear. I would like to auto login the linux box remotely without walking to it and entering my user info. Is it some thing that has to do with hte gnome? ...

thanks

Last edited by karinem; 05-14-2009 at 02:23 PM.
 
Old 05-14-2009, 01:57 PM   #2
TB0ne
Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 15,091

Rep: Reputation: 2718Reputation: 2718Reputation: 2718Reputation: 2718Reputation: 2718Reputation: 2718Reputation: 2718Reputation: 2718Reputation: 2718Reputation: 2718Reputation: 2718
Quote:
Originally Posted by karinem View Post
I am working in the lab that we need to start 100 linux boxes for the operations. We walk to each box and login and start some application. I would like to have a some kind of script and start this machines remotely and also the application (java ... ) without walking to each one. Is there any way that I can implement it?

Will appreciate your help!
Karine
Build a complete startup script that does everything you want. Put it on all 100 systems. Perform an SSH keyswap for a user on all the systems, so that user can do passwordless logins.

Then on your 'central' box, write a very simple shell script, like this:

Code:
ssh <whatever user ID>@<ip address of machine 1> "<your startup shell script>"
...
...
...
ssh <whatever user ID>@<ip address of machine 100> "<your startup shell script>"
When you run that script, it'll go to all 100 machines, and fire off that startup command....
 
Old 05-14-2009, 02:05 PM   #3
custangro
Senior Member
 
Registered: Nov 2006
Location: California
Distribution: Fedora , CentOS , Solaris 10, RHEL
Posts: 1,935
Blog Entries: 1

Rep: Reputation: 188Reputation: 188
Quote:
Originally Posted by karinem View Post
I am working in the lab that we need to start 100 linux boxes for the operations. We walk to each box and login and start some application. I would like to have a some kind of script and start this machines remotely and also the application (java ... ) without walking to each one. Is there any way that I can implement it?

Will appreciate your help!
Karine
You can also take a look at spacewalk...

http://www.redhat.com/spacewalk

A little tricky to set up...but once you do; you can administer/manage hundreds of systems within one console.



-C
 
Old 05-14-2009, 07:39 PM   #4
chrism01
Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.6, Centos 5.10
Posts: 16,324

Rep: Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041
Please don't edit you original post, it just confuses things.
Add a new post instead.
I'm still not clear what you want.
If you want to start an application remotely, just create the ssh keys as mentioned, then write a loop to access each box and start the app.
If you want to ensure a clean start you can have a separate script to login and send the reboot cmd.
you can use TB0ne's code (post #2), but I'd put all the machines addresses in a separate file and read that, so you can use the list in more than one script easily.
 
Old 05-15-2009, 05:38 PM   #5
TB0ne
Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 15,091

Rep: Reputation: 2718Reputation: 2718Reputation: 2718Reputation: 2718Reputation: 2718Reputation: 2718Reputation: 2718Reputation: 2718Reputation: 2718Reputation: 2718Reputation: 2718
Quote:
Originally Posted by karinem View Post
sorry, I think my question wasn't clear. I would like to auto login the linux box remotely without walking to it and entering my user info. Is it some thing that has to do with hte gnome? ...

thanks
That's what my original reply did for you. You went to one box, and ran something that (essentially), "auto logged in" to 100 other machines, and ran a startup script.....
 
Old 05-18-2009, 11:02 AM   #6
karinem
LQ Newbie
 
Registered: May 2009
Posts: 2

Original Poster
Rep: Reputation: 0
#2 starts the process on the remote host but it doesn't help the remote start of the machine. If other user walks into that remote machine it still displays the login display. The process is running on that machine but remote user does not see it. I would like to remotely start the machine and the process so when some user walks to that machine he/she sees the application displaying on that machine not the login prompt.

Thanks a lot,
 
  


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
Can not ssh to a red hat box mz043 Linux - Networking 3 04-26-2007 04:11 AM
How do i configure guarddog so i can use SSH remotely and ping my box? asilentmurmur Slackware 5 08-03-2006 01:57 AM
can ssh to box but can't log into red hat when sitting in front of it naijaguy Linux - General 9 01-20-2005 04:00 PM
ssh to my box on ADSL remotely? yocompia Linux - Networking 5 09-07-2003 09:01 PM


All times are GMT -5. The time now is 03:49 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