Code Monkey home page Code Monkey logo

notdreamnorpi's Introduction

notdreamnorpi

Hacky pppd wrapper for the masses.

This is a fork of the DreamPi project, updated to port the script to the modern era and to remove the Dreamcast-specific components. (You can still use this with your Dreamcast though!, with some limitations)

Original description

A daemon that creates a bridge between a Dreamcast's Dial-up Modem, and the Internet via the Pi

Installation

  • You need a Linux distribution to use this script. Windows will not work unless someone has a scriptable PPP implementation.
  • Preferrably a Conexant RD02-D400 modem. Any modem will work however, as long as it is recognizable by both the Linux kernel that you are running, and wvdial.
  • Install Python 3.6+ (including pip), ppp, and net-tools from your system's package manager.
  • Install these python packages: psutil, pyserial, sh.
    • Arch Linux users should install python-psutil, python-pyserial, and python-sh
    • Debian users should install python3-psutil, python3-serial, and python3-sh
    • Other distributions should consult their package manager's repositories. pip should only really be used if packages aren't available for your distribution.
  • Clone this repository, cd into the folder, and run python3 dreampi.py as root.
    • You can call the script with --help to get a list of options.
    • If your device has trouble with the dial tone simulation, append --disable-dial-tone to the command line.
    • If you have PAP authentication setup for pppd (required for old WebTV classic clients in flashrom mode), append --enable-pap-auth to the command line if you'd like to use it.
    • If you want more advanced logging from pppd, append --enable-pppd-debug to the command line.

Changes from the original

  • Script is ported from Python 2.x to Python 3.6+
  • Dreamcast-specific components are stripped away
  • Better compatibility with other modems (detected by your system)
  • Command line argument parsing is changed from sys.argv lookup to argparse
  • Ability to toggle PAP authentication and logging level
  • Faster start with "optimized" code for network detection
  • Syslog/systemd-journal requirement removed in favor of just calling pppd directly

notdreamnorpi's People

Contributors

adamharley avatar kazade avatar samicrusader avatar ziggythehamster avatar

Stargazers

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