Click to See Complete Forum and Search --> : NVChoosher wont RUN!? what and how do I do it!?


tvance
12-23-2002, 05:20 PM
I am clicking on NVchooser with Mandrake 9 KDE and it simply wont run, in a terminal I goto to the directory and then type NVChooser and says Bash command not known--help!?!!?!?!?!?!
tv

Joe_Atlanta
12-23-2002, 06:20 PM
Hmmm, maybe try(while in the directory):
./NVchooser.sh

edit - I don't remember if you have to be in su mode.

ashoksagar
12-23-2002, 06:26 PM
Downloading a file from the internet strips it of its executable attributes, so first (while in the directory),

chmod +x ./NVchooser

and then

./NVchooser

tvance
12-23-2002, 06:47 PM
I had to write bash before the NVchooser.... who would have thunk it... not me cause I am CLUELESS!!! and getting more frustrated daily, it seems like everything is so dificult!

I cant FIND the K Menu setup , the directions in the manual for KDE dont match up -- anyway, thats another post... check it out in general if you wanna help.

tv

Joe_Atlanta
12-24-2002, 12:29 AM
Originally posted by ashoksagar
Downloading a file from the internet strips it of its executable attributes, so first (while in the directory),
chmod +x ./NVchooser
.. Apparently you don't have to do it with everything, although I've run up on several cases where I did have to use chmod. The NVchooser works without it *, as does the bat file that starts my distributed folding client. Dunno why.

*edit Well, I deleted my copy of NVchooser.sh and downloaded another, sure enough it would not execute. I'm pretty sure I didn't chmod (from a prompt) my old copy, so I must have done it with a file manager (right click, properties). More info that ran out of my ears. :o

Joe_Atlanta
12-24-2002, 12:32 AM
Originally posted by tvance
getting more frustrated daily, it seems like everything is so dificult! Deep breaths, try to work on one thing at a time, it keeps the useful info from running out of your ears.

For myself, I hide the firearms when I'm working on a Linux problem. :D

sharth
12-24-2002, 12:45 AM
okay! I get to tell you why this happened!

short answer : to save you from screwing yourself over in the case that NVchooser was actually a malicious file.

long answer : By running bash NVchooser or sh NVchooser (sh is usually a symlink to bash), you told Bash, the prompt, to run this file. However, there is another way to do this. by chmoding the file, as the above posts show, you allow this file to be executable. Then, I'm assuming bash, realizes that this is a bash script, and therefore runs it as such.

I think I said all that correctly. Have Fun :-D Enjoy Nvidia! Also, its usually best to just go with the tarballs anyways.

tvance
12-24-2002, 01:03 AM
thanks sharth! good info!!!
tv