Recent content by KenHorse

  1. K

    Installed but where is it?

    Maybe you need to spend some time here: https://www.python.org/about/gettingstarted/
  2. K

    Installed but where is it?

    whereis python3.8
  3. K

    [Error] Check Serial Connection! What throws it?

    I'm trying to run a php script that uses /dev/ttyUSB0 and it basically works and I set it up using stty. However, at times I receive the error (verbatim) in the thread title. Most of the time, it works fine I can't seem to find what is generating it. Is it a kernel thing?
  4. K

    Debian 10 Wireless access from within a VirtualBox VM

    This Windows machine I'm running this on doesn't have a hardwired LAN connection - it connects to my LAN via wireless. There is no CAT cable connected at all. What is interesting is that if I ping from the VM Linux, it does resolve hostnames and pings fine. But I was hoping to be able to...
  5. K

    Debian 10 Wireless access from within a VirtualBox VM

    Seems the normal conventions don't work as I can't seem to use the usual methods of configuring wpa_supplicant to get wireless working. ifconfig reports no LAN connection (there isn't) but does report wireless with an IP of 10.0.2.15. I have no idea as my LAN (and wireless router) uses a...
  6. K

    Sudoer error

    If they ever responded, I would!
  7. K

    Sudoer error

    There was a sudo file placed in /etc/sudoers.d by a web application called "supermon". The filename is also "supermon" and the contents are: # Cmnd alias added for Supermon 7+: Cmnd_Alias ASTERISK = /usr/bin/top, /sbin/ifconfig, /bin/df, /usr/sbin/asterisk, \ /bin/systemctl...
  8. K

    Why does this bash script work if called from the command line but not when called from a php script run by a webpage?

    I see. But why do the non-variable assigned parts of the echo statements work? echo -n "CPU: " echo -en "<span style=\"font-weight: bold; color: yellow; background-color: red;\">" echo -en "&nbsp;${FTEMP}&deg;F, ${CTEMP}&deg;C </span>&nbsp; @ `date +%H:%M`&nbsp;" And I do know that apache2...
  9. K

    Why does this bash script work if called from the command line but not when called from a php script run by a webpage?

    If permissions are the issue, then why can I run the bash script as any user (as I said, it's executable by anyone). Also, why would all but the variables be displayed by the php script on the webpage. For example, "CPU" and the red background in the F and C degree fields? That part is running...
  10. K

    Why does this bash script work if called from the command line but not when called from a php script run by a webpage?

    Are you saying that user is what the webserver runs as (apache2, usually user www-data)?
  11. K

    Why does this bash script work if called from the command line but not when called from a php script run by a webpage?

    More precisely, the variables in the script are not returned to the calling php script First the call from the php script: $CPUTemp = exec("/usr/local/sbin/supermon/get_temp"); print " &nbsp; [ $CPUTemp]"; Now the bash script: echo -n "CPU: " CTEMP=$(/opt/vc/bin/vcgencmd measure_temp)...
  12. K

    Routing?

    Sorry about not posting links...my bad I need each program to connect only to 1 specific subnet. IRLP to the internet (via wlan0 on 192.168.x.x)) and Allstar to a private network (via eth0 0n 10.150.x.x) that is a WAN but distinct from the internet
  13. K

    Routing?

    Kinda esoteric IRLP and Allstar (both amateur radio programs/suites)
  14. K

    Routing?

    Followup question. How does the individual program know which interface to use?
Top