文書の表示以前のリビジョンバックリンク文書の先頭へ この文書は読取専用です。文書のソースを閲覧することは可能ですが、変更はできません。もし変更したい場合は管理者に連絡してください。 ====== よく使う OpenWrt コマンド ====== ===== 設定を集中管理する [uci] ===== UCI (**U**nified **C**onfiguration **I**nterface) は OpenWrt のサービスの設定を集中管理するシステムである。\\ <code> # uci show </code> ==== Samba の設定 ==== OpenWrt の Samba の設定を変更する。\\ <WRAP prewrap 100%> <code> # vi /etc/config/samba </code> </WRAP> <WRAP prewrap 100% #mincode> <code autoconf /etc/config/samba> config samba option workgroup 'MONSTERS-G' option homes '1' option name 'GL-AR750S' option description 'GL-AR750S' config sambashare option path '/mnt/sd128gb' option name 'sd128gb' option read_only 'no' option guest_ok 'yes' </code> </WRAP> 上記の変更は **uci** にも反映される。\\ <WRAP prewrap 100%> <code> # uci show samba </code> </WRAP> <WRAP prewrap 100% #result> <code> samba.@samba[0]=samba samba.@samba[0].workgroup='MONSTERS-G' samba.@samba[0].homes='1' samba.@samba[0].name='GL-AR750S' samba.@samba[0].description='GL-AR750S' samba.@sambashare[0]=sambashare samba.@sambashare[0].path='/mnt/sd128gb' samba.@sambashare[0].name='sd128gb' samba.@sambashare[0].read_only='no' samba.@sambashare[0].guest_ok='yes' </code> </WRAP> ==== 参考文献 ==== [[https://openwrt.org/docs/guide-user/base-system/uci|OpenWrt Project: The UCI system]]\\ linux/openwrt/commands.txt 最終更新: 2020/09/15 12:15by ともやん