![Image](docs/img/og.png?raw=true) **English** | [繁體中文](README-zh-TW.md) | [Deutsch](README-DE.md) ArozOS is a self-hosted web desktop and NAS operating system written in Go. It runs on your own server, from a Raspberry Pi to a rack machine, and opens in any browser, with files, media, documents, AI and maker tools in one self-contained binary. **[Website](https://os.aroz.org)** | **[Download](https://github.com/tobychui/arozos/releases)** | **[Developer Documentation](https://aroz-online.github.io/ArozOS-Developers/)** | **[Telegram](https://t.me/ArOZBeta)** ## Features Items marked **[New]** were added recently. | Area | Features | |---|---| | **Desktop** | Web desktop with floating windows, searchable launcher and quick settings
Light and dark themes
Touch friendly mobile interface that can be added to your home screen
**[New]** Guided Setup for new installations: server name, disks, users and file sharing | | **Storage and File Sharing** | Local disks (ext4, NTFS, exFAT, FAT32) and remote file systems (WebDAV, SMB, SFTP, FTP, S3)
File servers: WebDAV, SFTP, FTP, TFTP, Syncthing and a basic HTTP directory server for legacy devices
Share by link, with signed in users, with a group or with particular people
Software RAID with mdadm on Linux, per user storage quotas, version history and trash
**[New]** Redesigned File Manager
**[New]** Built-in SMB server (experimental): Windows and macOS file sharing with no Samba install, including Previous Versions and Time Machine
**[New]** Read / write access list for each drive, and a *Shared with me* drive
**[New]** Drive: a file-first cloud drive workspace, for those who do not need a desktop
**[New]** Sync Server for nightly phone photo backup | | **Office, PDF and Mail** | **[New]** Docs, Sheets and Slides: save to Word, Excel and PowerPoint files, open the older Office and OpenDocument formats and export PDF
**[New]** PDF viewer and PDF Editor
**[New]** Mail: IMAP / SMTP client with Google and Microsoft sign-in, undo and scheduled sending, labels and snooze
**[New]** Calendar with CalDAV sync, Reminders, Chatspace and MeetRoom video meetings
Notes and Web Builder | | **Media** | Musicify, Movie, Photo and Camera
Arozcast turns a TV, projector or spare tablet into a receiver
**[New]** Codec-aware video playback with HLS, embedded subtitles and scrub-bar previews in Movie
Audio Studio and FFmpeg Factory
**[New]** Cine Studio and Pixel Studio (with a RAW editor) | | **AI** | **[New]** AI Chat for any OpenAI or Anthropic compatible model, local or cloud
**[New]** AGI Forge turns a plain description into a script
**[New]** Model pricing, quota and usage tracking for admins | | **Makers and Developers** | **[New]** 3D Modeler, 3D Viewer and Gerber Viewer
**[New]** Code Studio and GitApp (no `git` install needed)
AGI: server side JavaScript (ECMA5) scripting with libraries for files, databases, images, archives, HTTP, SQLite, Git, mail and AI
WebApps in HTML and JavaScript, serverless endpoints and scheduled tasks
Terminal and SQLite Admin
Subservices (binaries behind a reverse proxy) still work but are **deprecated**; use a WebApp or a Container App for new projects | | **Containers and Cluster** | **[New]** Manage Docker containers, images and compose stacks
**[New]** Container Apps: publish any web server on the ArozOS port for users to pin to their desktop
**[New]** Cluster: join several ArozOS servers into one, with a shared and replicated `cluster:/` drive and jobs that run on the best node ([whitepaper](docs/ArozOS-Cluster-Whitepaper.md)) | | **Networking and Security** | mDNS and SSDP discovery, UPnP port forwarding, Wi-Fi management (wpa_supplicant or nmcli) and realtime network statistics
Static web server with a personal homepage for each user
Users and permission groups, OAuth, LDAP, auto login tokens
IP white / blacklist, exponential login timeout, HTTPS with your own certificate | ## Requirements | | | |---|---| | Minimum | 512 MB memory and 1.5 GB storage (e.g. Raspberry Pi Zero W) | | Recommended | 4 GB memory or more (e.g. Raspberry Pi 4 / 5 or an x86 mini PC) | | Operating system | Debian based Linux (Debian, Ubuntu, Raspberry Pi OS, Armbian), Windows or macOS. Some hardware features are Linux only | | Optional | ffmpeg (media transcoding), mdadm (RAID), nmcli or wpa_supplicant (Wi-Fi), Docker (containers) | | Client | Any modern browser on a computer, tablet or phone | ## Build from Source Requires Go 1.26 or above (See [Installation tutorial](https://dev.to/tobychui/install-go-on-raspberry-pi-os-shortest-tutorial-4pb)). ffmpeg, wpa_supplicant and nmcli are optional. Run the following the command to build the system ```bash git clone https://github.com/tobychui/arozos cd ./arozos/src/ go mod tidy go build ./arozos #sudo ./arozos for enabling hardware and WiFi management features ``` (Yes, it is that simple) ## Install from Precompiled Binary ### Linux (armv6 / v7, arm64 and amd64) *(e.g. Raspberry Pi 4B, Raspberry Pi Zero W, Orange Pi, $5 tiny VPS on lightsail or ramnode, only tested with Debian based Linux)* Install the latest version of Raspberry Pi OS / Armbian / Debian on an SD card / boot drive and boot it up. After setup and initialization is done, connect to it via SSH or use the Terminal App on your desktop to enter the following command ```bash wget -O install.sh https://raw.githubusercontent.com/tobychui/arozos/master/installer/install.sh && bash install.sh ``` and follow the on-screen instruction to setup your arozos system. If you selected install to systemd service, you can check the status of the service using ``` sudo systemctl status arozos ``` Otherwise, you will need to manually start the arozos using the following command ``` cd ~/arozos sudo ./arozos # or if you have launcher installed sudo ./launcher ``` After installation, depending on the processing power and disk speed of your host, it will take some time for arozos to unzip the required files. Wait around 3 - 5 minutes and visit the following link to create the administrator account. The Setup guide then walks you through disks, users and file sharing. ``` http://{ip_address_of_your_host}:8080/ ``` Note: If you are using some browsers that hides your user agents, you can manually switch between mobile and desktop interface with the following links. - Mobile: http://localhost:8080/mobile.system - Desktop: http://localhost:8080/desktop.system To uninstall your ArozOS in case you screw something up, use the uninstall script in the installer folder. ### Windows (amd64) If you are deploying on Windows, you need to add ffmpeg to %PATH% environment variable and following the steps below. #### Adding FFMPEG to %PATH% Visit https://www.ffmpeg.org/ to download the precompiled binary to C:\ffmpeg\. After unzipping, you should be able to find the binary ffmpeg.exe at C:\ffmpeg\bin\. Go to "System Properties" > "Environment Variables" > "System Variables" > "Edit" and add "C:\ffmpeg\bin\" into the environment variable list. Save and Exit the tool windows and restart your PC to apply the new settings. #### Installing ArozOS 1. Create a folder a name that has no space and ASCII only 2. Download the arozos_windows_amd64.exe from the [Release Page](https://github.com/tobychui/arozos/releases) 3. Download the web.tar.gz from the Release Page 4. Put both files into the same folder you created in step 1 5. Double click the exe file to start ArozOS 6. Click on "Allow Access" if your Windows Firewall blocked ArozOS from accessing your network 7. Visit ```http://localhost:8080/``` in your web browser to continue root admin account setups. **Some features are not available for Windows build** **Windows arm64 version are experimental and not tested** ### macOS (Apple silicon and Intel) 1. Download `web.tar.gz` and the `arozos_darwin_arm64` or `arozos_darwin_amd64` binary from the [Release Page](https://github.com/tobychui/arozos/releases) into one folder 2. In Terminal, run `chmod +x arozos_darwin_*` in that folder, then start the binary 3. If macOS blocks it, allow it in System Settings > Privacy & Security 4. Visit `http://localhost:8080/` to create the administrator account ### OpenWRT (mipsle) / Linux (riscv64, loong64) OpenWRT build and Linux riscv64/loong64 is experimental and might contains weird bugs. If you are interested to test or maintain these builds, please contact me directly. ``` wget -O arozos {binary_path_from_release} wget -O web.tar.gz {web.tar.gz_path_from_release} chmod -x ./arozos sudo ./arozos ``` ### Docker Thanks SysAdmin74 for contributing a dockerfile for ArozOS. You can check out his dockerfile [here (WIP)](https://github.com/SysAdmin74/ArozOS-Docker). ## Screenshots ArozOS web desktop File Manager Office suite running on the desktop Musicify and Movie See every part of the system in the **[screenshot gallery](screenshots.md)**. ## Start the ArozOS Platform ### Supported Startup Parameters The following startup parameters are supported (v3.0.5). Run `./arozos -h` for the list of your build.
Show all startup parameters ``` -allow_autologin Allow RESTFUL login redirection that allow machines like billboards to login to the system on boot (default true) -allow_iot Deprecated and ignored: IoT support has been removed -allow_mdns Enable MDNS service. Allow device to be scanned by nearby ArOZ Hosts (default true) -allow_pkg_install Allow the system to install package using Advanced Package Tool (aka apt or apt-get) (default true) -allow_ssdp Enable SSDP service, disable this if you do not want your device to be scanned by Windows's Network Neighborhood Page (default true) -allow_upnp Enable uPNP service, recommended for host under NAT router -arozcast_turn Enable the built-in Arozcast TURN relay so WebRTC screen share works over the Internet / behind NAT (default true) -arozcast_turn_port int Listening port (UDP and TCP) for the built-in Arozcast TURN relay (default 3478) -arozcast_turn_publicip string Public IP or hostname advertised by the Arozcast TURN relay. Leave empty to auto-detect the outbound interface address (set this when the host is behind NAT) -arozcast_turn_tls Also serve TURN-over-TLS (TURNS) so screen share traverses restrictive firewalls that only allow outbound TLS. Uses the system TLS certificate (-cert/-key); a no-op when no certificate can be loaded (default true) -arozcast_turn_tls_port int Listening TCP port for the Arozcast TURN-over-TLS (TURNS) relay. Set to 443 to share the standard HTTPS port for maximum firewall traversal (default 5349) -beta_scan Allow compatibility to ArOZ Online Beta Clusters -bufffile_size int Maxmium buffer file size (in MB) for buffer required file system abstractions (default 25) -buffpool_size int Maxmium buffer pool size (in MB) for buffer required file system abstractions (default 1024) -cert string TLS certificate file (.crt) (default "localhost.crt") -console Enable the debugging console. -dir_list Enable directory listing (default true) -disable_cluster Disable the cluster features (joining, the cluster:/ drive, cluster jobs and their settings pages) -disable_http Disable HTTP server, require tls=true -disable_ip_resolver Disable IP resolving if the system is running under reverse proxy environment -disable_subservice Disable subservices completely -enable_buffpool Enable buffer pool for buffer required file system abstractions (default true) -enable_docker Enable Docker container/compose management if Docker is detected on host (default true) -enable_hwman Enable hardware management functions in system (default true) -enable_pwman Enable power management of the host system (default true) -force_mac string Force MAC address to be used for discovery services. If not set, it will use the first NIC -gzip Enable gzip compress on file server (default true) -homepage Enable user homepage. Accessible via /www/{username}/ (default true) -host string Listening host for HTTP server -hostname string Default name for this host (default "My ArOZ") -iobuf int Amount of buffer memory for IO operations (default 1024) -key string TLS key file (.key) (default "localhost.key") -log_format string Console log output format: text or json (default "text") -logging Enable logging to file for debug purpose (default true) -max_upload_size int Maxmium upload size in MB. Must not exceed the available ram on your system (default 8192) -ntt int Nightly tasks execution time. Default 3 = 3 am in the morning (default 3) -port int Listening port for HTTP server (default 8080) -public_reg Enable public register interface for account creation -root string User root directories (default "./files/") -session_key string Session key, must be 16, 24 or 32 bytes long (AES-128, AES-192 or AES-256). Leave empty for auto generated. -skip_mdadm_reload Skip mdadm reload config during startup, might result in werid RAID device ID in some Linux distro -smb_capture string Write a debug capture and trace log of the SMB server to this folder. Holds file names, for an admin only -storage_config string File location of the storage config file (default "./system/storage.json") -tls Enable TLS on HTTP serving (HTTPS Mode) -tls_port int Listening port for HTTPS server (default 8443) -tmp string Temporary storage, can be access via tmp:/. A tmp/ folder will be created in this path. Recommend fast storage devices like SSD (default "./") -tmp_time int Time before tmp file will be deleted in seconds. Default 86400 seconds = 24 hours (default 86400) -upload_async Enable file upload buffering to run in async mode (Faster upload, require RAM >= 8GB) -upload_buf int Upload buffer memory in MB. Any file larger than this size will be buffered to disk (slower). (default 25) -uuid string System UUID for clustering and distributed computing. Only need to config once for first time startup. Leave empty for auto generation. -version Show system build version -wlan_interface_name string The default wireless interface for connecting to an AP (default "wlan0") -wpa_supplicant_config string Path for the wpa_supplicant config (default "/etc/wpa_supplicant/wpa_supplicant.conf") ```
Example ``` //Starting aroz online with standard web port ./arozos -port 80 //Use https instead of http ./arozos -tls=true -tls_port 443 -key mykey.key -cert mycert.crt -disable_http=true //Start both HTTPS and HTTP server on two different port ./arozos -port 80 -tls=true -key mykey.key -cert mycert.crt -tls_port 443 //Change max upload size to 25MB ./arozos -max_upload_size 25 ``` ### ArozOS Launcher Launcher is required for performing OTA updates in arozos so you don't need to ssh into your host every time you need to update ArozOS. You can install it via the installation script or install it manually. See more in the following repository. https://github.com/aroz-online/launcher ### Storage Configuration Visit System Settings > Disk & Storage > System Storage Pools, click **Add drive** and follow the on screen steps. - Name: Name of the drive in ArozOS (e.g. Movie Storage) - Drive ID: Unique, ASCII only and without spaces. Files on the drive are found at `id:/` (e.g. `movie:/`) - Protocol / file system: The disk format of a local disk, or SMB, WebDAV, FTP, SFTP or S3 for a remote one - Path or server address: The mounting path of a local disk **in the host OS**, or the address of the remote server. Examples - Local disk (ntfs / ext4 etc): /media/storage1 - WebDAV: https://example.com/webdav/storage - FTP / SFTP: 192.168.1.220:2022 - SMB: 192.168.0.110/MyShare (Where "MyShare" is one of the shares inside File Explorer if you visit \\\\192.168.0.110\) - Username and password: Your account on the remote server (network drives only) - Folder layout - One shared folder: everyone who can use the drive sees the same files - A folder for each user: each user only sees their own folder - Read only drive: Nobody can change files on this drive Local disks can also be mounted by ArozOS (mount device, mount point and mount at startup). Leave these out if you already mount the disk with /etc/fstab. A disk required by the ArozOS -root option cannot be auto mounted. Who can use a drive is set by its access list: a level for each permission group, plus a default access level for everyone else. ### File Servers If you want to share files from ArozOS, there are many ways you can do it. - Share: Right click a file in File Manager and click Share. Files shared with you appear under *Shared with me*. - User Accounts: Create user account for a user who want to access your file and limit the scope of file access with permission groups and drive access lists - Network File Servers: Create a single shared user in a permission group with limited access settings and enable network file server in System Settings > Networks & Connections > File Servers > SMB / WebDAV / SFTP / FTP. Follow the on-screen guide to setup the access mode. - Legacy Browser Server: Share files to legacy devices via basic HTTP and Basic Auth. You can enable it in System Settings > Networks & Connections > File Servers > Directory Server. You can login with your current ArozOS user credentials. ## WebApp Development See the [developer documentation](https://aroz-online.github.io/ArozOS-Developers/) and the [AGI API reference](src/mod/agi/README.md) for more details. ## Other Resources If you are looking for other WebApps (Installed via System Setting) or subservices (deprecated), please take a look at our collections over here: https://github.com/aroz-online/WebApp-and-Subservice-Index ## Community / Q&A ### Direct Contact You can reach the authors using [Telegram](https://t.me/ArOZBeta)! We welcome all kind of feedbacks and questions. ### Device Compatibility Showcase Using ArozOS on something other than Raspberry Pis? Show us your server configuration & hardware specs! https://github.com/tobychui/arozos/issues/50 ### Related Articles If you are looking for tutorials or need help on debugging some minor issues, feel free to take a look at these articles written by our users. (Thank you so much for sharing this project :D ) #### English - [The web desktop tool you need to know about](https://www.studytonight.com/post/the-web-desktop-tool-you-need-to-know-about) - [I write my own web desktop OS for 3 years and this is what it looks like now ](https://dev.to/tobychui/i-write-my-own-web-desktop-os-for-3-years-and-this-is-what-it-looks-like-now-2903) #### Chinese - [ArozOS+树莓派打造随身NAS(避坑专用)](http://web.archive.org/web/20250104032024/https://blog.csdn.net/m0_37728676/article/details/113876815) - [ArozOS+树莓派小型NAS](http://www.huajia.online/2021/10/23/ArozOS-%E6%A0%91%E8%8E%93%E6%B4%BE%E5%B0%8F%E5%9E%8BNAS/) - [树莓派 Arozos 指北](https://xlog.pi-dal.com/ArozOS-RPI-Tutorial) - [Linux:ArozOS 安裝與建立開機自啟動服務](https://pvecli.xuan2host.com/linux-arozos-install-service/) #### Japanese - [WebデスクトップOSのArozOSをインストール](https://minokamo.tokyo/2024/02/06/6901/) - [ラズパイで動く、高機能WebGUI付きNAS「ArozOS」で遊ぶ](https://www.my-hacks.info/2023/02/08/post-2165/) #### Portuguese - [DESKTOP WEB construído e desenvolvido na LINGUAGEM GO](https://www.youtube.com/watch?v=C42UdgOySY) Feel free to create a PR if you have written an article for ArozOS! ## License ### Source Code ArozOS - General purpose cloud desktop platform Copyright (C) 2023 tobychui This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License version 3 as published by the Free Software Foundation. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see . ### Documentations Copyright (C) 2023 tobychui Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.3 or any later version published by the Free Software Foundation; with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. A copy of the license is included in the section entitled "GNU Free Documentation License". ### Artwork and Mascot Design Copyright (C) 2023 tobychui, All Right Reserved