GithubHelp home page GithubHelp logo

ton-an / papertty-init Goto Github PK

View Code? Open in Web Editor NEW

This project forked from mcarr823/papertty-init

0.0 0.0 0.0 648 KB

Installer scripts for PaperTTY

License: GNU General Public License v3.0

Shell 100.00%

papertty-init's Introduction

papertty-init

papertty-init automates the process of installing PaperTTY.

You can use the minimal installer (not specific to the Raspberry Pi), which will only install PaperTTY and its dependencies.

Or you can use the full installer (Raspberry Pi only), which will perform all of the necessary setup for a Raspberry Pi, such as enabling SPI, enabling automatic login, and making PaperTTY run automatically on startup.

Minimal install - Raspberry Pi or Desktop PC

You can perform a minimal installation of PaperTTY by running

bash -c "$(curl https://sh.mcarr.dev/simple)"

This installer doesn't perform any operations specific to the Rpi, or create any startup scripts, or change your system settings.

It simply installs PaperTTY and its dependencies on your system.

This script can be run from Raspberry Pi OS (lite or full), or from a desktop computer running Debian 12 (or a derivative, such as Ubuntu or Linux Mint).

In theory this should also work from WSL on Windows, as long as the environment is based on a supported Linux flavor. However, this has not actually been verified.

Full install (GUI or CLI) - Raspberry Pi only

The full installation scripts can be run either from a desktop (Raspberry Pi OS) or a command-line environment (Raspberry Pi OS Lite).

Both versions do the following

  • enable SPI
  • download and install papertty's dependencies
  • setup a python virtual environment for papertty
  • install papertty and update it to the latest version from git
  • offer to download either the official version of papertty or my forked version
  • optionally installs gpiozero
  • enables or prompts to enable automatic login
  • asks which waveshare panel you're using and sets up a script to run it
  • downloads Ubuntu fonts and uses the Mono font for papertty

The desktop version does the following

  • replaces the default desktop environment with XFCE
  • automatically switches to tty1 OR sets up tmux, so keyboard input is shown on the e-ink panel by default
  • disables power management, screen locking, and screen blanking as much as possible

If you're using Raspberry Pi OS with a desktop environment, open a terminal and paste this command:

bash -c "$(curl https://raw.githubusercontent.com/ton-An/papertty-init/main/gui.sh)"

If you're using Raspberry Pi OS Lite in a text-only environment, type in:

bash -c "$(curl https://raw.githubusercontent.com/ton-An/papertty-init/main/cli.sh)"

Full installer - After installation

You will likely want to change PaperTTY's startup script to suit your panel.

For example, you might need to switch between landscape and portrait, or change the font size.

You can find the script which runs papertty on startup in /home/pi/.local/bin/papertty-init/startpapertty.sh

You can find a complete list of different options in the official PaperTTY repository: https://github.com/joukos/PaperTTY

papertty-init's People

Contributors

mcarr823 avatar ton-an 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.