[SOLVED] Remote access to a linux machine machine?
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Are you trying to use the RDP remote display in VirtualBox, or running it on the Linux guest?
What network settings have you used for Virtualbox? Is it using bridged networking?
Have you disabled the Windows firewall?
Are you by any chance running rdp on the Windows host, and it's using the same port as VirtualBox is trying to use, or the guest is trying to use?
I find VNC is often easier to setup than remote desktop, BTW.
You might need to change your host system firewall settings. On my system the firewall is ufw and typically there is a gui version available from the menus. To be safe, you will probably need to set in=deny and out=allow, then add rules to allow other hosts access on an individual basis. Hope that helps.
Are you trying to use the RDP remote display in VirtualBox, or running it on the Linux guest?
What network settings have you used for Virtualbox? Is it using bridged networking?
Have you disabled the Windows firewall?
Are you by any chance running rdp on the Windows host, and it's using the same port as VirtualBox is trying to use, or the guest is trying to use?
I find VNC is often easier to setup than remote desktop, BTW.
I can try VNC, I'm open to anything at this point.
The guest machine is the Linux Mint (currently) and the host is a windows machine. I want to remotely connect (not necessarily from the Windows host) from Windows to the linux machine.
Is there a set of VNC configuration steps that are known to work on Mint?
I can try VNC, I'm open to anything at this point. The guest machine is the Linux Mint (currently) and the host is a windows machine. I want to remotely connect (not necessarily from the Windows host) from Windows to the linux machine. Is there a set of VNC configuration steps that are known to work on Mint?
Aside from VNC, I'd suggest you stop thinking like a Windows user. In Windows, pretty much your only option for things is RDP. Linux is far easier...use SSH instead. You can control and administer your Linux system over SSH easily with a simple terminal window.
And yes, you can have GUI based applications work as well. On the 'local' side of things, you need some sort of X windows system running that is capable of displaying the GUI based apps. When you connect via SSH, enable X forwarding (the Putty software can do this). The GUI program will run on the Linux system, but DISPLAY on your local system, just as if you were sitting at the console.
To elaborate on bifferos post, VirtualBox has a built in xrdp server and you can use that as a remote desktop server. This allows you access without regards to the network type i.e. NAT or bridged etc. and there is also no guest configuration required. The VB rdp server runs on the host and uses the same port as Windows remote desktop i.e. 3389. The Windows remote desktop server and VB rdp server can not be used at the same time.
If you want to connect directly to the guest you need to make sure the guest's network adapter is configured as bridged or NAT but use port forwarding to allow access to the guest. In this case I also agree that VNC is is better then rdp.
Aside from VNC, I'd suggest you stop thinking like a Windows user. In Windows, pretty much your only option for things is RDP. Linux is far easier...use SSH instead. You can control and administer your Linux system over SSH easily with a simple terminal window.
And yes, you can have GUI based applications work as well. On the 'local' side of things, you need some sort of X windows system running that is capable of displaying the GUI based apps. When you connect via SSH, enable X forwarding (the Putty software can do this). The GUI program will run on the Linux system, but DISPLAY on your local system, just as if you were sitting at the console.
But I want the whole desktop, not just an application running.. that doesn't help. I am required to work in Windows, but I want to do some work in linux (trying to start), and the first step is to get a remote desktop on my daily work desktop. I have a large monitor, and my plan is to have a remote session to the other windows servers for work, but local Linux session as well, so I can intermittently learn linux.
To elaborate on bifferos post, VirtualBox has a built in xrdp server and you can use that as a remote desktop server. This allows you access without regards to the network type i.e. NAT or bridged etc. and there is also no guest configuration required. The VB rdp server runs on the host and uses the same port as Windows remote desktop i.e. 3389. The Windows remote desktop server and VB rdp server can not be used at the same time.
If you want to connect directly to the guest you need to make sure the guest's network adapter is configured as bridged or NAT but use port forwarding to allow access to the guest. In this case I also agree that VNC is is better then rdp.
This worked. I just setup the Virtualbox's remote desktop, and I'm running.
So I have at least one solution that works.
I have several windows Guests also, all of which I'm capable of RDPing (I have the networking setup bridged, firewall open etc).
In all my attempts to get VNC to work within the Linux guest, I was fairly sure it wasn't a network issue since I would get the VNC login, but I never saw a desktop, either seeing all grey, or all black screens after.
Sometime, on the list of things to do, after you're a little more comfortable, I'd second the suggestion to take a look at using SSH to connect. These two links might be of use then:
I make that suggestion because, while most of the graphical desktops are noticeably superior to Vista10, the real power is in the shell. Some top advantages are:
The shell is more or less the same on all versions of all distros, even if graphical interfaces differ by a lot.
It behaves the same whether you are physically touching an attached keyboard or logging in remotely from another part of the world.
For the most part it has more capabilities than the graphical interfaces. And, perhaps most importantly,
it is a full interpreted language so anything you can type can be saved as a script or vice versa. That makes automation a snap.
Windows still doesn't have anything close ... yet ... and M$ has spent many years and lots of money disparraging "the command line". So there may be a prejudice to overcome first. However, there are great many powerful advantages. The above are just a sample.
But I want the whole desktop, not just an application running.. that doesn't help.
The question remains WHY do you want/need the whole desktop? What do you get by having it??? And that answer is "nothing"...except a desktop. Again...you can run the exact same applications, with their GUI's, over SSH. You just do not need the entire desktop to run a file manager, or run pretty much any other GUI application.
Quote:
I am required to work in Windows, but I want to do some work in linux (trying to start), and the first step is to get a remote desktop on my daily work desktop. I have a large monitor, and my plan is to have a remote session to the other windows servers for work, but local Linux session as well, so I can intermittently learn linux.
And the best way to learn Linux is by using it...you are going to find most folks use SSH (and not VNC/RDP) to manage servers, because there simply isn't a need to. You are introducing security holes/vulnerabilities for no reason. Glad you got things working, but I do realize that you are used to Windows and a very narrow scope of how they force you to use things. Linux is far more flexible.
Again...you can run the exact same applications, with their GUI's, over SSH. You just do not need the entire desktop to run a file manager, or run pretty much any other GUI application.
To add to TB0ne's comment, one way to run graphical applications on the GNU/Linux machine and interact with them remotely would be to use PuTTY and Xming:
With an SSH connection, Xming will let you launch the programs in the GNU/Linux VM and display them and interact with them on the Vista10 host. It can come in handy from time to time. However, I say again, the real power is in the shell.
To add to TB0ne's comment, one way to run graphical applications on the GNU/Linux machine and interact with them remotely would be to use PuTTY and Xming:
With an SSH connection, Xming will let you launch the programs in the GNU/Linux VM and display them and interact with them on the Vista10 host. It can come in handy from time to time. However, I say again, the real power is in the shell.
Agreed on both counts. OP, a good deal of Linux servers don't even have X windows INSTALLED...so GUI apps may not even be an option, much less a full desktop.
The question remains WHY do you want/need the whole desktop? What do you get by having it??? And that answer is "nothing"...except a desktop. Again...you can run the exact same applications, with their GUI's, over SSH. You just do not need the entire desktop to run a file manager, or run pretty much any other GUI application.
And the best way to learn Linux is by using it...you are going to find most folks use SSH (and not VNC/RDP) to manage servers, because there simply isn't a need to. You are introducing security holes/vulnerabilities for no reason. Glad you got things working, but I do realize that you are used to Windows and a very narrow scope of how they force you to use things. Linux is far more flexible.
I'm not managing a server, I'm doing development work in linux, if that helps. I want to build SVN for Synology NAS.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.