Skip to content

Instantly share code, notes, and snippets.

@carepack
carepack / mount.sh
Created March 24, 2020 21:57 — forked from gtato/mount.sh
Mounting and unmounting raw disk images which have one partition
#/dev/loop0 and /dev/loop1 are assumed to be free, otherwise use 'losetup -f' and store the result
losetup /dev/loop0 disk.img
kpartx -as /dev/loop0
losetup /dev/loop1 /dev/mapper/loop0p1
mkdir disk
mount /dev/loop1 disk
@carepack
carepack / .gitignore
Created March 23, 2020 23:54 — forked from atoponce/.gitignore
Simple Compression Benchmarks
cantrbry.tar
cantrbry.tar.*.*
.*.swp
@carepack
carepack / freebsd-bluetooth-mouse.txt
Created March 20, 2020 18:50
Configure FreeBSD Bluetooth Mouse
Add to /boot/loader.conf:
ng_ubt_load="YES"
Add to /etc/rc.conf:
hcsecd_enable="YES"
sdpd_enable="YES"
bthidd_enable="YES"
Reboot, or run:
@carepack
carepack / freebsd-bluetooth-mouse.txt
Created March 20, 2020 18:50
Configure FreeBSD Bluetooth Mouse
Add to /boot/loader.conf:
ng_ubt_load="YES"
Add to /etc/rc.conf:
hcsecd_enable="YES"
sdpd_enable="YES"
bthidd_enable="YES"
Reboot, or run:
@carepack
carepack / PolicyKit.conf
Created March 16, 2020 11:40 — forked from priyadarshan/PolicyKit.conf
FreeBSD 11 notebook installation cheat-sheet
# /usr/local/etc/PolicyKit/PolicyKit.conf
# Allow normal users to mount removable media automatically
<config version="0.1">
<match action="org.freedesktop.hal.storage.mount-removable">
<return result="yes"/>
</match>
<match action="org.freedesktop.hal.storage.mount-fixed">
<return result="yes"/>
</match>