Code Monkey home page Code Monkey logo

beepy-fun's Introduction

Fun with Beepy

(Yet another) repo exploring Beepy's fun potential. It's mainly for me - so I can get everything set up the way I like when I inevitably break something and have to start from a fresh SD card.

If you choose to run anything from here you do so at your own risk.

Basic setup

This step increases the size of fonts and boots directly into Tmux with time, wifi and battery indicators and wifi manager.

Details:

Pick and choose by following the links above, or run the following to install them all:

curl ....

Games

The following are either known to work or have been modified to work on a Beepy configured according to this guide:

Pick and choose by following the links above, or run the following to install them all:

curl ....

Apps

  • pDiary is a journalling app with Doogie Howser vibes. Alternatively, try Tui-Journal(not installed by default).
  • NEIX Newsreader for RSS feeds
  • 3
  • 4

Pick and choose by following the links above, or run the following to install them all:

curl ....

Extras

  • Graphics support
    • DirectFB2
    • SDL2
    • FBGraphics (FBG)
    • PyGame (depends on SDL2)
    • Love2D (depends on SDL2)
  • Graphical launcher/frontend

Basic Setup

Post-install fixes

Fix /boot/cmdline.txt and increase default font size to 8x16

sudo set -i 's/8x8/8x16/g' /boot/cmdline.txt

Log in automatically

sudo raspi-config nonint do_boot_behaviour B2

Launch Tmux at login

...

Install Tmux and add some flair

Status bar

  • Clock
  • Battery %
  • Wi-Fi connection & signal strength

Extra menus

  • [Tmux + n] Wi-Fi connection manager/switcher
  • [Tmux + k] Sym keymap guide popup
  • [Tmux + v] Set display dithering/mono cutoff value
  • Bluetooth connection manager/switcher

Note: repo version of tmux is old!

Install from source:

sudo apt remove tmux
sudo apt update
sudo apt install -y libevent-dev automake libncurses-dev
git clone https://github.com/tmux/tmux.git
cd tmux
sh autogen.sh
./configure && make
sudo make install

Now add some fun:

cd ~/
wget https://raw.githubusercontent.com/TheMediocritist/beepy-fun/main/.tmux.conf
mkdir .config & cd .config & mkdir tmux & cd tmux
wget https://raw.githubusercontent.com/TheMediocritist/beepy-fun/main/tmux_wifi_manager.sh
wget https://raw.githubusercontent.com/TheMediocritist/beepy-fun/main/tmux_wifi_status.sh
wget https://raw.githubusercontent.com/TheMediocritist/beepy-fun/main/tmux_keymap.sh
wget https://raw.githubusercontent.com/TheMediocritist/beepy-fun/main/tmux_dither.sh

Notes:

  • The addon scripts are located in a hidden folder called ~/.config/tmux, in case you wish to edit or remove them.
  • Tmux configuration is in the hidden file ~/.tmux.conf.
  • Reboot is required, but can wait...

Display driver with grayscale dithering

git clone https://github.com/TheMediocritist/beepy_sharp_drm ~/sharp_drm
cd ~/sharp_drm
make
sudo make install
sudo reboot

Update .bashrc

This sets terminal colours to work correctly with the dithering driver, automatically opens tmux and adds some flair. Don't use it if you've got stuff in .bashrc you want to keep as it will over-write your setup.

cd ~\
wget https://raw.githubusercontent.com/TheMediocritist/beepy-fun/main/.bashrc

Post-install fixes

Notes

  • The display driver is using 32 bits per pixel RBGA.
  • The terminal is using a variety of colours for highlighting and different file/folder types.
  • The linux terminal 'black' is actually a dark gray, and 'white' is actually off-white. So...

Games

Gameboy Emulator

Fix /boot/cmdline.txt and increase default font size to 8x16

...

Doom

Fix /boot/cmdline.txt and increase default font size to 8x16

# clone and build
cd ~/
git clone https://github.com/TheMediocritist/beepy_doom
cd beepy_doom
make

# download shareware WAD file (level data)
wget https://distro.ibiblio.org/slitaz/sources/packages/d/doom1.wad

Zork

Zork is a text-based adventure game from 1977-ish, with various The version here is a lightly modified version of [Link](goes here) with the output re-formatted to fit within 50 characters and 15 lines (for 8x16 Beepy font). Where text overflows 15 lines, it will pause until a key is pressed.

# install dependencies
sudo apt install libboost-all-dev

# clone and build
cd ~/
git clone https://github.com/TheMediocritist/beepy_zork1
cd beepy_zork1
mkdir build
cd build
cmake ..
make

Apps

NEIX

Newsreader for RSS/Atom feeds.

cd ~\
git clone https://github.com/TheMediocritist/beepy_neix.git  
cd neix  
cmake . # to enable unit-tests: cmake -DENABLE-TESTS=ON  
make  
sudo make install

pDiary

pDiary) is a journalling app with major Doogie Howser vibes. Old people will understand.

# Install font with symbols
apt install fonts-symbola

# Build dependency that won't install from pip like it's supposed to (sigh, yeah...)
cd ~/
git clone https://github.com/sqlcipher/sqlcipher.git
cd sqlcipher
./configure
make
sudo make install


# Install pDiary using pip
pip install sqlcipher3-binary==0.5.1
pip install https://github.com/manipuladordedados/pdiary/releases/download/1.65/pdiary-1.65-py3-none-any.whl

Tui-Journal

Tui-Journal is a journalling app with major Doogie Howser vibes. Old people will understand.

# Install dependencies
sudo apt install -y libssl-dev
# Install Rust
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
source "$HOME/.cargo/env"
# Install tui-journal
cargo install tui-journal

Note: Building tui-journal is slow. I'm not kidding; maybe a couple of hours on a Pi Zero. Use the command tjournal to run it.

beepy-fun's People

Contributors

themediocritist avatar

Stargazers

 avatar  avatar James Gibson avatar Nathan M. avatar

Watchers

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