/dc

my scripts

Primary LanguageShell

wget -O dc.yml https://github.com/psschand/dc/blob/main/docker-compose.yml

--net=host

Email: admin@example.com Password: changeme

Non-Interactive Scripts

wget -O - http://website.com/my-script.sh | bash

Note that when using this method, interactive scripts will not work.

Interactive Scripts

In order to get interactive scripts working, you can use this:

bash <(wget -qO- http://website.com/my-script.sh)

Interactive Scripts that need to be run as root

Warning: This is extremely dangerous. Not recommended.

sudo su -c "bash <(wget -qO- http://website.com/my-script.sh)" root

Note that you cannot simple use sudo bash since using <(...) will create a virtual file and it's file descriptor will not be accessible from roots bash instance. It must be executed on the same user that needs to read the virtual file, so it has to be sent as it's own command inside the root users shell.

========================

=============code server=====================132.145.71.94========= https://bitlaunch.io/blog/how-to-setup-code-server-on-ubuntu-20-04-lts/ https://www.nginx.com/blog/using-free-ssltls-certificates-from-lets-encrypt-with-nginx/ https://www.digitalocean.com/community/tutorials/how-to-create-a-self-signed-ssl-certificate-for-nginx-in-ubuntu-20-04-1 https://www.linode.com/docs/guides/enabling-https-using-certbot-with-nginx-on-ubuntu/

sudo curl -fsSL https://code-server.dev/install.sh | sh -s -- --dry-run sudo curl -fsSL https://code-server.dev/install.sh | sh

systemctl --user enable --now code-server systemctl --user status code-server systemctl --user restart code-server

PORT=3000 code-server

Using password from ~/.config/code-server/config.yaml or PORT=8001 PASSWORD=omgam1 code-server

systemctl --user restart code-server =========== RDP USER ===============

sudo passwd ubuntu sudo adduser om sudo usermod -aG sudo newuser

https://techsch.com/tutorials/docker-compose-aliases https://webdock.io/en/docs/how-guides/desktop-environments/how-to-install-mate-desktop-on-your-webdock-ubuntu-server install rdp and reboot

======== docker network config ======= host docker mode sudo ufw allow 9000,80,81,8001 # for codeserver it worked after ufw and npm mapping with locahost and ws support enabled

https://stackoverflow.com/questions/47303141/how-to-use-the-host-network-and-any-other-user-defined-network-together-in-dock

https://www.freecodecamp.org/news/how-to-implement-runtime-environment-variables-with-create-react-app-docker-and-nginx-7f9d42a91d70/ https://blog.risingstack.com/create-react-app-runtime-env-cra/ https://github.com/kunokdev/cra-runtime-environment-variables https://techsch.com/tutorials/docker-compose-aliases docker network add npm https://www.theserverside.com/blog/Coffee-Talk-Java-News-Stories-and-Opinions/How-to-setup-the-Nginx-Proxy-Manager-example networks: default: external: false name: npm