index.php 3.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. <html>
  2. <head>
  3. <link rel="stylesheet" href="tocas.css">
  4. <title>Permission Setup Tools for Raspbian</title>
  5. </head>
  6. <body>
  7. <div class="ts fluid menu">
  8. <a class="item" href="">Permission Setup Tools</a>
  9. <a class="item" href="quicksetup.php">Quick Setup</a>
  10. <a class="item" href="scan.html">CORS Check</a>
  11. <div class="right menu">
  12. <a class="item"></a>
  13. <a class="item" href="../">Exit</a>
  14. </div>
  15. </div>
  16. <br>
  17. <div class="ts container">
  18. <div class="ts segment">
  19. <h3>Permission Setup Tools</h3>
  20. <p>Raspbian build of ArOZ Online Beta relies on root permission to run. In order to make the AOB system run without any problem,
  21. please ensure the following settings are enabled.</p>
  22. <div class="ts bulleted list">
  23. <div class="item">/var/www/html has permission level of 777</div>
  24. <div class="item">www-data user group has root permission</div>
  25. <div class="item">php.ini has suitable upload size limit (Default in AOB build images are 2048M per file.)</div>
  26. <div class="item">Make sure all the required extensions are enabled for PHP (e.g. Picture module required GD to work)</div>
  27. </div>
  28. <p>If you are new to Rasbian / Linux and don't know where to start from, please use the "Quick Setup" tools above or follow the steps below for manual setup.</p>
  29. <p>First, setup your pi zero w with terminal. If you are using headless setup with ssh, you can just type the following commands in ssh. Or otherwise, plugin your monitor to your pi zero w as the picture shown below and connect a keyboard using OTG adapter.</p>
  30. <img class="ts medium image" src="img/setup.png">
  31. <p>If you are the first time starting up this system, use the following account to login.</p>
  32. <table class="ts small table">
  33. <thead>
  34. <tr>
  35. <th>Username</th>
  36. <th>Password</th>
  37. </tr>
  38. </thead>
  39. <tbody>
  40. <tr>
  41. <td>pi</td>
  42. <td>raspberry</td>
  43. </tr>
  44. </tbody>
  45. </table>
  46. <p>Next, enter the directory that contains the AOB system folder. We are assuming you have installed the AOB under MSB and use the path as /var/www/html/</p>
  47. <div class="ts segment">
  48. <code>cd /var/www/html/</code>
  49. </div>
  50. <p>Then, we need to set permission for the AOB System Root folder to 777 by using this command:</p>
  51. <div class="ts segment">
  52. <code>sudo chmod -R 777 /AOB</code>
  53. </div>
  54. <p>And now you are done :)<p>
  55. <p>Permission reset are common when you update your AOB system. Don't panic and come back to this page for permission setup and you are ready to go again.</p>
  56. <br>
  57. <h3>Cross-Origin Resource Sharing Check</h3>
  58. <p>CORS Check can be performed to search for nearby AOB Systems that is running in the same Local Area Network(LAN). <br>
  59. If you cannot find your another AOB Portable System, you can get a try on this script to see if that devices has been connecting into the same LAN as you do.<br>
  60. If your device is setup correctly but it does't appear in the CORS Check List, then that particular AOB unit might have PHP permission problem when reading the system files.</p>
  61. <mark>The scanning script require webworker (Javascript) to work.</mark>
  62. <br><br><br>
  63. <kbd>Last edit 1/6/2018, CopyRight ArOZ Online Project feat. IMUS Laboratory</kbd>
  64. </div>
  65. </div>
  66. <br><br><br><br>
  67. </body>
  68. </html>