User Tools

Site Tools


device_controll

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
device_controll [2024/11/25 16:41] simondevice_controll [2026/05/09 12:46] (current) – [Using local web interace (Firefox) to display instrument information] ari
Line 29: Line 29:
     sudo sysctl -w net.ipv4.icmp_echo_ignore_all=0     sudo sysctl -w net.ipv4.icmp_echo_ignore_all=0
     sudo sysctl -w net.ipv4.icmp_echo_ignore_broadcasts=0     sudo sysctl -w net.ipv4.icmp_echo_ignore_broadcasts=0
-If additional debugging is needed, tcpdump is a great utility to monitor traffic on the tcp protocol of all network ports. If not pre-installed, it can be downloaded using zypper:+If additional debugging is needed, tcpdump is a great utility to monitor traffic on the tcp protocol of all network ports. If not pre-installed, it can be downloaded using apt:
     sudo apt update     sudo apt update
     sudo apt install tcpdump     sudo apt install tcpdump
 Once tcpdump is present, once can continuously monitor traffic by issuing: Once tcpdump is present, once can continuously monitor traffic by issuing:
     sudo tcpdump -i any icmp     sudo tcpdump -i any icmp
 +
 +==== Using local web interace (Firefox) to display instrument information ==== 
 +
 +  - Make sure server and VPN are on. Then start XLaunch and check “Disable access control” to ensure a remote     server can connect to the application. Why do we do we need XLanuch?: Linux programs like Firefox (the graphical user interface) don't know how to draw themselves on WindowsShell. VcXsrv (XLaunch) acts as a translator that listens for Linux "drawing instructions" and turns them into a Windows window.
 +  - Type in Shell: $env:DISPLAY = "127.0.0.1:0.0" => This tells Shell to where it needs to direct the graphical user interace (the firefox page) which in this case is the XLaunch. 127.0.0.1:0.0 is the universal IP address for local host (the computer I am working on)
 +  - Type in Shell ssh -Y damic2@10.65.117.44 => This connects us with the server. Important: Don’t forget the -Y => This is necessary since ssh can only handle text but we want image / video formats (Firefox), the -Y creates a “video tunnel” inside the connection
 +  - Finally type firefox& into Shell => This opens the firefox window and we can now view the instrument data 
 +
 +Instead of Windows Shell, we can also use PuTTY for faster responses. In this case: 
 +  - Input 10.65.117.44 into IP address
 +  - Under SSH register select "Enable compression"
 +  - In SSH => X11 => Select "Enable X11 forwarding" 
  
device_controll.1732549267.txt.gz · Last modified: by simon