我正在使用 GNOME 运行 Fedora 27 桌面版。我已经尝试过网络上的所有说明,但没有找到任何可以让我设置与远程用户共享屏幕的内容。谁能帮我这个?
非常感谢您的回复。
这是迄今为止的故事:
========
我最初尝试:
Activies -> Show Application -> Settings -> Sharing
并看到选项:
File Sharing
Media Sharing
Remote Login
Run Code Online (Sandbox Code Playgroud)
但是没有看到 的选项Screen Sharing,建议应该显示哪一页。
========
我看过:
https://docs.fedoraproject.org/f27/system-administrators-guide/Wayland.html
并运行
$ echo $WAYLAND_DISPLAY
这产生
wayland-0
但我不知道如何使用这些信息来解决我的问题。我也没有找到在 Fedora 27 下在 Wayland 上进行屏幕共享的文档。
========
Of the many solutions I've tried, I made the best progress by following instructions at https://docs.fedoraproject.org/f27/system-administrators-guide/infrastructure-services/TigerVNC.html
The following commands worked:
sudo dnf install tigervnc-server
sudo cp /lib/systemd/system/vncserver@.service /etc/systemd/system/vncserver@.service
Run Code Online (Sandbox Code Playgroud)
Then I edited /etc/systemd/system/vncserver@.service, replacing …
我无法验证某个简单的 Flask WTForm。
经过几天的努力,我已经尝试了所有我能想到的方法。总的来说,我对 Flask 和 Web 编程很陌生。
这是我的代码的精简但有效的版本。测试代码的唯一操作(除了提交表单之外)是将消息打印到终端。运行时的样子:
这是views.py:
# -*- coding: utf_8 -*-
...
@app.route('/test/new/', methods=['GET','POST'])
def newTest():
form = TestForm(request.form)
if form:
print 'request.form.get(\'name\') is %s' % (request.form.get('name'),)
if request.method == 'POST':
print 'in newTest(), request is POST'
if form.validate():
print 'form validates'
return redirect(url_for('allTests'))
else:
print 'form does not validate'
return render_template('newTest.html', form=form)
else:
return render_template('newTest.html', form=form)
Run Code Online (Sandbox Code Playgroud)
这是forms.py:
class TestForm(Form):
name = StringField(u"Test Name", [validators.InputRequired()])
address = StringField(u"Test Address", [validators.InputRequired()])
submit = SubmitField(u"Submit")
Run Code Online (Sandbox Code Playgroud)
模型.py:
from sqlalchemy …Run Code Online (Sandbox Code Playgroud)