My Linux note

  • docker exec -it pihole bash
  • docker pull pihole/pihole
  • docker-compose down
  • docker-compose up -d
  • sudo su –
  • apt update ; apt upgrade
  • sudo timedatectl set-timezone American/Los_Angeles
  • debian –
  • nano /etc/ssh/sshd_config
  • PermitRootLogin yes
  • /etc/init.d/ssh restart
  • sudo hostnamectl set-hostname server1
  • cd /etc/netplan
  • nano yaml file
  • addresses: []
  • gateway4: x.x.x.x
  • nameservers:
  • addresses: [x.x.x.x, y.y.y.y
  • ssh-keygen -t rsa -b 4096
  • ssh-copy-id root@server-ip
  • cat ~/.ssh/id_rsa.pub | ssh root@remoteserver cat >> ~/.ssh/authorized_keys

You may also like...