1. Configure remote machine
sudo apt-get install xrdp
sudo apt-get install vnc4server
sudo apt-get install xubuntu-desktop
sudo service xrdp restart
cd ~
echo "startxfce4" > .xsession
2. Configure local machine
sudo apt install rdesktop
3. Connect Ubuntu remote desktop from Ubuntu
# replace [username] with your user name, replace [password] with your password
rdesktop-vrdp 10.12.1.46 -f -u [username] -p [password]
4. Fix tab key conflict issue
edit
~/.config/xfce4/xfconf/xfce-perchannel-xml/xfce4-keyboard-shortcuts.xml
find the line
<property name="<Super>Tab" type="string" value="switch_window_key"/>
and change it to
<property name="<Super>Tab" type="empty"/>
reboot or whatever and then tab will work properly!
for more details refer to vnc xfce tab自动补全失效的解决方法
4. Connect Ubuntu remote desktop from Windows
Refer to Windows 7远程桌面连接Ubuntu 14.04