OSX – Mac

MacOS

To allow hibernate mode, you should have the same mount of free space as physical memory plus 750Mb. Here are possible values: hibernatemode 0 = suspend to RAM only (default on desktops) hibernatemode 1 = suspend to disk only hibernatemode 3 = suspend to disk + RAM (default on laptops) To see your current hibernatemode # pmset -g | grep hibernatemode So, to enable Sleep Safe, open a Terminal console (spotlight search for Terminal) and enter # sudo pmset -a hibernatemode 3 It will ask Read more...
Special characters to show useful information in $PS1 prompt: \h short hostname (without domain). \H long hostname. \n new line. \s shell name (like bash, sh) \t 24h format clock. \u current username. \v shell version. \w current folder. Inside PS1 we can add the output of a specific command, preferably with short output, like  PS1=$(date) We can color the prompt messages just adding  \[\033[COLORm\]. and \[\033[0m\] to stop colors to avoid colored commands. Where COLOR Read more...
Create the shared key with puttygen: http://the.earth.li/~sgtatham/putty/latest/x86/puttygen.exe Press generate and move the mose when requested. When finish, copy the text content of the window to a file, and save it in a safe place or save it clicking  "save public key" or "save private key".   Open putty.exe and in Connections >> SSH >> Auth, select private key file clicking in "Browse" and finding the key file saved previously. or you can use pageant: http://the.earth.li/~sgtatham/putty/latest/x86/pageant.exe And Read more...
With SSH you can create trust relationships between machines to connect between them without asking for password to be able to install Veritas software or just to connect quickly to remote systems. First, you must create the Secret and Public key with this command: # ssh-keygen -t dsa -f $HOME/.ssh/id_dsa -P '' You can choose dsa or rsa as type of ssh protocol version (should use the same as on sshd_config file). rsa is used with protocol 1 in ssh. dsa is used with protocol 2 in ssh. It Read more...