Code Monkey home page Code Monkey logo

wtty's Introduction

wtty

Tool to monitor output from ttyUSB

wtty on Raspberry PI setup

Download "minibian" distro (https://minibianpi.wordpress.com/) for Raspberry PI. Flash it:

sudo -i
tar xzvf 2016-03-12-jessie-minibian.tar.gz
dd if=2016-03-12-jessie-minibian.img bs=4M | pv | dd of=/dev/sdb

Insert the sdcard into the RPI, connect ethernet and power, log into the RPI with root/raspberry, then do the following.

Change password:

passwd

Update and upgrade packages and run raspi-config:

apt-get update
apt-get upgrade -y
apt-get dist-upgrade -y
apt-get install raspi-config
raspi-config

Modify vim /boot/config, add the following to disable BT and WiFi:

dtoverlay=pi3-disable-bt
dtoverlay=pi3-disable-wifi

In raspi-config change:

  • 2 Hostname
  • 4 Localization > I2 Change Timezone
  • 7 Advanced Options > A1 Expand Filesystem
  • <Finish> and reboot

After reboot continue installing and cleanup:

apt-get install \
  make git vim-nox logrotate htop \
  python python-yaml python-flask python-socketio python-pip
apt-get autoclean
apt-get clean

Then create wtty filesystem:

mkdir /srv/wtty

Edit vim /etc/fstab, adding the following to make it available on boot:

/dev/sda1 /srv/wtty ext4 errors=remount-ro,noatime,nodiratime,commit=120 0 1

Mount it:

mount /srv/wtty

Create file "/etc/logrotate.d/wtty" containing:

/srv/wtty/output/*.log {
  size 4M
  daily
  copytruncate
  rotate 7
  missingok
}

/srv/wtty/input/*.log {
  size 4M
  daily
  copytruncate
  rotate 7
  missingok
}

/srv/wtty/*.log {
  size 4M
  daily
  copytruncate
  rotate 7
  missingok
}

Install wtty:

mkdir -p $HOME/git
cd $HOME/git
git clone https://github.com/safl/wtty.git
cd wtty
make install

Reboot to check that everything starts up correctly on boot.

wtty's People

Contributors

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