Skip to content

Instantly share code, notes, and snippets.

@Mehdidadash
Last active June 17, 2023 13:52
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

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment