Jump to content

Brian Greul

Members
  • Posts

    10
  • Joined

  • Last visited

Recent Profile Visitors

1459 profile views
  1. I should point out that NMTUI may do everything you want/need. So you may need to only run that.
  2. ** wifi setup network={ ssid="The_ESSID_from_earlier" psk="Your_wifi_password" } ** run this NMTUI
  3. I'm having difficulty getting Octoprint to start. I've set it up in init.d and defaults. When I execute it directly I get an error about running as root. It's like it's ignoring the octoprint_user. /etc/default/octoprint: # Configuration for /etc/init.d/octoprint # The init.d script will only run if this variable non-empty. OCTOPRINT_USER=octoprint # base directory to use #BASEDIR=/home/octoprint/OctoPrint # configuration file to use #CONFIGFILE=/home/pi/.octoprint/config.yaml # On what port to run daemon, default is 5000 PORT=5000 # Path to the OctoPrint executable, you need to set this to match your installation! DAEMON=/home/octoprint/OctoPrint/octoprint # What arguments to pass to octoprint, usually no need to touch this DAEMON_ARGS="--port=$PORT" # Umask of files octoprint generates, Change this to 000 if running octoprint as its own, separate user UMASK=000 # Process priority, 0 here will result in a priority 20 process. # -2 ensures Octoprint has a slight priority over user processes. NICELEVEL=-2 # Should we run at startup? START=yes /etc/init.d/octoprint is stock from the distro Output when I run it manually: root@orangepizero:/etc/init.d# octoprint Starting the server via "octoprint" is deprecated, please use "octoprint serve" from now on. 2016-12-30 00:22:16,473 - octoprint.server - INFO - Starting OctoPrint 1.3.0 (master branch) 2016-12-30 00:22:16,571 - octoprint.plugin.core - INFO - Loading plugins from /usr/local/lib/python2.7/dist-packages/OctoPrint-1.3.0-py2.7.egg/octoprint/plugins, /root/.octoprint/plugins and installed plugin packages... 2016-12-30 00:22:18,619 - octoprint.plugins.discovery - INFO - pybonjour is not installed, Zeroconf Discovery won't be available 2016-12-30 00:22:18,623 - octoprint.plugin.core - INFO - Found 7 plugin(s) providing 7 mixin implementations, 4 hook handlers You should not run OctoPrint as root! root@orangepizero:/etc/init.d# Any suggestions on how to figure out why it will not run via service octoprint start?
  4. This wound up being a memory issue. Python is apparently sloppy about memory management. I fixed it by creating a larger swap file and enabling it.
  5. I fixed this.... apt-get python2.7-dev install Need the python development headers installed.
  6. I was able to get it working by following the Raspbian instructions. It works just fine for me.
  7. I am noticing that it will periodically drop, but not what you are seeing. It stays connected for hours. I'm running Aerohive Access Points, which are enterprise grade. I find that the OPI0 wifi driver is picking AP's that are not nearby which kills performance. It does eventually find the closer AP and roam to it. Performance is a bit pokey, 26mb/s... but that could be my cheap SD card in it.
  8. I'm getting an error and I'd like some feedback if it is a missing package (apt-get) or a bug in OctoPrint or something wrong in Python. It looks like something is blowing up with Python trying to install a package called scandir 1.3, but I'm not getting anything when I google it with the error. Thoughts? The documentation on Git was up to date... the documentation on Octoprint.org is wrong for building it from source. Error: creating 'dist/OctoPrint-1.3.0-py2.7.egg' and adding 'build/bdist.linux-armv7l/egg' to it removing 'build/bdist.linux-armv7l/egg' (and everything under it) Processing OctoPrint-1.3.0-py2.7.egg creating /home/admin/OctoPrint/venv/lib/python2.7/site-packages/OctoPrint-1.3.0-py2.7.egg Extracting OctoPrint-1.3.0-py2.7.egg to /home/admin/OctoPrint/venv/lib/python2.7/site-packages Adding OctoPrint 1.3.0 to easy-install.pth file Installing octoprint script to /home/admin/OctoPrint/venv/bin Installed /home/admin/OctoPrint/venv/lib/python2.7/site-packages/OctoPrint-1.3.0-py2.7.egg Processing dependencies for OctoPrint==1.3.0 Searching for scandir>=1.3,<1.4 Reading https://pypi.python.org/simple/scandir/ Best match: scandir 1.3 Downloading https://pypi.python.org/packages/b1/73/493f392cd7e1549361e7727f75dea1c9f3a627350973018857578c8c5598/scandir-1.3.tar.gz#md5=e7a59e446dad6a1abdbed3c236f12871 Processing scandir-1.3.tar.gz Writing /tmp/easy_install-9cHv1O/scandir-1.3/setup.cfg Running scandir-1.3/setup.py -q bdist_egg --dist-dir /tmp/easy_install-9cHv1O/scandir-1.3/egg-dist-tmp-iWmvMz _scandir.c:14:20: fatal error: Python.h: No such file or directory #include <Python.h> ^ compilation terminated. error: Setup script exited with error: command 'arm-linux-gnueabihf-gcc' failed with exit status 1 root@OPIZ:/home/admin/OctoPrint# apt-get install scandir Reading package lists... Done Building dependency tree Reading state information... Done E: Unable to locate package scandir root@OPIZ:/home/admin/OctoPrint#
  9. The MAC address of your wifi port on your Orange Pi Zero probably starts with C8:27:A7:F9:xx:xx I obsfucated the last 4 digits of mine. The Ethernet Port MAC starts with : de:ae:b8:d7:xx:xx I needed this when I was trying to find the device on my network to SSH in. root/1234 It showed up on my network as a reasonably "fast" device with 0ms lag. I'm running a Cat 6 network with a gigabit switch. A nice pinout that Linux34 from Orange Pi posted.
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines