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>

Spotify: Multiuser Issues

I’ve recently hit an annoying issue: if you share your mac with, say, your brother… you’ll figure out that Spotify will only work in one of the two accounts.

It doesn’t really matter if you actually have two seats or not. It won’t run at all.

Solution?. As ever… bash and…

[cc lang=”bash”]
cd /Applications
sudo chmod -R 755 Spotify.app/
[/cc]

Let’s Encrypt + Amazon AMI

Setup nginx:

  1. Download certbot:
    [cc lang=”bash”]
    $ wget https://dl.eff.org/certbot-auto
    $ chmod a+x certbot-auto[/cc]
  2. Generate Certificates:
    [cc lang=”bash”]sudo ./certbot-auto –debug -v –server https://acme-v01.api.letsencrypt.org/directory certonly -d YOUR_WEBSITE_HERE[/cc]
  3. Setup nginx and map to both, privkey + fullchain

Auto Renew:
[cc lang=”bash”]
sudo crontab -e
0 1,13 * * * /home/ec2-user/certbot-auto renew
[/cc]

Source Here

%d