use UCI on ubuntu
- Some extra package are required:
sudo apt-get install cmake lua5.2 - The libubox library is required. It should to compiled from source. To do this, first you have to get the source from git:
git clone git://nbd.name/luci2/libubox.git libubox
cd libubox - Please follow the next steps to build libubox:
mkdir build
cd build
cmake ..
make ubox - Install libubox:
sudo mkdir -p /usr/local/include/libubox
sudo cp ../*.h /usr/local/include/libubox
sudo cp libubox.so /usr/local/lib
sudo ldconfig - Get UCI source from git:
git clone git://nbd.name/uci.git uci
cd uci - Please follow the next steps to build uci:
mkdir build
cd build
cmake ..
make uci cli - Install uci:
sudo mkdir -p /usr/local/include/uci
sudo cp ../uci.h ../uci_config.h /usr/local/include/uci
sudo cp ../uci_blob.h ../ucimap.h /usr/local/include/uci
sudo cp libuci.so /usr/local/lib
sudo cp uci /usr/local/bin
sudo ldconfig - Testing:
mkdir test
cat > test/test << EOF
> config 'test' 'abc'
> option 'test_var' 'value'
> EOF
uci -c `pwd`/test show test
Output:
test.abc=test
test.abc.test_var=value
uci -c `pwd`/test set test.abc.test_var=foobar
uci -c `pwd`/test commit test
uci -c `pwd`/test show test
Output:
test.abc=test
test.abc.test_var=foobar
相關推薦
use UCI on ubuntu
Some extra package are required:sudo apt-get install cmake lua5.2The libubox library is required. It should to compiled from source. To do this, first you
Using UCI on Ubuntu
Some extra package are required:sudo apt-get install cmake lua5.2The libubox library is required. It should to compiled from source. To do this, first you
systemtap installation and basic use on ubuntu 18.04
Basically, to use systemtap we need to install not only the systemtap itself but also linux-headers and linux-image-debug Ins
vnc viewer on Ubuntu
軟件 pan ubun .com display 比較 註意 viewer 客戶 我使用的是putty和SSL/SSH Vnc Viewer.因為剛入坑,也希望小白們能少走彎路,所以本貼寫得比較細。 先說說vnc server和 vnc viewer的區別:server
vnc server on Ubuntu
size man ini 關於 背景 min ane content src Virtual Network Computing(VNC)是進行遠程桌面控制的一個軟件。客戶端的鍵盤輸入和鼠標操作通過網絡傳輸到遠程服務器,控制服務器的操作 (只有背景,沒有菜單欄問題沒有
setup passphaseless ssh before installing hadoop on ubuntu
less pro chm 2.6 optional ocs single author -c This can refer to hadoop main page below for setuping passphaseless ssh: http://hadoop.apa
install r on ubuntu
Language ase example plot ubuntu http dpkg .org library install r-base on ubuntu: sudo apt-get install -y r-base download rstudio: https:
install chrome and chrome driver on ubuntu
upd sel tps .com selenium dateutil bin http pda sudo apt install python-minimal # python 2.7.xsudo apt install python-pip# https://www.ub
windows10 Bash on Ubuntu 安裝pygame
class amd post orm ins whl 以管理員身份運行 -cp int 在bash命名行下執行以下三個命令1.下載pip2.apt-get install python3-setuptools3.python3 setup.py install以管理員身份運
Install greenplum cluster on ubuntu 16.04
greenplum cluster ubuntu 規劃:1個msater, 2個segments環境:ubuntu 16.04Greenplum Version: 'postgres (Greenplum Database) 5.3.0 build 2155c5a-oss1、安裝sudo
build FRR on ubuntu
packet nts blog local set use all read ast https://github.com/FRRouting/frr/wiki/Building-FRR-on-Ubuntu-1404 Install required packages
Installing OpenCV 2.4.13 on Ubuntu 16.04
files import flann ons 2.0 class plugins enc enable Installing OpenCV 2.4.13 on Ubuntu 16.04 Sun, Oct 16, 2016Tags: #OpenCV #Ubuntu
nginx 反向代理 on ubuntu
con 代理 http 內容 available local cti default sites 安裝nginx 1 sudo apt-get install nginx 2 sudo service nginx start 如果沒有錯 繼續 修
Lex Example on Ubuntu 16.04
mat eat lex pin IT com 技術分享 save a-z Install Lex on Ubuntu 16.04. Lex is in flex and Yacc in bison. sudo apt install flex bison Create
Deploy Django on Ubuntu 16.4 LTS
ase scrip hang sql ftp mysql ron init lds Preface This note aims to simplify the route to deploy Django2.X<2 on Ubuntu 16 LTS server.
Upgrade gnugk from 4.7 to 4.9 on ubuntu 16.04.4
gnugk gnugk 升級 Upgrade gnugk from 4.7 to 4.9 on ubuntu 16.04.4(LTS) 背景 我之前使用了gnugk 來解決和h323 穿透NAT問題,可以參考這篇【歷史博客】 今天看到gnugk 已經更新到了4.9了,fix 了不少BUG ,而我目
build RTK on ubuntu 16.04
make uil test ubuntu insight for ubun too bsp RTK-1.4.0InsightToolkit-4.12.2 cmake -D ITK_DIR=/home/peng/projects/CT/InsightToolkit-4.12
Installing Hyperledger Fabric v1.1 on Ubuntu 16.04?—?Part I
enter eight ecif into repos terminal rac ould imageload There is an entire library of Blockchain APIs which you can select according
DBT-11211 when use AMM on OS whose memory > 4GB
eve app bug 安裝 red sga linu count get 數據庫安裝遇到的BUG 系統:rhel 7.3數據庫 :Oracle 12.2.0.1.0 APPLIES TO: Oracle Database Configuration Assistant
Change SSH Welcome Banner on Ubuntu
pitch activit baseline editor see log tle mes posit One of the easiest way to protect and secure SSH logins by displaying warming message