Running a Remote Desktop on a Windows Azure Linux VM (远程桌面到Windows Azure Linux )-摘自网络

A complete click-by-click, step-by-step video of this article is available here.

OR… You can read the article, line-by-line.

It all starts with a Linux Server running in the Windows Azure cloud…

Onto this you’ll install a remote desktop protocol (RDP) server called xrdp.

But to get this server software installed, you need to configure the Linux server. You’ll use your workstation to do this with an SSH client such as PuTTY. You’ll need to connect port 22 from the LINUX server up to the Internet. Then you can use the PUTTY client on your workstation to connect over SSH.

That gives you a command prompt. That’s as much as you need to get the XRDP server installed, running and ready to accept connections from the outside world.

You type a series of commands which will download and install the XRDP server on to your LINUX machine.

You can then fire up a local Remote Desktop client, such as the one that comes with Windows, if you are on a windows machine. Depending on the version of Windows you are using you can find it by searching for either “Remote Desktop” or “mstsc”. You can also connect directly from the Windows Azure portal by downloading the RDP file from the server.

Let’s have a look at how this is all achieved, click-by-click.

In the Windows Azure Portal, I create a new Virtual Machine. In this case I’m creating an Ubuntu Server 12.04 LTS. I specify the latest version release date, the machine name, the size of the VM, and I create an administrative, or root user – in this case “planky”. To keep things simple I avoid certificate authentication for the SSH session and just use a password.

I specify to create a new cloud service and I keep the default name. I then pick the Windows Azure subscription I want to use and pick a data centre to deploy to – in this case I use North Europe which is located in Dublin, Ireland, because that’s the closest Data Centre to me. You can see I pick one of my existing storage accounts. If you don’t already have one you want to use, just get the portal to automatically generate a storage account for you. I don’t worry about an Availability Set.

I make sure the SSH endpoint is connected to the load balancer. It’s set by default on port 22.

It takes a few minutes for the machine to provision.

I can get the DNS name of the server from the Dashboard. I just copy it in to the paste buffer.

If you already have an SSH client installed, you can paste the name in to it. I’ve got PuTTY installed. If you need to install a client at this stage, you could go to http://aka.ms/putty and download the puTTY client. Once installed, enter the DNS address and click connect.

A security message pops up to warn you that there is a chance that the server you are connecting to is not the one you think it is. For example if a hacker managed to modify the DNS settings in your computer. The message hints there are ways around these problems. The message is rather similar to the ones you get from the Remote Desktop client.

If you are happy you are not being misled, then go ahead, as I do in this case. I now log in as the root user I specified when I created the VM in the Windows Azure portal.

All the commands you are about to run need to be done at an elevated privilege. There is a rough approximation to the Windows “Run as Administrator”, known as “sudoo” or “SuDO”. This means “super-user do”. You specify this keyword and the following command is run at the elevated privilege level. That is, as long as the account you are logged in to is a superuser – which this one is.

Linux uses the notion of “packages”. The packaging system uses a special database to keep track of which packages are installed, which are not installed and which are available for installation. apt-get is a command that uses the database to find out how to install packages and find out which additional packages are needed for a selected package to work properly.

To update this list, I type sudo (that is, run in superuser context) get-apt update

You now need patience as a slew of information is dumped to the screen, and continues to do so for some minutes.

I now install a GUI dektop on to the Ubuntu server. In this case I use the Gnome desktop and the command is:

sudo apt-get install ubuntu-desktop

There is a warning about the amount of disk space this will take, but I’m happy with it and select “yes”.

…again you need some patience.

Once the desktop is installed, I need the rdp server so I can expose the desktop over a network connection. It’s a similar command:

sudo apt-get install xrdp

…and even though the console says the RDP server is started, experience shows me it hasn’t so I type

sudo /etc/init.d/xrdp start

Next I add a user that I want to be able to use the Remote Desktop with

sudo adduser primech. The “primech” bit is the username. You get prompted for some other user-type data.

…now, probably the first thing the user will want to do, because it’s probably going to be you, is to install packages and configure the system. So they need to be added to the sudo group with

sudo adduser primech sudo

Great! So now the internals of the Ubuntu Linux server are all set up. I now need to get it communicating over the Internet on the RDP port. By default, on a Linux Server, this port is not set up, like it is on a Windows Server.

In the portal I go to the endpoints tab and Add a new endpoint.

I specify a Standalone Endpoint and then on the next page select Remote Desktop and in this case leave both the public and private ports at 3389.

That’s the default port for RDP connections. The portal connects port 3389 from the Linux Server to the load balancer. It then connects port 3389 from the load balancer to the internet and maps the external port to the internal one. SO anybody now coming in to this service on port 3389 will be taken straight to the Linux Server on port 3389 and the RDP server running in the Linux Server will respond.

Flipping back to the virtual machines page in the portal, now the Remote Desktop Protocol is configured, the “CONNECT” icon at the bottom of the screen is available.

Clicking this now gives a very similar experience to connecting to a Windows Server only the logon page is coming from the Linux Server. Enter the username and password of the user you just created and you’ll be logged in to the Gnome desktop.

As a general rule, you’ll find the desktop and RDP server are not as optimised for network usage as the Windows desktop, but it’s still a very usable system.

Here is a screenshot of the Linux desktop where I use Firefox to connect to the Windows Azure portal. I can see the portal that is managing the server I’m connected to.

