Skip to content

Instantly share code, notes, and snippets.

@jak
jak / fedora.md
Last active August 4, 2019 21:09 — forked from jpuskar/fedora.md
Installing Fedora 26 on Macbook Pro Retina 2016

Installing Fedora on Macbook Pro retina

  1. Download Fedora 26 iso, create a usb bootable media
  2. Use diskutil list to figure out which drive is the usb, on macbook pro with 1 hardrive, the usb is /dev/disk2
  3. Umount the disk using diskutil unmountDisk /dev/disk2 or use Mac's Disk Utility (just umount, don't eject, umount removes it from directory structure and eject disconncet it altogether)
  4. Use dd(a low level cp) to write iso content into the usb drive, sudo dd if=~/Downloads/Fedora-Live-Desktop-x86_64-20-1.iso of=/dev/rdisk2 bs=8m, this will take a bit of time, make sure you wait until it's done, additionally compare the size or checksum to make sure all has been copied (not that necessary since if it weren't copied, it'll err at boot time)
  5. Use Disk Utility to shrink Mac's harddrive to create partition for the subsequent fedora installation
  6. Boot to recovery mode (cmd+r) and disable SIP (termina
@jak
jak / promos.rb
Last active June 13, 2017 08:48 — forked from geekygrappler/promos.rb
Pseudo code
## Promocode controller/generate endpoint controller
def generate
if not @promocode.is_valid?
#An array of errors
render json: @promocode.errors
end
if @promocode.save
blah