Skip to content

Instantly share code, notes, and snippets.

@JustinAzoff
JustinAzoff / bro.service
Last active March 22, 2021 11:43
Broctl systemd unit
[Unit]
Description=Bro
After=network.target
[Service]
ExecStartPre=-/bro/bin/broctl cleanup
ExecStartPre=/bro/bin/broctl check
ExecStartPre=/bro/bin/broctl install
ExecStart=/bro/bin/broctl start
ExecStop=/bro/bin/broctl stop
@uglide
uglide / chroot.sh
Last active May 24, 2024 14:48
Chroot to Installed system on LVM
#!/bin/bash
fdisk -lu
pvscan
vgscan
vgchange -a y
lvscan
mount /dev/ubuntu-vg/root /mnt
mount --bind /dev /mnt/dev
mount --bind /proc /mnt/proc