目录
设置自动登陆
。。。。。。。。。。正文开始。。。。。。。。。。。。。
国内源
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
装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