When I type a command not found in a PATH in ubuntu, I get something like this:
$ rdesktop The program 'rdesktop' is currently not installed. You can install it by typing: sudo apt-get install rdesktop
I believe it's a script that looks up the APT archives and suggest an installation package. I'd like to change it so that it offers me to download it at the press of a 'y'. Two questions:
1) Where is the file located?
2) If I just add the install line in the trivial way, it's going to complain that I'm not a root and will fail (because the
rdesktop was ran as a mundane user). How do I make it ask for a password and use it to get root access?