I thought I could set myself up a thread which I could use as a central repository for my current setup(s) for my LinuxCNC setup.
This also allows me to setup my LinuxCNC setup quickly if I do a fresh start in a short space of time. I've posted some of my settings on a few threads and I do a search for those when I set up from a clean slate to start again.
These settings may not work for you! Then again you may learn something like I have following all the countless installs of LinuxCNC via iso / buildbot / RIP installs on Debian Buster, Bullseye and MX21 etc.
My current setup is: Debian Buster LinuxCNC 2.8.2 installed via iso on usb stick.
I have:
* list ~5x5 home built plasma running on 50x50 rails, nema23 4.2A all round with Mod1 R&P with a 3:1 gear driven reducer on X, Y & Y1 axis, Z is via a 1204 ball screw, complete with attached air scribe, laser crosshair and magnetic breakaway that allows for install of a laser diode (not used it yet), scanning camera (not used it yet), and sharpie holder. Also a 4th axis rotary tube (CHS/SHS) with a 100mm 4 jaw self centring chuck.
* list Denford Orac Lathe, running with 750W servo motor spindle (2:1 reduction drive) and spindle shaft encoder (1000ppr) using 40 position mutifix quick change tool post. X and Z are 0.001mm/step.
* list Emco / Maximat FB2 3 axis mill with stepper converted rotary table, converted to cnc using nema 34 stepper motors and HTD belt reduction for 0.001mm/step per X,Y and Z axis.
* list 3 axis router, openbuilds Cbeam-XL, with makita rt0700c router, and SuperPID speed controller, with laser diode, and drag-knife attachment
Non Linuxcnc:
* list Creality CR-10S 3D printer
* list Atomstack A10/S10/X7 with M50 laser and Ortur rotary axis
LinuxCNC uses a Mesa 7i76E + THCAD5 for the Plasma and a Mesa 7i92H + 7i76 mill router and lathe (hence 2 x static ports setup in the interfaces file)
I have 2 x Mesa ethernet devices, each on its own ethernet port / network adapter hence they are each setup with their own static IP address.
I share the 2 x Mesa ethernet devices between all of the machines, basically the plasma, mill and router use the 7i76E which drives 5x stepper drives, and the 7i92H+7i76 is used for the lathe driving 2 stepper drives, and a servo for the spindle. The stepper drives have plugs & leads so I swap between machines from a central control station its a hobby setup and I don't use more than one machine at any one time.
if required, download linuxcnc.iso:
once downloaded copy across to usb disk
find which drive is the usb stick using:
navigate to the downloaded iso and run:
Code:
sudo dd if=linuxcnc-2.8.2-buster.iso of=/dev/sdc bs=1024k status=progress
Once Debian Buster and LinuxCNC is installed via the iso, run:
Code:
sudo apt upgrade -y
Code:
sudo apt install -y geany grub-customizer git ethtool python3-opengl gnome-icon-theme curl dpkg-dev xfce4-power-manager
navigate to: /etc/lightdm/ and open lightdm.conf
alternative:
Code:
sudo geany /etc/lightdm/lightdm.conf
scroll down to line ~ 126 and remove the # + add your user name from:
#autologin-user=
#autologin-user-timeout=0
I have intel network cards, hence the following helps to sort latency issues. I found that ethtool works and the other method did not work for me. plus I added a 3 sec delay to the process or it did not have effect. It works for me, your mileage may vary....
navigate to: /etc/network/ and open interfaces
alternative:
Code:
sudo geany /etc/network/interfaces
edit to YOUR needs, below is mine, 99.9% certain this WILL NOT work for you, as your ethernet adapters may have different names and my mesa cards are on different ports + they have custom IP addresses set via the mesa firmware tool.
run the following to list your network adapters names:
Code:
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
source /etc/network/interfaces.d/*
# The loopback network interface
auto lo
iface lo inet loopback
auto enp2s0
iface enp2s0 inet static
address 10.10.10.1/24
up sleep 3
post-up ethtool -C enp2s0 rx-usecs 0
auto enp3s0
iface enp3s0 inet static
address 172.16.0.1/24
up sleep 3
post-up ethtool -C enp3s0 rx-usecs 0