Coder Social home page Coder Social logo

Comments (8)

bgeipel avatar bgeipel commented on August 22, 2024

I modified the run_file function in editor/public/javascripts/occ_editor.js to do a sudo. Perhaps this could be an option?

from adafruit-webide.

jwcooper avatar jwcooper commented on August 22, 2024

Yup, this will definitely need to be an option. You can also manually launch the terminal and run it as sudo as well, but definitely not as convenient as a button. We'll design a good way of doing that, and implement it.

Also, if an update is available, and you choose to update, it will overwrite any of your manual changes.

from adafruit-webide.

bgeipel avatar bgeipel commented on August 22, 2024

Understood!

from adafruit-webide.

richard-sim avatar richard-sim commented on August 22, 2024

Does anything that uses GPIO need root? Running the CharLCD sample also requires a "sudo python [script]" from the terminal window:
RPi.GPIO.SetupException: No access to /dev/mem. Try running as root!

from adafruit-webide.

jwcooper avatar jwcooper commented on August 22, 2024

Yea, I think basically anything using GPIO needs root due to the low level access required. You can do the same thing that bgeibel did, or just manually open the terminal, and run as sudo.

from adafruit-webide.

ladyada avatar ladyada commented on August 22, 2024

justin, maybe have the installer run

  • sudo adduser pi i2c

so they don't have to sudo for i2c?

from adafruit-webide.

jwcooper avatar jwcooper commented on August 22, 2024

Yea, good idea. I'll see if I can get that in for the next release.

from adafruit-webide.

jwcooper avatar jwcooper commented on August 22, 2024

The default is to run as root for now in 0.2.0, as nearly anything interesting requires it on the Pi. I've also added the user to the i2c group. Here is how to upgrade: http://www.adafruit.com/blog/2012/10/18/raspberry-pi-webide-update-to-0-2-0/

from adafruit-webide.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.