Last active
May 4, 2016 03:52
-
-
Save sigwo/02dcc1129d149a6825fb82f9f4f400d8 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# ************************************************************************** | |
# Influx installer | |
# Influxd + Influx-qt + desktop icon | |
# Maintained by : sigwo | |
# ************************************************************************** | |
# install dependencies | |
echo "*** Installing dependencies ***" | |
echo | |
sudo apt-get -y update | |
sudo apt-get -y upgrade | |
sudo apt-get install -y libminiupnpc-dev libdb++-dev libdb-dev libcrypto++-dev libqrencode-dev libboost-all-dev build-essential libboost-system-dev libboost-filesystem-dev libboost-program-options-dev libboost-thread-dev libssl-dev libssl-dev ufw git | |
echo | |
echo "*** Cloning INFX repo ***" | |
echo | |
git clone https://github.com/influxteam/influx.git infx | |
cd infx/src | |
make -f makefile.unix | |
strip Influxd | |
sudo cp Influxd /usr/bin/influxd | |
echo | |
# create config file and randomize the password | |
echo "*** Creating configuration file with randomized password ***" | |
echo | |
mkdir ~/.Influx | |
rm -f Influx.conf | |
echo "rpcuser=user | |
rpcpassword=$(cat /dev/urandom | tr -cd '[:alnum:]' | head -c32) | |
rpcallowip = 127.0.0.1 | |
rpcport = 9239 | |
server = 1 | |
daemon = 1 | |
listen = 1" >> ~/.Influx/Influx.conf | |
echo | |
echo "Done installing. Start by issuing influxd from the CLI" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment