-
Ensure that your VMs can shutdown gracefully when the power-button is pressed.
-
Place the file
vm-boot-order.pyin/optdirectory -
Make it executable:
chmod +x /opt/vm-boot-order.py -
Check that the script starts and shuts down your VMs as expected. The script can be executed as follows:
/opt/vm-boot-order.py start /opt/vm-boot-order.py stop /opt/vm-boot-order.py status -
Make a systemd service to execute the script when booting or shutting down the hypervisor:
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //Prompt users to update app if there is a new version available | |
| //Uses url_launcher package | |
| import 'package:url_launcher/url_launcher.dart'; | |
| const APP_STORE_URL = | |
| 'https://phobos.apple.com/WebObjects/MZStore.woa/wa/viewSoftwareUpdate?id=YOUR-APP-ID&mt=8'; | |
| const PLAY_STORE_URL = | |
| 'https://play.google.com/store/apps/details?id=YOUR-APP-ID'; |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * OpenCV video streaming over TCP/IP | |
| * Client: Receives video from server and display it | |
| * by Steve Tuenkam | |
| */ | |
| #include "opencv2/opencv.hpp" | |
| #include <sys/socket.h> | |
| #include <arpa/inet.h> | |
| #include <unistd.h> |