Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
This is probably NOT the place for this question, but I gotta start somewhere.
I am using tightVNC in my computers to access other computers on the LAN.
I would like to modify the program so that it can take arguments so that on each computer I can have a script run tightVNC for a particular destination. IOW, I dotn want to have to type in the address and password every time I attempt access to anothe computer. I want the Icon to display the name of the computer I want and then I want to click on that icon and be there with no further input.
The problem is that I dont know how to access the source code to fix it.
why would you want to mess with the source code for this?? Just put a little bash wrapper script around it. Or actually if you just want an icon, then just put different command line arguments for each one.
I already have a bash script that calls tightvnc when I click on the icon I designed for the script. But tightvnc does not take arguments so it then queries me, first, for the address, and then second, for the password.
The script I use is:
#! /bin/sh
tightvnc
Simple, but as you can see, tightvnc is not designed to recieve passed variables. I want to redesign it to accept the two variables, address and password from the bash script.
As I can see? All I can see is that you've not given it any options. read the man page and you'll see all the options you want.
Follows is the greek in the man page:
ENVIRONMENT
When started with the -via option, vncviewer reads the VNC_VIA_CMD environment variable, expands patterns beginning with the "%" character, and executes result as a command assuming that it would create TCP tunnel that should be used for VNC connection. If not set, this environment variable defaults to "/usr/bin/ssh -f -L %L:%H:%R %G sleep 20".
The following patterns are recognized in the VNC_VIA_CMD (note that all the patterns %G, %H, %L and %R must be present in the command template):
%%
A literal "%";
%G
gateway host name;
%H
remote VNC host name, as known to the gateway;
%L
local TCP port number;
%R
remote TCP port number.
I think asking for help here is a waste of my time. A simple example would be more helpful. That is why I want to make my changes since no one is willing to explain how the current model works.
I'm totally lost mate, you seem to think this is much much harder than it is... you want to click one of a series of icons and have each icon supply a password?
Code:
-passwd passwd-file
File from which to get the password (as generated by the vncpasswd(1) program). This option affects only the standard VNC authentication.
the -via options are all about tunneling and such, which you've not said you want to use at all. Do you need to use that option? it doesn't seem to relate to what you're originally asking about.
Last edited by acid_kewpie; 03-16-2009 at 01:56 PM.
All the theses in the world don't help without an example of syntax. So would take it upon myself to examine the code directly and determine the syntax...if I could get to it....or I would rewrite it so I understood the syntax.
There is no mention of syntax on any page I have looked at.
I have tried:
tightvnc -passwrd=12345 -host=192.168.1.103
and it does not pass the password or address.
I have tried:
tightvnc [192.168.2.103]
And it does not pass the address.
I have tried:
tightvnc [passwrd=12345][host=192.168.1.103]
I have tried:
$1=12345
$2="192.168.1.103"
tightvnc ($1, $2)
and a plethora of various iterations of syntax possibility's. NONE work and NO ONE has offered a simple example of the correct syntax.
Why is what I am trying to do so difficult for others to see????
As I can see? All I can see is that you've not given it any options. read the man page and you'll see all the options you want.
I read the man page. It doesnt give the syntax and I have tried every variation of syntax I can and cannot get it to work. Whats wrong with an example???
well firstly it clearly says "passwd" and not "passwrd" and secondly it says "File from which to get the password (as generated by the vncpasswd(1) program)" not "your password", I really can't see how that could be much clearer.
When i read the manpage I see "vncviewer [options] [host][:display]" which coupled with the -passwd option makes an example:
tightvnc -passwd mypasswdfile 1.2.3.4
Last edited by acid_kewpie; 03-17-2009 at 04:04 AM.
well firstly it clearly says "passwd" and not "passwrd" and secondly it says "File from which to get the password (as generated by the vncpasswd(1) program)" not "your password", I really can't see how that could be much clearer.
When i read the manpage I see "vncviewer [options] [host][:display]" which coupled with the -passwd option makes an example:
tightvnc -passwd mypasswdfile 1.2.3.4
The page refers to vncviewer....which I clearly dont have......
I am moving on to another forum. This one clearly only wants to argue semantics and typos rather than being helpfull. If this person were one of the forum members, and not a "Moderator" I would just say, one bad apple. But clearly the management of this forum is anti solution and only argumentative.
If anyone other than this person reads this and has a solution, I would welcome hearing from you at my emailo address, ***, but I have no more interest in linuxquestions.org
Last edited by reddazz; 03-17-2009 at 07:42 PM.
Reason: removed email address
There is no solution, you just need to read the words in the manpage, it's really really really basic. I'm sorry if what I said seems rude to you, honestly is not the intention, but there's a limit as to how basic I'd expect to have to get, so i do apologize if i've missed the mark in terms of your technical capabilities, and I notice that i did refer to a tightvnc binary, when it is indeed called vncviewer. But you seem to have completely missed the mark in terms of your expectations of the software you're trying to use and have not actually tried to read the *extremely* simple and straight forward documentation you have right infront of you. Everything you want is right there waiting for you, with trivial usage of a very simple command.
There is no solution, you just need to read the words in the manpage, it's really really really basic.
To pour oil on troubled waters, I'll second this post.
It is indeed "really really really basic".
And as for arguments over "semantics and typos", these things matter. for example, the command to change a user's password is passwd not "password" or "passwrd". The reasons are historical and no longer matter, but typos matter, and not just in linux.
Trying random syntax with any computer is unlikely to work.
You have received a decent apology for misunderstandings, and if you wish to leave LQ, so be it. I would consider it your loss. If you wish to reconsider, post again, we are truly trying our best to help you, if you can resist the temptation to "fly off the handle" at the first hurdle.
Meanwhile, you might like to go back to your post #10 and edit out your email address. Your address will otherwise be harvested by spam-bots and you will be deluged.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.