Coder Social home page Coder Social logo

nebocamin / servonk Goto Github PK

View Code? Open in Web Editor NEW

This project forked from fabricedesre/servonk

0.0 2.0 0.0 103.14 MB

Servo on Gonk

License: Mozilla Public License 2.0

Rust 4.11% Shell 11.42% HTML 4.03% FreeMarker 0.01% JavaScript 70.60% CSS 5.05% Batchfile 0.01% Makefile 2.28% C 2.48% M4 0.02% CMake 0.01% Mako 0.01%

servonk's Introduction

Servonk

This is an experimental project, aiming at providing a web based environment for phones and other devices. The main goals are to:

  • Build an alternative to current dominant mobile OSes and browsers.
  • Encourage contributions to Servo outside of the mandate of its corporate backers.
  • Scratch an itch and have fun.

It currently runs on Gonk based devices and on desktop platforms (tested on Linux only so far, let me know if you get it to run on Windows or Mac). Another potential target will be the Librem 5 from Purism.

It is in very early stages and not really usable yet. There is an incomplete todo list if you want to help!

Dependencies

Since we depend on Servo, first check that you have everything set up as explained.

You need to do a b2g build for your device (eng or userdebug to get root access), as this is not properly setup with the Android build system yet. It is only necessary to build gonk, not gecko or gaia. A simple way to remove these from the build after running ./config.sh is to edit b2g.mk in gonk-misc repository and comment out the gecko and gaia lines, as shown in this git diff: https://pastebin.com/sdQG3Tki

Also:

  • sudo apt install llvm-dev libclang-dev and clang (Ubuntu 18.04).

Building

  1. First, install rustup.
  2. Git clone this repository.
  3. cd to the 'servonk' directory.
  4. Then run ./bootstrap.sh to install the Rust toolchain.
  5. Configure the Gonk build by setting the GONK_DIR environment variable to the path of your b2g repository, and the GONK_PRODUCT_NAME to the Android product name (eg. "aries" for a Sony Z3C).
  6. You can then build for the platform of your choice by running: ./servonk build gonk --release for a Gonk build, or ./servonk build glutin --release for a desktop version.

Running

On desktop, just run ./servonk run glutin. On Gonk, you first need to flash your device with B2G before running:

  1. ./servonk flash gonk
  2. ./servonk run gonk

The lockscreen code is 4242.

Supported devices

  • The L port of the Sony Z3C and Nexus 5 are currently the only tested and working devices.

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.