Uses CVLC (command-line VLC) to record an ongoing screen session in Linux.
Requires VLC to be installed.
To save a new video file in the current folder:
#!/bin/bash | |
# Ubuntu 22.04 | |
# Please also allow `80, 443, 3000` ports in the VM network rules if apply | |
# run as sudo | |
if [ "$EUID" -ne 0 ] | |
then echo "Please run as root or use sudo" | |
exit | |
fi |