Now, as the captain of a 747 says, when he needs a coffee – “you have control”.

If you want to try any of this stuff out for free on Windows Azure, get a free Windows Azure subscription at http://aka.ms/azure_trial.

You can try up to 30 different labs on Azure using the free training kit, downloadable from http://aka/ms/watk.

You can watch the video of this with step-by-step and click-by-click commentary on the Channel 9 Website.

时间: 2024-10-10 21:45:32

Running a Remote Desktop on a Windows Azure Linux VM (远程桌面到Windows Azure Linux )-摘自网络的相关文章

使用Mac的Remote Desktop Manager连接ubuntu16.04 & Win10的远程桌面

疫情严重,公司实行远程办公.自己只有mac电脑,苦于3个系统间跨平台建立远程桌面. 今天,终于尝试成功!特来记录,以防别人踩坑! Mac远程软件安装 Remote Desktop Manager软件非常强大,跨平台支持多种连接,远程桌面支持mac(ARD).win(RDP).Ubuntu(VNC):什么ssh.ftp.filezilla:甚至网盘,银行,email,Twitter...只有你想不到,没有做不到. 安装步骤参考:https://www.jianshu.com/p/af444f6a4

Linux下远程桌面连接windows

windows配置: 首先打开windows的远程连接服务,允许用户远程连接到本机: 右键 -> 我的电脑 -> 属性 -> 远程 -> 允许用户远程连接到此计算机 Linux配置: 这里我们需要安装rdesktop和tsclient,其中rdesktop是基于命令行的工具,tsclient只是一个图形化的界面,依赖于rdesktop. yum install rdesktop yum install tsclient 使用rdesktop远程windows主机 rdesktop

通过xrdp实现远程桌面连接Windows Azure linux虚拟机

本文以Oracle Linux 6.4虚拟机为示例(22及3389端口必须打开,分别用于SSH及RDP连接) 1.在安装xrdp之前,首先需要安装一些必要的包,如: # yum -y install kernel-headers # yum -y install gcc openssl pam-devel openssl-devel # yum -y install autoconf automake libtool libX11-devel libXfixes-devel # yum -y i

mac远程桌面连接windows 8.1 update,提示: 远程桌面连接无法验证您希望连接的计算机的身份

在网上找到解决方案: SolutionEnable RDP security layer in Group Policy on the machine: Verify that the firewall allows remote desktop connections with RDP (Port 3389)Click Start>RunType gpedit.msc and click "OK"Result: The Group Policy Editor will open

Windows Server 2012 没有远程桌面授权服务器可以提供许可证,远程会话被中断

今天在登录公司内部的服务器的时候,无法进行远程访问. 弹出错误信息:没有远程桌面授权服务器可以提供许可证,远程会话被中断 经过网上的寻找,原来是server 2012 远程登录只提供120天的使用期限. 解决的方式分两步: 一 . 参照以下这篇文章 http://blog.sina.com.cn/s/blog_5e8c26990102w7bc.html 根本解决:由于没有远程桌面授权服务器可以提供许可证,远程会话被中断. 此博文包含图片 (2015-11-19 21:52:48)转载▼ 标签:

在工作组的环境中配置Windows 2012 R2的远程桌面服务

在工作组的环境中配置Windows 2012 R2的远程桌面服务How to configure Remote Desktop Service in Windows 2012 R2 workgroup 今天正好有需要配置一台Windows 2012 R2的终端服务器,不过是在工作组中.本来以为没什么问题,最多配置界面比较难找一些.(Windows 2012开始的终端服务/远程桌面服务的管理界面和之前版本的Windows差异巨大.)结果遇到了不少麻烦.在安装好服务器角色后,包括Remote Des

Windows 2003/2008更改远程桌面端口脚本

保存为bat文件,点击运行按提示输入新端口自动完成,直接下载更改远程桌面端口脚本 @echo off color 0a title @@ 修改Windows XP/2003/2008远程桌面服务端口号 @@ echo ******************************************************************* echo * 请输入您要更改的远程桌面端口号,范围:1-65535,不能与其他端口冲突 * echo **********************

Ubuntu 14.04 Remmina远程桌面连接Windows计算机

可以在/usr/share/applications/目录下启动Remmina远程桌面客户端或者直接在Dash中搜索Remmina即可 启动后如下图,可以新建,复制,编辑,删除远程桌面客户端 选择新建后,基本项目中档案名称哪里输入你想要显示的名称,服务器位置可uyi输入IP地址或者远程主机的计算机名称,然后输入相应的帐号和密码,及连接时的分辨率,色彩等. 高级选项中可以选择画质,是否共享打印机,是否禁用剪贴板同步功能 SSH选项可以选择是否启用SSH通道,以及SSH服务器信息,SSH验证信息.

ubuntu远程桌面连接windows系统

现在用ubuntu系统,公司买了个windows的服务器,需要给配置一套环境,来回跑很麻烦,就想windows下可以的远程桌面,Linux应该也有. 现在自己的ubuntu13.10,无法进入桌面的"系统设置"项,因此排除了一种用"ubuntu系统上面来,依次点击并打开以下菜单:应用程序-----互联网-----终端服务客户端"的方法,这种方法和windows的远程桌面项很类似. 现用rdesktop这款软件来完成我的需求.实际上也很简单.     ubuntu端: