Benutzer:MathiasMahnke/MacOS: Unterschied zwischen den Versionen
Aus Opennet
(20 dazwischenliegende Versionen von einem Benutzer werden nicht angezeigt) | |||
Zeile 41: | Zeile 41: | ||
eval "$(docker-machine env default)" | eval "$(docker-machine env default)" | ||
docker run hello-world | 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 | ||
+ | * htop: http://hisham.hm/htop/ | ||
+ | * Screen, Logging to file: Control-a + H | ||
+ | * Anwendung mehrfach starten | ||
+ | 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 | ||
+ | * 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 | ||
+ | * DNS Secure Lookup: dog | ||
+ | * ARM macOS: | ||
+ | ** https://github.com/mikelxc/Workarounds-for-ARM-mac | ||
+ | ** https://osxdaily.com/2020/11/18/how-run-homebrew-x86-terminal-apple-silicon-mac/ | ||
+ | % arch -x86_64 $SHELL | ||
+ | * Remote Wireshark: | ||
+ | ssh <user>@<hosts> tcpdump -i any -U -Ss0 -w - '<capture-filter>' | /Applications/Wireshark.app/Contents/MacOS/Wireshark -k -i - | ||
+ | * MD PDF Erstellung: | ||
+ | pandoc <file>.md -o <file>.pdf -s -V papersize:a4 |
Aktuelle Version vom 25. Februar 2024, 12:49 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
- Filesystem Recovery / SD Cards: http://www.cgsecurity.org/wiki/TestDisk
- Locate DB aktualisieren:
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
- Inkscape CLI, Umwandlung Bildateien: http://how-to.wikia.com/wiki/How_to_use_Inkscape_in_commandline_mode
- PSSH, Multi SSH/SCP Suite: http://www.debian-administration.org/article/624/Automating_ssh_and_scp_across_multiple_hosts
- Homebrew: http://brew.sh
- iPhone Photo Removal: Image Capture.app
- Certificate Download: gnutls-cli --print-cert <hostname>
- TCP Analyse: tcptrace <pcap-file>
- XQuartz CLI Update: di-xquartz.sh https://gist.github.com/Cam/a43706698e3e725b27e8
- Docker on Mac via Brew:
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
- htop: http://hisham.hm/htop/
- Screen, Logging to file: Control-a + H
- Anwendung mehrfach starten
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
- 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
- DNS Secure Lookup: dog
- ARM macOS:
% arch -x86_64 $SHELL
- Remote Wireshark:
ssh <user>@<hosts> tcpdump -i any -U -Ss0 -w - '<capture-filter>' | /Applications/Wireshark.app/Contents/MacOS/Wireshark -k -i -
- MD PDF Erstellung:
pandoc <file>.md -o <file>.pdf -s -V papersize:a4