<html>
<head>
<link rel="stylesheet" href="tocas.css">
<title>Permission Setup Tools for Raspbian</title>
</head>
<body>
<div class="ts fluid menu">
    <a class="item" href="">Permission Setup Tools</a>
    <a class="item" href="quicksetup.php">Quick Setup</a>
    <a class="item" href="scan.html">CORS Check</a>
	<div class="right menu">
		<a class="item"></a>
		<a class="item" href="../">Exit</a>
	</div>
</div>
<br>
<div class="ts container">
	<div class="ts segment">
		<h3>Permission Setup Tools</h3>
		<p>Raspbian build of ArOZ Online Beta relies on root permission to run. In order to make the AOB system run without any problem,
		please ensure the following settings are enabled.</p>
		<div class="ts bulleted list">
			<div class="item">/var/www/html has permission level of 777</div>
			<div class="item">www-data user group has root permission</div>
			<div class="item">php.ini has suitable upload size limit (Default in AOB build images are 2048M per file.)</div>
			<div class="item">Make sure all the required extensions are enabled for PHP (e.g. Picture module required GD to work)</div>
		</div>
		<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>
		<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>
		<img class="ts medium image" src="img/setup.png">
		<p>If you are the first time starting up this system, use the following account to login.</p>
		<table class="ts small table">
			<thead>
				<tr>
					<th>Username</th>
					<th>Password</th>
				</tr>
			</thead>
			<tbody>
				<tr>
					<td>pi</td>
					<td>raspberry</td>
				</tr>
			</tbody>
		</table>
		<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>
		<div class="ts segment">
			<code>cd /var/www/html/</code>
		</div>
		<p>Then, we need to set permission for the AOB System Root folder to 777 by using this command:</p>
		<div class="ts segment">
			<code>sudo chmod -R 777 /AOB</code>
		</div>
		<p>And now you are done :)<p>
		<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>
		<br>
		<h3>Cross-Origin Resource Sharing Check</h3>
		<p>CORS Check can be performed to search for nearby AOB Systems that is running in the same Local Area Network(LAN). <br>
		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>
		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>
		<mark>The scanning script require webworker (Javascript) to work.</mark>
		<br><br><br>
		<kbd>Last edit 1/6/2018, CopyRight ArOZ Online Project feat. IMUS Laboratory</kbd>
	
	</div>
</div>
<br><br><br><br>

</body>
</html>