cipralex - der2beers/docs Wiki

Docker

docker exec -it <container name> <command>

SMB

  • whereis samba
  • cd /etc/samba/
  • ls
  • open smb.conf
  • code smb.conf
  • sudo code smb.conf
  • code smb.conf

[power] comment = Samba on Ubuntu path = / read only = no browsable = yes

  • sudo service smbd restart
  • sudo ufw allow samba
  • sudo smbpasswd -a to

NGINx

docker run -it -d --name nginx-external -p 5555:80 -v /home/to/nginx/html:/usr/share/nginx/html:ro -e "NGINX_HOST=https://pano.fetox.de" -v /home/to/nginx/config-files:/etc/nginx/. nginx

podman run -it -d --name nginx-external -p 1111:80 -v /home/to/nginx/html:/usr/share/nginx/html:ro nginx

Docker permissions

  • groupadd docker
  • usermod -aG docker to
  • newgrp docker

Node-Red

docker run -it -d -p 1880:1880 --restart=always -v node_red_data:/data --name node-red-main nodered/node-red:latest docker run -it -d -p 1880:1880 --restart=always -v node_red_data:/data --network host --name node-red-main nodered/node-red:latest docker run -it -d --restart=always --network host --name node-red-main -v /docker-volumes/node-red-root:/data node-red-root:testing

Portainer

docker run -d -p 8000:8000 -p 9443:9443 --name portainer --restart=always -v /var/run/docker.sock:/var/run/docker.sock -v portainer_data:/data portainer/portainer-ce:latest

Copy from container

docker cp mynodered:/data /your/backup/directory

sshKey Authentification

ssh-keygen -t rsa -b 4096

  • .pub into /home/user/.ssh/authorized_keys
  • private key into ~/.ssh/id_rsa
  • permissions must only grant access to the id_rsa file
  • on MacOS for multiple ssh Keys ** touch ~/.ssh/config ** add Host 192.168.43.55 HostName 192.168.43.55 IdentityFile ~/.ssh/id_rsa_venolex User to

sudo without password

=(:) <darf was ausführen> sudo visudo add to ALL=NOPASSWD:/usr/bin/sudo

⚠️ **GitHub.com Fallback** ⚠️