diff --git a/README.md b/README.md index a2a76bb..ba9eda2 100644 --- a/README.md +++ b/README.md @@ -1 +1 @@ -# Sthope.dev examples and templates \ No newline at end of file +# Sthope.dev examples and templates diff --git a/custom-cmds-in-ubuntu/bin_examples/createnewuserns b/custom-cmds-in-ubuntu/bin_examples/createnewuserns index ffb7c49..bcbe9c5 100644 --- a/custom-cmds-in-ubuntu/bin_examples/createnewuserns +++ b/custom-cmds-in-ubuntu/bin_examples/createnewuserns @@ -8,7 +8,7 @@ ## sudo chmod +x ~/bin/*;su -l $USER #### USAGE -# bash -c "$(wget -qLO - https://git.sthope.dev/sthope/sthope_website_examples/raw/branch/master/custom-cmds-in-ubuntu/bin_examples/createnewuserns)" go Username Password +# bash -c "$(wget -qLO - https://git.sthope.dev/sthope/sthope-examples/src/branch/master/custom-cmds-in-ubuntu/bin_examples/createnewuserns)" go Username Password # Type "createnewuserns USERNAME PASSWORD" it will create new user without asking all the questions adduser ${0} --gecos "${0},69,69,69" --disabled-password diff --git a/custom-cmds-in-ubuntu/bin_examples/install-docker-and-portainer-noroot b/custom-cmds-in-ubuntu/bin_examples/install-docker-and-portainer-noroot new file mode 100644 index 0000000..63bcb51 --- /dev/null +++ b/custom-cmds-in-ubuntu/bin_examples/install-docker-and-portainer-noroot @@ -0,0 +1,8 @@ +mkdir -p /etc/systemd/system/docker.service.d/ + +cat << EOF > /etc/systemd/system/docker.service.d/startup_options.conf +# /etc/systemd/system/docker.service.d/override.conf +[Service] +ExecStart= +ExecStart=/usr/bin/dockerd -H fd:// -H tcp://0.0.0.0:2376 +EOF \ No newline at end of file diff --git a/custom-cmds-in-ubuntu/bin_examples/proxmox_addnewuser b/custom-cmds-in-ubuntu/bin_examples/proxmox_addnewuser index 3ea8c64..c936844 100644 --- a/custom-cmds-in-ubuntu/bin_examples/proxmox_addnewuser +++ b/custom-cmds-in-ubuntu/bin_examples/proxmox_addnewuser @@ -8,7 +8,7 @@ ## sudo chmod +x ~/bin/*;su -l $USER #### USAGE -# bash -c "$(wget -qLO - https://git.sthope.dev/sthope/sthope_website_examples/raw/branch/master/custom-cmds-in-ubuntu/bin_examples/proxmox_addnewuser)" Username Password +# bash -c "$(wget -qLO - https://git.sthope.dev/sthope/sthope-examples/src/branch/master/custom-cmds-in-ubuntu/bin_examples/proxmox_addnewuser)" Username Password # apt-get update diff --git a/docker_portainer_stacks/docker-compose/README.md b/docker_portainer_stacks/docker-compose/README.md index 6f25a35..314e3f4 100644 --- a/docker_portainer_stacks/docker-compose/README.md +++ b/docker_portainer_stacks/docker-compose/README.md @@ -2,11 +2,11 @@ Run on the terminal ``` -bash -c "$(wget -qLO - https://git.sthope.dev/sthope/docker_portainer_stacks/raw/branch/master/docker-compose/docker-compose.sh)" +bash -c "$(wget -qLO - https://git.sthope.dev/sthope/sthope-examples/src/branch/master/docker_portainer_stacks/raw/branch/master/docker-compose/docker-compose.sh)" ``` & (sudo user) ``` -bash -c "$(wget -qLO - https://git.sthope.dev/sthope/docker_portainer_stacks/raw/branch/master/docker-compose/config.sh)" +bash -c "$(wget -qLO - https://git.sthope.dev/sthope/sthope-examples/src/branch/master/docker_portainer_stacks/raw/branch/master/docker-compose/config.sh)" ``` diff --git a/docker_portainer_stacks/librenms/README.md b/docker_portainer_stacks/librenms/README.md index 7cdd1cb..0251f0e 100644 --- a/docker_portainer_stacks/librenms/README.md +++ b/docker_portainer_stacks/librenms/README.md @@ -3,24 +3,24 @@ Download config env's ``` -wget -q https://git.sthope.dev/sthope/docker_portainer_stacks/raw/branch/master/librenms/msmtpd.env; wget -q https://git.sthope.dev/sthope/docker_portainer_stacks/raw/branch/master/librenms/librenms.env +wget -q https://git.sthope.dev/sthope/sthope-examples/src/branch/master/docker_portainer_stacks/raw/branch/master/librenms/msmtpd.env; wget -q https://git.sthope.dev/sthope/sthope-examples/src/branch/master/docker_portainer_stacks/raw/branch/master/librenms/librenms.env ``` Download configs.env (edit with your configs) ``` -wget -q https://git.sthope.dev/sthope/docker_portainer_stacks/raw/branch/master/librenms/.env +wget -q https://git.sthope.dev/sthope/sthope-examples/src/branch/master/docker_portainer_stacks/raw/branch/master/librenms/.env ``` Docker-Compose file ``` -wget -q https://git.sthope.dev/sthope/docker_portainer_stacks/raw/branch/master/librenms/docker-compose.yml +wget -q https://git.sthope.dev/sthope/sthope-examples/src/branch/master/docker_portainer_stacks/raw/branch/master/librenms/docker-compose.yml ``` All files ``` -wget -q https://git.sthope.dev/sthope/docker_portainer_stacks/raw/branch/master/librenms/msmtpd.env; \ -wget -q https://git.sthope.dev/sthope/docker_portainer_stacks/raw/branch/master/librenms/librenms.env; \ -wget -q https://git.sthope.dev/sthope/docker_portainer_stacks/raw/branch/master/librenms/.env; \ -wget -q https://git.sthope.dev/sthope/docker_portainer_stacks/raw/branch/master/librenms/docker-compose.yml +wget -q https://git.sthope.dev/sthope/sthope-examples/src/branch/master/docker_portainer_stacks/raw/branch/master/librenms/msmtpd.env; \ +wget -q https://git.sthope.dev/sthope/sthope-examples/src/branch/master/docker_portainer_stacks/raw/branch/master/librenms/librenms.env; \ +wget -q https://git.sthope.dev/sthope/sthope-examples/src/branch/master/docker_portainer_stacks/raw/branch/master/librenms/.env; \ +wget -q https://git.sthope.dev/sthope/sthope-examples/src/branch/master/docker_portainer_stacks/raw/branch/master/librenms/docker-compose.yml ``` \ No newline at end of file diff --git a/docker_portainer_stacks/portainer/README.md b/docker_portainer_stacks/portainer/README.md index ed8865b..cbb9bc9 100644 --- a/docker_portainer_stacks/portainer/README.md +++ b/docker_portainer_stacks/portainer/README.md @@ -5,17 +5,17 @@ Docker-compose stack with Portainer, VSCode, WatchTower Install with 1 line cmd (running as sudo/root) ``` -clear;bash -c "$(wget -qLO - https://git.sthope.dev/sthope/docker_portainer_stacks/raw/branch/master/portainer/script/install_nosudo)" +clear;bash -c "$(wget -qLO - https://git.sthope.dev/sthope/sthope-examples/src/branch/master/docker_portainer_stacks/raw/branch/master/portainer/script/install_nosudo)" ``` download docker-compose.yml with: ``` -wget https://git.sthope.dev/sthope/docker_portainer_stacks/raw/branch/master/portainer/docker-compose.yml +wget https://git.sthope.dev/sthope/sthope-examples/src/branch/master/docker_portainer_stacks/raw/branch/master/portainer/docker-compose.yml ``` # Portainer Agent ``` -bash -c "$(wget -qLO - https://git.sthope.dev/sthope/docker_portainer_stacks/raw/branch/master/portainer/install-portainer-agent)" EDGE_ID EDGE_KEY +bash -c "$(wget -qLO - https://git.sthope.dev/sthope/sthope-examples/src/branch/master/docker_portainer_stacks/raw/branch/master/portainer/install-portainer-agent)" EDGE_ID EDGE_KEY ``` Replace `EDGE_ID` and `EDGE_KEY` with ones given by Portainer \ No newline at end of file diff --git a/docker_portainer_stacks/portainer/install-portainer-agent b/docker_portainer_stacks/portainer/install-portainer-agent index 051d1e5..bc70c3f 100644 --- a/docker_portainer_stacks/portainer/install-portainer-agent +++ b/docker_portainer_stacks/portainer/install-portainer-agent @@ -4,7 +4,7 @@ ################################### #### USAGE -# bash -c "$(wget -qLO - https://git.sthope.dev/sthope/docker_portainer_stacks/raw/branch/master/portainer/install-portainer-agent)" EDGE_ID EDGE_KEY +# bash -c "$(wget -qLO - https://git.sthope.dev/sthope/sthope-examples/src/branch/master/docker_portainer_stacks/raw/branch/master/portainer/install-portainer-agent)" EDGE_ID EDGE_KEY # sudo docker run -d \ diff --git a/docker_portainer_stacks/portainer/script/install_nosudo b/docker_portainer_stacks/portainer/script/install_nosudo index 986d627..e254c48 100644 --- a/docker_portainer_stacks/portainer/script/install_nosudo +++ b/docker_portainer_stacks/portainer/script/install_nosudo @@ -8,17 +8,17 @@ ## sudo chmod +x ~/bin/*;su -l $USER #### USAGE -# bash -c "$(wget -qLO - https://git.sthope.dev/sthope/docker_portainer_stacks/raw/branch/master/portainer/script/install_nosudo)" +# bash -c "$(wget -qLO - https://git.sthope.dev/sthope/sthope-examples/src/branch/master/docker_portainer_stacks/raw/branch/master/portainer/script/install_nosudo)" # apt-get update apt-get upgrade -y -bash -c "$(wget -qLO - https://git.sthope.dev/sthope/docker_portainer_stacks/raw/branch/master/docker-compose/config.sh)" +bash -c "$(wget -qLO - https://git.sthope.dev/sthope/sthope-examples/src/branch/master/docker_portainer_stacks/raw/branch/master/docker-compose/config.sh)" mkdir -p /docker/portainer mkdir -p /docker/vscode -wget https://git.sthope.dev/sthope/docker_portainer_stacks/raw/branch/master/portainer/docker-compose.yml -P /docker/ +wget https://git.sthope.dev/sthope/sthope-examples/src/branch/master/docker_portainer_stacks/raw/branch/master/portainer/docker-compose.yml -P /docker/ cd /test/;docker-compose up -d \ No newline at end of file