Categories
Uncategorized

Environmental Variables in Ubuntu 1804

Modify .bashrc

[su_note]export GMAIL=”myemail@gmail.com”

export GPASSWORD=”mygmailpassword@gmail.com”

[/su_note]

To test it, create a python file

[su_note]

import os

email = os.environ.get(‘GMAIL’)

p = os.environ.get(‘GPASSWORD’)

print (email)

print (p)

[/su_note]

Categories
Uncategorized

Create bootable OS X on usb

El Capitan

First format a 16GB usb drive, format it as CAPITAN.

Search/Download the installer. Then run the following on a terminal window
[su_note]sudo /Applications/Install\ OS\ X\ El\ Capitan.app/Contents/Resources/createinstallmedia –volume /Volumes/CAPITAN –applicationpath /Applications/Install\ OS\ X\ El\ Capitan.app[/su_note]

Sierra

First format a 16GB usb drive, format it as SIERRA.

Search/Download the installer. Then run the following on a terminal window
[su_note] class=”p1″>sudo /Applications/Install\ macOS\ Sierra.app/Contents/Resources/createinstallmedia –volume /Volumes/SIERRA –applicationpath /Applications/Install\ macOS\ Sierra.app[/su_note]

High Sierra

First format a 16GB usb drive, format it as HSIERRA.

Search/Download the installer. Then run the following on a terminal window
[su_note]sudo /Applications/Install\ macOS\ High\ Sierra.app/Contents/Resources/createinstallmedia –volume /Volumes/HSIERRA –applicationpath /Applications/Install\ macOS\ High\ Sierra.app[/su_note]