问题标签 [vnc-viewer]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
1 回答
62 浏览

shell - 无法从后台调用的进程中读取输出

我正在尝试编写一个 shell 脚本来检查是否创建了 vncserver。这个想法是执行“vncviewer MACHINE_NAME”并根据文本输出我可以决定是否创建了服务器(我基本上寻找“无法”)

问题是因为 vncviewer 调用了一个弹出窗口,我需要自动终止 vncviewer 进程,因为我有一个很大的机器列表并且无法与每个弹出窗口进行交互。所以解决方案是使用 $! 将进程 ID 保存在“proc_id”中。但是我读到了$!仅对在后台调用的进程有效。问题来了,当我在后台调用 vncviewer 并将 stderr&stdout 重定向到文件时,它似乎确实在文件完成/关闭但没有被杀死时确实写入了文件。所以现在无论如何我都有一个空的文本文件,因为我总是在 vncviewer 写入我用来做出决定的输出文件之前通过杀死它来中断它的操作。

有什么帮助吗?

0 投票
0 回答
731 浏览

android - 无法从浏览器中的 novnc 客户端控制 android 模拟器(chrome)

我在 OSX lion 上使用以下命令启动了一个带有内置 qemu VNC 服务器的 android 模拟器:

之后我希望能够通过我的 chrome 浏览器控制我的模拟器,所以我找到了 noVNC ( https://github.com/kanaka/noVNC )

结果是我可以看到 android 模拟器的屏幕,但无法从 web 浏览器控制模拟器(我使用 chrome),问题出在哪里?

0 投票
1 回答
1561 浏览

php - starting tightvnc viewer via php

I'm trying to start vncviewer on Raspberry Pi using PHP, where RPi is the client and my VNC server runs MS Windows.

In PHP I'm using this script to start the vncviewer

It works when I only run the shell script from RPi, but when try it from PHP I get this error:

Is there any workaround for this error ?

0 投票
1 回答
27 浏览

virtual-machine - 我们可以在VM中安装多个浏览器吗

我需要为我的 UI 框架测试多个浏览器。我猜我可以使用 VNC 查看器登录到基于 Windows 的 VM,然后在其中安装所有以下浏览器。

  1. 铬合金
  2. 火狐
  3. IE
  4. 苹果浏览器

这可能吗?对不起,如果这是一个微不足道的问题。

0 投票
3 回答
23145 浏览

vnc - 使用tightvnc时无法更改主机分辨率

所以当我通过vnc连接我的电脑时,主机显示的分辨率为640x480。转到屏幕分辨率,显示器设置为“显示设备:移动 PC 显示器”主机没有插入显示器,但这甚至不重要,因为我使用 vnc 使用了一个紧密的 vnc 客户端进行连接。

任何帮助或建议将不胜感激。

0 投票
1 回答
3345 浏览

google-chrome - 我可以从我的网页启动 VNC Viewer for Google Chrome webapp 吗?

我正在构建一个 Web 服务,为远程机器提供 VNC 连接。目前我正在使用一个名为 novnc 的项目将 VNC 嵌入到我的网页中的一个元素中。但是,它非常慢,尤其是 web 浏览器、eclipse 等。但是,当我尝试 novnc 发布的 VNC Viewer for Google Chrome webapp 时,它似乎真的很快。这可能是因为它正在运行本机(本机 VNC 客户端也非常灵活)。我想知道我是否可以让我的用户安装 Real VNC webapp,然后使用我指定的参数(主机、端口等)从我的网页调用它?基本上,我的网页负责管理这些虚拟机(保存、创建、克隆等),我想要一个快速实现的 VNC,我可以从浏览器内部(从我的网页)调用它。从我研究过的不同的,

0 投票
1 回答
4082 浏览

java - How to resolve 'package not found' error when building using gradle?

I am trying to build TightVNC Java Viewer from source (I downloaded official version from here: http://www.tightvnc.com/download.php).

When building using provided gradle file, I get this error: package com.jcraft.jsch does not exist.

File 'src/libs/jsch-0.1.50.jar' exists in the project. I cannot figure out why it doesn't compile, since it is included in the build.gradle file. I am building using gradle build command. What am I missing?

This is provided build gradle file, as originally provided in the gradle package:

0 投票
1 回答
48808 浏览

vnc - 紧密VNC查看器中的错误无法建立连接,因为目标机器主动拒绝它

我正在使用 Window7 中的 TightVNC 查看器来连接 Ubuntu 机器。我收到错误“tightVNC 查看器中的错误无法建立连接,因为目标机器主动拒绝了它。

我没有任何防火墙设置。

当我运行时, ps -ef | grep vnc:: 我明白了

开启,x11vnc -forever -usepw -httpdir /usr/share/vnc-java/ -httpport 5800

23/05/2014 16:16:12 * XOpenDisplay 失败 (:0)

* x11vnc 无法打开 X DISPLAY: ":0",它无法继续。*上面可能有“Xlib:”错误消息,其中包含有关失败的详细信息。

我不确定问题出在哪里。

我尝试连接,例如 171.69.35.33 171.69.35.33:5900 171.69.35.33::5901

f4rom 紧密vnc 查看器。

ps辅助| grep vnc 117 6125 2.1 8.3 4832760 679396?Sl 16:14 1:13 /usr/bin/kvm -S -M pc-1.0 -enable-kvm -m 4096 -smp 4,sockets=4,cores=1,threads=1 -name talon -uuid 33c53705-1847 -e2a4-897d-436c39337179 -nodefconfig -nodefaults -chardev socket,id=charmonitor,path=/var/lib/libvirt/qemu/talon.monitor,server,nowait -mon chardev=charmonitor,id=monitor,mode=control - rtc base=utc -no-shutdown -drive file=/home/nso/build23-patch/talon-amd64-0.0.0.23_output/talon-amd64-0.0.0.23.qcow2,if=none,id=drive-ide0- 0-0,format=qcow2 -device ide-drive,bus=ide.0,unit=0,drive=drive-ide0-0-0,id=ide0-0-0,bootindex=1 -drive file=/home /nso/build23-patch/talon-amd64-0.0.0.23_output/talon.iso,if=none,media=cdrom,id=drive-ide0-1-0,readonly=on,format=raw -device ide-drive ,bus=ide.1,unit=0,drive=drive-ide0-1-0,id=ide0-1-0 -netdev tap,fd=18,id=hostnet0,vhost=on,

0 投票
1 回答
1563 浏览

winapi - 通过 Autohotkey 脚本(或镜像 Windows 应用程序窗口)实现 TightVNC 查看器无缝窗口

我正在尝试使用 TightVNC 查看器获得无缝窗口 效果。
基本上我将客户端可见区域设置为一个应用程序

然后我使用以下 AutoHotkey 脚本破解 TightVNC 查看器窗口(我隐藏工具栏的地方):

该脚本对边框和其他窗口元素进行转换。
我仍在使用这些样式,但主要问题是滚动条不会消失。

我怎样才能摆脱它们?

边注

在本地共享 VNC 中的窗口的一个有趣的副作用是使用环回连接,您可以在 Windows 中获得某种 X 服务器,这对多显示器系统很有吸引力。

0 投票
1 回答
679 浏览

c++ - libvncclient SendPointerEvent 只发送左键

我正在使用 Qt 5 和libvncserver / libvncclient库开发 VNC 查看器。我将 QWidget 对象子类化以提供 VNC 查看器小部件。

我能够连接到 VNC 服务器(运行 TightVNC 和 Windows XP),我能够移动远程光标,能够左键单击并能够通过查看器拖动东西,但是我没有成功-点击开始工作。就好像服务器忽略了发送给它的右键单击,尽管我右键单击的任何位置似乎都会更改服务器上窗口的焦点,但不会更改图标。

不幸的是,如果您还不是专家,那么 libvncclient 文档并不是很有帮助。我确实查看了几个项目的代码以寻求帮助,并尝试使用那里的方法但没有成功。我决定参考的一个是: https ://github.com/LibVNC/libvncserver/blob/master/client_examples/SDLvncviewer.c#L383

这是 SendPointerEvent 函数:

文档的相关摘录:

指针事件包括光标位置和按钮掩码。按钮掩码指示按下了指点设备上的哪些按钮。每个按钮由按钮掩码中的一个位表示。1 表示按下按钮,0 表示未按下。

您可以通过 ORing 一起使用这些预定义的按钮掩码:rfbButton1Mask、rfbButton2Mask、rfbButton3Mask、rfbButton4Mask rfbButton5Mask

我不明白应该何时、何地以及如何使用这些预定义的按钮掩码。我查看了枚举,它们都只对应于“1”、“2”、“3”等。Qt 为左键发出“1”,为右键发出“2”。

这是我的相关代码:

有关如何使右键单击起作用的任何线索?

先感谢您 :-)