{
	"service": "vpn",
	"type": "proton",
	"description": "Setup VPN for Proton",
	"steps" :
	[
		"VPNLIST='jp-free-01.protonvpn.net.udp.ovpn nl-free-01.protonvpn.net.udp.ovpn us-free-01.protonvpn.net.udp.ovpn'",
		"VPNRND=$[ $RANDOM % 3 + 1 ]",
		"VPNCFG=$(echo $VPNLIST | cut -d' ' -f $VPNRND)",
		"echo Using ProtonVPN: $VPNCFG",
		"sudo openvpn --config work/ddrive/PDrive/ProtonVPN/$VPNCFG"
	]
}
{
	"service": "lan",
	"type": "",
	"description": "Setup mount point for network drive, Setting up LAN with optional filter for drives, use names from mounts.lsetup.conf",
	"steps" :
	[
		"./mlan.lsetup.sh mounts.lsetup.conf $2",
		"echo \"Mounting completed at $(date)\""
	]
}
{
	"service": "home",
	"type": "t",
	"description": "Open preconfigured terminal windows for home operations",
	"steps" :
	[
		"mate-terminal --load-config=mateterm.lsetup.conf"
	]
}
{
	"service": "home",
	"type": "apps",
	"description": "Run all the home apps",
	"steps" :
	[
        "sudo ./startvnc.sh &",
		"sleep 2",
        "./lsetup.sh smb",
		"sleep 2",
		"if ! pgrep firefox >/dev/null ; then firefox http://localhost:32400/web/index.html#!/settings/server/yourplexid/manage/libraries ; sleep 2 ; fi &",
		"sleep 2",
		"echo \"Home Apps Started at $(date)\""
	]
}
{
	"service": "vnc",
	"type": "",
	"description": "Start xvnc services for sharing the Desktop",
	"steps" :
	[
		"sudo systemctl start x11vnc.service"
	]
}
{
	"service": "smb",
	"type": "",
	"description": "Start samba services for sharing disks with Windows",
	"steps" :
	[
		"sudo touch /etc/libuser.conf",
		"sudo system-config-samba &"
	]
}
{
	"service": "syncme",
	"type": "",
	"description": "Syncing this script and files to a local share/backup",
	"steps" :
	[
		"cp lsetup.CerberusM19.cfg ./work/home/shell/machine_setup",
		"if [ $? -eq 0 ] ; then echo 'lsetup files synced' ; else echo 'failed to sync lsetup files' ; fi "

	]
}
{
	"service": "plex",
	"type": "",
	"description": "change Plex media server status",
	"steps" :
	[
		"sudo systemctl $2 plexmediaserver"
	]
}