update @ 2018-11-07 00:36:38
用xrdp+tigervnc等的组合,可以使用原生unity桌面。具体教程见ubuntu日常使用指南
工具准备
win10上:
xshell,school/home评估版本
xmanager
ubuntu上
图形界面对应的X有安装
ssh服务开启
测试代码
#!/usr/bin/env python
# coding: utf-8
import matplotlib.pyplot as plt
import cv2
def plot_test():
labels='frogs','hogs','dogs','logs'
sizes=15,20,45,10
colors='yellowgreen','gold','lightskyblue','lightcoral'
explode=0,0.1,0,0
plt.pie(sizes,explode=explode,labels=labels,colors=colors,autopct='%1.1f%%',shadow=True,startangle=50)
plt.axis('equal')
plt.show()
def opencv_test():
im = cv2.imread('lena.jpg')
cv2.imshow("lena", im)
cv2.waitKey()
cv2.destroyAllWindows()
if __name__ == '__main__':
plot_test()
opencv_test()