- Boot from Microsoft Windows Server 2012R2 DVD/ISO.
- From the Windows Setup menu, click "Next".
- Select "Repair your computer".
- Click on "Troubleshoot".
- Under Advanced options, click "Command Prompt".
At the command prompt, run the following commands:
The example situation:
/var/foobah/myscript.sh/var/ has been mounted using noexec via /etc/fstab.Firstly, create a directory to hold script(s), located somewhere that has exec rights, then create the target directory on noexec partition:
$ mkdir --parents /opt/magnetik/foobah| #!/bin/bash | |
| # query MySQL for slave replication status | |
| # note: requires [~/.my.cnf] to be present a populated with valid MySQL password | |
| mysql \ | |
| --batch \ | |
| --user root \ | |
| --execute "SHOW GLOBAL STATUS LIKE 'Slave_running';" | \ | |
| tail --lines 1 | grep --extended-regexp --quiet "^Slave_running\tON$" |
Have tested these instructions successfully under Ubuntu 16.04LTS and 14.04LTS.
Devices > CD/DVD 1 > Connect Image..../Applications/Parallels Desktop/Contents/Resources/Tools/prl-tools-lin.iso.