参考 https://askubuntu.com/questions/592537/can-i-access-ubuntu-from-windows-remotely/592544#592544
背景是公司里面多个site直接要远程访问实验室电脑,但vnc 被防火墙阻挡,申请端口又好累。。。
好吧。
尝试了rdp sunlogin , 在Ubuntu上安装折腾了好久。。。可能支持的并不好吧。
终于找到了X2go
安装简单,走ssh的协议,信息也安全,防火墙不会拦截。就它了。
安装步骤,
Install X2Go Server
Starting from an Ubuntu 18.04 desktop server environment, add the Ubuntu ppa and install the x2go server component and MATE desktop bindings.
sudo apt-add-repository ppa:x2go/stable sudo apt-get update sudo apt-get install x2goserver x2goserver-xsession sudo apt-get install x2gomatebindings
Then install the lightweight xfce window manager.
sudo apt-get install xfce4 xfce4-terminal sudo apt-get install gnome-icon-theme tango-icon-theme
X2Go Client
From an Ubuntu desktop that we want to use as a client, run:
sudo apt-add-repository ppa:x2go/stable sudo apt-get update sudo apt-get install x2goclient
windows 安装文件
https://code.x2go.org/releases/binary-win32/x2goclient/releases/4.1.2.0-2018.06.22/
使用说明:https://uwaterloo.ca/science-computing/student-support/x2go-tutorial
x2Go Tutorial
X2go is a multiplatform ssh x-forwarding server which allows a single linux server to be accessed graphically by many users simultaneously. Science Computing currently uses this technology on a testing basis for research groups and professors.
Getting x2go
To get the x2go client on your computer, you can go to the official x2go website and follow the instructions, or you may follow the following links to directly get a compatable version (The following links are links to installers):
Windows x2go client Version 3.99.3.1-pre1
Mac OSX x2go client Version 3.99.2.1
Linux users will need to follow the instructions posted on the x2go linux section.
Using x2go
The first time you run x2go after installing, a window will come up to enter information for a connection. Following the next steps will show you how to configure your client to work with Science Computing's x2go Servers.
- First, enter the connection's name. This can be anything you want, but it should probably be the name of the server you're connecting to.
- You can change the icon to something other than the adorable baby seal, but everybody loves baby seals, so it is heavily frowned upon to change this icon.
- Your professor will provide you with the host name of the server. It will be something like "chem440-x.uwaterloo.ca"
- Your login for these servers is your watIAM account. This is what you use for desire2learn and quest, so enter your watIAM username in the login.
- For the port, put port 8022. Port 22 will also work, but not from off campus, so it's safer to just put 8022. Try 22 if 8022 not work.
- Then, from the "Session Type" dropdown, select XFCE
- Switch to the connection tab to edit some more stuff...
- host : your computer's name or IP
- login: user name
- In the connection tab, set the compression method to 4k-png. This will give you the most bang for your bandwidth. Do not use high-quality compression (such as 16m-jpeg), as many users require access to this system, and it's very unfair for you to hog it all.
- Next, open the "Settings" tab. We're almost done
- In the settings tab, set the display to fullscreen (It works in windowed mode, but it can get a bit buggy), and disable sound and printing. You can keep them enabled, but you seriously shouldn't need them.
- After this, hit ok. You should be presented to the following (or very similar) screen:
- Click on the little card you've created (or on the baby seal icon if you can't decide where to click), and simply enter your password. Congrats! You're in!
- If anything went wrong during the process, you can click the little arrow in the bottom right hand corner of the card and edit the settings.