Benutzer:MathiasMahnke/MacOS: Unterschied zwischen den Versionen

Aus Opennet
Wechseln zu: Navigation, Suche
 
Zeile 72: Zeile 72:
 
   ProxyJump A
 
   ProxyJump A
 
* apt-dater mit tmux, Q for kill-pane: https://github.com/DE-IBH/apt-dater/pull/130/files (nach /etc/apt-dater/...)
 
* apt-dater mit tmux, Q for kill-pane: https://github.com/DE-IBH/apt-dater/pull/130/files (nach /etc/apt-dater/...)
 +
* DNS Cache Flush:
 +
sudo dscacheutil -flushcache;sudo killall -HUP mDNSResponder; say cache flushed

Aktuelle Version vom 21. März 2020, 08:25 Uhr

  • Top-20 CLI Commands: http://www.infoworld.com/print/202466
  • Beenden einer hängenden SSH Sitzung (in Terminal.App): RETURN + TILDE (alt-n) + PUNKT
  • Screen Lock Menu Icon: Key Chain Application > Main Menu > Setup > Show Icon...
  • LAN (en1) -> Wifi (en0) NAT per CLI einrichten:
sudo sysctl -w net.inet.ip.forwarding=1
sudo natd -interface en0
sudo ipfw add divert natd ip from any to any via en0
  • VLAN Trunk (802.1q):
sudo ifconfig vlan12 create
sudo ifconfig vlan12 vlan 12 vlandev en1
sudo ifconfig vlan12 192.168.33.27
ifconfig vlan12
  • Kompression eines Spare-Bundle Disk Image Files:
hdiutil compact Backups.sparsebundle
sudo /usr/libexec/locate.updatedb
  • Routen löschen:
/sbin/route delete <net-or-host>/<mask>
  • IPv6 Routing:
sudo sysctl -w net.inet6.ip6.forwarding=1
sudo sysctl -w net.inet6.ip6.redirect=1
sudo ifconfig en0 inet6 alias 2a01:a700:4629:fe01::1/64
sudo rtadvd -s en0
sudo ip6fw flush
ndp -a
brew cask install virtualbox
brew cash install virtualbox-extension-pack
brew install docker docker-machine docker-composer
docker-machine create --driver virtualbox default
docker-machine ls
docker-machine env default
eval "$(docker-machine env default)"
docker run hello-world
docker ps
..
docker-machine stop
  • NTFS Read-Write Support via Brew:
brew update
brew cask install osxfuse
brew install ntfs-3g
(disable SPI)
sudo mv /sbin/mount_ntfs /sbin/mount_ntfs.orig
sudo ln -s /usr/local/sbin/mount_ntfs /sbin/mount_ntfs
(enable SPI)
sudo reboot
  • NTFS Read-Write Manual Mount:
sudo mkdir /Volumes/NTFS
sudo /usr/local/bin/ntfs-3g /dev/disk1s1 /Volumes/NTFS -olocal -oallow_other
open -n -a <Application>
  • Brew Cask Update Outdated
brew cask outdated --greedy --verbose | grep -v '(latest)' | awk '{print $1}' | xargs brew cask reinstall
  • Python PIP Update
pip freeze local | grep -v ‘^\-e’ | cut -d = -f 1 | xargs pip install -U
  • Node.JS NPM Update
npm update -g
  • Finder, Show hidden files: Cmd + Shift + .
  • SSH JumpHost Config
~/.ssh/config
Host B
 ProxyJump A
sudo dscacheutil -flushcache;sudo killall -HUP mDNSResponder; say cache flushed
Meine Werkzeuge
Namensräume

Varianten
Aktionen
Start
Opennet
Kommunikation
Karten
Werkzeuge