Create an USB install drive (OSX Mojave)

You just need to download -in this case- Mojave OS in your HD. Once you’ve download, connect an USB flash drive (more than 8GB storage) and run:

sudo /Volumes/miguel/Software/Install\ macOS\ Mojave.app/Contents/Resources/createinstallmedia --volume /Volumes/CHEMA --nointeraction

where /Volumes/miguel/Software is the OS folder location and /Volumes/CHEMA is the USB

“Hidden” options on OSX

Sometime we need to make some tweaks en our OS. Most of the time this options are in “System preferences” via the UI, but other “hidden” options are available from the CLI (Terminal), like:

defaults write com.apple.screencapture type jpg
killall Finder

this command change the default scheenshot format (PNG) to JPG

defaults write com.apple.screencapture disable-shadow -bool true
killall SystemUIServer

to disable drop shadows on a screenshot

defaults write com.apple.finder CreateDesktop false
killall Finder

this one hide all icons in the desktop. To revert this, change to “true”

defaults write com.apple.dock persistent-apps -array-add '{"tile-type"="spacer-tile";}'
killall Dock

add space to the icon’s docks

defaults write com.apple.finder AppleShowAllFiles true;
killall Finder

show hidden files/folders (false to hide)

Install Ubuntu on a MacBook

I’ve an old MacBook (late 2009 with 4GB of RAM) and for this time some programs like Skype doesn’t work anymore. So I’m installing Ubuntu to make this old Mac working again.

First, using a secondary laptop (a MacBook Pro with OSX High Sierra in my case) download Ubuntu.

Then, “burn” the .iso file onto an USB stick. To do that, you need to erase the USB:

Then, Unmount the USB via DiskUtility

Then, open Terminal and type:

sudo diskutil list

It will list the connected USBs:

In this case disk2 is the USB.

Then, type:

sudo dd if=/Users/miguel/Downloads/ubuntu-17.10.1-desktop-amd64.iso of=/dev/disk2

Wait some minutes…

Finally, extract the USB and put it onto the final computer and turn it on. Then  press Option/alt (⌥) key to boot from USB.

 

Final result: