本文提供 ubuntu 安裝並啟動 RDP / SSH / VNC Service的方法
To make Remote Desktop Connection from Windows to ubuntu
--------------------------------------------------------------------------------------------------------------
http://www.tweaking4all.com/software/linux-software/use-xrdp-remote-access-ubuntu-14-04/
sudo apt-get update
sudo apt-get install xrdp
sudo apt-get install xfce4
-----------------------------------------------------
# Option Install XFCE4 terminal (way better than xterm)
sudo apt-get install xfce4-terminal
# Option Install icon sets
sudo apt-get install gnome-icon-theme-full tango-icon-theme
-----------------------------------------------------
echo xfce4-session >~/.xsession
sudo nano /etc/xrdp/startwm.sh
-----------------------------------------------------
#!/bin/sh
if [ -r /etc/default/locale ]; then
. /etc/default/locale
export LANG LANGUAGE
fi
startxfce4
-----------------------------------------------------
sudo service xrdp restart
-----------------------------------------------------
註:
以下連結有提供連到 Unity Desktop 的方法,但是存在一些小問題我覺得沒辦法接受
http://c-nergy.be/blog/?p=9962
--------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------------
安裝 SSH Service
apt-get install ssh
apt-get install openssh-server
設定檔路徑
vim /etc/ssh/sshd_config
可改比如:
Port 22
PasswordAuthentication yes
PermitRootLogin yes -> 開放 root 登入 (一般不會開)
重啟服務
/etc/init.d/ssh restart
--------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------------
啟用 ubuntu 內建的 Vino VNC
在 Applications 裡面找到 Desktop Sharing
勾選 Allow other users to view/control your desktop
由於 Vino VNC 的加密方式不被 Windows 常見的 RealVNC Viewer 所支援
所以基於 VNC 本來就不該直接對 Internet 造成風險的預設前提之下
關閉加密也是可以接受的,所以在要被遠端控制的帳號下指令 (不要 sudo):
gsettings set org.gnome.Vino require-encryption false
沒有留言:
張貼留言