From a07ed9e7561c0e10f7d8363f7123881548e02590 Mon Sep 17 00:00:00 2001 From: Théo de la Hogue Date: Sun, 9 Oct 2022 13:32:25 +0200 Subject: Documenting Tobii connexion under linux. --- src/argaze/TobiiGlassesPro2/README.md | 42 +++++++++++++++++++++++------------ 1 file changed, 28 insertions(+), 14 deletions(-) diff --git a/src/argaze/TobiiGlassesPro2/README.md b/src/argaze/TobiiGlassesPro2/README.md index 4d8e9a2..4ec4721 100644 --- a/src/argaze/TobiiGlassesPro2/README.md +++ b/src/argaze/TobiiGlassesPro2/README.md @@ -9,15 +9,39 @@ Print **A4_calibration_target.pdf** onto A4 paper sheet to get calibration targe ## Local network configuration -If the tobii Glasses aren't connected to a router, here is how to configure a local DHCP server to enable device connection. +If the tobii Glasses aren't connected to a router, here is how to configure a local DHCP server to enable IPv4 device connection. + +### Linux (Ubuntu) + +* Setup static eth0 interface + +**/etc/network/interfaces** + +``` +auto eth0 +iface eth0 inet static + address 192.168.1.1 + netmask 255.255.255.0 + network 192.168.1.0 + gateway 192.168.1.254 +``` * Install DHCP server: + ``` -brew install isc-dhcp +sudo apt-get install isc-dhcp ``` * Setup DHCP server: +**/etc/init.d/isc-dhcp-server** + +``` +# On what interfaces should the DHCP server (dhcpd) serve DHCP requests? +INTERFACESv4="eth0" +INTERFACESv6="" +``` + **/usr/local/etc/dhcpd.conf** ``` @@ -56,6 +80,7 @@ host tobiiglasses { hardware ethernet 74:fe:48:34:7c:92; fixed-address 192.168.1 Replace 74:fe:48:34:7c:92 by the correct MAC address. * Setup USB LAN Interface: + ``` ip: 192.168.1.1 subnet: 255.255.255.0 @@ -63,18 +88,7 @@ router: 192.168.1.254 ``` * Monitor DHCP server activity: -``` -sudo log stream --info --debug --predicate "process == 'dhcpd'" -``` - -* On Mac: Launch Tobii glasses interface to enable USB LAN Interface before to launch DHCP server. - -* Launch DHCP server: -``` -sudo /usr/local/sbin/dhcpd -``` -* Kill DHCP server: ``` -sudo kill `cat /usr/local/var/dhcpd/dhcpd.pid` +journalctl | grep -Ei 'dhcp' ``` -- cgit v1.1 From d1c3c1f1fdf105cefe0691553386d735ecc028c6 Mon Sep 17 00:00:00 2001 From: Théo de la Hogue Date: Tue, 11 Oct 2022 12:43:46 +0200 Subject: Documenting local dhcp setup under Linux environment. --- src/argaze/TobiiGlassesPro2/README.md | 16 ++++------------ 1 file changed, 4 insertions(+), 12 deletions(-) diff --git a/src/argaze/TobiiGlassesPro2/README.md b/src/argaze/TobiiGlassesPro2/README.md index 4ec4721..45f9924 100644 --- a/src/argaze/TobiiGlassesPro2/README.md +++ b/src/argaze/TobiiGlassesPro2/README.md @@ -34,7 +34,7 @@ sudo apt-get install isc-dhcp * Setup DHCP server: -**/etc/init.d/isc-dhcp-server** +**/etc/default/isc-dhcp-server** ``` # On what interfaces should the DHCP server (dhcpd) serve DHCP requests? @@ -42,7 +42,7 @@ INTERFACESv4="eth0" INTERFACESv6="" ``` -**/usr/local/etc/dhcpd.conf** +**/etc/dhcp/dhcpd.conf** ``` # NECESSARY TO BE A DHCP SERVER @@ -60,7 +60,7 @@ option domain-name-servers 192.168.1.1; option domain-name "robotron.lan"; # DHCP STATIC IP ASSIGNMENTS FILE -include "/usr/local/etc/master.conf"; +include "/etc/dhcp/master.conf"; # SUBNET FOR IP ADDRESSES MANUALLY/STATICALLY ASSIGNED ONLY subnet 192.168.1.0 netmask 255.255.255.0 { @@ -70,7 +70,7 @@ subnet 192.168.1.0 netmask 255.255.255.0 { } ``` -**/usr/local/etc/master.conf** +**/etc/dhcp/master.conf** ``` # Static IP assignments @@ -79,14 +79,6 @@ host tobiiglasses { hardware ethernet 74:fe:48:34:7c:92; fixed-address 192.168.1 ``` Replace 74:fe:48:34:7c:92 by the correct MAC address. -* Setup USB LAN Interface: - -``` -ip: 192.168.1.1 -subnet: 255.255.255.0 -router: 192.168.1.254 -``` - * Monitor DHCP server activity: ``` -- cgit v1.1