tar xjf ethercat-1.5.2.tar.bz2 cd ethercat-1.5.2/ ./configure --enable-r8169 make all modules sudo make modules_install install sudo depmod sudo mkdir /etc/sysconfig/ sudo cp /opt/etherlab/etc/sysconfig/ethercat /etc/sysconfig/ethercat sudo ln -s /opt/etherlab/etc/init.d/ethercat /etc/init.d/ethercat echo 'MASTER0_DEVICE="10:78:D2:E5:01:83" \n DEVICE_MODULES="r8169"' | sudo tee /etc/default/ethercat sudo update-ethercat-config echo KERNEL==\"EtherCAT[0-9]*\", MODE=\"0664\" | sudo tee /etc/udev/rules.d/99-EtherCAT.rules sudo chmod +x /opt/etherlab/etc/init.d/ethercat echo /opt/etherlab/lib | sudo tee --append /etc/ld.so.conf cd && git clone https://github.com/sittner/linuxcnc-ethercat.git sudo touch /etc/apt/sources.list.d/linuxcnc-mds.list echo "deb http://repo.modusoft.de/linuxcnc/wheezy ./" | sudo tee /etc/apt/sources.list.d/linuxcnc-mds.list sudo apt-get update sudo apt-get install -y --force-yes etherlabmaster-dev cd linuxcnc-ethercat make sudo make install cd src sudo cp lcec_conf /usr/bin/