1.. _net-tools-systemd-unit-files: 2 3systemd unit files 4################## 5 6These will start the tap0 network interface for you so that you don't have to 7have loop-socat.sh and loop-slip-tap.sh open in other terminals when you run 8Zephyr in QEMU with networking. 9 10Installation 11************ 12 13The loop-socat creates a file which needs to be readable and writeable by the 14user who is running Zephyr in QEMU. Therefore you need to create a zephyr user 15before running these unit files. 16 17.. code-block:: console 18 19 $ sudo useradd -r zephyr 20 $ sudo usermod -aG zephyr $USER 21 $ cp *.service /usr/lib/systemd/system/ 22 $ sudo chown root:root /usr/lib/systemd/system/loop-s* 23 24Now edit the unit files to provide them with the locations of your net-tools 25scripts. Then start the services. 26 27.. code-block:: console 28 29 $ sudo systemctl daemon-reload 30 $ sudo systemctl enable loop-socat loop-slip-tap 31 $ sudo systemctl start loop-socat loop-slip-tap 32