LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud
User Name
Password
Linux - Virtualization and Cloud This forum is for the discussion of all topics relating to Linux Virtualization and Linux Cloud platforms. Xen, KVM, OpenVZ, VirtualBox, VMware, Linux-VServer and all other Linux Virtualization platforms are welcome. OpenStack, CloudStack, ownCloud, Cloud Foundry, Eucalyptus, Nimbus, OpenNebula and all other Linux Cloud platforms are welcome. Note that questions relating solely to non-Linux OS's should be asked in the General forum.

Notices


Reply
  Search this Thread
Old 05-12-2017, 02:32 AM   #1
cntgetmedown
LQ Newbie
 
Registered: May 2017
Posts: 2

Rep: Reputation: Disabled
Running a Linux Machine as a Remote Desktop


Hi. I would like to know if it is possible to connect to a remote desktop that is running say Debian 8 with GNOME GUI. I have a server running through Microsoft Azure, and I noticed that they only offer connection by means of interfacing with a command line. However, I specifically need to run a program that is much more practical to use with a GUI as opposed to a CLI (I don't even think it properly supports a CLI at this time juncture), and while this program works under Windows, it is much more cost efficient for me to run it under Linux due to the licensing cost of Windows.
I spoke to a friend briefly who works with Ubuntu and he says he hasn't seen such a program before. I would appreciate it if somebody could either affirm or disprove his claim and possibly guide me towards a solution of what I am trying to achieve.
 
Old 05-12-2017, 06:27 AM   #2
rkelsen
Senior Member
 
Registered: Sep 2004
Distribution: slackware
Posts: 4,448
Blog Entries: 7

Rep: Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553
Absolutely. There are many ways to do what you want.

The one which may be the best for you (given that you want to use a single application) is to use X forwarding through ssh: http://en.tldp.org/HOWTO/XDMCP-HOWTO/ssh.html. This will allow you to use your application from any machine with an ssh client (including putty under Windows). It'll work over the internet, and is easily configured to use PKI for security.

If you want to "remote in" to the desktop, like you would under Windows, there's VNC: http://www.techrepublic.com/blog/lin...-server-setup/.

A third, and less secure way is to use XDMCP: http://www.tldp.org/HOWTO/XDMCP-HOWTO/intro.html. Though less secure, it's probably the easiest to configure since everything you need is likely already installed.
 
Old 05-12-2017, 05:37 PM   #3
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,980

Rep: Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624
Hello and welcome to LQ.


I am somewhat favorable to Teamviewer. I use it to support a not for profit.

There are all sorts of ways to do what you want too as noted above are some ways.

We might be able to provide a better answer with more specifics.

You might be able to run a free virtual machine too.
 
Old 05-13-2017, 11:40 AM   #4
gradinaruvasile
Member
 
Registered: Apr 2010
Location: Cluj, Romania
Distribution: Debian Testing
Posts: 731

Rep: Reputation: 158Reputation: 158
Install some vnc server (i believe tightvnc is the default for Debian 8), set it to launch on startup. It will launch an internal X server and you can connect to it via VNC protocol.
Auto launched stuff can be controlled from $HOME/.vnc/xstartup
This setup is designed for headless machines, no real X server needed. Also this can be run from an unprivileged user account.
As for security, make it listen on localhost ONLY and connect to it with ssh port forwarding.
 
Old 05-13-2017, 09:33 PM   #5
Doug G
Member
 
Registered: Jul 2013
Posts: 749

Rep: Reputation: Disabled
I would use either X forwarding or VNC. I use tightvnc as the windows vnc client, and VcxSrv on windows for X-forwarding via putty ssh.

For vnc on the server machine, I usually use x11vnc and start it manually when I'm connected over ssh, this way there isn't a full-time vnc service running on the server.

Both mechanisms work adequately over the internet.
 
Old 05-13-2017, 10:30 PM   #6
cntgetmedown
LQ Newbie
 
Registered: May 2017
Posts: 2

Original Poster
Rep: Reputation: Disabled
Thanks guys for all of the input. I will give your proposed solutions a shot.
 
Old 07-16-2017, 11:15 AM   #7
Laserbeak
Member
 
Registered: Jan 2017
Location: Manhattan, NYC NY
Distribution: Mac OS X, iOS, Solaris
Posts: 508

Rep: Reputation: 143Reputation: 143
With XWindows, you can always open a window from one host on another. I often use it just between my two computers (one running Solaris and one running Mac OS X, with the Mac OS X one being the one that is receiving the window from the other since OS X windows can't be shared in that way since its native windows are not XWindows windows, but it does support displaying XWindows windows) that share one monitor. With Gigabit Ethernet you hardly even notice it's running on another computer.
 
Old 07-16-2017, 01:29 PM   #8
IsaacKuo
Senior Member
 
Registered: Apr 2004
Location: Baton Rouge, Louisiana, USA
Distribution: Debian Stable
Posts: 2,546
Blog Entries: 8

Rep: Reputation: 465Reputation: 465Reputation: 465Reputation: 465Reputation: 465
Quote:
Originally Posted by rkelsen View Post
Absolutely. There are many ways to do what you want.

The one which may be the best for you (given that you want to use a single application) is to use X forwarding through ssh: http://en.tldp.org/HOWTO/XDMCP-HOWTO/ssh.html. This will allow you to use your application from any machine with an ssh client (including putty under Windows). It'll work over the internet, and is easily configured to use PKI for security.

If you want to "remote in" to the desktop, like you would under Windows, there's VNC: http://www.techrepublic.com/blog/lin...-server-setup/.

A third, and less secure way is to use XDMCP: http://www.tldp.org/HOWTO/XDMCP-HOWTO/intro.html. Though less secure, it's probably the easiest to configure since everything you need is likely already installed.
FWIW, the stuff required for XDMCP is not already installed. The Ubuntu VMs Microsoft Azure provide are fundamentally slightly modified plain Ubuntu server installs - meaning there is no X, no GUI packages installed at all by default.

You can install it with apt, of course. But depending on how the particular application works, and how graphics intensive it is, performance over XDMCP could be extremely poor. I find VNC's performance to be pretty good.

If it's just one specific application that needs to be run, then the simplest method may be to use ssh tunneling of X. You still have to use apt to install X, of course. But there's no need to set up any sort of X server (XDMCP or VNC or otherwise). The X server in this case would be what you normally think of as the "client" - namely, the local machine.
 
Old 07-16-2017, 01:34 PM   #9
IsaacKuo
Senior Member
 
Registered: Apr 2004
Location: Baton Rouge, Louisiana, USA
Distribution: Debian Stable
Posts: 2,546
Blog Entries: 8

Rep: Reputation: 465Reputation: 465Reputation: 465Reputation: 465Reputation: 465
Quote:
Originally Posted by Laserbeak View Post
With XWindows, you can always open a window from one host on another. I often use it just between my two computers (one running Solaris and one running Mac OS X, with the Mac OS X one being the one that is receiving the window from the other since OS X windows can't be shared in that way since its native windows are not XWindows windows, but it does support displaying XWindows windows) that share one monitor. With Gigabit Ethernet you hardly even notice it's running on another computer.
Even with gigabit ethernet, I find it doesn't work so hot with a web browser. But that's more of a stunt than anything else (not much reason to do such a thing).

Now, the OP is asking about a Microsoft Azure VM, so the connection is going to be a lot slower and a LOT laggier than a local gigabit ethernet connection. Also, the low end Azure VMs are really pathetic in terms of raw performance. I have a bottom end Ubuntu VM on Azure. It's plenty good enough for the extremely lightweight web server task I have it set up for (just a throwaround practice machine, really). But it's really lame. We're talking 667MB of RAM and a single Xeon core (E5-2674@2.4Ghz).
 
Old 07-16-2017, 09:11 PM   #10
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,323
Blog Entries: 28

Rep: Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141
I use X11vnc as a VNC server on Slackware. It works quite nicely.

I think I started using it because Klaatu recommended it in a podcast about the time I decided I should learn about VNCs.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Accessing remote desktop on VM from a remote machine using iptables cram869 Linux - Networking 3 03-07-2012 03:25 PM
How do I Remote access/Desktop Linux from a Windows machine Zed Supremus Linux - Networking 6 09-04-2011 12:11 AM
viewing remote linux desktop from windows machine muditcse@yahoo.com Linux - Newbie 1 02-05-2009 11:09 AM
Remote Desktop Into Ubuntu Machine From XP Machine JamboUK Ubuntu 2 04-22-2007 12:32 PM
running graphical program on remote machine abd_bela Debian 1 03-17-2005 07:07 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud

All times are GMT -5. The time now is 02:55 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration