Skip to content

Instantly share code, notes, and snippets.

@gistbucket
gistbucket / README.md
Created March 27, 2025 09:40 — forked from espinz/README.md
Debian Headless install - simple-cdd

Description

The following will create an automated custom debian iso image using simple-cdd.
Copy the iso to the USB. Plug in the USB and press power; it will automatically restart with a fresh debian install. No prompts, or typing required. Barebone and vm tested.

Jump to Code
Anchor links do not work on github gists. please scroll down.

Install the required package

@gistbucket
gistbucket / install-fish-parrot.md
Created March 17, 2024 14:16 — forked from aol1306/install-fish-parrot.md
Installing fish on ParrotOS

Fish does not install normally with apt install fish on ParrotOS (as of 5.3), because of the following error:

trying to overwrite '/etc/fish/config.fish', which is also in package parrot-core 5.1.9

You can force overwrite of this file with:

cp /etc/fish/config.fish /tmp
@gistbucket
gistbucket / zsh configuration.sh
Last active April 28, 2024 10:16 — forked from grammy-jiang/zsh configuration.sh
zsh configuration
#!/usr/bin/env bash
echo "Install dependencies now..."
sudo -- sh -c "apt update && apt install -y curl fzf gawk git python3-pygments sqlite3 ssh-askpass wget zsh"
if [ -f ~/.zshrc ]; then
mv ~/.zshrc ~/.zshrc.$(date +%s).bak
fi
if [ -d ~/.oh-my-zsh ]; then
echo "Oh My ZSH exists, update it now..."
git -C ~/.oh-my-zsh pull
@gistbucket
gistbucket / oneliners.sh
Created September 30, 2022 10:51 — forked from Cenness/oneliners.sh
bash oneliners
systat -ifstat 1
netstat -tulpn | grep :80
chcon -R -t httpd_sys_content_t /path/to/file
semanage port -a -t http_port_t -p tcp %port%
nmap %uri% -p- -PN
Copy Img
diskutil list
diskutil unmountDisk /dev/rdisk2
sudo dd bs=1m if=2017-09-07-raspbian-stretch-lite.img of=/dev/rdisk2 conv=sync
Copy wpa_supplicant.conf to boot Folder
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
country=AU

How to mount local image [src]

The problem is that the .img files are not images of a partition, but of a whole disk. That means they start with a boot loader and a partition table. You have to find out the offset of the partition and mount it with the offset option of mount. If you do a

fdisk -l /path/to/image
@gistbucket
gistbucket / msys_hetzner-etc_network_interfaces
Created August 24, 2022 04:14 — forked from jpawlowski/msys_hetzner-etc_network_interfaces
Debian network configuration for Proxmox VE server running on a Hetzner host
# /etc/network/interfaces
#
auto lo
iface lo inet loopback
# device: eth0
iface eth0 inet manual
# IPv4 bridge
# (connect ONLY your firewall/router KVM instance here, this is the WAN device!)
@gistbucket
gistbucket / proxmox-proxy
Created August 24, 2022 04:12 — forked from basoro/proxmox-proxy
Running Proxmox behind a single IP address
I ran into the battle of running all of my VMs and the host node under a single public IP address. Luckily, the host is just pure Debian, and ships with iptables.
What needs to be done is essentially to run all the VMs on a private internal network. Outbound internet access is done via NAT. Inbound access is via port forwarding.
Network configuration
Here’s how it’s done:
Create a virtual interface that serves as the gateway for your VMs:
@gistbucket
gistbucket / 5_deploy-helpers.functions.sh
Last active July 27, 2022 15:43 — forked from rdmarsh/rdmfuncs.sh
include>>Deploy.sh. Standard shell script functions
#!/usr/bin/env bash
########################################
###
########################################
########################################
###
###
###
@gistbucket
gistbucket / $ remember where you were.gif
Created July 27, 2022 15:01 — forked from RafaelKuhn/$ remember where you were.gif
🚀 Productivity shell functions
$ remember where you were.gif