Get it from the App Store.
In XCode's Preferences > Downloads you can install command line tools.
| #!/bin/bash | |
| # Expects Ubuntu 16.06 (xenial) and kernel 4.x. | |
| # Based upon a blog post by Zach at http://zachzimm.com/blog/?p=191 | |
| set -eux | |
| # Have the user call sudo early so the credentials is valid later on | |
| sudo whoami | |
| sudo apt-get install libssl-dev -y |
| //acessar 192.168.25.1/save_rg_conf.cgi | |
| var objts = {}; | |
| $.xmo.getValuesTree("Device/IP/Interfaces/Interface[@uid='1']/MaxMTUSize"); | |
| $.xmo.getValuesTree("Device/IP/Interfaces/Interface[@uid='1']/LowerLayers"); | |
| $.xmo.getValuesTree("Device/IP/Interfaces/Interface[@uid='2']/MaxMTUSize"); | |
| $.xmo.getValuesTree("Device/IP/Interfaces/Interface[@uid='2']/LowerLayers"); |
| cd ~ | |
| #sudo apt-get update | |
| #sudo apt-get install curl python-software-properties -y | |
| #sudo apt-get install openjdk-6-jre-headless | |
| curl -L https://github.com/downloads/elasticsearch/elasticsearch/elasticsearch-0.18.7.tar.gz | tar -xz | |
| sudo mv elasticsearch-* /usr/local/share/elasticsearch | |
| curl -L http://github.com/elasticsearch/elasticsearch-servicewrapper/tarball/master | tar -xz | |
| sudo mv *servicewrapper*/service /usr/local/share/elasticsearch/bin/ | |
| rm -Rf *servicewrapper* |