https://github.com/traefikturkey/onvoy/blob/main/ubuntu%2Fbash%2Fdocker_server_setup.sh
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
| # https://help.ubuntu.com/community/KVM/Installation | |
| sudo apt-get install qemu-kvm libvirt-bin bridge-utils | |
| sudo usermod -a -G libvirtd $USER | |
| sudo systemctl start libvirtd | |
| sudo systemctl enable libvirtd | |
| # autostart on boot |
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
| # place this script into a directory with your Vagrantfile and update the $ports hashtable below | |
| # ./portmap up => brings portmapping up | |
| # ./portmap down => brings portmapping down | |
| # ./portmap list => lists portmapping | |
| param ( | |
| [string]$command = "up" | |
| ) |
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
| # after burning image to sd card create an empty file named "ssh" (no file extension) | |
| # on the root of the sd card. This will enable the ssh server when the raspberry pi boots | |
| # Default User: pi | |
| # Default password: raspberry | |
| # update all software | |
| sudo apt update && sudo apt dist-upgrade -y && sudo apt-get autoremove && sudo apt-get clean | |
| # minimum gpu memory |
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
| Notes on docker and building a new rails project |
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
| 4 sudo service glusterfs-server status | |
| 5 sudo gluster peer status | |
| 6 cat /vagrant/tmp/cluster_nodes | |
| 7 ifconfig | |
| 8 sudo gluster peer probe 192.168.2.107 | |
| 9 sudo gluster peer probe 192.168.2.123 | |
| 10 sudo gluster peer status | |
| 11 cat /vagrant/tmp/cluster_nodes | |
| 12 sudo gluster volume create glustertest replica 3 transport tcp 192.168.2.145:/brick 192.168.2.107:/brick 192.168.2.123:/brick force | |
| 13 sudo gluster volume start glustertest |
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
| # edgerouter setup notes on OpenVPN, cloudflare ddns and letsencrypt |
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
| sneakers: | |
| image: npi/rms-web | |
| container_name: rms-sneakers | |
| command: > | |
| /bin/bash -c " | |
| while ! wget -sq http://rabbitmq:15672 &> /dev/null; do | |
| echo Delaying startup till rabbitmq is up...; | |
| sleep 1; | |
| done; | |
| echo Starting Sneakers...; |
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
| apt-get update | |
| apt-get dist-upgrade -y --force-yes | |
| apt-get remove gnome-core | |
| apt-get install xrdp lxde-core lxde kali-defaults kali-root-login desktop-base | |
| update-alternatives --config x-session-manager | |
| Choose: | |
| 4 /usr/bin/startlxde 50 manual mode | |
| systemctl enable xrdp.service |
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
| #!/bin/bash | |
| # this does not need updated when 1setup.sh changes. It always pulls the latests | |
| # curl -s https://gist.githubusercontent.com/ilude/2cf7a3b7712378c6b9bcf1e1585bf70f/raw/setup_node_exporter.sh?$(date +%s) | /bin/bash -s | tee build.log | |
| cd /opt | |
| curl -s https://api.github.com/repos/prometheus/node_exporter/releases/latest \ | |
| | grep "browser_download_url.*linux-amd64" \ | |
| | cut -d ":" -f 2,3 \ | |
| | tr -d \" \ |