Giter Site home page Giter Site logo

caleee / uci_for_linux Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 2.45 MB

OpenWrt UCI (Unified Configuration Interface) Ubuntu_x86 编译打包,非debian系的发行版用脚本安装。

License: GNU Affero General Public License v3.0

Makefile 26.70% Shell 15.75% C 50.56% CMake 5.97% Lua 0.32% Perl 0.58% TypeScript 0.12%

uci_for_linux's Introduction

deb包安装

适用于debian系Linux x86发行版;如:Ubuntu

建立包目录

mkdir -p ~/package/mosdns && cd ~/package/mosdns

获取最新 deb 包

直连 github 获取

curl -s https://api.github.com/repos/caleee/uci_for_linux/releases/latest | grep -o "https://github.com/caleee/uci_for_linux/releases/download/.*/uci-linux_.*_amd64.deb" | xargs curl -LO

代理 github 链接获取(国内网络首选)

curl -s https://api.github.com/repos/caleee/uci_for_linux/releases/latest | grep -o "https://github.com/caleee/uci_for_linux/releases/download/.*/uci-linux_.*_amd64.deb" | sed 's#//#//gh-proxy.com/https://#' | xargs curl -LO

安装

注意修改

sudo dpkg -i uci-linux_<version>_amd64.deb

安装验证

uci get test.config.success
#返回 yes

卸载

sudo apt remove -y uci-linux

脚本安装

适用于debian系Linux x86发行版;可能适用其他 x86 架构下的Linux发行版(未验证)

ps:脚本在包里,暂未作一键链接脚本安装

建立包目录

mkdir -p ~/package/mosdns && cd ~/package/mosdns

获取最新 gz 包

直连 github 获取

curl -s https://api.github.com/repos/caleee/uci_for_linux/releases/latest | grep -o "https://github.com/caleee/uci_for_linux/releases/download/.*/uci-linux_.*.tar.gz" | xargs curl -LO

代理 github 链接获取(国内网络首选)

curl -s https://api.github.com/repos/caleee/uci_for_linux/releases/latest | grep -o "https://github.com/caleee/uci_for_linux/releases/download/.*/uci-linux_.*.tar.gz" | sed 's#//#//gh-proxy.com/https://#' | xargs curl -LO

安装

注意修改

# 解压
tar -xzvf uci-linux_.<version>.tar.gz && cd uci-linux_.<version>

# 赋权
chmod +x setup.sh

# 执行 install 参数
sudo ./setup.sh install

# 更新共享库缓存
sudo ldconfig

安装验证

uci get test.config.success
#返回 yes

卸载

# 执行 remove 参数
sudo ./setup.sh remove

安装清单

uci_install_manifest

/usr/include/uci.h
/usr/include/uci_config.h
/usr/include/uci_blob.h
/usr/include/ucimap.h
/usr/lib/libuci.so
/usr/lib/libubox.so
/usr/bin/uci
/usr/lib/uci.sh
/usr/lib/lua/5.1/uci.so
/etc/config/test

查看所有文件

cat << 'EOF' | tee uci_install_manifest
/usr/include/uci.h
/usr/include/uci_config.h
/usr/include/uci_blob.h
/usr/include/ucimap.h
/usr/lib/libuci.so
/usr/lib/libubox.so
/usr/bin/uci
/usr/lib/uci.sh
/usr/lib/lua/5.1/uci.so
/etc/config/test
EOF
sudo cat uci_install_manifest | xargs ls -l

end

uci_for_linux's People

Contributors

caleee avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.