This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
start [2016/04/21 04:49] – oemb1905 | start [2025/02/15 21:42] (current) – oemb1905 | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | #Darwin Basics | + | ====== |
- | #Jonathan Haack | + | |
- | #Haack' | + | |
- | # | + | |
- | ------------------------------------------- | ||
- | /etc/paths (location | + | Haack' |
- | /etc/man.path (man page paths) | + | |
- | #Force Remove Trash | + | * [[https:// |
+ | * [[https:// | ||
+ | * [[https:// | ||
+ | * [[https:// | ||
+ | * [[https:// | ||
- | #User Directory (sudo not required, but can help) | + | ---- |
- | sudo rm -rf ~/ | + | |
- | #All Trashes (sudo not required, but can help) | + | |
- | sudo rm -rf / | + | |
- | #If this still causes trouble, then | + | < |
- | login root | + | |
- | #enter password | + | |
- | sudo rm -rf / | + | |
- | #Now, all trashes should empty, but it is slow so view | + | ==== Self-Hosting Solutions ==== |
- | #Finder Status bar at / | + | {{ : |
+ | Tutorials on self-hosting common services and/or instances, including ways of virtualizing and automating those solutions. | ||
- | #Showing hidden items in Finder (highly recommended) | + | * Virtualization w/ Virsh: [[computing: |
+ | * Virtualization w/ Cockpit: [[computing: | ||
+ | * Backup Node w/ Virsh: [[computing: | ||
+ | * Virtualization w/ PVE: [[computing: | ||
+ | * Installing VMs w/ Preseeds: [[computing: | ||
+ | * Mail Relay: [[computing: | ||
+ | * Mail Server: [[computing: | ||
+ | * Roundcube Webmail: [[computing: | ||
+ | * Gitlab CE: [[computing: | ||
+ | * Airsonic Advanced: [[computing: | ||
+ | * Invoice Plane: [[computing: | ||
+ | * Mastodon: [[computing: | ||
+ | * Matrix: [[computing: | ||
+ | * Nextcloud: [[computing: | ||
+ | * WordPress: [[computing: | ||
+ | * Moodle: [[computing: | ||
+ | * Dokuwiki: [[computing: | ||
+ | * R-Studio: [[computing: | ||
+ | * RustDesk: [[computing: | ||
+ | * PeerTube: [[computing: | ||
- | defaults write com.apple.finder AppleShowAllFiles TRUE | + | </ |
- | 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) | + | ==== Networking ==== |
+ | {{ :networking.png? | ||
+ | The tutorials below pertain to network connections/storage, monitoring, or hardening. They may or may not be self-hosted solutions. | ||
- | #Hiding Users | + | * Basic LAMP Configuration: |
+ | * Configuring openWRT: [[computing: | ||
+ | * VPN w/ openWRT: [[computing: | ||
+ | * VPN w/ Debian: [[computing: | ||
+ | * openWRT on MT6000: [[computing: | ||
+ | * Cacti Monitoring: [[computing: | ||
+ | * Smokeping Monitoring: [[computing: | ||
+ | * Munin Monitoring: [[computing: | ||
+ | * Fail2Ban: [[computing: | ||
+ | * Webmin Monitoring: [[computing: | ||
+ | * Virtualmin Monitoring: [[computing: | ||
+ | * Securing SSH: [[computing: | ||
+ | * Adblocking w/ Pihole: [[computing: | ||
+ | * Recursive DNS w/ Unbound: [[computing: | ||
+ | * Network Shares: [[computing: | ||
+ | * Packet Monitoring: [[computing: | ||
+ | * DNS w/ ISPConfig: [[computing: | ||
+ | * SPF & DKIM Notes: [[computing: | ||
+ | * IPv6 Notes: [[computing: | ||
- | sudo dscl . create | + | </dokuteaser> |
- | #change to 0 to de-activate | + | < |
+ | ==== Miscellaneous ==== | ||
+ | {{ : | ||
+ | These tutorials have no proper home. They could extensions of tutorials above, random topics, and/or other notes from random jobs/tasks. | ||
- | #Moving user directory to var (warning, do this logged in as root) | + | * Miscellaneous Notes: [[computing: |
- | sudo mv / | + | * Virsh Reminders: [[computing: |
- | #Then, update the user record path | + | * Windows 11 on Virt-Manager: [[computing: |
- | sudo dscl . -create / | + | * Non-public |
- | # | + | * Automating Apt Upgrades: [[computing: |
- | sudo dscl . -delete "/ | + | * Simple Crypto Mining: [[computing: |
+ | * Minecraft Server: [[computing: | ||
+ | * HP Printer Issues: [[computing: | ||
+ | * Debian on Beaglebone: [[computing: | ||
+ | * Migrating WordPress: [[computing: | ||
+ | * Configuring Multi-Site WordPress: [[computing: | ||
+ | * Quicken 2007 on APFS: [[computing: | ||
+ | * Wiki Syntax: [[computing: | ||
- | ------------------------------------------- | + | </ |
- | #Homebrew Basics | + | < |
+ | ==== Storage ==== | ||
+ | {{ : | ||
+ | These tutorials all have to do with storage whether that be how to setup RAID, check for the health or integrity of physical devices, or manage backups/ | ||
- | #Install: | + | * Encryption w/ LUKS: [[computing:encryption|]] |
- | ruby -e " | + | * RAID w/ mdadm: [[computing: |
+ | * RAID w/ zfs: [[computing: | ||
+ | * SMART Tools: [[computing: | ||
+ | * Rsnapshot Version Control: [[computing: | ||
- | # | + | </dokuteaser> |
- | Download script from GitHub https:// | + | |
- | #Update | + | < |
- | brew update | + | ==== Projects ==== |
+ | {{ : | ||
+ | These are official projects that are supported by Haack' | ||
- | #Cleanup: | + | * Frontier Team Builder: [[projects: |
- | brew cleanup | + | * Community Big Blue Button: [[computing: |
+ | * Achievement/ | ||
+ | * Linux From Scratch: [[computing: | ||
+ | * Virtual Hosts: [[computing: | ||
- | #Verify Config: | + | </ |
- | brew doctor | + | |
- | #Update Packages | + | < |
- | brew update packagename | + | ==== Extras ==== |
+ | {{ : | ||
+ | Haack' | ||
- | #Install from Casks | + | * FreeBSD Notes: [[computing: |
- | brew install Caskroom/ | + | * Darwin Notes: [[computing: |
+ | * Fedora Notes: [[computing: | ||
+ | * Slackware Notes: [[computing: | ||
- | #To find the Casks in your GUI | + | </dokuteaser> |
- | / | + | |
- | + | ||
- | #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, | + | |
- | #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. | + | |
- | # | + | |
- | prior experiences and ignored such facts... | + | |
- | #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 / | + | |
- | 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: | + | |
- | open / | + | |
- | #Add the next line after /usr/bin | + | |
- | / | + | |
- | + | ||
- | #Add to PATH with vi text editor using Terminal | + | |
- | sudo vi / | + | |
- | + | ||
- | /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 | + | |
- | + | ||
- | homebrew/ | + | |
- | Caskroom/ | + | |
- | To install one of them, run (for example): | + | |
- | brew install homebrew/ | + | |
- | + | ||
- | ------------------------------------------- | + | |
- | + | ||
- | 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 allows creating user/group permissions | + | |
- | #The third restores root (I think) | + | |
- | + | ||
- | sudo chmod -R +a "$USER allow delete, | + | |
- | sudo chown -R root:wheel / | + | |
- | sudo chmod -R -N / | + | |
- | + | ||
- | ------------------------------------------- | + | |
- | + | ||
- | #To install alternative repositories for later installation, | + | |
- | + | ||
- | # | + | |
- | # | + | |
- | # | + | |
- | # | + | |
- | # | + | |
- | # | + | |
- | # | + | |
- | # | + | |
- | # | + | |
- | # | + | |
- | # | + | |
- | # | + | |
- | + | ||
- | brew tap Homebrew/ | + | |
- | #etc., etc. | + | |
- | + | ||
- | #To install their packages, look inside the Taps folder in / | + | |
- | + | ||
- | brew install homebrew/ | + | |
- | + | ||
- | #Some are not strict directory paths, but are abbreviations (most likely through the bin somehow) | + | |
- | brew install Caskroom/ | + | |
- | + | ||
- | ------------------------------------------- | + | |
- | + | ||
- | #Edits I need to do at Pure later ... | + | |
- | + | ||
- | To restore the stashed changes to /usr/local run: | + | |
- | `cd /usr/local && git stash pop` | + | |
- | Updated Homebrew from 4ae26624 to ff9aa97d. | + | |
- | To restore the stashed changes to / | + | |
- | `cd / | + | |
- | To restore the stashed changes to / | + | |
- | `cd / | + | |
- | To restore the stashed changes to / | + | |
- | `cd / | + | |
- | To restore the stashed changes to / | + | |
- | `cd / | + | |
- | To restore the stashed changes to / | + | |
- | `cd / | + | |
- | To restore the stashed changes to / | + | |
- | `cd / | + | |
- | To restore the stashed changes to / | + | |
- | `cd / | + | |
- | To restore the stashed changes to / | + | |
- | `cd / | + | |
- | To restore the stashed changes to / | + | |
- | `cd / | + | |
- | Updated 2 taps (caskroom/ | + | |
- | + | ||
- | ------------------------------------------- | + | |
- | + | ||
- | #To get private key from bitcoin console | + | |
- | #Navigate to bitcoin console | + | |
- | + | ||
- | walletpassphrase [enterpassword] | + | |
- | dumprivkey [enter public address] | + | |
- | + | ||
- | #Out comes the key | + | |
- | + | ||
- | ------------------------------------------- | + | |
- | + | ||
- | #Review this later | + | |
- | + | ||
- | Pure:~ axes$ brew cleanup | + | |
- | Warning: Skipping gnutls: most recent version 3.3.20 not installed | + | |
- | Warning: Skipping openssl: most recent version 1.0.2e_1 not installed | + | |
- | Warning: Skipping youtube-dl: most recent version 2016.01.09 not installed | + | |
- | Removing: / | + | |
- | Removing: / | + | |
- | Removing: / | + | |
- | ==> This operation has freed approximately 6.4M of disk space. | + | |
- | Pure:~ axes$ brew install gnutls | + | |
- | Error: gnutls-3.3.18 already installed | + | |
- | To install this version, first `brew unlink gnutls` | + | |
- | Pure:~ axes$ brew unlink gnutls | + | |
- | Unlinking / | + | |
- | Pure:~ axes$ brew unlink openssl | + | |
- | Unlinking / | + | |
- | Pure:~ axes$ brew unlink youtube-dl | + | |
- | Unlinking / | + | |
- | Pure:~ axes$ | + | |
- | + | ||
- | ------------------------------------------- | + | |
- | + | ||
- | #To add shell scripts to Terminal command, open bashrc, and add this to the fields | + | |
- | + | ||
- | export PATH="/ | + | |
- | + | ||
- | #Then, restart Terminal by: | + | |
- | + | ||
- | source .bashrc | + | |
- | + | ||
- | #I also added the directory of my shell scripts to the path directory | + | |
- | + | ||
- | cd Volumes/ | + | |
- | nano edit paths | + | |
- | + | ||
- | #Then add a line to the scripts folder: | + | |
- | + | ||
- | / | + | |
- | + | ||
- | #To make a script executable (not tested yet - old commands in fodler) | + | |
- | + | ||
- | chmod +x yourshellscript.sh | + | |
- | + | ||
- | ------------------------------------------- | + | |
- | + | ||
- | #El Capitan Boot Volume | + | |
- | + | ||
- | sudo / | + | |
- | + | ||
- | ------------------------------------------- | + | |
- | + | ||
- | #Server Details | + | |
- | + | ||
- | Shared Secret: | + | |
+ | ===== Copyright ===== | ||
+ | 2024 (C) Jonathan Haack DBA Haack' | ||
+ | // | ||
+ | \\ | ||
+ | // | ||
+ | \\ | ||
+ | //{{ kids-proper.png? | ||
+ | \\ | ||
+ | --- // |