Logging in to the GUI from the shell

 
Thread Tools Search this Thread
Special Forums UNIX and Linux Applications Logging in to the GUI from the shell
# 1  
Old 10-05-2012
Logging into the GUI from the shell

I have an Ubuntu 12.04 LTS server running GNOME shell,that I occassionly have to remotely access to perform some maintenance. I usually vpnc into the network and then simply use vncviewer to access the Gnome GUI desktop for testing,given that the account is logged in. The other day I had to reboot the server remotely and had forgotten that the system was not set to automatically login. Having issues trying to get the automatic login to work correctly, I had to call someone at the site to log me into the desktop. Is there a way that I can login in the GUI account from the cli remotely so I can continue with testing using the gui for that account? My display Manager is GDM not LightDM.

Last edited by metallica1973; 10-05-2012 at 01:11 PM..
# 2  
Old 10-05-2012
Does your VNC not let you see the login screen itself? Perhaps it can be configured to do so. Other than that I don't think it can be forced from the outside, as it were -- it's a local login screen, if it accepts input from non-local sources that's a severe bug.
# 3  
Old 10-05-2012
thanks for the response.

No it will not allow me to view anything until the user is logged in. I enabled remote desktop sharing from with preferences of GNOME. I beleive it uses Vino under the hood:

PHP Code:
ps -ef|grep -i vino 
testuser   2357  2227  0 Oct04 
?        00:00:01 /usr/lib/vino/vino-server --sm-disable 
You have a good point in seeing if maybe vino can be configured to allow the user to see the login in screen at the GDM manager login. I will look into it a give some feedback soon. I do rememeber me using X2VNC before.
# 4  
Old 02-09-2013
If you can log into the cli remotely you should be able to run the following from the command-line to start the Gnome desktop:

Code:
gnome-session

Unless this changed in Gnome 3 that should start the desktop.
# 5  
Old 02-09-2013
If i use tightvncserver, ssh to the server then start it:
Code:
tightvncserver

and then connect with a client, i get the default gui (xfce in my case. I don't use a display manager, so i can't say anything about it).

I just ran into xvfb. It works if there is no remote gui running too. But as far i can see yet i can only connect as root (ssh to server, run "Xvfb" as root, that takes a while, and then exit ssh and connect from client).
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Programming

Python gui or C++ gui or java gui?

python gui or c++ gui or java gui? and when to use etch one? (1 Reply)
Discussion started by: kaja
1 Replies

2. UNIX for Dummies Questions & Answers

GUI via secure shell

Hi i am connected to remote system using putty over ssh-1 version. i can see the command line and able to perform the operations through it. is it possible to have a GUI interface of my login rather than terminal access? do i need to use any client other than putty ? any help is much... (5 Replies)
Discussion started by: rakeshkumar
5 Replies

3. Shell Programming and Scripting

Shell Installer GUI

Hey guys, I just can't seem to find any hints on this topic (or maybe I just don't find the correct search terms to use :rolleyes: ). My company developed an application which requires harsh configuration to run it on a server. So I wrote a LOT of shell scripts which take care of the... (2 Replies)
Discussion started by: fatfingerjoe
2 Replies

4. Shell Programming and Scripting

GUI for shell scripts

what GUI can be used with shell scripting for example if i want to say hello in prompted window thnx in advance (3 Replies)
Discussion started by: semosam
3 Replies

5. Shell Programming and Scripting

GUI for shell scripts

I want to create a GUI which runs shell scripts in the background. What should I use for creating that GUI. I would be nice if you could point me to some resources where I can learn to create a GUI (2 Replies)
Discussion started by: lassimanji
2 Replies

6. Shell Programming and Scripting

GUI possible in shell script..?

Hi All, Currently my requirement is to parse through the log scripts and show the errors to the user.The only twist I got is it needs some GUI ,which is considered user friendly. Does anyone has any idea , if GUI can be implemented through shell scripts, please let me know. Thanks! nua7 (5 Replies)
Discussion started by: nua7
5 Replies

7. Solaris

shell command logging

Does anyone have a simple method of logging all shell commands typed by a user (csh in our case)? - I could enable auditing, but this would be overkill - I could enable process accounting, but AFAIK, this does not log arguments Thanks all. (2 Replies)
Discussion started by: minkie
2 Replies

8. Red Hat

Linux not logging into GUI

hi, Can someone help in trouble shooting why my RedHat linux 8.0 in not logging into the KDE screen. Thanks (1 Reply)
Discussion started by: kayode
1 Replies

9. UNIX for Dummies Questions & Answers

If a is windows gui ( client), b is a unix gui ( Server for a) and c is a shell scrip

Hello all, 1) I want to have a GUI application that will call Unix shell scripts, 2) that GUI application should be able to reside on windows ( if possible) and then call Unix shell script either directly or through a server residing on unix. That is for example. If a is windows gui (... (1 Reply)
Discussion started by: hchivukula
1 Replies

10. Shell Programming and Scripting

logging in Shell script

How to I write to a log file all the output that is displaying on the screen? with time stamp. thankx. (3 Replies)
Discussion started by: laila63
3 Replies
Login or Register to Ask a Question