Block Ads at network level - Pi hole as local DNS

Pi hole is a network wide ad blocker. It works by setting itself up as a DNS (Domain Name System). The article walkthrough on installing pi hole on a Raspberry Pi however it can be installed on any computer or run as a Docker container. Note: Pi hole cannot block all ads e.g. It cannot block youtube ads as the ads are served from the same domain as the content. Further reading: what is dns and tools to query dns records ...

January 3, 2025 · 4 min

Use ssh keys to login to remote servers

The ssh-keygen is used to generate ssh keys and is mostly used for authenticating to gitlab, github, bitbucket at work. However we can use ssh keys to remote into a server without using passwords. Generate a new pair of ssh keys ssh-keygen is used to generate a new pair of keys In the below command -b is the bit length. Most application we use 2048 or 4096 -f specifies the file to store the generated key in ssh-keygen -b 4096 -f ~/.ssh/remoteserver Entering a passphrase is optional and can be entered for additional security. ...

January 2, 2025 · 2 min