Skip to content

Instantly share code, notes, and snippets.

@alexgurrola
Created April 5, 2023 22:28
Show Gist options
  • Save alexgurrola/846217fd7e99abd3eb142e7ab1db4498 to your computer and use it in GitHub Desktop.
Save alexgurrola/846217fd7e99abd3eb142e7ab1db4498 to your computer and use it in GitHub Desktop.
configure shared ip and install lelastic
#!/bin/bash
# add ip to system
host=$(sudo hostname | cut -d'.' -f1)
sudo vim /etc/network/interfaces.d/$host
sudo ifdown lo && sudo ip addr flush lo && sudo ifup lo
# install lelastic
version=v0.0.6
curl -LO https://github.com/linode/lelastic/releases/download/$version/lelastic.gz
gunzip lelastic.gz
chmod 755 lelastic
sudo mv lelastic /usr/local/bin/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment