更新时间:2022-11-07 13:07:27
在之前的回答之后,我意识到为什么它不起作用,所以我使用 EC2 Ubuntu 实例使其工作并执行以下操作:
After the previous answers I realized why it was not working so I made it work using an EC2 Ubuntu instance and doing the following:
export DEBIAN_FRONTEND=noninteractive
sudo -E apt-get update
sudo -E apt-get install -y ubuntu-desktop
sudo add-apt-repository ppa:freenx-team
sudo apt-get update
sudo aptitude install -y freenx
wget https://bugs.launchpad.net/freenxserver/+bug/576359/+attachment/1378450/+files/nxsetup.tar.gz
tar -xvf nxsetup.tar.gz
sudo cp nxsetup /usr/lib/nx/nxsetup
sudo /usr/lib/nx/nxsetup --install
然后在要求输入密码时说不,然后做了:
Then said no when asked for a password and did:
sudo vi /etc/ssh/sshd_config and set PasswordAuthentication to yes
sudo /etc/init.d/ssh restart
sudo passwd ubuntu
sudo apt-get install gnome-session-fallback
完成此操作后,我在本地计算机上安装了 NX 客户端.这一切都要归功于此页面
Once this was done I installed NX client on my local machine. All this thanks to this page
连接到我可以像这样安装 python-tk 的新服务器:
Connected to my new server where I was able to install python-tk like that:
sudo apt-get install python-tk
现在我可以在我的实例上使用 tkinter :)
And now I can use tkinter on my instance :)