diff --git a/doc/connectivity/networking/qemu_setup.rst b/doc/connectivity/networking/qemu_setup.rst index 683ef0c1f13..e27ba72aa91 100644 --- a/doc/connectivity/networking/qemu_setup.rst +++ b/doc/connectivity/networking/qemu_setup.rst @@ -27,6 +27,7 @@ in a separate Git repository: .. code-block:: console + sudo apt install -y socat libpcap-dev git clone https://github.com/zephyrproject-rtos/net-tools cd net-tools make @@ -247,9 +248,8 @@ Terminal #1: .. code-block:: console - socat PTY,link=/tmp/slip.devMAIN UNIX-LISTEN:/tmp/slip.sockMAIN - $ZEPHYR_BASE/../net-tools/tunslip6 -t tapMAIN -T -s /tmp/slip.devMAIN \ - 2001:db8::1/64 + socat PTY,link=/tmp/slip.devMAIN UNIX-LISTEN:/tmp/slip.sockMAIN & + sudo $ZEPHYR_BASE/../net-tools/tunslip6 -t tapMAIN -T -s /tmp/slip.devMAIN 2001:db8::1/64 & # Now run Zephyr make -Cbuild run QEMU_INSTANCE=MAIN @@ -258,7 +258,6 @@ Terminal #2: .. code-block:: console - socat PTY,link=/tmp/slip.devOTHER UNIX-LISTEN:/tmp/slip.sockOTHER - $ZEPHYR_BASE/../net-tools/tunslip6 -t tapOTHER -T -s /tmp/slip.devOTHER \ - 2001:db8::1/64 + socat PTY,link=/tmp/slip.devOTHER UNIX-LISTEN:/tmp/slip.sockOTHER & + sudo $ZEPHYR_BASE/../net-tools/tunslip6 -t tapOTHER -T -s /tmp/slip.devOTHER 2001:db8::1/64 & make -Cbuild run QEMU_INSTANCE=OTHER