GithubHelp home page GithubHelp logo

jmrpi2's Introduction

JMRPi2

This repo contains scripts to configure JMRI on a Raspberry PI 2 for use in the computer control of model railroad layouts.

To get the code, log onto your R-PI, start a terminal if you do not have one already and run the following commands:

FIRST: Make sure you have a known working wired internet connection to your Pi.

git clone https://github.com/visualinventor/JMRPi2
cd JMRPi2
sudo ./setup.sh

This will:

  • Checkout this repository
  • Change to the checked-out code
  • Run the installation script
  • Sets up your wifi stick to be wireless access point
  • Sets a static ip address to the wifi hotspot
  • Create a dedicated JMRI user
  • Start a VNC/remote desktop server for the JMRI
  • Automatically Launch JMRI

About halfway through you will be asked About "setting a password for your desktops". Type in whatever password you would like but remember it because this will be the password you use to VNC into your RPi. The password for the JMRI user (should you need to connect to the R-Pi and run commands on its behalf!) is "trains".

The message that is generated at the end of the script gives you an IP Address and a Port Number to use to log in via VNC and start a remote desktop session. Once you have done this, you should see JMRI starting up.

It's highly recommended to disconnect your wired ethernet connection AFTER the install is done so withrottle doesn't get confused as to which IP address it needs to use.

SSH:

user is jmrpi2

pw is trains

Wireless IP address is set as static (this is the ip address of the wireless raspberry pi network adapter): 192.168.10.1 Local based dns name is: jmrpi2.local

echo "---- Your Wireless Access point and JMRI server have been installed ----"
echo "JMRI will take several minutes to start the first time it is run."
echo "Once JMRI is started you must connect to the Raspberry Pi and finish setup INSIDE JMRI."
echo "Up to this point JMRI doesn't know your command station or connection method. YOU NEED TO SET THIS UP NEXT."
echo "To connect through VNC or Remote Desktop use the following IP/port: 192.168.10.1:5901"
echo "Your JMRI config files will be available by browsing with SAMBA on a PC
      to \\192.168.10.1\\JMRI\\ or via Macintosh jmrpi2.local"

jmrpi2's People

Contributors

tommyla avatar

Stargazers

Tim Watson avatar

Watchers

Tim Watson 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.