-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstage2b.yaml
More file actions
47 lines (33 loc) · 1.92 KB
/
Copy pathstage2b.yaml
File metadata and controls
47 lines (33 loc) · 1.92 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
- hosts: all
remote_user: root
tasks:
# We are choosing that commit from NativeCAM because newer version
# didn't have the setup.py (and other issue?; it was being worked on
# to become a Debian package but not there yet?)
- name: "install NativeCAM"
shell: |
set -eux
if [ ! -e /etc/CNC-machine-setup/NativeCam_done ]; then
mkdir -p /etc/CNC-machine-setup/
apt-get install -y python-lxml
git clone https://github.com/FernV/NativeCAM.git ~/NativeCAM/
cd ~/NativeCAM/
git checkout -b local fd53a13bf6a6c7e1811f53a6d0a8ae0bb1b3e02f
python setup.py
date > /etc/CNC-machine-setup/NativeCam_done
fi
- name: "install standard utils and services"
shell: |
apt-get install -y rlwrap tcpdump strace git openntpd vim emacs aptitude lsof mlocate
- name: "update authorized_keys for root"
copy:
src: authorized_keys
dest: /root/.ssh/
- name: "change login screen"
local_action: shell localscripts/change-login-screen {{ inventory_hostname }}
# Start LinuxCNC with one of these commands (copy/paste) :
# for mill : (axis interface) linuxcnc configs/sim/axis/ncam_demo/mill.ini ; linuxcnc configs/sim/axis/ncam_demo/mill-mm.ini ;
# (gmoccapy interface) linuxcnc configs/sim/gmoccapy/ncam_demo/mill.ini ; linuxcnc configs/sim/gmoccapy/ncam_demo/mill-mm.ini ;
# for plasma : (axis interface) linuxcnc configs/sim/axis/ncam_demo/plasma-2d.ini ; linuxcnc configs/sim/axis/ncam_demo/plasma-2d-mm.ini ; linuxcnc configs/sim/axis/ncam_demo/plasma.ini ; linuxcnc configs/sim/axis/ncam_demo/plasma-mm.ini ;
# (gmoccapy interface) linuxcnc configs/sim/gmoccapy/ncam_demo/plasma-2d.ini ; linuxcnc configs/sim/gmoccapy/ncam_demo/plasma-2d-mm.ini ; linuxcnc configs/sim/gmoccapy/ncam_demo/plasma.ini ; linuxcnc configs/sim/gmoccapy/ncam_demo/plasma-mm.ini ;
# for lathe : (not supported yet) linuxcnc configs/sim/axis/ncam_demo/lathe.ini ;