FriendUPCloud / friendup

FriendOS is a free web based platform that runs in your browser. It allows you to work and play, collaboratively, across devices.

Home Page:https://friendos.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

'Friend OS v1.3.0, "Helium"


Release notes

This is a work in progress - before the release there may be fluctuations, also in this ReadMe. Full notes coming with the final release of 1.3.0.


The Friend OS leverages the computing power of the Internet to offer many of the features and functionalities of Chrome OS, Windows, Linux, Android, macOS or iOS, without the need to choose a specific hardware platform or proprietary software package. If you have a device that is connected to the Internet, you can use the Friend OS.

The FriendOS liberates you from Big Tech: It gives you control to create, collaborate, store and share information, data and content across all your devices in a secure private environment and access it anywhere on any device.

Friend OS Helium

Across devices

With its responsive desktop environment and client-side, javascript based technologies, Friend OS offers a new reality where you work and play online, independently from your local web enabled hardware. By supporting all screen formats, from mobile phones to laptops and VR, Friend OS is a single target through which you can reach the entire user market.

To install Friend OS on your device, chose "Install Friend OS" from your browser on mobile/tablet or desktop.

Distributed and powerful

Friend OS aims to make the powerful emerging web technologies easy to work with. This is why we reach out to you, to help us enrich this platform with DOS drivers, modules, libraries and apps so that we can cover all of the interesting technologies out there that people use and love. In the Future, Friend OS will be to the cloud users what Linux is for machines.

Installation instructions

  1. Clone this repository into a folder
  2. Install the following dependencies – below, to install for Ubuntu 20.04:
sudo apt install software-properties-common
sudo add-apt-repository ppa:ondrej/php
sudo apt update

sudo apt-get install bash libssh2-1-dev libssh-dev libssl-dev libaio-dev mysql-server php7.4-cli php7.4-gd php7.4-imap php7.4-mysql php7.4-curl libmysqlclient-dev build-essential libmatheval-dev libmagic-dev libgd-dev libuv1 rsync valgrind-dbg libxml2-dev php7.4-readline cmake ssh make libsmbclient-dev libwebsockets-dev libsqlite3-dev
  1. Change to the repository folder
cd friendup
  1. Build FriendCore
echo "USE_SSH_THREADS_LIB=0" >> Config
echo "OPENSSL_INTERNAL=1" >> Config
make clean setup
make compile
make install
  1. Create database / access

In your Friend folder:

sudo mysql
create user frienduser@localhost identified by "somepassword";
create database frienddb;
use frienddb;
source db/FriendCoreDatabase.sql;
grant all privileges on frienddb.* to frienduser@localhost;
flush privileges;
exit
  1. Configure config file, located in build/cfg/cfg.ini (Configuring Friend OS) Also, note, if you haven't set up this file there's an example installed in build/cfg/cfg.ini.example - which you can rename to cfg.ini once you've set up your settings.
  2. Once you have configured your cfg.ini file, run FriendCore:
cd build/
./FriendCore

You're done.

If you're using push notifications, you need to install composer and php Web Push:

sudo apt-get install composer
cd build/php
composer require minishlink/web-push

This will allow you to run web push, and enable in the cfg.ini:

[Security]
push_system = "php-web-push"

Configuring your server

Default login

Once the installation script is finished and your local FriendCore is up and running use these credentials to log in:

User: fadmin
Password: securefassword

The first thing you may want to do, is add a new user : run the 'System' application with "Run command" from the System menu on the Workspace.

Using site.ini

Once you have set everything up, you may want to customize your site. Create a file called site.ini in your build/ folder, and populate this ini file with a config like the following:

[Customization]
SiteName = "My Friend OS Site"
SiteShortName = "MySite"
Description = "The cool place to hang out for my organisation!"
BackgroundColor = "#000088"

Optional settings under [Customization]

SiteLogo = "mylogo.png"
SiteCSS = "mycss.css"

These files need to be located in build/cfg/ from where they will be copied to the active build resource for your Friend OS site.

The site.ini file can be modified to use your own favicon and other adaptations to give it your own identity or brand.

Optional packages

Optional features and modules

From of Friend OS 1.3.x you can use the install_optional.sh script to install special features for Friend OS that are not enabled by default, or uses 3rd party projects in order to work. Current modules are:

  • SSHy for SSH functionality in Prompts (terminal application)
  • Web push (Minishlink) to enable web push notifications (in Convos)

Friend Network

Friend Network is included in this project, but must be installed separately. It can only be installed on an already installed Friend Core.

To install Friend Network, enter the following command in a shell:

cd myfriend
./installFriendNetwork.sh

In order to function, Friend Network needs a node server running on the machine. Friend Network installer will automatically install the latest version of node, npm and n.

You will also need to provide links to a TURN server, a STUN server and the credentials to enter the TURN server. The installer provides access to a public stun and turn server at:

  turn Server: ice.friendup.cloud
    turn User: TINA
turn Password: TURNER
stun Server: ice.friendup.cloud

Friend Network server will be automatically launched when you run Friend Core after a successful installation.

