Several months ago I posted a note asking how to prevent the Cloud9 IDE running its shell as root. The answer pointed out where the bash command is launched.
if (options.terminal) { args.push("export ISOUTPUTPANE=0;" + (options.defaultEditor ? " export EDITOR='`which c9` open --wait'; " : "") + BASH + " -l"); } > Terminals in cloud9 run bash -l so they will be logged in as the same user > which have launched the server.js. > > See > https://github.com/c9/core/blob/6cc153e712c64ef8326c195d27a2c224f84429c6/node_modules/vfs-local/localfs.js#L1817 > > You could either modify that file to run a different command, or modify > the script that launches the server.js, to launch it from the user you want. > > > -- > Harutyun Amirjanyan <commun...@c9.io> ------------------------------------------------- Paul Wolfson, Ph.D., TX LPI, #A17473 Editor, TALI "The Texas Investigator" Dallas Legal Technology 3402 Oak Grove Avenue, Suite 300-A Dallas, Texas 75204-2353 *214-257-0984 (Tel)214-838-7220 (Fax)Send me an email. <pwolf...@dlglt.com>* ------------------------------------------------- The contents of this email are confidential to the sender and the ordinary user of the email address to which it was addressed, and may also be privileged. If you are not the addressee of the email, you may not copy, forward, disclose or otherwise use it or any part of it in any form whatsoever. If you have received this email in error, please advise the sender at 214-257-0984. Thank you. ------------------------------------------------- On Fri, Feb 5, 2016 at 7:10 PM, William Hermans <yyrk...@gmail.com> wrote: > I "get it" though. Like for me, I know very basic electronics "OK", but > really do not have the time nor inclination to become a fully fledged E.E. > Or my buddy here, who is an excellent E.E. but whom also does not want to > learn how to program. > > I will say that the only real differences I can think of between GPIO, and > PWM in any code should only be file path, and values sent to the file > handle. So anyone willing to read through,and understand the code for > GPIO. Should theoretically be able to adapt that code for PWM as well. > > Unfortunately, in my own case. If I do not have the time to bother > learning this "something". Obviously I do not have the time to refactor the > existing code either . . . > > > > On Fri, Feb 5, 2016 at 4:15 PM, Wally Bkg <wb666gre...@gmail.com> wrote: > >> >> >> On Friday, February 5, 2016 at 1:48:53 PM UTC-6, William Hermans wrote: >>> >>> *After giving him a configured BBG (he'd have been dead in the water >>>> with the image that came in the BBG eMMC, which really breaks the ideal for >>>> a newbie idea) and showing him how to install the Windows drivers and >>>> connect to the BBG with Chrome web browser, it clearly was a great starting >>>> point for him.* >>>> >>> >>> Anything of this nature still has a learning curve. Personally, I think >>> things of this nature are a waste of time. Not because they're not handy, >>> or cool. But instead you have to spend a time investment to learn anything. >>> So you may as well learn the "underlying basics" so you're better prepared >>> in the future to deal with more complex problems. >>> >>> So a very quick example . . . Not knowing what Node-RED really is, I'd >>> have to spend a considerable amount of time learning this new "software >>> technology", when I could instead just write my own code and be done with >>> it. Now sure, because I'm an experienced developer, who *now* has a decent >>> bit of javascript / Nodejs experience, this may be easier for me. However, >>> I had to learn all of this, just like anyone else, and in fact I'm by far >>> not a Nodejs "expert". And in fact, I knew very little of Nodejs 3 years >>> ago when we got our first BBB's . . . >>> >>> >> What you say is true, but I'm afraid its been so long since you've >> started with zero programming knowledge that you've forgotten how difficult >> that first step is, its mind numbingly complex when you throw in all the >> GPIO mux options and restrictions of the Beaglebone >> >> A GUI tool like node-red lets a rank beginner do something useful, >> without spending weeks learning programming and languages. Drag and drop, >> wire, and deploy can result it a rather sophisticated program with >> distributed processing -- a sensor in one building communicating with a >> actuator in another building over a WiFi network using mqtt protocol and >> mosquito broker running on one of the Beaglebones -- all done like drawing >> a schematic diagram -- something people with a hardware background find >> "intuitive". To use a GPIO as input or output, you drag the node to the >> "tab", double click it, and fill in the necessary "properties" to make the >> function. The choices are limited to what is available with the "default" >> pin mux settings but for a beginner its feature, not a bug. If only the >> PWM worked, and there were UART nodes it could do most anything that needs >> response times on the order of human reaction times or longer. >> >> What's nice is that starting with node-red lets my friend ease into >> programming with some cut and paste of nodejs examples and modifying them >> in a "function" node within an otherwise working "flow" (program) to add >> functionality, instead of starting with a blank page and a "Programming >> Language Du-jour for Dummies" book in hand. >> >> Node-red has some rough edges but it has tremendous potential for helping >> "subject matter experts" quickly get into programming prototype solutions >> to their problems. I've always said that its far easier to teach a >> Biochemist enough programming to solve a biochemistry problem than is is to >> teach a programmer enough biochemistry to solve a biochemistry problem. >> Things like node-red really lower the bar! >> >> >> Go to the node-red website and look at the "your second flow" example -- >> it "polls" the UK power grid at 5 minute intervals and reports true or >> false if the frequency is 50 Hz or greater (below 50 hz, maybe delay >> starting that induction motor a bit to let the grid recover -- minimal >> impact from my one motor, but if millions of motors are making this >> decision before starting, the effect on peak load could be enormous with >> near zero impact to the refrigerators, etc. driven by these motors). Now >> list all the libraries and protocols you'd have to know about to be able do >> this in your favorite programming language, and tell me this is not a >> better starting point for an appliance manufacturing looking to make a >> "smart" product. >> >> When I stumbled on to this, it just blew me away! >> >> -- >> For more options, visit http://beagleboard.org/discuss >> --- >> You received this message because you are subscribed to the Google Groups >> "BeagleBoard" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to beagleboard+unsubscr...@googlegroups.com. >> For more options, visit https://groups.google.com/d/optout. >> > > -- > For more options, visit http://beagleboard.org/discuss > --- > You received this message because you are subscribed to the Google Groups > "BeagleBoard" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to beagleboard+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/d/optout. > -- For more options, visit http://beagleboard.org/discuss --- You received this message because you are subscribed to the Google Groups "BeagleBoard" group. To unsubscribe from this group and stop receiving emails from it, send an email to beagleboard+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.