We'll need to install xbindtools
and xev
prior to configuring our mouse buttons:
sudo apt-get install xev xbindtools
#!/bin/bash | |
docker rm $(docker ps -a | sed '1d' | awk '{print $1}') |
#!/bin/bash | |
docker rmi -f $(docker images | sed '1d' | awk '{print $3}') |
#!/bin/bash | |
cat >> /etc/elasticsearch/elasticsearch.yml << EOF | |
cluster.name: ELASTICAWESOME | |
cloud.aws.access_key: ACCESS_KEY_HERE | |
cloud.aws.secret_key: SECRET_KEY_HERE | |
cloud.aws.region: us-east-1 | |
discovery.type: ec2 | |
discovery.ec2.tag.Name: "ELKBEE" | |
http.cors.enabled: true | |
http.cors.allow-origin: "*" |
As a holiday project, I thought I'd try my hand at using xhyve on OSX instead of the more established Vagrant CoreOS Cluster set up as it has less overhead.
Xhyve is a port of the BSD package bhyve virtualization platform that is the default for FreeBSD 10 and up. There's a great section in the BSD about bhyve here: https://www.freebsd.org/doc/handbook/virtualization-host-bhyve.html
A couple problems arose, mostly because I was unfamiliar with the xhyve and its use of TAP adapters on OSX, but regardless, I think the expirement was a great learning process and wanted to share with others.
Note: you'll need OSX Mavericks (10.10.x) or El Capitan (10.11.x) or later in order to use xhyve. In order to asses the version you are currently running:
#! /bin/bash | |
ssh -C -D 1080 hostname -o 'GatewayPorts yes' -q | |
#essentially: | |
#-C - compression | |
#-D - tunnel and port (use 127.0.0.1 as Socks and 1080 in FF) | |
#-o - option, this one stops the annoying "Channel 9 dropped" errors | |
#-q - quiet, to get rid of any other errors |
#! /bin/bash | |
echo "127.0.0.1 localhost" | sudo tee --append /etc/hosts | |
echo "127.0.0.1" `ec2metadata --local-hostname` | sudo tee --append /etc/hosts | |
## Remove --append to overwrite the file |
#! /bin/bash | |
sudo sed -i '$ d' /etc/hosts |