Coder Social home page Coder Social logo

3ga / kano-init Goto Github PK

View Code? Open in Web Editor NEW

This project forked from kanocomputing/kano-init

0.0 2.0 0.0 362 KB

kano-init is a script to initialize a fresh installation of the Kanux OS on a Kano kit

License: GNU General Public License v2.0

Makefile 1.55% Shell 0.38% Python 98.07%

kano-init's Introduction

kano-init

kano-init is a script to initialize a fresh installation of the Kanux OS on a Kano kit. It is based mostly on the raspi-config tool from Alex Bradbury.

kano-init needs a Debian Jessie system running systemd.

Onboarding UI

As of kano-init 3.3, there is a new version which uses a QML based graphical UI called Overture. It is bound to the system via systemd - the commands below summarize the available workflow options.

  • kano-init schedule add-user will disable the Dashbhoard and start the Overture app with no Xserver on next reboot.
  • kano-init finalise -f will mark the onboarding as complete, the next reboot will go to either Dashboard or Greeter.
  • kano-init create-user <username> [-x] creates a new kano user, [-x] starts an empty XServer.
  • kano-init create-temp-user [-x] creates a temporary kano user which is returned through stdout, [-x] starts an empty XServer.
  • kano-init rename-user <current> <new> renames the user account, group name, home folder, and its permissions. No user process must be running.
  • kano-init xserver-start <username> starts the Xserver in the background, logs in as username.
  • kano-init status will return disabled when normal Dashboard mode, add-user when Overture is running or scheduled for next reboot.

At the systemd level, systemctl set-default multi-user.target will enable the Overture app through systemd, leaving the Xserver and Dashboard disabled. You can still systemctl start ligthdm without disrupting the Overture app.

Conversely, systemctl set-default graphical.target will switch back to taking the user to the Dashboard or Greeter on next reboot.

Note that the Overture app will run as root. Use create-temp-user along with su to impersonate regular and X11 apps.

Automation

Kano Init is capable of going through the initial setup process unattended, create the user account and take you directly to the graphical desktop.

To automate these steps, do the following:

  • edit /var/cache/kano-init/status.json to look like this

{"username": "myusername", "stage": "username-stage"}

  • edit /boot/init.conf to look like this:
{
    "kano_init": {
        "skip": true,
        "user": "myusername"
    },
    "kano_init_flow": {
        "skip": true
    }
}

On next reboot, you should see the graphical desktop logged in as myusername after a short while.

kano-init's People

Contributors

alexnklein avatar convolu avatar ealdwulf avatar emilyclaudet avatar hyperknot avatar keberlin avatar pazdera avatar radujipa avatar rluz avatar skarbat avatar tombettany avatar

Watchers

 avatar  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.