Maktub_Wiki Maktub_Wiki
主站 (opens new window)
  • 服务搭建
  • 网络服务
  • 开源框架
  • 操作系统
  • iOS/MacOS
  • 算法导论(Python)
  • Leetcode
  • 线性代数
主站 (opens new window)
  • 服务搭建
  • 网络服务
  • 开源框架
  • 操作系统
  • iOS/MacOS
  • 算法导论(Python)
  • Leetcode
  • 线性代数
  • Linux系统

    • 常规配置
    • 树莓派
    • 极简系统问题
    • dd Debian系统
    • samba服务配置
  • MacOS系统

    • 设置问题
  • Windows系统

    • 命令行操作
  • Openwrt路由系统

    • 优化操作
      • 相关功能软件包
      • 服务自启动
      • MT7621适配问题
    • 树莓派
    • 操作系统
    • Openwrt路由系统
    Maktub_小明
    2024-02-11
    目录

    优化操作

    # 更新所有软件包

    # 更新软件列表
    opkg update
    
    # 更新所有 LUCI 插件
    opkg list-upgradable | grep luci- | cut -f 1 -d ' ' | xargs opkg upgrade
    
    # 如果要更新所有软件,包括 OpenWRT 内核、固件等
    opkg list-upgradable | cut -f 1 -d ' ' | xargs opkg upgrade
    

    编辑/etc/profile,设置命令别名

    alias updateall="opkg list-upgradable | cut -f 1 -d ' ' | xargs opkg upgrade"
    

    # overlay扩容

    1. 安装依赖
    opkg install block-mount cfdisk
    
    1. 硬盘分区
    cfdisk /dev/mmcblk0
    
    1. 格式化硬盘
    mkfs.ext4 /dev/mmcblk0p1
    
    1. 迁移文件
    mount /dev/mmcblk0p1 /tmp/extroot
    tar -C /overlay -cvf - . | tar -C /tmp/extroot -xf -
    
    1. 系统->挂载点,进行挂载分区

    # URL重定向

    编辑/www/reurl.html

    <html>
    <head>
    <meta http-equiv="refresh" content="0;url=https://www.baidu.com">
    </head>
    </html>
    
    上次更新: 2025/03/22, 03:52:10
    命令行操作
    相关功能软件包

    ← 命令行操作 相关功能软件包→

    Theme by Vdoing | Copyright © 2021-2025 Maktub_小明 | MIT License
    • 跟随系统
    • 浅色模式
    • 深色模式
    • 阅读模式