Giter Site home page Giter Site logo

Comments (10)

gujjwal00 avatar gujjwal00 commented on August 24, 2024 1

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.

nathaneltitane avatar nathaneltitane commented on August 24, 2024 1

@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.

gujjwal00 avatar gujjwal00 commented on August 24, 2024 1

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.

bk138 avatar bk138 commented on August 24, 2024

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.

nathaneltitane avatar nathaneltitane commented on August 24, 2024

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.

gujjwal00 avatar gujjwal00 commented on August 24, 2024

@nathaneltitane Please note that both commands are equivalent: AM source

from multivnc.

sudomain avatar sudomain commented on August 24, 2024

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.

sudomain avatar sudomain commented on August 24, 2024

@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.

nathaneltitane avatar nathaneltitane commented on August 24, 2024

@sudomain you can enforce localhost and make do without using the password for session access like I do

from multivnc.

sudomain avatar sudomain commented on August 24, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.