This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
os:macos [2022/08/13 01:17] tomas |
os:macos [2024/09/24 13:13] (current) tomas [Sit/network] |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | =====MacOS===== | + | ===== MacOS ===== |
- | == Sluzby == | + | ==== Sluzby==== |
launchctl list ... seznam slizem\\ | launchctl list ... seznam slizem\\ | ||
launchctl unload | launchctl unload | ||
- | == Balickovaci system == | + | ==== Balickovaci system ==== |
- | brew install corkscrew | + | |
- | brew install htop # ==> https:// | + | |
- | brew install node # ==> https:// | + | |
- | brew install tree # ==> http:// | + | |
- | brew install vim # | + | |
sudo installer -verbose -pkg aaa.pkg ... nainstaluje balíček\\ | sudo installer -verbose -pkg aaa.pkg ... nainstaluje balíček\\ | ||
pkgutil --pkgs ... seznam nainstalovaných balíčku\\ | pkgutil --pkgs ... seznam nainstalovaných balíčku\\ | ||
Line 15: | Line 10: | ||
pkgutil --only-files --files net.pulsesecure.TnccPlugin.pkg ... seznam nainstalovaných souboru z balíčku\\ | pkgutil --only-files --files net.pulsesecure.TnccPlugin.pkg ... seznam nainstalovaných souboru z balíčku\\ | ||
- | == Sit/network == | + | === Homebrew === |
- | = stove karty = | + | brew install corkscrew |
+ | brew install htop # ==> https:// | ||
+ | brew install node # ==> https:// | ||
+ | brew install tree # ==> http:// | ||
+ | brew install vim # ==> https:// | ||
+ | brew install --cask balícek ... nejaké balíčky jsou typu cask - instalace balíčku\\ | ||
+ | brew uninstall cask -balíček ... odinstalace cask balíčku\\ | ||
+ | brew upgrade --cask --greedy --all ... upgrade a přeinstalování všech cask balíčků\\ | ||
+ | |||
+ | === Macports === | ||
+ | port ... management [[https:// | ||
+ | sudo port -v selfupdate\\ | ||
+ | sudo port install nodejs10 ... instalace node\\ | ||
+ | port installed ... seznam nainstalovaných balíčků\\ | ||
+ | |||
+ | |||
+ | === pkgsrc === | ||
+ | |||
+ | ==== Sit/network ==== | ||
+ | [[https:// | ||
+ | **stove karty**\\ | ||
ifconfig ... seznam síťových zařízení a ip adres\\ | ifconfig ... seznam síťových zařízení a ip adres\\ | ||
ifconfig lo0 10.0.0.1 alias ... pride dalsi alias (ip adresu)\\ | ifconfig lo0 10.0.0.1 alias ... pride dalsi alias (ip adresu)\\ | ||
+ | scutil --proxy ... ukáže nastavení proxy\\ | ||
- | = Routing | + | **Routing**\\ |
netstat -rn #... zobrazi routovaci tabulku\\ | netstat -rn #... zobrazi routovaci tabulku\\ | ||
route delete default\\ | route delete default\\ | ||
Line 31: | Line 47: | ||
networksetup -setadditionalroutes networkservice [dest1 mask1 gate1] [dest2 mask2 gate2] ... [destN maskN gateN]]\\ | networksetup -setadditionalroutes networkservice [dest1 mask1 gate1] [dest2 mask2 gate2] ... [destN maskN gateN]]\\ | ||
- | =firewall= | + | **firewall |
- | echo "rdr pass on lo0 inet proto tcp from any to 10.0.0.1 port 80 -> 127.0.0.1 port 3000" | sudo pfctl -ef -\\ | + | '' |
- | pfctl -v -n -f / | + | '' |
- | pfctl -v / | + | '' |
- | pfctl -q .. tichy mod\\ | + | '' |
+ | '' | ||
+ | '' | ||
+ | '' | ||
+ | %%echo "rdr pass on lo0 inet proto tcp from any to 10.0.0.1 port 80 -> 127.0.0.1 port 3000" | sudo pfctl -ef -%%\\ | ||
+ | '' | ||
+ | '' | ||
+ | '' | ||
- | =name resolution= | + | **name resolution**\\ |
discoveryutil udnsflushcaches\\ | discoveryutil udnsflushcaches\\ | ||
dscacheutil -flushcache\\ | dscacheutil -flushcache\\ | ||
+ | |||
+ | **Síťové profily** | ||
+ | networksetup -listlocations ... seznam profilů, tzv. lokací\\ | ||
+ | networksetup -getcurrentlocation ... ukáže aktuálmí profil\\ | ||
+ | networksetup -switchtolocation aaa ... přepne na profil aaa\\ | ||
== Microsoft Defender == | == Microsoft Defender == | ||
Line 46: | Line 74: | ||
==other== | ==other== | ||
csrutil status ... system integrity protection status\\ | csrutil status ... system integrity protection status\\ | ||
+ | |||
+ | |||
+ | xattr -dr com.apple.quarantine / | ||
+ | ==== správa zařízení a disků ==== | ||
+ | system_profiler SPUSBDataType ... ukáže připojená USB zařízení\\ | ||
+ | system_profiler SPPCIDataType ... sezam PCI zařízení\\ | ||
+ | diskutil list ... seznam disků\\ | ||
+ | diskutil listFilesystems ... seznam file systémů\\ | ||
+ | ioreg -p IOUSB seznam USB\\ |