Skip to content

Instantly share code, notes, and snippets.

View wooyey's full-sized avatar

Łukasz Kwiek wooyey

  • Byte Motion
  • Poland
View GitHub Profile
@wooyey
wooyey / lxc.md
Last active March 4, 2024 17:09
LXC

Troubleshooting

Problem with Apparmor

Errors on host like:

mar 04 15:17:01 xxx audit[1913824]: AVC apparmor="DENIED" operation="file_lock" profile="lxc-logs_</var/lib/lxc>" pid=1913824 comm="(l-remote)" family="unix" sock_type="dgram" protocol=0 requested_mask="send"
mar 04 15:17:01 xxx audit[1913824]: AVC apparmor="DENIED" operation="file_lock" profile="lxc-logs_</var/lib/lxc>" pid=1913824 comm="(l-remote)" family="unix" sock_type="dgram" protocol=0 requested_mask="send"
@wooyey
wooyey / codemeter.md
Last active August 13, 2023 12:02
Code Meter installation
wget https://ftp.commonvisionblox.com/webdavs/forum/setups/cvb/linux-x86_64/cvb-14.00.006-ubu2004-x86_64.zip
unzip cvb-14.00.006-ubu2004-x86_64.zip
sudo apt install libxcb-icccm4 libxcb-image0 libxcb-keysyms1 libxcb-randr0 libxcb-render-util0 libxcb-render0 libxcb-shape0 libxcb-xinerama0 libxcb-xkb1 libxkbcommon-x11-0 libxkbcommon0 libxcb-util1
sudo dpkg -i codemeter_7.21.4611.501_amd64.deb
DllNotFoundException: CVBLib assembly:<unknown assembly> type:<unknown type> member:(null)
  at (wrapper managed-to-native) Ocellus.Gigecam.Cvb.CVBLibWrapper.GetDevices(Ocellus.Gigecam.Cvb.DiscoveryInformation[]&,int&)
@wooyey
wooyey / asus-c2500.md
Created March 10, 2023 10:44
ASUS USB-C2500 on Linux

Issue with half duplex on ASUS USB-C2500

Problem well(?) known with Realtek chip - ASUS card uses cdc_ether driver instead of r8152.

Was figthing with but at the end use blacklist /etc/modprobe.d/blacklist-asus-2500.conf:

blacklist cdc_ncm
blacklist cdc_ether
blacklist r8153_ecm
blacklist cdc_wdm
@wooyey
wooyey / librealsesne.md
Last active December 14, 2022 14:05
Lib RealSense Compilation

CUDA compilation

Ubuntu 18.04

apt-get update \
apt-get install git libssl-dev libusb-1.0-0-dev libudev-dev pkg-config libgtk-3-dev \
  libglfw3-dev libgl1-mesa-dev libglu1-mesa-dev \
  wget nvidia-cuda-dev nvidia-cuda-toolkit
wget https://github.com/Kitware/CMake/releases/download/v3.25.1/cmake-3.25.1-linux-x86_64.tar.gz
tar zxvf cmake-3.25.1-linux-x86_64.tar.gz
@wooyey
wooyey / 3d_setup.adoc
Created December 11, 2022 17:01
3D Printer

eTPU

  • bild plate temp: 40

  • adhesion type: skirt

  • retraction speed: 25

  • retraction distance: 1

  • Infill density: 20

  • Infill pattern: concentric

  • Fan speed: 60%

  • Wall thickness: 2

@wooyey
wooyey / ai_knowledge_base.md
Last active September 6, 2022 15:07
AI knowledge
@wooyey
wooyey / partition_resize.md
Last active April 15, 2022 19:44
Linux partition resize
qemu-img resize image.qcow2 +20G

New to delete and create both: extended and lvm partition where new LVM starts on same sector as old one:

fdisk /dev/sda
@wooyey
wooyey / tcpdump.md
Last active November 30, 2021 12:44
Tcpdump magic

PCAP gathering

To get pcap files for IP <ip> in <seconds> chunks with limit of maximum <files_number> files to not eat all disk space:

sudo tcpdump -W <files_number> -Z root -n -s0 -G <seconds> -i <interface> -w <some_name>.%Y-%m-%d.%H:%M:%S.pcap host <ip>
@wooyey
wooyey / linux_kernel.md
Last active November 22, 2021 09:23
Linux kernel howtos

Howtos for Linux kernel

Make deb package, compile

Needed packages for PopOS (Ubuntu?):

sudo apt-get install build-essential bc kmod cpio flex libncurses5-dev libelf-dev libssl-dev bison dwarves zstd
@wooyey
wooyey / onepanel.md
Last active March 22, 2022 08:30
One Panel

OnePanel and Kuberenets

Minikube

memory cgroup issue (not needed?)

GRUB_CMDLINE_LINUX="cgroup_enable=memory swapaccount=1"
sudo update-grub