2013-06-21

Using UCI on Ubuntu

The following HOWTO introduces the building of UCI (Unified Configuration Interface) on Ubuntu.

  1. Some extra package are required:

    sudo apt-get install cmake lua5.2

  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


  3. Please follow the next steps to build libubox:

    mkdir build
    cd build
    cmake ..
    make ubox


  4. 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


  5. Get UCI source from git:

    git clone git://nbd.name/uci.git uci
    cd uci


  6. Please follow the next steps to build uci:

    mkdir build
    cd build
    cmake ..
    make uci cli


  7. 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


  8. 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






32 comments:

waveacme said...

Thanks, it's helpful.

Anonymous said...

Thanks !

Anonymous said...

Thanks a lot

Anonymous said...

bash command should be
cat > test/test << EOF
config 'test' 'abc'
option 'test_var' 'value'
EOF

Unknown said...

thank you , it's very useful ! test with ubuntu 14.04 LTS

Unknown said...

Thanks. It is very good.

you may need sudo apt-get install libjson0 libjson0-dev in Ubuntu 16.04

viswanath said...

AWS Training in Bangalore - Live Online & Classroom
myTectra Amazon Web Services (AWS) certification training helps you to gain real time hands on experience on AWS. myTectra offers AWS training in Bangalore using classroom and AWS Online Training globally. AWS Training at myTectra delivered by the experienced professional who has atleast 4 years of relavent AWS experince and overall 8-15 years of IT experience. myTectra Offers AWS Training since 2013 and retained the positions of Top AWS Training Company in Bangalore and India.


IOT Training in Bangalore - Live Online & Classroom
IOT Training course observes iot as the platform for networking of different devices on the internet and their inter related communication. Reading data through the sensors and processing it with applications sitting in the cloud and thereafter passing the processed data to generate different kind of output is the motive of the complete curricula. Students are made to understand the type of input devices and communications among the devices in a wireless media.

asha said...

Nice Blog..
devops course in bangalore

best devops training in bangalore

Devops certification training in bangalore

devops training in bangalore

devops training institute in bangalore

asha said...

Thanks for sharing this information
iot courses in Bangalore

internet of things training course in Bangalore

internet of things course in Bangalore

Dharani M said...

Nice blog
sas training in Marathahalli

sas training institutes in Marathahalli

mounika said...

Nice post..

aws course in BTM

aws training center in BTM

cloud computing courses in BTM

amazon web services training institutes in BTM

best cloud computing institute in BTM

cloud computing training in btm

aws training in btm

aws certification in btm

best aws training in btm



aws certification training in btm

kayal said...

Thanks for sharing this post
aws course in Bangalore

aws training center in Bangalore

cloud computing courses in Bangalore

amazon web services training institutes in Bangalore

best cloud computing institute in Bangalore

cloud computing training in Bangalore

aws training in Bangalore

aws certification in Bangalore

best aws training in Bangalore

aws certification training in Bangalore

uma said...

this blog given great information to me


aws course in Bangalore

aws training center in Bangalore

cloud computing courses in Bangalore

amazon web services training institutes in Bangalore

best cloud computing institute in Bangalore

cloud computing training in Bangalore

aws training in Bangalore

aws certification in Bangalore

best aws training in Bangalore

aws certification training in Bangalore

chandana said...

Great article, thanks for sharing.

tableau course in Marathahalli

best tableau training in Marathahalli

tableau training in Marathahalli

tableau training in Marathahalli

tableau certification in Marathahalli

tableau training institutes in Marathahalli

Riyas Fathin said...

Hey, would you mind if I share your blog with my twitter group? There’s a lot of folks that I think would enjoy your content. Please let me know. Thank you.
AWS Training in Chennai | Best AWS Training in Chennai | AWS Training Course in Chennai
Data Science Training in Chennai | Best Data Science Training in Chennai | Data Science Course in Chennai
No.1 Python Training in Chennai | Best Python Training in Chennai | Python Course in Chennai
RPA Course Training in Chennai | Best RPA Training in Chennai
No.1 RPA Training in Chennai | Best RPA Training in Chennai | RPA Course in Chennai
No.1 Digital Marketing Training in Chennai | Best Digital Marketing Training in Chennai

Rathinam said...


I appreciate your great efforts and This blog is very unique. Your written style is a very attractive and good explanation. Keep it up...
Excel Training in Chennai
Advanced Excel Training in Chennai
Tableau Training in Chennai
Pega Training in Chennai
Oracle DBA Training in Chennai
Unix Training in Chennai
Power BI Training in Chennai
Oracle Training in Chennai
Excel Training in Chennai
Advanced Excel Training in Chennai

pavithra dass said...

All are saying the same thing, But it's a truth only. The post you have written is full of nice info. Keep on sharing!!
Angularjs Training in Chennai
Angularjs course in Chennai
Devops Training in Chennai
Digital Marketing Course in Chennai
Selenium Training in Chennai
RPA Training in Chennai
SEO Training in Chennai
AngularJS Training in Velachery

sheela rajesh said...

This blog is full of innovative ideas and i really like your informations.please add more details in future.
Python Training in Chennai
Python course in Chennai
Big data training in chennai
JAVA Training in Chennai
Selenium Training in Chennai
Python Training in Chennai
Python Course in Chennai

jayapriya said...

Hi, Great.. Tutorial is just awesome..It is really helpful for a newbie like me.. I am a regular follower of your blog. Really very informative post you shared here. Kindly keep blogging.
Salesforce online training
Hadoop online training

pavithra dass said...

Great post and informative blog.it was awesome to read, thanks for sharing this great content to my vision.
Good discussion.
German Classes in Chennai
German Language Course in Chennai
german classes in bangalore
german language course in bangalore
german classes in coimbatore
german language course in coimbatore
german classes in madurai
german language course in hyderabad

sangeeth said...

Very nice post and thanks for it .I like this blog and really good content.
spanish classes in chennai
spanish language classes in chennai
Data Analytics Courses in Chennai
IELTS Training in Chennai
Japanese Language Course in Chennai
Spoken English in Chennai
TOEFL Training in Chennai
content writing course in chennai
Spoken English Classes in Tambaram
Spoken English Classes in Anna Nagar

mary Brown said...

Security testing is must. Everybody wants security at every level of his working. as explained above failures are happened but if we test time to time then it will improve. So it depend on us how much we are serious about this.
A Unified QoS and Security Provisioning Framework for Wiretap Cognitive Radio Networks A Statistical Queueing Analysis Approach Project For CSE
Determining the Optimal Random Padding Size for Rabin Crypto systems Project For CSE
Development and Analysis of Deterministic Privacy Preserving Policies Using Non Stochastic Information Theory Project For CSE
Embedding Covert Information in Broadcast Communications Project For CSE
JCS Net Joint Classification and Super Resolution Network for Small scale Pedestrian Detection in Surveillance Images Project For CSE

Unknown said...

Thank you so much for writing this tutorial! It helped me with my job

Chris Hemsworth said...

I have been reading for the past two days about your blogs and topics, still on fetching! Wondering about your words on each line was massively effective. Techno-based information has been fetched in each of your topics. Sure it will enhance and fill the queries of the public needs. Feeling so glad about your article. Thanks…!
selenium training in chennai
selenium online courses best selenium online training
selenium testing training
selenium classes

zuan said...

I like the helpful info you provide in your articles. I’ll bookmark your weblog and check again here regularly. I am quite sure I will learn much new stuff right here! Good luck for the next!
Web Designing Training Institute in Chennai | web design training class in chennai | web designing course in chennai with placement | Web Designing and Development Course in Chennai | Web Designer Training Course in Chennai
Mobile Application Development Courses in chennai
Data Science Training in Chennai | Data Science courses in Chennai
Professional packers and movers in chennai | PDY Packers | Household Goods Shifting
Web Designing Training Institute in Chennai | Web Designing courses in Chennai
Google ads services | Google Ads Management agency
Web Designing Course in Chennai | Web Designing Training in Chennai

shreekavi said...



Get inspired by your blog. Keep doing like this....
Ethical Hacking Course in Chennai
Ethical hacking course in bangalore
Ethical hacking course in coimbatore
Hacking course in bangalore
Ethical hacking in bangalore
Ethical hacking training in bangalore
Ethical Hacking institute in Bangalore
Ethical hacking Training institute in bangalore
Tally Course in Bangalore
German Classes in Bangalore

Anonymous said...

Great efforts put to find the list of articles that are very useful to know. I’m thoroughly enjoying your blog. And Good comments create relations. You’re doing great work. Keep it up.

Magento Development Training Course in Chennai Zuan Education

Selenium Training Course in Chennai Zuan Education

sindhuvarun said...

I am inspired to read this blog. keep sharing more informative blogs.
Data Science Course in Chennai
Data Science Courses in Bangalore
Data Science Training in Bangalore
Best Data Science Courses in Bangalore
Data Science Institute in Bangalore
Data Science Training Institutes in Bangalore
Data Science Training in BTM
Data Science Training in Marathahalli
DOT NET Training in Bangalore
PHP Training in Bangalore

sureshshetty said...

7 tips to start a career in digital marketing

“Digital marketing is the marketing of product or service using digital technologies, mainly on the Internet, but also including mobile phones, display advertising, and any other digital medium”. This is the definition that you would get when you search for the term “Digital marketing” in google. Let’s give out a simpler explanation by saying, “the form of marketing, using the internet and technologies like phones, computer etc”.

we have offered to the advanced syllabus course digital marketing for available join now

more details click the link now

[url]https://www.webdschool.com/digital-marketing-course-in-chennai.html[/url]

sureshshetty said...

Web designing trends in 2020

When we look into the trends, everything which is ruling today’s world was once a start up and slowly begun getting into. But Now they have literally transformed our lives on a tremendous note. To name a few, Facebook, WhatsApp, Twitter can be a promising proof for such a transformation and have a true impact on the digital world.

we have offered to the advanced syllabus course web design and development for available join now

more details click the link now

[url]https://www.webdschool.com/web-development-course-in-chennai.html[/url]

Jack sparrow said...



Whatever we gathered information from the blogs, we should implement that in practically then only we can understand that exact thing clearly, but it’s no need to do it, because you have explained the concepts very well. It was crystal clear.i also want to inform you the salesforce training . thankyou . keep sharing..

Gowtham said...


Such a nice article thanks for sharing this with us. Really so impressible and interesting post. You’re doing a great job Man, Keep it up.
Excel Training in Chennai
Excel Course in Chennai
Tableau Training in Chennai
Linux Training in Chennai
Oracle Training in Chennai
Advanced Excel Training in Chennai
Graphic Design Courses in Chennai
Oracle DBA Training in Chennai
Pega Training in Chennai
corporate training in chennai
Power BI Training in Chennai

Post a Comment

 
Design by Free WordPress Themes | Bloggerized by Lasantha - Premium Blogger Themes | Top WordPress Themes