SSH GUI Login?

evildan

Super Moderator
So I was having problems with a server I admin. It's based in another state. The local IT guy has been messing with it and took off the auto login option, which I didn't realize until after I had restarted the machine remotely.

Now, the machine is stuck at the GUI login screen and none of the login items have been launched.

I've tried to ssh and I can get into the machine, the problem is that I cannot launch any of the serving applications.

I've tried simply using the 'open' command.

open /path/to/application.app

But I get an error:
kCGErrorIllegalArgument : initCGDisplayState: cannot map display interlocks.
kCGErrorIllegalArgument : CGSNewConnection cannot get connection port
INIT_Processeses(), could not establish the default connection to the WindowServer.Abort

I'm now trying to use the terminal to login the correct user at the GUI level... is there a way to do this through ssh?

I don't have Timbuktu or Remote Desktop installed on this server machine yet, or my problems might be a bit easier. Any help would be appreciated.
 
Here's a shot of the running PID's

PID COMMAND %CPU TIME #TH #PRTS #MREGS RPRVT RSHRD RSIZE VSIZE
433 top 6.5% 0:02.08 1 15 17 224K 340K 520K 13.6M
432 tcsh 0.0% 0:00.05 1 10 15 332K 604K 776K 5.73M
431 sshd 0.0% 0:00.00 1 8 34 104K 1.22M 412K 16.8M
429 sshd 0.0% 0:01.00 1 14 34 96K 1.22M 1004K 16.8M
408 slpd 0.0% 0:00.14 8 51 31 192K 536K 604K 17.8M
406 SecurityAg 0.0% 0:00.95 1 48 70 5.65M 6.10M 11.1M 56.1M
405 pap 0.0% 0:00.11 1 9 14 72K 320K 324K 1.52M
404 pstops 0.0% 0:00.52 1 12 20 372K 656K 752K 14.7M
399 AppleFileS 0.0% 0:00.15 2 31 25 608K 1.56M 1.01M 18.4M
384 DirectoryS 0.0% 0:00.92 3 58 144 684K 3.72M 3.22M 21.3M
368 NortonMiss 0.0% 0:00.03 1 18 15 92K 432K 536K 14.3M
366 cron 0.0% 0:00.00 1 8 15 88K 340K 172K 13.5M
362 inetd 0.0% 0:00.01 1 8 13 56K 320K 116K 1.28M
359 cupsd 0.0% 0:00.31 1 8 18 340K 832K 800K 15.3M
358 loginwindo 0.0% 0:01.19 3 130 96 1.42M 2.69M 3.32M 49.5M
346 ntpd 0.0% 0:00.09 1 8 15 108K 496K 308K 1.52M
343 automount 0.0% 0:00.02 2 22 21 128K 432K 532K 14.7M
341 sshd 0.0% 0:00.77 1 8 14 64K 676K 160K 1.83M
331 nfsiod 0.0% 0:00.00 1 8 12 12K 336K 84K 1.27M
330 nfsiod 0.0% 0:00.00 1 8 12 12K 336K 84K 1.27M
329 nfsiod 0.0% 0:00.00 1 8 12 12K 336K 84K 1.27M
328 nfsiod 0.0% 0:00.00 1 8 12 12K 336K 84K 1.27M
324 coreservic 0.0% 0:00.47 3 44 56 928K 812K 1.46M 15.5M
299 lookupd 0.0% 0:01.25 2 30 45 352K 524K 804K 14.9M
290 netinfod 0.0% 0:00.35 1 7 26 140K 436K 304K 1.66M
273 mDNSRespon 0.0% 0:00.04 2 31 20 660K 364K 948K 14.2M
271 NortonAuto 0.0% 0:02.45 7 44 108 4.24M 2.78M 6.10M 28.1M

I'm assuming the item I've bolded is the login window. Is there a way to tell it to to fill out the user name / pass that I know will log in the GUI?
 
Well luckily someone noticed the machine was at the login window and did it manually. I was on to a solution though. I was going to use ssh to login to the machine and set auto-login then restart the machine... which would have worked out well. Oh well, problem somewhat solved... although I must say in my search for an answer there are more people then me out there looking for this answer.
 
Yeah you're right that would have done it, if you knew how to 'hack' the autologin form the shell, good idea ;)
 
I guess what I am asking is why aren't you starting them as part of the system startup instead of during your user login. Mac OSX is a UNIX box... Unless you are trying to run a vnc server so that you can remotely get at your desktop, why wouldn't you want these services run during bootup instead of user login? I know that Mac OSX has beautiful GUI, but what really makes OSX shine is that it is now capable of doing so much more than displaying a graphics to a locally attached monitor.

UNIX is a wonderful thing. So unless you have some compelling reason for this "server process" to only fire up on login, you should move your startup items to the system's startup area so that they will work even if you aren't logged in.
 
Back
Top