Remote GUI seesion connecting to Ubuntu

Hi experts,

I want to connect to Ubuntu remotely, and work as if I am doing it locally. I dont' want to connect to existing user and help him, rather I want to use my machine from another location. I am connecting from Ubuntu, so that part is easy.

Thank you.
LVL 1
kerznerAsked:
Who is Participating?
 
Fabio MarzoccaConnect With a Mentor FreelancerCommented:
You need to install openssh-serveron your remote PC. Then edit (on remote PC) the file /etc/ssh/sshd_config and uncomment this line:

X11Forwarding yes

On local PC open a terminal and type

ssh -Y <username>@<remote-host-ip>

then, after authentication, type:

gnome-session

 
0
 
kerznerAuthor Commented:
It started merrily, but the gnome-session gave me a lot of errors, resized my screen, and did not work in the end. I am attaching the session errors.
0
 
kerznerAuthor Commented:
I don't see attached file, so I post it here


esterk@mark-desktop:~$ GNOME_KEYRING_SOCKET=/tmp/keyring-ggi2Us/socket
SSH_AUTH_SOCK=/tmp/keyring-ggi2Us/socket.ssh
GNOME_KEYRING_PID=17530

(gnome-settings-daemon:17531): GLib-CRITICAL **: g_propagate_error: assertion `src != NULL' failed

** (gnome-settings-daemon:17531): WARNING **: You can only run one xsettings manager at a time; exiting

** (gnome-settings-daemon:17531): WARNING **: Unable to start xsettings manager: Could not initialize xsettings manager.
Checking for Xgl: not present.
xset q doesn't reveal the location of the log file. Using fallback /var/log/Xorg.0.log
No whitelisted driver found
aborting and using fallback: /usr/bin/metacity
Window manager warning: Failed to read saved session file /home/esterk/.config/metacity/sessions/10dfb7f8721bf6f23124266673826525300000175180024.ms: Failed to open file '/home/esterk/.config/metacity/sessions/10dfb7f8721bf6f23124266673826525300000175180024.ms': No such file or directory
** (gnome-panel:17554): DEBUG: Adding applet 0.
** (gnome-panel:17554): DEBUG: Initialized Panel Applet Signaler.
** (gnome-panel:17554): DEBUG: Adding applet 1.
** (gnome-panel:17554): DEBUG: Adding applet 2.
** (gnome-panel:17554): DEBUG: Adding applet 3.
** (gnome-panel:17554): DEBUG: Adding applet 4.
Initializing trackerd...
Tracker-Message: Checking XDG_DATA_HOME is writable and exists
Tracker-Message:   XDG_DATA_HOME is '(null)'
Tracker-Message:   XDG_DATA_HOME set to '/home/esterk/.local/share'
Tracker-Message:   Path is OK
Tracker-Message: Setting IO priority
Tracker-Message: Setting up monitor for changes to config file:'/home/esterk/.config/tracker/tracker.cfg'
Tracker-Message: Loading defaults into GKeyFile...
Tracker-Message: Legacy config option 'IndexEvolutionEmails' found
Tracker-Message:   This option has been replaced by 'DisabledModules'
Tracker-Message:   Option 'DisabledModules' removed 'evolution'
Tracker-Message: Legacy config option 'IndexThunderbirdEmails' found
Tracker-Message:   This option is no longer supported and has no effect
Tracker-Message: Legacy config option 'SkipMountPoints' found
Tracker-Message:   Option 'IndexMountedDirectories' set to true
Tracker-Message: Setting up stopword list for language code:'en'
Tracker-Message: Setting up stemmer for language code:'en'
Tracker-Message: Checking directory exists:'/home/esterk/.local/share/tracker/data'
Tracker-Message: Checking directory exists:'/home/esterk/.cache/tracker'
Tracker-Message: Registering DBus service...
  Name:'org.freedesktop.Tracker'
Starting log:
  File:'/home/esterk/.local/share/tracker/trackerd.log'
Connection failure: Connection refused
pa_context_connect() failed: Connection refused
** (update-notifier:17582): WARNING **: already running?


** (nm-applet:17586): WARNING **: <WARN>  applet_dbus_manager_start_service(): Could not acquire the NetworkManagerUserSettings service as it is already taken.  Return: 3


** (gnome-settings-daemon:17531): WARNING **: Grab failed for some keys, another application may already have access the them.

** (gnome-settings-daemon:17531): WARNING **: Clipboard manager is already running.
evolution-alarm-notify-Message: Setting timeout for 24407 1242691200 1242666793
evolution-alarm-notify-Message:  Mon May 18 19:00:00 2009

evolution-alarm-notify-Message:  Mon May 18 12:13:13 2009

The program 'gnome-settings-daemon' received an X Window System error.
This probably reflects a bug in the program.
The error was 'BadMatch (invalid parameter attributes)'.
  (Details: serial 1142 error_code 8 request_code 20 minor_code 0)
  (Note to programmers: normally, X errors are reported asynchronously;
   that is, you will receive the error a while after causing it.
   To debug your program, run it with the --sync command line
   option to change this behavior. You can then get a meaningful
   backtrace from your debugger if you break on the gdk_x_error() function.)
** (gnome-panel:17554): DEBUG: Adding applet 5.

(gnome-panel:17554): Gtk-WARNING **: gtk_widget_size_allocate(): attempt to allocate widget with width -3 and height 24
** (gnome-panel:17554): DEBUG: Adding applet 6.
** (gnome-panel:17554): DEBUG: Adding applet 7.
** (gnome-panel:17554): DEBUG: Adding applet 8.
** (gnome-panel:17554): DEBUG: Adding applet 9.
** (gnome-panel:17554): DEBUG: Adding applet 10.

(gnome-panel:17554): libglade-WARNING **: Unexpected element <requires-version> inside <glade-interface>.
** (gnome-panel:17554): DEBUG: Adding applet 11.
** (gnome-panel:17554): DEBUG: Adding applet 12.
** (gnome-panel:17554): DEBUG: Adding applet 13.
** (gnome-panel:17554): DEBUG: Adding applet 14.

0
Receive 1:1 tech help

Solve your biggest tech problems alongside global tech experts with 1:1 help.

 
Fabio MarzoccaFreelancerCommented:
No attachment at all...
0
 
Fabio MarzoccaFreelancerCommented:
Try this way.

On the remote PC System->Preferences->Remote DEsktop
Enable the remote PC to receive external connections.

If you have a firewall, open port 5900

On the local PC, Applicatrions->Internet->Remote DEsktop and insert the remote PC IP address.
0
 
kerznerAuthor Commented:
That's a completely different story - that's using VNC, And it is not tunneling through ssh.

I looked at that, but I had two questions:

1. Is it secure? Should I allow access for everyone or limit it:
2. Do I connect to the running session? What happens when it is not running?

Thank you.
0
 
Fabio MarzoccaFreelancerCommented:
Oh, yes, sorry. With this method you will connect to existing running session
0
 
kerznerAuthor Commented:
Well, I will try when I am near this remote machine and can set it up. After all, it is no less secure than connecting with SSH with username and password, and it is an Ubuntu built-in method.
0
 
kerznerAuthor Commented:
I ended up using NX, which I like more.
0
All Courses

From novice to tech pro — start learning today.