OSX – Mac

MacOS

Working with multiple files in vi it's possible... :e filename - Edit a file in a new buffer :bnext (or :bn) - go to next buffer :bprev (of :bp) - go to previous buffer :bd - delete a buffer (close a file) :sp filename - Open a file in a new buffer and split window ctrl+ws - Split windows ctrl+ww - switch between windows ctrl+wq - Quit a window ctrl+wv - Split windows vertically hide - close current window :only - keep only this window open :ls - show current buffers :b 2 - open buffer Read more...
Enabling SSH service from command line in MacOS can be done using with some brief commands without using the GUI (Sytem preferences). To do that, open an Terminal window and run the following commands: $ systemsetup -setremotelogin on $ sudo sudo launchctl load -w /System/Library/LaunchDaemons/ssh.plist To disable remote login (SSH): $ systemsetup -setremotelogin off Do you really want to turn remote login off? If you do, you will lose this connection and can only turn it back on locally Read more...
If after mounting MacOS image files or disk partitions you can not change the owner of files inside them due to you've got an error saying ingore ownership. For example: After adding a new hard drive to an Xserve, you cannot remotely change permissions to the new volume using normal means. Using "chown" results in no error, but the owner remains the same. Using "chgrp" results in no error, but the group remains "unknown." run the next command to modify this behaviour. $ sudo /usr/sbin/vsdbutil Read more...
Sometimes we would like to use some MacOS dmg file in non Apple machine like installing MacOS as a Virtual machine in some ... Review how to install mac as Virtual Machine here: http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=2005334 To manage image files we have hdiutil, that allow you to manipulate disk images (attach, verify, burn, etc). Save your .dmg running hdiutil to convert it to CD-R image *Note: you have so run hdiutil as root Read more...
Sometimes we would like to have our own DNS server cache, i.e for web developers, in order to have some control over our network servers in addition to the /etc/hosts file. We will have our own network hosts resolved and also a DNS cache from internet, reducing timing making queries to a remote servers. There are several steps we must follow, so let's start. set rndc Create a new config file and secret key file,  this /etc/rndc.key file defines a default command channel and authentication key Read more...