{"batchcomplete":"","continue":{"lecontinue":"20230117112244|15","continue":"-||"},"query":{"logevents":[{"logid":25,"ns":0,"title":"Tips and tricks","pageid":25,"logpage":25,"params":{},"type":"create","action":"create","user":"Mike","timestamp":"2025-08-01T08:57:23Z","comment":"Created page with \"There are may tips for debugging yocto.   To build any recipy use  $bitbake <target name>  $bitbake    To fetch elements for a recipy  $ bitbake <your-image-or-recipe> --runall=fetch   To clean a recipy  $ bitbake <your-image-or-recipe> --runall=cleanall   To analyse the environment  $ bitbake -e | grep ^TARGET_ARCH   To fetch everything including cross compiler use  $ bitbake -c fetch world\""},{"logid":24,"ns":0,"title":"Block id","pageid":24,"logpage":24,"params":{},"type":"create","action":"create","user":"Mike","timestamp":"2024-02-09T17:04:20Z","comment":"Created page with \"get the block id<pre> # blkid /dev/sda1 </pre>change fstab to mount by uuid instead.  e.g.<pre> UUID=\"b8f0a58b-6dce-4d8a-89f0-d82bb2edcd01\" /nfs ext4 defaults 0 2 UUID=\"6af41e26-7634-4bb1-9ea0-902401b45375\" none swap defaults 0 0   </pre>\""},{"logid":23,"ns":0,"title":"Boot from m.2","pageid":23,"logpage":23,"params":{},"type":"create","action":"create","user":"Mike","timestamp":"2024-02-09T16:45:02Z","comment":"Created page with \"To boot from M.2. requires some changes.  transfer boot image to m.2. which can be done by restoring the boot image directly<pre> # dd if=bootimg of=/dev/nvme0 bs=10M status=progress </pre>However, this does not allow you to easily change the partition tables, and thus..  use fdisk to create the partition table, and mount it up as you want eg.<pre> Create the following partitions   / 100G /boot 1G /var 100G /home 100G swap 16G  using fdisk.  format each partition using m...\""},{"logid":22,"ns":0,"title":"Orangepi","pageid":22,"logpage":22,"params":{},"type":"create","action":"create","user":"Mike","timestamp":"2024-02-09T16:30:33Z","comment":"Created page with \"[[boot from m.2]]\""},{"logid":21,"ns":0,"title":"Disk images","pageid":21,"logpage":21,"params":{},"type":"create","action":"create","user":"Mike","timestamp":"2024-02-09T16:28:59Z","comment":"Created page with \"Mounting a disk image on linux<pre> #\u00a0losetup -P /dev/loop0 ./Orangepi5_1.1.8_debian_bullseye_server_linux5.10.160.img #\u00a0mkdir -p /mnt/sys1/boot # mount /dev/loop0p1\u00a0 /mnt/sys1/ #\u00a0mount /dev/loop0p2\u00a0 /mnt/sys1/boot </pre>To undo the above<pre> # umount /mnt/sys1/boot /mnt/sys1 # losetup -d /dev/looop </pre>\""},{"logid":20,"ns":0,"title":"Email","pageid":20,"logpage":20,"params":{},"type":"create","action":"create","user":"Mike","timestamp":"2024-01-29T09:06:34Z","comment":"Created page with \"# install postfix # install dovecot # enable sasl for dovecot/postfix integration. # install postfwd ## https://postfwd.org/quick.html\""},{"logid":19,"ns":0,"title":"Iptables-firewalls","pageid":19,"logpage":19,"params":{},"type":"create","action":"create","user":"Mike","timestamp":"2023-03-23T10:00:04Z","comment":"Created page with \"## allow all traffic on local interface iptables -A INPUT -i lo -j ACCEPT iptables -A OUTPUT -o lo -j ACCEPT  ## allow related traffic in and out iptables -A INPUT -m conntrack --ctstate ESTABLISHED,RELATED -j ACCEPT iptables -A OUTPUT -m conntrack --ctstate ESTABLISHED -j ACCEPT  ## drop invalid packages iptables -A INPUT -m conntrack --ctstate INVALID -j DROP  ## allow ssh access iptables -A INPUT -p tcp --dport 22 -m conntrack --ctstate NEW,ESTABLISHED -j ACCEPT iptab...\""},{"logid":18,"ns":0,"title":"Wiki tricks","pageid":18,"logpage":18,"params":{},"type":"create","action":"create","user":"Mike","timestamp":"2023-02-02T16:21:03Z","comment":"Created page with \"{{#mermaid:gantt  dateFormat  YYYY-MM-DD  title Adding GANTT diagram functionality to mermaid  section A section  Completed task            :done,    des1, 2014-01-06,2014-01-08  Active task               :active,  des2, 2014-01-09, 3d  Future task               :         des3, after des2, 5d  Future task2              :         des4, after des3, 5d  section Critical tasks  Completed task in the critical line :crit, done, 2014-01-06,24h  Implement parser and jison...\""},{"logid":17,"ns":0,"title":"Systemd","pageid":17,"logpage":17,"params":{},"type":"create","action":"create","user":"Mike","timestamp":"2023-01-26T14:41:08Z","comment":"Created page with \"https://docs.fedoraproject.org/en-US/fedora-coreos/tutorial-services/\""},{"logid":16,"ns":0,"title":"Settings for yocto","pageid":16,"logpage":16,"params":{},"type":"create","action":"create","user":"Mike","timestamp":"2023-01-24T13:24:51Z","comment":"Created page with \"=== Disable Systemd for a app === SYSTEMD_AUTO_ENABLE_${PN} = \"disable\"   OPTS=\"--root=$D\"  systemctl $OPTS mask modutils.service  Note Disable does not work in yocto  === Enable app in systemd === OPTS=\"--root=$D\"  systemctl $OPTS enable modutils.service\""}]}}