主站安装
https://forum.linuxcnc.org/ether ... to-step-by-stepURI:
#查通信状态
ethercat slaves
#查驱动器 vid pid
sudo ethercat cstruct
这里开始更新国内数据源
#打开源文件
sudo nano /etc/apt/sources.list
# 默认注释了源码镜像以提高 apt update 速度,如有需要可自行取消注释
deb https://mirrors.tuna.tsinghua.edu.cn/debian/ bookworm main contrib non-free non-free-firmware
# deb-src https://mirrors.tuna.tsinghua.edu.cn/debian/ bookworm main contrib non-free non-free-firmware
deb https://mirrors.tuna.tsinghua.edu.cn/debian/ bookworm-updates main contrib non-free non-free-firmware
# deb-src https://mirrors.tuna.tsinghua.edu.cn/debian/ bookworm-updates main contrib non-free non-free-firmware
deb https://mirrors.tuna.tsinghua.edu.cn/debian/ bookworm-backports main contrib non-free non-free-firmware
# deb-src https://mirrors.tuna.tsinghua.edu.cn/debian/ bookworm-backports main contrib non-free non-free-firmware
deb https://mirrors.tuna.tsinghua.edu.cn/debian-security bookworm-security main contrib non-free non-free-firmware
# # deb-src https://mirrors.tuna.tsinghua.edu.cn/debian-security bookworm-security main contrib non-free non-free-firmware
#deb https://security.debian.org/debian-security bookworm-security main contrib non-free non-free-firmware
# deb-src https://security.debian.org/debian-security bookworm-security main contrib non-free non-free-firmware
sudo apt update
sudo apt upgrade
#下面不要安装(方法过期)
(sudo apt install linuxcnc-uspace linuxcnc-uspace-dev
sudo apt install geany grub-customizer
sudo geany /etc/lightdm/lightdm.conf
修改格式
autologin-user=matt 用户名
autologin-user-timeout=0
#######
注意 如果安装好linuxcnc 打开gmoccapy界面字体错乱问题 安装字体 sudo apt-get install ttf-wqy-zenhei
安装git sudo apt-get install git
隔离cpu quiet isolcpus=2,3
安装软件 sudo dpkg - i +软件名
一键生成xml lcec_configgen > xml
查看内核版本 uname - r
查看CPU lscpu
查看并口 lspci - v
更新时间 sudo date -s “2025-12-30 15:31:00” sudo hwclock -w
sudo date -s "2026-06-04"
sudo date -s "2026-06-04 13:28:00"
|