Solved

Remote GUI seesion connecting to Ubuntu

Posted on 2009-05-17
9
813 Views
Last Modified: 2013-11-15
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.
0
Comment
Question by:kerzner
  • 5
  • 4
9 Comments
 
LVL 14

Accepted Solution

by:
fmarzocca earned 500 total points
ID: 24409624
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
 
LVL 1

Author Comment

by:kerzner
ID: 24414266
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
 
LVL 1

Author Comment

by:kerzner
ID: 24414285
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
 
LVL 14

Expert Comment

by:fmarzocca
ID: 24414293
No attachment at all...
0
Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

 
LVL 14

Expert Comment

by:fmarzocca
ID: 24414462
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
 
LVL 1

Author Comment

by:kerzner
ID: 24414518
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
 
LVL 14

Expert Comment

by:fmarzocca
ID: 24414573
Oh, yes, sorry. With this method you will connect to existing running session
0
 
LVL 1

Author Comment

by:kerzner
ID: 24414599
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
 
LVL 1

Author Comment

by:kerzner
ID: 24441852
I ended up using NX, which I like more.
0

Featured Post

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

In order for businesses to be compliant with certain information security laws in some countries, you need to be able to prove that a user (which user it was becomes important to the business to take action against the user after an event has occurr…
Users are often faced with high disk consumption without really knowing where the largest amount of data resides. Disk Usage Analyzer (aka Baobab) is is a graphical, menu-driven application to analyse disk usage in any Gnome environment and can e…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

707 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now