I want to download a script from: http://dl.dropbox.com/u/11210438/flockonus-stack.sh and execute it. My guess is, to use wget renaming it, chmod it, and execute.
What are the commands for doing that on Ubuntu?
|
I want to download a script from: http://dl.dropbox.com/u/11210438/flockonus-stack.sh and execute it. My guess is, to use wget renaming it, chmod it, and execute. What are the commands for doing that on Ubuntu? | |||
|
feedback
|
|
Careful Before running the script, do you trust the person who wrote it? For example, did you expect the script to contain this?
That will try to change your hostname. For future reference, if, after verifying the script is correct and not malicious, you can run it in one line like this:
But download it separately and read it before running it the first time. | |||||||||||||
feedback
|
| |||
|
feedback
|
|
Try simply downloading it as you have specified with wget and then executing it directly. You can get fancy and use variables for the script you want to download etc, but this will do the trick For example:
| |||
|
feedback
|
When dpkg runs, called by apt-get, it flushes stdin. If you are using a command like The trick is to use a command like this If you want to see a complete example of installing something via a remote script you may want to look at this script for setting up denyhosts For the record, I prefer curl over wget for this, but wget should also be fine. | |||||
feedback
|