Skip to content

Instantly share code, notes, and snippets.

View the-snowwhite's full-sized avatar

Michael Brown the-snowwhite

View GitHub Profile
@the-snowwhite
the-snowwhite / Dockerfile
Created November 26, 2020 02:18
Emcapp Machinekit sim Docker file
FROM debian:buster
# build with: docker build -t mksim:buster .
SHELL [ "bash", "-c" ]
ENV TERM=dumb
ENV DEBIAN_FRONTEND=noninteractive
ENV DEBCONF_NONINTERACTIVE_SEEN=true
ENV LC_ALL=C.UTF-8
@the-snowwhite
the-snowwhite / emcmodule.cc
Last active October 30, 2020 17:15
emcmodule.cc diff
// This is a component of AXIS, a front-end for LinuxCNC
// Copyright 2004, 2005, 2006 Jeff Epler <jepler@unpythonic.net> and
// Chris Radek <chris@timeguy.com>
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation; either version 2 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
/********************************************************************
* Description: emctaskmain.cc
* Main program for EMC task level
*
* Derived from a work by Fred Proctor & Will Shackleford
*
* Author:
* License: GPL Version 2
* System: Linux
*
[Unit]
Description=Starts OX Machinekit configuration
After=syslog.target network.target
[Service]
Type=simple
ExecStart=/bin/sh /home/machinekit/start.sh
User=machinekit
[Install]
WantedBy=multi-user.target
#!/bin/bash
## Enable debug
sudo sh -c 'echo 1 > /proc/sys/fs/suid_dumpable'
export DEBUG=5
#/home/machinekit/SPI/set_tmc2130.sh 4
/home/machinekit/PYSPI/set_tmc2660.sh 4
/usr/bin/mklauncher /home/machinekit/Hm2-soc_FDM/Cramps/PY/OX
#!/bin/bash
# mod for Debian ( (Jessie)
#sudo sh -c \
# "echo 'deb http://deb.dovetail-automata.com jessie main' > \
# /etc/apt/sources.list.d/machinekit.list; \
# apt-get update ; \
# apt-get install dovetail-automata-keyring"
sudo apt-get update
sudo apt-get install -y build-essential gdb subversion dh-autoreconf libgl1-mesa-dev lynx pkg-config python-protobuf libprotobuf-dev protobuf-compiler libnotify-bin libczmq-dev python-zmq libzmq3-dev