diff options
author | ahriman <gbenjaminmorrison@gmail.com> | 2018-11-24 00:58:03 -0500 |
---|---|---|
committer | ahriman <gbenjaminmorrison@gmail.com> | 2018-11-24 00:58:03 -0500 |
commit | 49f382b2bb9db602fac821b13f3a8c309552e432 (patch) | |
tree | 9262d79545d219b77724514e716c53435fa69325 /start.html | |
parent | 30b2e43574560fb167524f04d4323bf7482256e1 (diff) | |
download | site-49f382b2bb9db602fac821b13f3a8c309552e432.tar.gz |
Upload files to ''
Diffstat (limited to 'start.html')
-rw-r--r-- | start.html | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/start.html b/start.html index 7c6adae..7df96f9 100644 --- a/start.html +++ b/start.html @@ -2,7 +2,7 @@ <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> - <title>Tilde Institute for OpenBSD Education</title> + <title>Tilde Institute :: Quick-Start Guide</title> <link rel="stylesheet" href="tilde.css" type="text/css"/> <link rel="icon" type="image/png" href="icon.png"/> </head> @@ -15,10 +15,10 @@ </div> </div> <div id="navigation"> - <a href="http://tilde.institute">News</a> :: <a href="signup.php">Sign Up</a> :: <a href="start.html">Quick-Start Guide</a> :: <a href="coc.html">Code of Conduct</a> :: <a href="https://tilde.zone/@tildeinstitute">Mastodon</a> + <a href="http://tilde.institute">News</a> :: <a href="newacct.html">Sign Up</a> :: <a href="irc.html">IRC</a> :: <a href="start.html">Quick-Start Guide</a> :: <a href="coc.html">Code of Conduct</a> :: <a href="https://tilde.zone/@tildeinstitute">Mastodon</a> </div> <div id="content"> - <p>This will be a quick-and-dirty guide to getting started with the BCHS stack. It will pertain to using C specifically, however, if you develop in another language, the general information regarding static compilation will apply as well. More C-specific information can be found at:</p> + <p>This will be a quick-and-dirty guide to getting started with the BCHS stack. More information can be found at:</p> <ul> <li><a href="https://learnbchs.org">Learn BCHS</a></li> <li><a href="http://man.openbsd.org/cgi-bin/man.cgi/OpenBSD-current/man2/pledge.2">pledge(2)</a></li> @@ -27,11 +27,11 @@ <li><a href="https://kristaps.bsd.lv/ksql/">ksql</a></li> <li><a href="https://kristaps.bsd.lv/kwebapp">kwebapp</a></li> </ul> - <p>tilde.institute is set up to process all files with the .cgi extension via slowcgi(8). This allows for a multitude of possibilities - any compiled language can be used to develop web applications on an OpenBSD server. It's advised to use C because of the pledge(2) and unveil(2) system calls available, which allow for restricting privileges and restricted filesystem access, respectively. However, C is not always an easy language to develop in, and other languages such as Rust include robust memory safety by design.</p> + <p>tilde.institute is set up to process all files with the .cgi extension via slowcgi(8). This allows for a multitude of possibilities - any compiled language can be used to develop web applications on an OpenBSD server. It's advised to use C because of the pledge(2) and unveil(2) system calls available, which allow for restricting privileges and restricted filesystem access, respectively.</p> <p>Keep in mind that if you don't use the previously listed kcgi/ksql/kwebapp libraries, you will need to work with HTTP's eccentricities manually. For an example, here's <a href="helloworld.c.txt">the Hello World code</a> from the LearnBCHS site. And <a href="helloworld.cgi">here it is running</a> as compiled CGI here at the Tilde Institute.</p> <p>Once you've written your software to be served via CGI, be sure to statically link the executables. Sure, there's a larger file size, but the benefits outweigh that in this case - there's no relying on what I may or may not have installed on the Tilde Institute's server. For example:</p> <p>$ cc -static -g -W -Wall -o app.cgi app.c</p> - <p>When you've completed compilation, make sure to set permissions properly (755) and move it to the public_html folder in your home directory. httpd(8) is set to use index.html as the index file, however this can be changed to index.cgi or what-have-you by contacting ahriman via the <a href="https://tilde.town">tilde.town</a> or <a href="https://tilde.team">tilde.team</a> IRC networks.</p> + <p>When you've completed compilation, make sure to set permissions properly (755) and move it to the public_html folder in your home directory. httpd(8) is set to use index.html as the index file, however this can be changed to index.cgi or what-have-you by contacting ahriman via the <a href="https://tilde.town">tilde.town</a> or <a href="https://tilde.chat">tildeverse</a> IRC networks.</p> </div> </div> </body> |