PiHole as a container

Root:

Set IP/net Then:

Get root access:

sudo apt update && apt dist-upgrade #Update System

sudo apt install podman #Install Podman

sudo echo 'net.ipv4.ip_unprivileged_port_start=0' >> /etc/sysctl.conf # Allow non root users to use ports bellow 1024

sysctl -w net.ipv4.ip_unprivileged_port_start=0

User:

podman pull docker.io/pihole/pihole:latest #get pihole image

mkdir -p /home/student/my.hole/pihole/ #Set permanent config folder for pihole

mkdir -p /home/student/my.hole/dnsmasq.d/ #Set permanent config folder for dnsmasq

podman run -d --name my.hole -p 53:53/tcp -p 53:53/udp -p 80:80 -e TZ="Europe/Lisbon" -e FTLCONF_webserver_api_password=myhole -v /home/student/my.hole/pihole/:/etc/pihole:Z -v /home/student/my.hole/dnsmasq.d/:/etc/dnsmasq.d:Z --restart unless-stopped --hostname my.hole docker.io/pihole/pihole:latest #boot pi hole

PS:

my.hole folder, my.hole container name, myhole password , student are my own custom names. You are free o use them or create your own.

A full copy paste should work in full.

Run as Service:

mkdir -p ~/.config/systemd/user

cd .config/systemd/user/

podman generate systemd --name my.hole --files

podman stop my.hole

systemctl --user daemon-reload

systemctl --user enable --now container-my.hole

systemctl --user status container-my.hole.service

loginctl enable-linger

Test

Lists:

https://big.oisd.nl

https://raw.githubusercontent.com/r0xd4n3t/pihole-adblock-lists/main/pihole_adlists.txt

How to Exit Vim Without Saving Changes | Easy Vim Tutorial

Stuck in Vim and don’t want to save your changes? Don’t panic – we’ve got you covered! In this simple tutorial, we’ll show you exactly how to exit Vim without saving any changes. Whether you accidentally edited something or just want to quit without keeping your modifications, mastering this trick will make your coding workflow much smoother. 👉 In this video, you’ll learn: The command to exit Vim without saving any changes (:q!) How to quit Vim safely even when you’re stuck Tips on avoiding accidental saves and mistakes in Vim Quick tricks for efficient navigation in Vim If you’ve ever been stuck in Vim not knowing how to quit without saving your work, this video is your go-to solution! Say goodbye to frustrations and master Vim commands in minutes! 🔔 Don’t forget to subscribe for more tutorials on Vim, Linux, and coding tips that will improve your productivity and coding skills! #Vim #Linux #VimTutorial #VimExit #VimWithoutSaving #CodingTips #Programming #LinuxTutorial #VimCommands #VimForBeginners #TerminalEditor #TechTips #LinuxHacks

How to Exit Vim Without Saving Changes | Easy Vim Tutorial

How to Exit Vim and Force Save Your Changes | Vim Tutorial for Beginners

Struggling with exiting Vim and saving your changes? Don't worry – you're not alone! In this step-by-step tutorial, I’ll show you how to force save and exit Vim with ease, even if you're stuck or made a mistake. Whether you're new to Linux or just starting to explore the power of the Vim editor, mastering these essential commands will make you more productive and efficient in your coding journey. 👉 What you’ll learn in this video: How to force save changes in Vim using :wq! Quick tips to boost your Vim productivity and confidence If you’ve ever found yourself stuck in Vim not knowing how to exit without losing your work, this video is for YOU! 💻 Learn how to force save, quit Vim, and never panic again! 🔔 Subscribe for more tutorials on Linux, Vim, and coding tips to level up your tech skills. #Vim #Linux #VimTutorial #Coding #TextEditor #LinuxTips #Programming #VimCommands #VimForBeginners #VimTricks #LinuxTutorial #VimForceSave

How to Exit Vim and Force Save Your Changes | Vim Tutorial for Beginners

Exit VIM/VI Without Saving. Quit VIM/VI Without Saving

I am a fresh to the vi / vim text editor user. Can I quit the vi / vim text editor without saving my changes to a file under Linux -Unix OS Systems?

vi or vim is a text based editor. You can use it to change text files.. Write programs in Perl, Python, C, bash etc. To exit or quite the vim/vi text editor without saving any changes press:
:q! ENTER

In more detail:

A-First, you need to press Esc key to get out of insert or append mode.

B-Next type colon (: symbol)

C-You see the cursor at the lower left corner of the screen.

Finally, type the following command to quit without saving anything to a file: q!

This will force vi/vim to quit the editor,Every change will be lost forever.

Getting more info on how to use vim text editor

Need more info? Just use the command:

$ vimtutor