All posts by adminsss

How to: Keyboard Mapping Parallels using Windows VMs

 

Step 1 -> open System Preferences -> Keyboard

here we should:  Use all F1, F2, etc. as standard function keys. -> Enable

 

Step 2 -> Open Parallels Desktop -> Preferences

Here we should: MacOS X System Shortcuts -> Enable

 

Step 3 -> Open Parallels Desktop -> Virtual Machine -> Configure… -> Options -> Advanced

Here we should: Optimise modifier keys for games -> Enable

this makes ctrl,shift,alt keys work properly for Windows

 

Step 4 -> Open http://pqrs.org/macosx/keyremap4macbook/index.html.en and download/install “KeyRemap4MacBook  it is free

 

Step 5 -> After reboot open System Preferences -> KeyRemap4MacBook ->

Here you should enable :

Change F1…F19 Key & Functional Key … -> Change F1..F19 Key … -> Macbook Series … -> F1,F2…

Change F1…F19 Key & Functional Key … -> Change F1..F19 Key … -> Macbook Series … -> F3,F4 to Expose…

Change F1…F19 Key & Functional Key … -> Change F1..F19 Key … -> Macbook Series … -> F7,F8,F9…

Change F1…F19 Key & Functional Key … -> Change F1..F19 Key … -> Macbook Series … -> F10,F11,F12…

Change Eject Key ->  Eject to Forward Delete

 

Also if you want to Home/End/PgUp/PgDn/Insert/Delete with one hand inside Parallels VM enable this option:

Change Option_R Key … -> Enable

How To Install MyTOP – a top clone for MySQL on cPanel / CentOS server

The main problem is that if you try to install mytop form youn install mytop
it sais that you have no perl modules such as DBD::mysql and Term::ReadKey
even if you go and install them trough cPanel >> Software >> Module Installers
the yum depency checker will say that you do not have them installed so:

Continue reading How To Install MyTOP – a top clone for MySQL on cPanel / CentOS server

Fix for Munin MySQL Monitoring Plugin Graph Not Showing or Blank

Munin is a monitoring tool used to survey and monitor the performance of computers, networks, SANs, applications, databases, weather measurements and other parameters. Munin remembers and records information it captured and presents them in graphs through a web interface. cPanel, through WebHost Manager (WHM) has added the Munin Service Monitor as easily installed plugin to monitor the web host and check the capacity of resources available. Continue reading Fix for Munin MySQL Monitoring Plugin Graph Not Showing or Blank

Simple arhive extracting alias in linux

Add this to your ~/.bashrc

extract () {
if [ -f $1 ] ; then
case $1 in
*.tar.bz2) tar xvjf $1 && cd $(basename "$1" .tar.bz2) ;;
*.tar.gz) tar xvzf $1 && cd $(basename "$1" .tar.gz) ;;
*.tar.xz) tar Jxvf $1 && cd $(basename "$1" .tar.xz) ;;
*.bz2) bunzip2 $1 && cd $(basename "$1" /bz2) ;;
*.rar) unrar x $1 && cd $(basename "$1" .rar) ;;
*.gz) gunzip $1 && cd $(basename "$1" .gz) ;;
*.tar) tar xvf $1 && cd $(basename "$1" .tar) ;;
*.tbz2) tar xvjf $1 && cd $(basename "$1" .tbz2) ;;
*.tgz) tar xvzf $1 && cd $(basename "$1" .tgz) ;;
*.zip) unzip $1 && cd $(basename "$1" .zip) ;;
*.Z) uncompress $1 && cd $(basename "$1" .Z) ;;
*.7z) 7z x $1 && cd $(basename "$1" .7z) ;;
*) echo "don't know how to extract '$1'..." ;;
esac
else
echo "'$1' is not a valid file!"
fi
}

Now just type “extract filename” and you’re golden.

Show hidden files on Mac OS X Lion

The easiest way how to show hidden files in finder is to run a command in terminal: 
  • Open the Terminal application (Applications > Utilities > Terminal.app)
  • Type in the following without the quotes “defaults write com.apple.Finder AppleShowAllFiles TRUE”
  • Hit the ‘Enter’ key
  • Restart the Finder by holding ‘Option’, click and hold on the icon. Click ‘Relaunch’
To hide them again use this command:
  • To re-hide the files type “defaults write com.apple.Finder AppleShowAllFiles FALSE”
  • Then restart the Finder again.