Opslag

Pi-Hole Docker Image on Raspberry Pi

Billede
Flash your Raspbbery Pi with: Hypriot OS https://blog.hypriot.com/downloads/ Boot the Raspberry, and login with The default credentials using PuTTY user: pirate password: hypriot. Run the following commands to disable the listener on port53 sudo systemctl disable systemd-resolved.service  sudo service systemd-resolved stop Run the following to install Pi-Hole: docker pull pihole/pihole Run the following to start Pi-Hole: IP_LOOKUP= " $( ip route get 8.8.8.8 | awk ' { print $NF; exit } ' ) " # May not work for VPN / tun0 IPv6_LOOKUP= " $( ip -6 route get 2001:4860:4860::8888 | awk ' {for(i=1;i<=NF;i++) if ($i=="src") print $(i+1)} ' ) " # May not work for VPN / tun0 IP= " ${IP :- $IP_LOOKUP } " # use $IP, if set, otherwise IP_LOOKUP IPv6= " ${IPv6 :- $IPv6_LOOKUP } " # use $IPv6, if set, otherwise IP_LOOKUP DOCKER_CONFIGS= " $( pwd ) " # Default of directory you run

Docker

List all containers (only IDs) docker ps -aq Stop all running containers docker stop $(docker ps -aq) Remove all containers docker rm $(docker ps -aq) Restart container docker restart [OPTIONS] CONTAINER [CONTAINER...] Restart container docker rmi $(docker images -q)

Nintendo Switch load Payloads from Raspberry Pi

Billede
The SX Pro dongle sounds like a fantastic method of launching payloads to your nintendo switch. However, you can make the same "Dongle" with your raspberry pi. Basically all you have to do is to follow this guide, and modify existing payload to the one you desire: https://gbatemp.net/threads/fusee-a-la-framboise-a-portable-rpi-fusee-gelee-rig.502507/ This is an alternative to launching payloads via e.g. Android and TegraSmash (via Windows) Part1: Installing the OS on the Raspberry:  1. Download raspberry image: https://github.com/moriczgergo/fusee-framboise/releases 2. Flash it to your RPi's SD card by using  Etcher . Part2: Changing the default payload (fusee to something else): 1. Boot up the raspberry pi using the default account: user: pi; password: raspberry. 2. Do the following to enable FTP:  Raspberry Pi FTP Server In this Raspberry Pi FTP server tutorial, we are using Raspbian, if you don’t have it installed then check out my guide on installin

installing noobs with pibakery on 64gb SD card

software that makes it easy to install noobs I used SD Card Formatter to format my 64gb SD card, and used the Full Write option to format the card. Then i installed and ran the instructions: http://www.pibakery.org/docs/install-win.html

Cheat sheet

The following are some of the ways to remove docker images/containers: Remove single image docker rmi image_name:version/image-id Remove all images docker rmi $(docker images -qf "dangling=true") Kill containers and remove them: docker rm $(docker kill $(docker ps -aq)) Note: Replace  kill  with  stop  for graceful shutdown Remove all images except "my-image" Use grep to remove all except  my-image  and  ubuntu docker rmi $(docker images | grep -v 'ubuntu\|my-image' | awk {'print $3'}) Or  (without awk) docker rmi $(docker images --quiet | grep -v $(docker images --quiet ubuntu:my-image)) Delete all docker containers docker rm $(docker ps -a -q) Delete all docker images docker rmi $(docker images -q) Removing Containers To remove specific container docker rm CONTAINER_ID CONTAINER_ID For single image docker rm 70c0e19168cf For multiple images docker rm 70c0e19168cf c2ce80b62174 Remove exited c