Burning Kali in macOS High Sierra!

To my future self: this is how you can ‘burn’ an ISO file into a flashdrive, so that it’s bootable!

hdiutil convert -format UDRW -o destination.img kali-linux-2017.2-amd64.iso
diskutil list
diskutil partitionDisk /dev/disk2 1 "Free Space" "unused" "100%"
sudo dd if=destination.img.dmg of=/dev/disk2 bs=1m
diskutil eject /dev/disk2

macOS: Format as FAT32

Find the device path:

diskutil list

Format as FAT32:

sudo diskutil eraseDisk FAT32 NAME MBRFormat /dev/disk2

Thanks Apple, for having FAT32 as an option in the Disk Utility app. It’s so much nicer than having to remember a CLI command.</sarcasm>

Raspbian + NFS

Install:


apt-get install nfs-kernel-server
nano /etc/exports

Once there, let’s add:


/mnt/flash *(rw,sync)

Dont’ forget to run exportfs!

Add New Services:

Here’s the deal: rpcbind must run before nfs-server. But due to a bug… that’s not the case. What happens if the sequence is not that?… simple! NFS is inaccessible.

In order to fix this, let’s do the following:


cat >/etc/systemd/system/nfs-common.service &lt;&lt;\EOF
&#91;Unit]
Description=NFS Common daemons
Wants=remote-fs-pre.target
DefaultDependencies=no

&#91;Service]
Type=oneshot
RemainAfterExit=yes
ExecStart=/etc/init.d/nfs-common start
ExecStop=/etc/init.d/nfs-common stop

&#91;Install]
WantedBy=sysinit.target
EOF

cat >/etc/systemd/system/rpcbind.service &lt;&lt;\EOF
&#91;Unit]
Description=RPC bind portmap service
After=systemd-tmpfiles-setup.service
Wants=remote-fs-pre.target
Before=remote-fs-pre.target
DefaultDependencies=no

&#91;Service]
ExecStart=/sbin/rpcbind -f -w
KillMode=process
Restart=on-failure

&#91;Install]
WantedBy=sysinit.target
Alias=portmap
EOF

Source Here!