SOURCE: https://danielrampelt.com/blog/install-pihole-raspberry-pi-docker-ipv6/

Download and edit TZ, ServerIP and ServerIPv6 (optional).

wget https://github.com/pi-hole/docker-pi-hole/raw/master/docker_run.sh
nano docker_run.sh

Install

chmod +x docker_run.sh

./docker_run.sh

Testing

dig @127.0.0.1 google.com

Change password

docker exec -it [container-id] bash
sudo pihole -a -p

ERROR 53 Already in use

sudo systemctl disable systemd-resolved.service
sudo systemctl stop systemd-resolved

not tested: https://discourse.pi-hole.net/t/setup-on-pi-in-docker-bind-error/19137/4

--

--

Lista de verificações a fazer antes de comprar um computador desktop ou laptop novo ou usado.

Geral

  • Checagem do equipamento em geral, ao pegar no equipamento os plasticos estao firmes
  • Tem todos os parafusos com tintas ou percebes que foi usado? Isso já demonstra o historico de uso e manutenções.
  • Marcas de uso

Hardware

  • Abra a tela de Sistemas no Painel de Controle do windows para checar o hardware se é compativel com o anunciado. Ou seja se é o processador mesmo, tamanho da memoria e disco.
  • Ecrã/Tela: verificar se funciona bem, se tem riscos e principalmente deadpixels
  • Verifique todas as portas se estao funcionando bem: usb, monitor, etc.

Software

O mais importanto é o sistema operacional. Então verifique se a licença do Windows é genuina. (Em Painel de Controle/Sistemas)

--

--

First steps after default instalation

  • Create a ful partition size

01. Delete local-lvm

go to Datacenter/storage and delete local-lvm

02. Resize by shell (on yourserver/shell)

> lvremove /dev/pve/data
> lvresize -l +100%FREE /dev/pve/root
> resize2fs /dev/mapper/pve-root
  • Source.list
# nano /etc/apt/sources.list
deb http://download.proxmox.com/debian stretch pve-no-subscription
# nano /etc/apt/sources.list.d/pve-enterprise.list
#deb https://enterprise.proxmox.com/debian/pve buster pve-enterprise
# apt-get update && apt-get dist-upgrade -y
  • Docker (Using a new CT)
# apt-get install \
apt-transport-https \
ca-certificates \
curl \
gnupg2 \
software-properties-common
# curl -fsSl https://download.docker.com/linux/debian/gpg | apt-key add -
# apt-key fingerprint 0EBFCD88
# add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/debian \
$(lsb_release -cs) \
stable"
# apt-get update
# apt-get install docker-ce
  • Portainer
# mkdir portainer
# cd portainer
# mkdir data
# docker run -d -p 9000:9000 -v /root/portainer/data:/data -v "/var/run/docker.sock:/var/run/docker.dock" portainer/portainer

--

--

Close the lid and the server stay up

> nano /etc/systemd/logind.conf
HandleLidSwitch=ignore
HandleLidSwitchDocked=ignore
> systemctl restart systemd-logind.service

Screen take a nap after 300 seconds

> nano /etc/default/grubGRUB_CMDLINE_LINUX="consoleblank=300"> update-grub

--

--

When you tried to copy files and receive a permission error. It is coz the special attributes. On Mac OS X have special attributes for files. You can see it with the command

xattr -l <filename.ext>

To remove special attributes and management onedrive files

xattr -c <filename.ext>

--

--