Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

starting the application remotely 1

Status
Not open for further replies.

MoshiachNow

IS-IT--Management
Feb 6, 2002
1,851
IL
HI,
Once I telnet as root to a remote machine - I need to force the green screen waiting for any login to login as a certain user,this will start the application I need like If I was typing on the remote system terminal.

Is there a way to achieve it - login to application remotely,but let the machine think (environment,display,etc) that I'm a locall user ?

Long live king Moshiach !
 
I am not sure I did get you, but...

...if the application requires DISPLAY you can enable X11 forwarding in openssh server on remote machine, and start the appplication remotely using "ssh -X root@remotesystem /yourapplicationpath". But the application is run in remote shell with remote environment and "displayed" on local system.

sorry if I didn't met your requirements...
 
Thanks,ogniemi

However - I'd like something a bit different.
On my server ,after reboot,in order to start a server application requiring display,the user has to type a <userlogin> (no password),which shoots off a Java interface,xinit,etc.

I'd like to login remotely to the above machine as root (I have a root password) and force the console to receive the <userlogin> as an input,so that the application starts in a perfect local environment,not in a remote one.
Thanks

Long live king Moshiach !
 
then set the DISPLAY variable to the host's display.

P.S. I hope you're not doing this over a public network :)
 
Breslau,

I did start with this direction .However the application that needs to be normally started by the <username> login needs a display to work with,a local green login screen is not good for it .

export DISPLAY=timna5:0.0
.xinitrc

1356-203 xmodmap: Unable to open display: timna5:0.0
1356-265 xsetroot: Unable to open display: timna5:0.0.



Long live king Moshiach !
 
I've done something like that on a Linux Box

In the inittab i've changerd a getty line to set a console as autologin for a certain user.

I've also changed the user's initial program to auto start my application.

Then when the servers reboots the user is automaticly loged on and the graphical application is started.

 
In linux is was:
6:2345:respawn:/sbin/mingetty --autologin MYUSER tty6

But it doesnt exist in AIX

Looking on google i may have found something:

Use /etc/initab to call a script to start X as a specific user. In that user's home directory place .xinitrc to start whatever application you want.
 
I've tried the below in inittab:

start:2:eek:nce:expot DISPLAY=`hostname`:0.0;su cdesci -c /home/cdesci/.xinitrc

However,nothings happens.Also,obviously,it does NOT cause the cdesci user to autologin on the server ...

Long live king Moshiach !
 
Ok i've just done some test:

My inittab looks like:

test:2:eek:nce:su - test -c startx -d myserver:0 -x .xinitrc

And .xinitrc of user test looks like:
xclock

that's work
 
Great !
The application now comes up all the way.
However the local server monitor remains not logged in (naturally ..) - with just a green screen.
Now my remote support personal will be able to run a remote Java client on the server.
However - once the customer production personal comes in - they will not know that the application is up and running.
Is there anyway to force the local terminal to login "cdesci" and start the application this way ?

Long live king Moshiach !
 
Amazing,
But the following works perfefctly,enabling me to Login from remote as I was local and thus starting the application on the local screen :

portmir -t /dev/console

Then I can login as cdesci !


Got it from :

Long live king Moshiach !
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top