IT/System Digging

[ubuntu][openwrt] ubus 사용해보기

심량 2020. 8. 6. 13:15

ubuntu 20.04 에서 작성했습니다.


# sudo apt install liblua5.1-0-dev libjson-c-dev lua5.1 build-essential cmake python3-pip
# git clone git://git.openwrt.org/project/libubox.git
# git clone git://git.openwrt.org/project/ubus.git
# git clone git://git.openwrt.org/project/uci.git
# git clone git://git.openwrt.org/project/procd.git
# sudo ldconfig

# cd libubox; mkdir build; cd build; cmake ..; make; sudo make install; cd ../..
# cd ubus; mkdir build; cd build; cmake ..; make; sudo make install; cd ../..
# cd uci; mkdir build; cd build; cmake ..; make; sudo make install; cd ../..
# cd procd; mkdir build; cd build; cmake ..; make; sudo make install; cd ../..

# pip3 install ubus

# sudo ubusd &