基于 Debian 12 Bookworm PREEMPT-RT 的raspi4b配置linuxcnc和ethercat

本文详细介绍了在树梅派Ubuntu系统上设置国内源,配置字体、拼音输入法,安装OpenOffice办公套件,VNC远程桌面,以及一步步配置EtherCAT的过程,包括网络管理器的设置和硬件设备的安装与权限管理。
摘要由CSDN通过智能技术生成

目录

国内源

树梅派源

字体

字体框架

拼音输入法配置显示wifi图标

安装openoffice办公套件

vnc远程桌面

一步步配置ethercat

设置自动登陆

文件位置备忘

 。。。。。。。。。。正文开始。。。。。。。。。。。。。

国内源

sudo nano /etc/apt/sources.list

#deb http://deb.debian.org/debian bookworm main contrib non-free non-free-firmware
#deb http://deb.debian.org/debian bookworm-updates main contrib non-free non-free-firmware
#deb http://deb.debian.org/debian bookworm-proposed-updates main contrib non-free non-free-firmware
#deb http://deb.debian.org/debian-security bookworm-security main contrib non-free non-free-firmware
#deb http://deb.debian.org/debian bookworm-backports main contrib non-free non-free-firmware
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

树梅派源

sudo nano /etc/apt/sources.list.d/raspi.list

deb http://mirrors.tuna.tsinghua.edu.cn/raspberrypi/ bookworm main ui

字体

sudo apt-get install fonts-wqy-zenhei

字体框架

sudo apt install fcitx

拼音输入法

sudo apt-get  install fcitx-sunpinyin

配置显示wifi图标

sudo nmtui (booworm networkManaget)

安装NetworkManager:

sudo apt-get update
sudo apt-get install network-manager network-manager-gnome

安装完成后,你可以使用以下命令启用NetworkManager服务:

sudo systemctl enable NetworkManager.service
sudo systemctl start NetworkManager.service
sudo systemctl restart NetworkManager

安装openoffice办公套件

sudo apt-get install libreoffice
sudo apt-get install libreoffice-l10n-zh-cn libreoffice-help-zh-cn

vnc远程桌面

sudo apt-get install x11vnc

sudo apt upgrade

 sudo apt update

一步步配置ethercat

https://forum.linuxcnc.org/ethercat/45336-ethercat-installation-from-repositories-how-to-step-by-step

装3样
sudo apt install ethercat-master libethercat-dev  linuxcnc-ethercat
另开terminal用ip a显示ip的mac
配置文件
sudo geany /etc/ethercat.conf
MASTER0_DEVICE="xx:aa:yy:zz:bb:cc"
DEVICE_MODULES="generic"

配置服务   

sudo systemctl enable ethercat.service
sudo systemctl start ethercat.service
sudo systemctl status ethercat.service
sudo chmod 666 /dev/EtherCAT0

 显示从站

ethercat slaves

安装hal-cia402

cd ~/dev
git clone https://github.com/dbraun1981/hal-cia402
cd hal-cia402
sudo halcompile --install cia402.comp

 配置开机网口权限

sudo geany /etc/udev/rules.d/99-ethercat.rules

Add the following:

KERNEL=="EtherCAT[0-9]", MODE="0777"
sudo udevadm control --reload-rules

设置自动登陆
参考 https://www.cnblogs.com/lwlnice/p/18295606
sudo geany /etc/lightdm/lightdm.conf
autologin-user=cnc
autologin-user-timeout=0
autologin-in-background=true

重启系统

文件位置备忘

 sudo geany /etc/ethercat.conf

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值