Connect the camera to the ethernet USB adapter via a CROSSOVER cable (or via an ethernet switch).
Install DHCP server:
sudo apt install isc-dhcp-server
<?php | |
header("Content-Type: text/html; charset=utf-8"); | |
function display_filesize($filesize) { | |
if (is_numeric($filesize)) { | |
$decr = 1024; | |
$step = 0; | |
$prefix = array('Byte','KB','MB','GB','TB','PB'); |
#!/usr/bin/python | |
# -*- coding: utf-8 -*- | |
"""Execute a child program in a new process""" | |
import os | |
import subprocess | |
def exec_binary(cmd_line_list, cwd=None, stdout=None, stderr=None, verbose=False): | |
"""Invoke an executable file. |
Due to Alan Stern1.