Search the Community
Showing results for tags 'macos x'.
-
Монтирование nfs-ресурсов в MacOS Задача: монтировать nfs-ресурсы в макоси. В принципе, в макоси уже встроена поддержка nfs и соответствующие сетевые ресурсы можно монтировать через Finder (⌘K), однако чтобы это работало для обычного юзера, требуется некоторое шаманство на стороне linux-сервера. И заодно важный момент: я монтирую только на чтение, поскольку если разрешить запись, то макось загадит диск своими служебными файлами. На линукс-машине в /etc/exports прописываем что-то вроде: /home/user/downloads 192.168.13.12(ro,sync,no_subtree_check,insecure) Здесь адрес 192.168.13.12 — это айпишник макосной машины. После чего в Finder стандартным образом (через ⌘K или меню Go → Connect to Server...) монтируем ресурс, адрес указываем в виде nfs://nfs-server.name/home/user/downloads. Опция insecure как раз и нужна, чтобы можно было простым юзером монтировать, без неё будет выдаваться маловразумительная ошибка. Ещё одна вредная и очень трудноуловимая проблема связана с макосной интерпретаций кодирования «составных» букв в именах файлов, например, «й» или «ё», или «ü». Если имя файла (или вообще где-то в пути до файла встречается) содержит такую букву, то файл просто не откроется, причём с невразумительной ошибкой типа “The application can’t be found.” Я в детали не хочу вдаваться, можете сами погуглить по ключевым словам “mac os x nfc nfd unicode”. Решение достаточно простое: нужно изменить опции монтирования nfs-ресурсов по умолчанию, для этого добавьте в файл /etc/nfs.conf такую строчку: nfs.client.mount.options = nfc Теперь можно монтировать через Finder и всё будет в порядке. Ну и команда для всяких тестов, вдруг пригодится: /sbin/mount_nfs -v 192.168.13.12:/home/user/downloads /Volumes/test
-
Manually upgrade OpenSSH on OS 10.9.x NOTE: Installation and testing was done on a clean Mavericks (OS 10.9) installation Install Brew: Install Homebrew prereqs: xcode-select --install Install Homebrew ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" Enable Brew to override OSX system binaries brew tap homebrew/dupes Upgrade OpenSSL which is required for OpenSSH brew install openssl Upgrade OpenSSH brew install openssh --with-brewed-openssl --with-keychain-support Change default ssh-agent used by system Make a backup of original plist file: sudo cp /System/Library/LaunchAgents/org.openbsd.ssh-agent.plist Desktop/ Edit the plist file: sudo vim /System/Library/LaunchAgents/org.openbsd.ssh-agent.plist Replace the following two lines: <string>/usr/bin/ssh-agent</string> <string>-l</string> With this: <string>/usr/local/bin/ssh-agent</string> <string>-D</string> NOTE the dash before the D -D Update the system to see the changes to the plist file: launchctl unload /System/Library/LaunchAgents/org.openbsd.ssh-agent.plist launchctl load -w /System/Library/LaunchAgents/org.openbsd.ssh-agent.plist launchctl start org.openbsd.ssh-agent launchctl list | grep org.openbsd.ssh Replace the ssh system binary with a symlink to the new Brew'ed ssh binary Backup the original binary: sudo mv /usr/bin/ssh Desktop/ Create the symlink: sudo ln -s /usr/local/bin/ssh /usr/bin/ssh Add the following snipped to all users .bash_profile file eval $(ssh-agent) function cleanup { echo \"Killing SSH-Agent\" kill -9 $SSH_AGENT_PID } trap cleanup EXIT Reboot the system: sudo shutdown -r now Check that system is using the new SSH version ssh -V Remove homebrew dupes brew untap homebrew/dupes
-
- upgrade openssh
- install brew
-
(and 3 more)
Tagged with: