Wake Me Up When September Ends.

A wanderer capable of grasping the beauty of the grass, with a heart full of ancient charm, and a fondness for playful wit. Those who understand my words are knowledgeable individuals; those who decipher my code truly comprehend the essence. I am a wandering code swordsman, carrying my skills and riding freely through the digital world.

Ubuntu安装钉钉之后,钉钉启动报如下错误:

1
2
3
4
preload_libs=./libgbm.so ./plugins/dtwebview/libcef.so
ERROR: ld.so: object './libgbm.so' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
Run Main is_gpu=0 is_zygote=0 is_render=0 is_crashpad_handler=0 cmd : ./com.alibabainc.dingtalk %u
Load /opt/apps/com.alibabainc.dingtalk/files/8.1.0-Release.6021101//dingtalk_dll.so failed! Err=/opt/apps/com.alibabainc.dingtalk/files/8.1.0-Release.6021101//dingtalk_dll.so: cannot enable executable stack as shared object requires: Invalid argument

主要解决两个问题一个是libgbm.so 不存在,二是dingtalk_dll.so 无法启用可执行栈。

1.libgbm.so 不存在

libgbm.so 是 Mesa 图形库的一部分,正常ubuntu默认已经安装,如果没有安装请执行:

1
sudo apt install libgbm1
阅读全文 »

openwrt24.10安装oh-my-zsh遇到一些问题记录如下:

1. 更新软件包列表

1
opkg update

2. 安装Zsh和oh-my-zsh

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
opkg install zsh

# 如果没有curl或wget则需要安装其中一个
opkg install wget
# 或者
opkg install curl

# 下载oh-my-zsh
wget https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh -O - | zsh
# 或者
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"

# 可能出现的错误“git: 'remote-https' is not a git command. See 'git --help'.”
# 需要移除默认git使用git-http替代

opkg remove git
opkg install git-http

3. 配置Zsh

后续补充!

openwrt24.10上网控制,可以使用luci-app-timecontrol

该插件适配24.10分支的NFT的上网时间控制插件。 编译安装或直接ipk安装二选一

编译安装

1
2
3
4
5
6
7
8
9
10
11
12
# feeds获取源码:
src-git timecontrol https://github.com/sirpdboy/luci-app-timecontrol

scripts/feeds update timecontrol
scripts/feeds install luci-app-timecontrol

# 配置菜单
make menuconfig
# 找到 LuCI -> Applications, 选择nft-timecontrol, 保存后退出。

# 编译固件
make package/luci-app-timecontrol/compile V=s

直接ipk安装

下载luci-app-timecontrol比较新的ipk包,直接安装即可,无需编译。

1
2
3
opkg update

opkg install <下载的ipk包>

内存分布说明

C语言程序的内存通常分为以下几个区域:

  • 栈(Stack):

    1. 用于存储局部变量、函数参数和函数调用的上下文。
    2. 内存由编译器自动分配和释放。
    3. 大小有限,通常较小(几MB)。
  • 堆(Heap):

    1. 用于动态内存分配。
    2. 内存由程序员手动管理(分配和释放)。
    3. 大小较大,受系统内存限制。
  • 全局/静态区(Global/Static Area):

    1. 用于存储全局变量和静态变量。
    2. 内存在程序启动时分配,程序结束时释放。
  • 常量区(Constant Area):

    1. 用于存储字符串常量和其他常量。
    2. 内存在程序启动时分配,程序结束时释放。
  • 代码区(Code Area):用于存储程序的二进制代码。

阅读全文 »