Thanks. I was stuck with old tutorials on this topic until i found this. Btw really clean audio and instructions.
@Zoiku2 жыл бұрын
even if it's from 2017 it still saved me, thank u man
@khanhsp6 жыл бұрын
Excellent tutorial! Thank you very much!
@4s1ttmnt556 жыл бұрын
Thank you so much. Really needed this..
@ahmedzitouni68407 жыл бұрын
i love ure videos , the audio is so clear i'm wondering what software ur using and what equipment !
@DigitalMetal7 жыл бұрын
I've switch my screen recording software a lot recently. Currently using "SimpleScreenRecorder" The Mic I use is this one: kzbin.info/www/bejne/gparm2eCrMucd5Y
@ahmedzitouni68407 жыл бұрын
thnx a lot ;)
@Linklu13FR2 жыл бұрын
Thanks
@TravelingMooseMedia4 жыл бұрын
Thanks but what about fastcgi? There are modules that need to be loaded and directives that I can’t figure out how to configure in the conf files to run my c++ application
@gandsnut7 жыл бұрын
Way cool! I'm strong solid with 'C', but have no CGI-bin familiarity. Now, does this mean for, say, SBC's running Linux & Apache, it could be workable to interact with the SBC remotely and not do any (or much) HTML?? Would you know if the 'C' program used screen handling - say, ncurses - that such screen handling would be passed back via Apache?? Or is that when handling interactivity would necessitate HTML and/or PHP? To me this seems a huge gateway into the SBC's intrinsic benefits (GPIO), via Apache. Or, maybe I'm missing/forgetting some manner of remotely interacting with a SBC and not doing anything via Apache. I have very little time on SBC's and NO time on Arduino/8266-jobbers (though a number of such are coming in the mail). The dormant hobby-geek in me hungers to break forth... HA. Appreciated!!
@DigitalMetal7 жыл бұрын
You could do this with Apache, but really Apache might be overkill. I've done a number of videos on CGI scripts/programs in the paste, mostly using the built in httpd of busybox. busybox is a program with a bunch of utilities built in. Busybox has all the core tools you need and it's just about 1mb in size. It's commonly found on routers and other IOT devices. It's easy to get running, and if you are going to be accessing things like GPIO pins, it should be easier. Busybox's httpd will run your code as whichever user you start the server as. And to access GPIO pins you probably need some permissions Apache won't allow unless you change config files. As far as the HTML, HTML is your GUI. You can access and run your programs, no matter what language through the url. Any text output will be sent to the browser. If you want it formatted a certain way, html/css is the way to go. I use HTML for pretty much all my GUI's regardless of the language I'm writing in. The text from something like ncurses will be past to the web browser, but it won't look like it does in the shell. But HTML is super simple. Just wrap your output in TAGS. I have a lot of videos on this sort of thing. Here are a few, but also check out my website for more. kzbin.info/www/bejne/hoiwfauur7qUask kzbin.info/www/bejne/qWLCdoSmbpJkY80 kzbin.info/www/bejne/epLPhIGYqrV6ias
@gandsnut7 жыл бұрын
Man, I have a lot to study. Great info and resources Mr. K!
@DigitalMetal7 жыл бұрын
Glad I can help. I'll see if I can do another video on the topic some time in the next week.
@jan_harald7 жыл бұрын
cool... but if you wanted to use a lua script for example, would you need to execute a script that's basically only !#/bin/bash lua script.lua ? it should work if you chmod +x it, right?
@DigitalMetal7 жыл бұрын
Sorry for the late response. Yes you can do it that way, but you can also just call the LUA script directly. Sorry about the poor quality, but here is a video for you: kzbin.info/www/bejne/r3KYpoOsZcx1g5Y
@sbwebsoft34576 жыл бұрын
Cool ;)
@anteconfig53915 жыл бұрын
Cool, but how could you pass arguments to your C code. I know in python all you'd have to do is import cgi form = cgi.FieldStorage() but what about C?