In order to kill Friend Core and all the associated servers, we suggest you use the 'killfriend.sh' script.

Friend Chat

You can also install Friend Chat, our integrated text and video communication tool.

FriendChat can only be installed on an already installed Friend Core.

To install FriendChat, enter the following command in a shell:

cd myfriend
./installFriendChat.sh

The installer will check for node.js, npm and n and install them if necessary.

Friend Chat needs Friend Core to run with TLS protection : if you have not defined TLS keys during the installation of Friend Core, the Friend Chat installer will give you the opportunity to create them. Once this is done, Friend Core will run in TLS mode, and you will have to connect to your Friend machine with 'https' instead of 'http'.

As for Friend Network, you will need to provide links to a TURN server, a STUN server and the credentials to enter the TURN server.

Friend Chat needs two servers to function, the 'Presence' server, and the 'Friend Chat' server. Both servers will automatically be launched by Friend Core.

In order to kill Friend Core and all the associated servers, we suggest you use the 'killfriend.sh' script.

Please note that the 'Presence' server, necessary for IRC connections, does not work with user 'fadmin'": you have to create a real user and define both its name and user name and use its session for it to connect.

Ports

  • 6502 -> used by main Friend Workspace. Needs to be forwarded by the router to permit remote access.
  • 6500 ->
  • 3306 -> used by MSQL database
  • 3478 -> (UDP, TCP) Stun servers
  • 5349 -> (TLS) Stun servers

Documentation

You can find the developer documentation in the docs folder. An administration guide will be added soon.

Licensing

Friend OS is a large system consisting of several layers. It has a kernel core that is managing the Friend resources. This one is licensed under the MIT license. Then it has modules, DOS drivers and runtime linked libraries. These are licensed under the LGPLv3 license. Finally, we have the GUI for Friend - the Friend Workspace. This is licensed under the AGPLv3 license.

Tested - a lot

We extensively test our platform and use https://www.browserstack.com/ for cross browser testing.

About

FriendOS is a free web based platform that runs in your browser. It allows you to work and play, collaboratively, across devices.

https://friendos.com/

License:Other


Languages

Language:JavaScript 46.6%Language:C 40.8%Language:Perl 5.9%Language:PHP 2.1%Language:HTML 1.3%Language:CSS 1.3%Language:CMake 0.4%Language:Roff 0.3%Language:Makefile 0.3%Language:Shell 0.2%Language:Assembly 0.2%Language:M4 0.1%Language:C++ 0.1%Language:Python 0.1%Language:RPGLE 0.0%Language:Java 0.0%Language:Clean 0.0%Language:LiveScript 0.0%Language:Dockerfile 0.0%Language:Emacs Lisp 0.0%Language:NSIS 0.0%Language:eC 0.0%Language:Zeek 0.0%Language:Kotlin 0.0%Language:DIGITAL Command Language 0.0%Language:Objective-C 0.0%Language:PLpgSQL 0.0%Language:Smithy 0.0%Language:R 0.0%Language:ASL 0.0%Language:Raku 0.0%Language:Nix 0.0%Language:LSL 0.0%Language:Beef 0.0%Language:Red 0.0%Language:Liquid 0.0%Language:Blade 0.0%Language:Lua 0.0%Language:Scala 0.0%Language:COBOL 0.0%Language:Pascal 0.0%Language:TeX 0.0%Language:Module Management System 0.0%Language:Batchfile 0.0%Language:Haml 0.0%Language:ActionScript 0.0%Language:Groovy 0.0%Language:Csound 0.0%Language:ABAP 0.0%Language:FreeMarker 0.0%Language:Forth 0.0%Language:Clojure 0.0%Language:Latte 0.0%Language:Sass 0.0%Language:Slim 0.0%Language:EJS 0.0%Language:Awk 0.0%Language:Crystal 0.0%Language:AutoHotkey 0.0%Language:Fortran 0.0%Language:Gherkin 0.0%Language:Elixir 0.0%Language:Go 0.0%Language:Common Lisp 0.0%Language:Logtalk 0.0%Language:Mask 0.0%Language:Pug 0.0%Language:Scheme 0.0%Language:Less 0.0%Language:OCaml 0.0%Language:Ruby 0.0%Language:G-code 0.0%Language:Cirru 0.0%Language:GLSL 0.0%Language:Haskell 0.0%Language:Rust 0.0%Language:Dart 0.0%Language:Elm 0.0%Language:Erlang 0.0%Language:Haxe 0.0%Language:QML 0.0%Language:PowerShell 0.0%Language:CoffeeScript 0.0%Language:sed 0.0%Language:SCSS 0.0%Language:F# 0.0%Language:Eiffel 0.0%Language:Nim 0.0%Language:OpenSCAD 0.0%Language:Csound Score 0.0%Language:PigLatin 0.0%Language:Julia 0.0%Language:MATLAB 0.0%Language:Csound Document 0.0%Language:Handlebars 0.0%Language:Io 0.0%Language:Ada 0.0%Language:ColdFusion 0.0%Language:C# 0.0%Language:jq 0.0%