This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| computing:darwin [2018/05/18 07:48] – oemb1905 | computing:darwin [2020/02/12 01:02] (current) – oemb1905 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | #Darwin | ||
| - | #Jonathan Haack | ||
| - | # | ||
| - | # | ||
| - | |||
| ------------------------------------------- | ------------------------------------------- | ||
| - | + | * **darwin** | |
| + | * **Jonathan Haack** | ||
| + | * **Haack' | ||
| + | * **netcmnd@jonathanhaack.com** | ||
| ------------------------------------------- | ------------------------------------------- | ||
| - | #**powerpc mac and intel mac gnulinux notes; issues, installs +** | ||
| - | ------------------------------------------- | ||
| - | |||
| Making a bootable usb stick ... | Making a bootable usb stick ... | ||
| Line 54: | Line 48: | ||
| use lspci above and then visit https:// | use lspci above and then visit https:// | ||
| - | |||
| - | ------------------------------------------- | ||
| - | #**some imaging notes** | ||
| ------------------------------------------- | ------------------------------------------- | ||
| - | convert | + | 32bit EFI 64bit .iso notes for GNU/Linux installs |
| hdiutil convert -format UDRW -o destination_file.img source_file.iso | hdiutil convert -format UDRW -o destination_file.img source_file.iso | ||
| Line 73: | Line 64: | ||
| dd if=[Directory/ | dd if=[Directory/ | ||
| diskutil eject /dev/disk2 | diskutil eject /dev/disk2 | ||
| - | | ||
| - | Plug into the Intel Mac, hold option while booting, proceed w/ install | ||
| - | #Dual Boot gnulinux with macOS | + | First, disable Gatekeeper because it is stupid - use Terminal |
| - | https:// | ||
| - | sudo dd if=/ | ||
| - | Command + R reboot | ||
| - | csrutil disable | ||
| - | Reboot with inserted install image USB | ||
| - | Select grub or kernel of install USB on refind bootloader - follow instructions - install | ||
| - | The dual boot will fail each macOS update, so repeat steps each time it breaks | ||
| sudo spctl --master-disable | sudo spctl --master-disable | ||
| - | #Path | + | Second, disable System Integrity Protection (SIP) because it is stupid and won't let you dual boot properly. |
| - | | + | |
| - | / | + | |
| - | + | ||
| - | #Force Remove Trash | + | |
| - | #User Directory Trashes (sudo not required, but can help) | + | Now, reboot your Mac normally and enter a Terminal. |
| - | sudo rm -rf ~/.Trash/* | + | |
| | | ||
| - | #All Directory Trashes (sudo not required, but can help) | + | cd ~ |
| - | | + | |
| + | unzip refind-bin-0.11.2.zip | ||
| + | cd refind-bin-0.11.2 | ||
| + | sudo ./ | ||
| + | sudo reboot | ||
| + | |||
| + | ------------------------------------------- | ||
| + | |||
| + | PATH Location on macOS | ||
| - | #If this still causes trouble, then | + | /Sometimes they are installed by default in opt |
| - | | + | #(although |
| + | | ||
| - | #Enter password | + | Force Empty Trashes |
| + | sudo rm -rf ~/.Trash/* | ||
| sudo rm -rf / | sudo rm -rf / | ||
| - | #Now, all trashes should empty, but it is slow so view | ||
| - | #Finder Status bar at / | ||
| ------------------------------------------- | ------------------------------------------- | ||
| - | #Showing hidden items in Finder | + | Showing hidden items in Finder |
| defaults write com.apple.finder AppleShowAllFiles TRUE | defaults write com.apple.finder AppleShowAllFiles TRUE | ||
| killall Finder | killall Finder | ||
| - | #replace with FALSE to change back ... make sure before entering killall | ||
| - | #could also use YES / NO, or 1/0 (have not tested 1/0) | ||
| ------------------------------------------- | ------------------------------------------- | ||
| - | #Hiding Users - do as root | + | Hiding Users in macOS. |
| sudo dscl . create / | sudo dscl . create / | ||
| Line 127: | Line 111: | ||
| sudo dscl . -create / | sudo dscl . -create / | ||
| sudo dscl . -delete "/ | sudo dscl . -delete "/ | ||
| + | sudo reboot | ||
| - | ------------------------------------------- | + | Locate bitcoin wallet |
| - | + | ||
| - | #Homebrew Basics | + | |
| - | + | ||
| - | #Install: | + | |
| - | ruby -e " | + | |
| - | + | ||
| - | # | + | |
| - | Download script from GitHub https:// | + | |
| - | + | ||
| - | #Update | + | |
| - | brew update | + | |
| - | + | ||
| - | #Cleanup: | + | |
| - | brew cleanup | + | |
| - | + | ||
| - | #Verify Config: | + | |
| - | brew doctor | + | |
| - | + | ||
| - | #Update Packages | + | |
| - | brew update packagename | + | |
| - | + | ||
| - | #Install from Casks | + | |
| - | brew install Caskroom/ | + | |
| - | + | ||
| - | #To find the Casks in your GUI | + | |
| - | / | + | |
| - | + | ||
| - | #To see what you have installed using your GUI | + | |
| - | / | + | |
| - | + | ||
| - | #Sometimes they are installed by default in opt | + | |
| - | #(although this can be changed by an --option) | + | |
| - | / | + | |
| - | + | ||
| - | ------------------------------------------- | + | |
| - | + | ||
| - | #There is debate, mostly from MacPorts & Fink people | + | |
| - | #about where to put package Managers: | + | |
| - | + | ||
| - | #Homebrew will cause problems when building software from source if it is installed in / | + | |
| - | + | ||
| - | #This is the default, which is a bad choice as this path is in the default search path of compilers and other tools. | + | |
| - | + | ||
| - | #Therefore builds from other packaging software might pick up the wrong dependency, using Homebrew' | + | |
| - | + | ||
| - | #Years ago, in the very beginning of the project, even MacPorts was using / | + | |
| - | + | ||
| - | #But it turned out not to cooperate with other tools as is documented in their FAQ. | + | |
| - | + | ||
| - | # | + | |
| - | #In general, it is usually better to stick to one tool only to avoid all problems. | + | |
| - | #MacPorts is doing their best to patch out any harcoded paths, e.g. to /sw which is used by Fink. | + | |
| - | #So usually it will work, but having anything installed in /usr/local will definitely cause problems for it. | + | |
| - | + | ||
| - | @Raim on StackExchange | + | |
| - | [[https:// | + | |
| - | + | ||
| - | #MacPorts addresses this too: | + | |
| - | [[https:// | + | |
| - | + | ||
| - | ------------------------------------------- | + | |
| - | + | ||
| - | # | + | |
| - | + | ||
| - | [[http:// | + | |
| - | + | ||
| - | ------------------------------------------- | + | |
| - | + | ||
| - | #Common Packages (Will be adding more, this is by no means | + | |
| - | #exhaustive of what I have used in past). | + | |
| - | + | ||
| - | * tree | + | |
| - | * webkit2png | + | |
| - | * graphicsmagick | + | |
| - | * git | + | |
| - | * python | + | |
| - | * python3 | + | |
| - | * watch | + | |
| - | * wget | + | |
| - | * automake | + | |
| - | * autoconf | + | |
| - | * htop | + | |
| - | * jpegoptim | + | |
| - | * imagemagick | + | |
| - | * fish (fish shell) | + | |
| - | * xquartz | + | |
| - | * Homebrew cask | + | |
| - | * ack (like grep) | + | |
| - | * git | + | |
| - | * bash-completion | + | |
| - | * bash completion script | + | |
| - | * colordiff | + | |
| - | * ffmpeg | + | |
| - | * htop | + | |
| - | * imagemagick | + | |
| - | * gawk | + | |
| - | * gnu-sed | + | |
| - | * cowsay | + | |
| - | * lftp | + | |
| - | * wget | + | |
| - | * axel | + | |
| - | * tree | + | |
| - | * unrar | + | |
| - | * rlwrap | + | |
| - | * readline wrap | + | |
| - | * tig | + | |
| - | * git (command line interface) | + | |
| - | * youtube-dl | + | |
| - | * lynx (web browser) | + | |
| - | * memcached (for caching on web server) | + | |
| - | * Alpine (new version of Pine) | + | |
| - | * mutt | + | |
| - | * vi | + | |
| - | * emacs | + | |
| - | * nano | + | |
| - | * python (add 3 for v.3) | + | |
| - | * pip | + | |
| - | * virtualenv | + | |
| - | * ruby | + | |
| - | * ruby-build (test versions) | + | |
| - | + | ||
| - | ------------------------------------------- | + | |
| - | + | ||
| - | #Install GNU Essentials | + | |
| - | + | ||
| - | brew install coreutils | + | |
| - | + | ||
| - | #Add to PATH with TextWrangler or: | + | |
| - | sudo open / | + | |
| - | sudo nano / | + | |
| - | + | ||
| - | #Add the next line after /usr/bin | + | |
| - | / | + | |
| - | + | ||
| - | #Add to PATH with vi text editor or nano using Terminal | + | |
| - | sudo vi / | + | |
| - | sudo nano / | + | |
| - | + | ||
| - | #Path Looks Like This, but bear in mind Homebrew prefers the local bin first | + | |
| - | + | ||
| - | /usr/bin | + | |
| - | / | + | |
| - | /bin | + | |
| - | /usr/sbin | + | |
| - | /sbin | + | |
| - | + | ||
| - | #Homebrew offers the following instructions about coreutils | + | |
| - | + | ||
| - | #All commands have been installed with the prefix ' | + | |
| - | + | ||
| - | #If you really need to use these commands with their normal name can | + | |
| - | #add a " | + | |
| - | PATH="/ | + | |
| - | + | ||
| - | # | + | |
| - | #" | + | |
| - | MANPATH="/ | + | |
| - | + | ||
| - | #You can also use Text Wrangler to add the GNU commands to Man Pages (or use vi) | + | |
| - | / | + | |
| - | + | ||
| - | #add the following in the Set up PATH to MANPATH mapping section | + | |
| - | MANPATH_MAP / | + | |
| - | / | + | |
| - | + | ||
| - | ------------------------------------------- | + | |
| - | + | ||
| - | #More GNU commands, but duplicate ones | + | |
| - | + | ||
| - | brew tap homebrew/ | + | |
| - | + | ||
| - | brew install binutils | + | |
| - | brew install diffutils | + | |
| - | brew install ed --default-names | + | |
| - | brew install findutils --with-default-names | + | |
| - | brew install gawk | + | |
| - | brew install gnu-indent --with-default-names | + | |
| - | brew install gnu-sed --with-default-names | + | |
| - | brew install gnu-tar --with-default-names | + | |
| - | brew install gnu-which --with-default-names | + | |
| - | brew install gnutls | + | |
| - | brew install grep --with-default-names | + | |
| - | brew install gzip | + | |
| - | brew install screen | + | |
| - | brew install watch | + | |
| - | brew install wdiff --with-gettext | + | |
| - | brew install wget | + | |
| - | + | ||
| - | #newer versions of tools already on OS X and GNU | + | |
| - | + | ||
| - | brew install bash | + | |
| - | brew install emacs | + | |
| - | brew install gdb gdb requires further actions to make it work. See `brew info gdb`. | + | |
| - | brew install gpatch | + | |
| - | brew install m4 | + | |
| - | brew install make | + | |
| - | brew install nano | + | |
| - | + | ||
| - | #commands not on GNU but on OS X but might want newer | + | |
| - | + | ||
| - | brew install file-formula | + | |
| - | brew install git | + | |
| - | brew install less | + | |
| - | brew install openssh | + | |
| - | brew install perl518 | + | |
| - | brew install python | + | |
| - | brew install rsync | + | |
| - | brew install svn | + | |
| - | brew install unzip | + | |
| - | brew install vim --override-system-vi | + | |
| - | brew install macvim --override-system-vim --custom-system-icons | + | |
| - | brew install zsh | + | |
| - | + | ||
| - | ------------------------------------------- | + | |
| - | + | ||
| - | #Adding scripts to my shell PATH so I can run form command line | + | |
| - | + | ||
| - | ln -s / | + | |
| - | + | ||
| - | ------------------------------------------- | + | |
| - | + | ||
| - | #To see what is currently installed and save text file in User Downloads | + | |
| - | + | ||
| - | brew list > ~/ | + | |
| - | + | ||
| - | ------------------------------------------- | + | |
| - | + | ||
| - | #Remember, there are third party caskrooms (braumeister has lots of info): | + | |
| - | + | ||
| - | homebrew/ | + | |
| - | Caskroom/ | + | |
| - | Caskroom/ | + | |
| - | Caskroom/ | + | |
| - | Caskroom/ | + | |
| - | Caskroom/ | + | |
| - | Caskroom/ | + | |
| - | + | ||
| - | #To install one of them, run (for example): | + | |
| - | brew install homebrew/ | + | |
| - | + | ||
| - | ------------------------------------------- | + | |
| - | + | ||
| - | #Some error readings I got once ... still need to review ... copied and paster below: | + | |
| - | + | ||
| - | Are you sure you want to uninstall Homebrew? [y/N] y | + | |
| - | ==> Removing Homebrew installation... | + | |
| - | ==> Removing empty directories... | + | |
| - | ==> Homebrew uninstalled! | + | |
| - | The following possible Homebrew files were not deleted: | + | |
| - | * / | + | |
| - | * / | + | |
| - | * / | + | |
| - | You may consider to remove them by yourself. | + | |
| - | + | ||
| - | #You may want to restore / | + | |
| - | sudo chmod 0755 / | + | |
| - | sudo chgrp wheel / | + | |
| - | + | ||
| - | ------------------------------------------- | + | |
| - | + | ||
| - | # | + | |
| - | #The second command owns a directory by root with group wheel over local directory | + | |
| - | #The third restores current user as owner to local directory | + | |
| - | + | ||
| - | sudo chmod -R +a "$USER allow delete, | + | |
| - | + | ||
| - | sudo chown -R root:wheel / | + | |
| - | sudo chmod -R -N / | + | |
| - | + | ||
| - | ------------------------------------------- | + | |
| - | + | ||
| - | #To install alternative repositories for later installation, | + | |
| - | + | ||
| - | Homebrew/ | + | |
| - | Homebrew/ | + | |
| - | Homebrew/ | + | |
| - | Homebrew/ | + | |
| - | Homebrew/ | + | |
| - | Homebrew/ | + | |
| - | Homebrew/ | + | |
| - | Homebrew/ | + | |
| - | Homebrew/ | + | |
| - | Homebrew/ | + | |
| - | davidchall/ | + | |
| - | josegonzalez/ | + | |
| - | + | ||
| - | brew tap Homebrew/ | + | |
| - | + | ||
| - | #To install the brew tap third party packages, look inside the Taps folder in /usr/local to find one, and then | + | |
| - | + | ||
| - | brew install homebrew/ | + | |
| - | + | ||
| - | #Some are not strict directory paths, but are abbreviations (most likely through the bin somehow) | + | |
| - | brew install Caskroom/ | + | |
| - | + | ||
| - | ------------------------------------------- | + | |
| - | + | ||
| - | #To get private key from bitcoin console | + | |
| - | #Navigate to bitcoin | + | |
| walletpassphrase [enterpassword] | walletpassphrase [enterpassword] | ||
| dumprivkey [enter public address from gui] | dumprivkey [enter public address from gui] | ||
| - | |||
| - | #Out comes the private key | ||
| ------------------------------------------- | ------------------------------------------- | ||
| - | #To add shell scripts to Terminal command, open bash.rc, and add this to the fields (first create a directory for your scripts): | + | To add shell scripts to Terminal command, open bash.rc, and add this to the fields (first create a directory for your scripts): |
| export PATH="/ | export PATH="/ | ||
| Line 528: | Line 212: | ||
| dscacheutil -flushcache | dscacheutil -flushcache | ||
| - | #sfcc server | + | #pimp bash profile |
| + | nano ~/ | ||
| + | export PS1=" | ||
| + | export CLICOLOR=1 | ||
| + | export LSCOLORS=ExFxBxDxCxegedabagacad | ||
| + | #alias ls='ls -GFh' | ||
| + | alias l=' | ||
| + | alias ll='ls -lah' | ||
| + | |||
| + | #sfcc server | ||
| https:// | https:// | ||
| | | ||
| Line 537: | Line 230: | ||
| git -C " | git -C " | ||
| - | | + | |
| - | Apache | + | Apache |
| - | + | ||
| sudo htpasswd -c .htpasswd username1 | sudo htpasswd -c .htpasswd username1 | ||
| - | sudo htpasswd .htpasswd username2 | + | sudo htpasswd .htpasswd username2 |
| - | + | ||
| + | syntax for BSD, macOS, and Red Hat: | ||
| AuthUserFile / | AuthUserFile / | ||
| AuthGroupFile /dev/null | AuthGroupFile /dev/null | ||
| AuthName " | AuthName " | ||
| AuthType Basic | AuthType Basic | ||
| - | + | ||
| - | | + | syntax for Debian: |
| - | | + | |
| - | | + | |
| + | AuthUserFile / | ||
| + | AuthName " | ||
| + | Require | ||
| + | | ||
| If you have an SMC based Mac, make sure to install macfanctl when installing GNU/Linux on the device: | If you have an SMC based Mac, make sure to install macfanctl when installing GNU/Linux on the device: | ||
| Line 560: | Line 259: | ||
| service macfanctld restart | service macfanctld restart | ||
| | | ||
| + | Chromium API - Q5 - add to ~/.profile | ||
| + | |||
| + | export GOOGLE_API_KEY=" | ||
| + | export GOOGLE_DEFAULT_CLIENT_ID=" | ||
| + | export GOOGLE_DEFAULT_CLIENT_SECRET=" | ||
| + | |||
| + | To run the program, you must make a shell script that does: | ||
| + | |||
| + | / | ||
| + | |||
| + | Remove the annoying Gatekeeper ban on open source apps like GIMP | ||
| + | xattr -d com.apple.quarantine / | ||
| - | --- //[[netcmnd@jonathanhaack.com|oemb1905]] 2017/05/15 04:26// | + | This tutorial is a designated " |
| + | --- // | ||