Coder Social home page Coder Social logo

rauljrz / aroz-online-system Goto Github PK

View Code? Open in Web Editor NEW

This project forked from tobychui/arozos

0.0 1.0 0.0 468.04 MB

Web Desktop Platform for Raspberry Pis (or Debian Linux)

Home Page: http://aroz.online

JavaScript 90.36% PHP 7.37% HTML 0.05% CSS 0.40% Python 0.01% Hack 0.01% C 1.29% Go 0.06% C++ 0.44% PowerShell 0.01% Batchfile 0.01%

aroz-online-system's Introduction

Image

中文說明

ArOZ Online System / aCloud

Personal Cloud Platform with Web Desktop Environment for Raspberry Pi 3B+ or 4B. A place to start cloud music and video streaming, data storage, office work / text processing, 3D printing file previews, Cloud programming IDE and more!

WARNING! THIS SYSTEM IS STILL IN BETA PHRASE.

Getting Started

These instructions will show you how to deploy a copy of ArOZ Online System on your own Raspberry Pi or other low power, Linux running SBCs for community review and testing purposes. Read more on the Full System Documentation.

Docker

Follow the instruction from this repo: https://github.com/Saren-Arterius/aroz-dockerize

Prerequisites

The following packages are required for the system to run on your Linux system.

  • apache2
  • libapache2-mod-xsendfile
  • php libapache2-mod-php php-cli php-common php-mbstring php-gd php xml php-zip
  • php-mysql (Optional)
  • libav-tools / ffmpeg (Optional)
  • samba (Optional)

To install the package above, copy and paste the following lines into your ssh terminal line by line.

#Add the following line if you are using a fresh install of Debian Buster
sudo apt-get install unzip net-tools ntfs-3g dosfstools -y
sudo apt-get update
sudo apt-get install -y apache2
sudo apt-get install -y php libapache2-mod-php php-cli php-common php-mbstring php-gd php-xml php-zip 
sudo apt-get install libapache2-mod-xsendfile
#The lines below are optional. But it is recommended to install them for future uses
sudo apt-get install php-mysql
#Use libav-tools instead of ffmpeg if you are still using Debian Jessie
sudo apt-get install ffmpeg
sudo apt-get install samba

Prebuilt Image File

To install ArOZ Online System to your Raspberry pi, you can use the prebuilt image file for Raspberry Pi 4B / 3B+. You can find the image in the link below:

WORK IN PROGRESS

Manual Installation

ArOZ Online System is only tested to install on Debian Jessie and Debian Buster. Before installing the ArOZ Online System, you need to firstly setup the package settings.

  1. Edit php.ini to increase the max file upload size setting. The php.ini file can usually be found in /etc/php/{php-version}/apache2/php.ini. Change the two lines below as follows:
upload_max_filesize = 2048M
post_max_size = 2048M
  1. If you are a noob and don't want to mess around with the sudoer settings, just edit /etc/sudoers, add the following line at the bottom of the file.
www-data ALL=NOPASSWD: /usr/bin/mount, /sbin/mount.ntfs-3g,  /usr/bin/ntfs-3g, /usr/bin/umount, /sbin/halt, /sbin/reboot, /sbin/poweroff, /sbin/ifconfig, /sbin/ip, /sbin/mkfs.ntfs, /sbin/mkfs.vfat

(Only if you are using the system in local area network. Please adjust this to suit your needs if you are planning to access the system through the internet.)

If you are pros and want to have much better control of the system security, add the lines that fits your need according to the selections below.

Allow system to mount and unmount USB drives of your Raspberry Pi

www-data ALL=NOPASSWD: /usr/bin/mount, /sbin/mount.ntfs-3g, /usr/bin/umount

Allow system to be powered off via the Web UI

www-data ALL=NOPASSWD: /sbin/halt, /sbin/reboot, /sbin/poweroff

Allow system to access local area network IP address and WiFi network settings

www-data ALL=NOPASSWD: /sbin/ifconfig, /sbin/ip

Allow system to format and create new partitions

www-data ALL=NOPASSWD: /sbin/mkfs.ntfs, /sbin/mkfs.vfat

TO BE ADDED

  1. Edit /etc/apache2/apache2.conf, add the following two lines to the bottom of the file
XSendFile on
XSendFilePath /media
  1. Create directory at /media/storage1 and /media/storage2
sudo mkdir /media/storage1 /media/storage2

Next, you need to download and install the ArOZ Online System to your webroot (/var/www/html/). To do so, you can firsly move into the web root with the following command:

cd /var/www/html/

And then download the repo as zip, unzip the "src" folder into /var/www/html and ename "src" to "AOB". You can do this with WinSCP if you are using windows. Or otherwise, you can use git clone command similar to the example below. Make sure you have installed git using sudo apt-get install git before using the git commands.

git clone https://github.com/tobychui/ArOZ-Online-System/
sudo mv ArOZ-Online-System/src ./AOB
sudo rm -rf ./ArOZ-Online-System

sudo mkdir -p "/etc/AOB"
sudo chmod 777 -R "/etc/AOB"
sudo chmod 777 -R ./AOB
sudo chown -R www-data ./

Open your default browser and visit the http://{Raspberry_Pi_IP_Address}/AOB/ and follow the on scren guide for setting up a new user.

Preview / Screenshots

Image Image Image Image Image Image Image Image Click here for more preview screenshots

Versioning

Different major change in versioning will lead to an upgrade to the codename. Here are a list of versions currently ArOZ Online System provides.

Version Number Code Name Major Change Type (Barebone / Pre-release / Full* )
Before Beta 1.1.4 Aloplex N/A Full
Before Beta 1.2.8 Sempervivum Tectorum N/A Full
Beta 12-06-2019 aCloud Init Release Pre-release

*Full versions are only disclose to internal developers or testers for review purpose only.

Author

Developer

(Blame them if you encounter any bugs within the system)

  • tobychui - Project initiator / System Developer / Core Modules designer and programmer
  • yeungalan - Module maintainer / Network Setting Module developer

Beta Tester

(Find them if you want to know how to use a specific function in the system)

License

Build-in Multimedia Modules (Audio / Photo / Video) - MIT License

Desktop Module (Desktop) and its utilities - All Right Reserved, MIT License ONLY on Raspberry Pi and other ARMv6, v7 or ARM64 based SBC for non-commercial purposes.

All core scripts and binary files under root (./) and System Script Folder (SystemAOB/*) - tobychui feat. ArOZ Online Project, All Right Reserved.

All other files or modules that is not covered by the license above - See the module's license for more information.

THIS SOFTWARE IS ONLY FOR PERSONAL AND NON COMMERCIAL USE ONLY. RE-SELL ,DISTRIBUTE OR CLAIM THIS AS YOUR OWN WORK IS PROHIBITED

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Please seek for author approval if you want to deploy this system for purposes other than personal (e.g. home NAS, private media server, automation control in your room etc) and educational (e.g. school projects, course demos etc)

Acknowledgments

Special thanks for the following projects which bring insights to this project.

TocasUI by Yami Odymel - https://tocas-ui.com/

Threejs by Mrdoob - https://threejs.org/

Q&A

TO BE ADDED

Buy me a coffee

Actually I don't drink coffee. Send me something that would make me feel interested if you really want to send me something :)

aroz-online-system's People

Contributors

tobychui avatar yeungalan avatar blackphreak avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.