Code Monkey home page Code Monkey logo

rviprogramlauncher's Introduction

VI Program Launcher

Install Dependencies

sudo apt-get install newsbeuter links mplayer python-pip python-dev libudev-dev zsh alpine newsbeuter links frotz calibre
sudo pip install psutil python-uinput

You will also need the kernel headers for the kernel that you are running. For example if you are running 3.18 which is currently on Debian Wheezy. Also make sure if you do an apt-get command with wildcards you use bash.

sudo apt-get install linux-headers-3.18.0-trunk-*

Other Prerequisites

Enabeling uinput

viinputdaemon.py requires the kernel module 'uinput' to be activated.

To enable uinput temporarly

sudo modprobe uinput

To enable uinput on boot

sudo bash -c "echo 'uinput' >> /etc/modules"

'Fixing' sudo

Due to the fact it is difficult to run a program as root and then run programs as other users the program will run the appropiate commands as sudo, this means that if sudo asks for a password the program will not be able to run. If you are running Raspbian Wheezy on a Raspberry Pi this is the default.

To change sudo to not ask for a password use visudo to edit, the entry you need to change will probably need to make will probably be at the end of the file.

sudo visudo
<your username> ALL = NOPASSWD : ALL

Simulating the serial input device

The serial connection will need to be 115200 baud, No Parity, 8 Data Bits, 1 Stop Bit, No Flow control. On the device running the daemon /dev/ttyUSB0 will be used.

Over serial send values 129 - 136 to trigger the macros, see SERIAL.md for documentation of the serial input standard.

You can use any program to test out viinputdaemon.py that can output the correct bits.

On windows you can use Realterm

On linux you can use Minicom

Installing the man page

sudo mkdir /usr/local/man/man1
sudo cp viui.1 /usr/local/man/man1

Function key functionality list

Program F1 F2 F3 F4 F5 F6 F7 F8
viui help menu nano alpine newsbeuter links irssi zsh option & shutdown menu
nano help open file save file cancel cut uncut find quit
alpine help open index compose back journal setup quit
newsbeuter help open entry save story reload next unread open in browser quit
links help go to url menu cancel find in page quit
irssi help /connect /join /part /query previous window next window quit
zsh home folder play ^c quit

Running ViUi

ViUi can be run by entering the command

python viui.py

rviprogramlauncher's People

Contributors

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