Last active
January 7, 2018 20:20
-
-
Save jmcarbo/cffe959bbdbea162189e8e3ce492ab05 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
down vote | |
accepted | |
This works on Linux Mint, Ubuntu, Debian, I think most Debian-based distros... | |
echo "America/Eastern" | sudo tee /etc/timezone | |
sudo dpkg-reconfigure --frontend noninteractive tzdata | |
Where to find timezones: | |
See this Wikipedia link on the tz database for other timezones to use | |
Sources for Time Zone and Daylight Saving Time Data lists more sources, like TWiki.org Service: Date and Time Gateway - Timezone Selector | |
Looking at /usr/share/zoneinfo/ shows zones that should work. Most are "Country/City" in "folder/folder" format, but if you pick a "plain" zone like MST, it may not set the daylight savings time info. | |
Or (as commented) use timedatectl list-timezones to find a zone, then timedatectl set-timezone [timezone] | |
sudo usermod --password $(echo blabla | openssl passwd -1 -stdin) pi | |
curl -sSL https://get.docker.com | sh | |
sudo usermod -aG docker pi | |
sudo docker run -ti --rm -v /usr/local/bin:/go/bin golang go get github.com/reconquest/orgalorg | |
mkdir ~/.ssh | |
ssh-keygen -t rsa -N "" -f ~/.ssh/id_rsa | |
cat hosts | orgalorg -s -C 'sudo usermod --password $(openssl passwd -1 blabla) pi' | |
docker swarm init | |
docker swarm join-token manager | |
cat hosts | orgalorg -s -C 'curl -sSL https://get.docker.com | sh' | |
cat hosts | orgalorg -s -C sudo usermod -aG docker pi | |
cat hosts | orgalorg -s -C 'docker swarm join --token SWMTKN-1-ddd-ddd 10.18.202.85:2377' | |
orgalorg -o 10.18.202.91 -C sudo lvm vgchange -a a | |
cat etc/clusterhosts|orgalorg -x -s -C 'echo 204800 > /proc/sys/fs/inotify/max_user_watches' | |
cat etc/clusterhosts|orgalorg -x -s -C 'echo "fs.inotify.max_user_watches=204800" | sudo tee -a /etc/sysctl.conf ' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment