Skip to content

Instantly share code, notes, and snippets.

@Mehdidadash
Last active October 5, 2024 09:21
Show Gist options
  • Save Mehdidadash/c675bdee1117de9658800a1773f99918 to your computer and use it in GitHub Desktop.
Save Mehdidadash/c675bdee1117de9658800a1773f99918 to your computer and use it in GitHub Desktop.
as i had so many problems installing bullseye+ethercat+linuxcnc 2.9premptrt , i made this for my own future notice and a guide for others.

as i had so many problems installing bullseye+ethercat+linuxcnc 2.9premptrt , i made this for my own future notice and a guide for others. i used debian buster to download and make bootable flash. downloaded bullseye iso file from here , cdimage
and using this guide, preparing files for usb memory stick booting
find flash drive name using lsblk
in terminal :
sudo apt install lsblk && lsblk
copy iso to flash and sync

cp debian.iso /dev/sdX
sync

use this to install bullseye.
after install and boot, use this codes: if your wifi dongles chipsset is rtl8188ftv use this steps:

cd /home/mehdi && mkdir dev&& cd dev&& git clone https://github.com/kelebek333/rtl8188fu && sudo apt-get install build-essential git dkms linux-headers-$(uname -r) && sudo dkms install ./rtl8188fu && sudo cp ./rtl8188fu/firmware/rtl8188fufw.bin /lib/firmware/rtlwifi/ && sudo mkdir -p /etc/modprobe.d/ && sudo touch /etc/modprobe.d/rtl8188fu.conf && echo "options rtl8188fu rtw_power_mgnt=0 rtw_enusbss=0" | sudo tee /etc/modprobe.d/rtl8188fu.conf && sudo mkdir -p /etc/NetworkManager/conf.d/ && sudo touch /etc/NetworkManager/conf.d/disable-random-mac.conf && echo -e "[device]\nwifi.scan-rand-mac-address=no" | sudo tee /etc/NetworkManager/conf.d/disable-random-mac.conf

then if it does not work after reboot :

modinfo rtl8188fu && echo "options rtl8188fu rtw_ips_mode=0" | sudo tee /etc/modprobe.d/rtl8188fu.conf && sudo modprobe -rv rtl8188fu && sudo modprobe -v rtl8188fu

if you have problem on updating or installing from deb.debian

cp /etc/resolv.conf /etc/resolv.conf.orig
printf '%s\n' 'nameserver 1.1.1.1' 'nameserver 1.0.0.1' > /etc/resolv.conf
`ping -c 4 deb.debian.org; printf 'Return code: %s\n' "$?"

to solve this forever install

sudo apt install resolvconf

and for [wireguard] (https://www.wireguard.com/install/) using this in terminal

sudo apt install wireguard buy wg account conf from this seller use sudo wg-quick up /home/mehdi/Downloads/mhddsh.conf add bluetooth https://gist.github.com/DivanX10/7c6ca3f325dfd853b38c04da9dce28a6#file-usb-bluetooth-easy-idea-debian-11-6

installing ax99100 pcie card driver download drivers from asix AX99100 make it and

sudo cp parport_pc.ko /lib/modules/$(uname -r)/kernel/drivers/
echo 'parport_pc' | sudo tee -a /etc/modules
sudo depmod
sudo gedit /etc/rc.local

copy past this in there

#!/bin/bash
sudo rmmod lp
sudo rmmod parport_pc
sudo sh -c "echo 1 > /sys/bus/pci/devices/0000\:02\:00.2/enable"
sudo insmod /lib/modules/$(uname -r)/kernel/drivers/parport_pc.ko io=0x3010 irq=17
sudo modprobe parport_pc io=0x3010 irq=17
exit 0

in any case if you encounter error after upgrading kernel , use this

sudo apt remove ethercat-dkms libethercat libethercat-dev ethercat-master
sudo apt install -y linux-headers-rt-amd64
sudo apt install ethercat-dkms libethercat libethercat-dev ethercat-master
sudo systemctl enable ethercat.service
sudo systemctl start ethercat.service
sudo systemctl status ethercat.service
sudo chmod 666 /dev/EtherCAT0
sudo apt install linuxcnc-ethercat
sudo geany /etc/udev/rules.d/99-ethercat.rules

and paste this in 99-ethercat.rules : KERNEL=="EtherCAT[0-9]", MODE="0777" then this code: sudo udevadm control --reload-rules

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment