Giter Club home page Giter Club logo

qgis_nike's Introduction

Template for Linux Desktop Apps on Binder / JupyterHub

Binder

Generate a Git repository that can run any Linux GUI application in the browser via mybinder.org or any JupyterHub from this template repository!

Uses jupyter-remote-desktop-proxy to work.

How to use this reop

1. Create a new repo using this as a template

Use the Use this template button on GitHub. Use a descriptive name representing the GUI app you are running / demoing. You can then follow the rest of the instructions in this README from your newly created repository.

2. Install the application you want

First the GUI application you want needs to be actually installed in the image. There are three main ways to do this:

From apt via apt.txt

Many common Linux GUI applications are available to be installed from the Ubuntu Apt Repositories. Adding their name to apt.txt file is usually enough to get them installed. Note that by default right now, the base image used by Binder and repo2docker is using Ubuntu 18.04 Bionic, which can be a bit outdated.

From conda via environment.yml

A lot of scientific GUI applications are also packaged via [conda-forge] and can be installed by editing the environment.yml file to include them. For example, qgis is a popular Geospatial GUI application, and is available on conda-forge. You can install it by adding qgis under dependencies in environment.yml.

Manually, with a postBuild script

Sometimes the application you want is not available in apt or conda-forge, or at least not the version you want. You've to manually install them by writing a script in postBuild file to download the app manually (wia wget maybe) and extract the executable application somewhere. You don't have root access here, so some of the things you need to do might be limited. Consider writing your own Dockerfile instead.

3. Setup a desktop shortcut to your app

When the repo is launched on Binder / desktop is used on JupyterHub, a shortcut that users can click to launch your app is pretty nice. This template contains sample app.desktop file you can use to setup this shortcut. Our start script will automatically make sure that any .desktop files (which is how most Linux desktops indicate a shortcut file) are put on the user Desktop.

  1. Rename the file from app.desktop to <your-app-name>.desktop
  2. Open the file, and fill in values for Name, Exec and optionally Icon
  3. Commit the file

4. Modify the Binder Badge in the README.md

The 'Launch on Binder' badge in this README points to the template repository. You should modify it to point to your own repository. Keep the urlpath=desktop parameter intact - that is what makes sure your repo will launch directly into a Linux desktop.

5. Cleanup the README.md to document your application

Finally, cleanup your README.md to document the application in your repo! Users of your repo want to see the application, not instructions on how to setup the repo :)

Inspiration

Inspriation to make this particular template repository comes from conversation with my friend Sanjay Bhangar.

qgis_nike's People

Contributors

cloudsmithk avatar

Watchers

 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.