Comments (10)
For creating new connections, vnc URI scheme is already supported (See the manifest @bk138 mentioned above). You can directly launch new connection using activity manager:
am start-activity -d vnc://host:port
Once connected, user can add that connection to bookmarks.
from multivnc.
@gujjwal00 thank you so much - slight correction, and for future references:
am start -d vnc://host:port
@bk138 :
Also, is there any way to create the bookmark automatically for future connections/reference?
I'm not really sure which activity to call or what intent/flag to call under bookmarks for that to happen.
from multivnc.
Well, specifying password is supported but not the way RFC recommends it. You can do something like this:
am start -d vnc://localhost:5901/C24bit/mypassword/
.
The structure is: vnc://host/colormodel/password/
. You have to specify color-model so that the password is at second place.
Support for RFC 7869 can be added relatively easily for the most part because Uri
class already parses the URI string for us and we just have to put those values in ConnectionBean
. But I think this should be discussed in a separate issue.
from multivnc.
I don't really understand what exactly you propose ;-) Is this about https://github.com/bk138/multivnc/blob/master/android/app/src/main/AndroidManifest.xml and the activities in there?
from multivnc.
I've written a BASH setup script to help novice users get acquainted with Termux, VNC and setting up their own portable linux environment.
I'd like to be able to create the new vnc connection/bookmark in your application through the script and automatically launch it when called on via termux using your application's activities/intent statements
from multivnc.
@nathaneltitane Please note that both commands are equivalent: AM source
from multivnc.
Glad I found this as I'm doing a similar project to @nathaneltitane. I'll just add that both of you correct: The commands are equivalent except for the version of am that is packaged with Termux. am start-activity ...
in Termux will return Error: unknown command 'start-activity'
so am start
is the one Termux supports.
EDIT: The wikipedia article linked to above links to IETF RFC 7869. Of particular interest for those reading this issue will be Section 2.1 URI Scheme Syntax which gives an example of using the VncPassword
URI parameter.
from multivnc.
@gujjwal00 does MultiVNC implement the full VNC URI scheme? I've tried:
am start -d vnc://localhost:5901?VncPassword=redacted
As well as:
am start -d vnc://localhost:5901?VncPassword=redacted&SecurityType=2
But each time MultiVNC will prompt me for the password. The redacted
password is all alphanumeric, so it's not an issue with escaping the URI delimiter characters (?, =, and &)
Edit: It seems the ConnectionName
URI parameter is also not utilized based on my tests with am
and a quick github search of the code.
from multivnc.
@sudomain you can enforce localhost and make do without using the password for session access like I do
from multivnc.
you can enforce localhost and make do without using the password for session access
I agree and I do this already. Binding to localhost and specifying a password in a URI are not mutually exclusive security strategies though. A person may have two VNC clients (e.g. multivnc and a closed source app) that they assign different levels of trust to. They may only want for the closed source app to access less trusted VNC servers running on localhost (no password), while also giving MultiVNC access to more trusted VNC servers on localhost (with a password to prevent the closed source app from accessing the more trusted server)
from multivnc.
Related Issues (20)
- edge connector north position does not show up under X11 GNOME
- Add scale-to-fit view mode HOT 5
- Adding port number for ssh tunnel. HOT 3
- Allow translations to be added via Hosted Weblate HOT 2
- Create 0.8 MacOS release HOT 2
- Add wxSecretStore use for credentials without user name
- Error dialog sometimes not shown
- Use libvncclient's connect w/ timeout functions
- Move auth methods from VncCanvas to containing activity HOT 1
- Prepare for API level 33 HOT 2
- ForegroundServiceDidNotStartInTimeException sometimes on Android 13 HOT 1
- Release v0.7.0
- Windows build cannot run due to `wxmsw32ud_core_vc_custom.dll` is missing from your computer HOT 4
- Error messages not shown
- Send mouse scroll / scrolling input HOT 1
- Predefined zoom level, toggle off zoom in/out buttons | Android Version
- Audio support? HOT 1
- Please maximize usable screen space HOT 1
- Language error with physical bluetooth keyboard HOT 5
- Add reconnect-after-connection-fail feature
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from multivnc.