随笔分类 - Linux
linux
摘要:修改 buildroot的配置选项,增删软件包 cd builroot make xxx_defconfig # xxx_defconfig 就在 buildroot 目录下中对应的板子文件 make menuconfig # 字符图形化界面修改配置 make savedefconfig BR2_D
阅读全文
摘要:编辑要调试的脚本compile.sh的开头,加入 set +xv # 这个命令会把shell脚本的执行过程和执行的相应语句都打印出来,感觉可以类比 gdb中的逐步调试 然后重定向脚本的运行结果到一个日志文件,像这样,然后执行 ./compile.sh 2>&1 | tee build.output.
阅读全文
摘要:$ git remote -v origin git@github.com:AAAAAA/BBBBB.git (fetch) origin git@github.com:AAAAAA/BBBBB.git (push) $ git push origin HEAD:refs/heads/dev-xxx
阅读全文
摘要:Linux # 持久加速 mkdir -p ~/.pip # 清华 source cat << EOF > ~/.pip/pip.conf [global] index-url = https://pypi.tuna.tsinghua.edu.cn/simple [install] trusted-
阅读全文
摘要:查找 ~/.cache/vmware/drag_and_drop 目录下是否又之前拖拽的缓存文件,可能会很大
阅读全文
摘要:查看文件所属包 # dpkg -S 文件名称 dpkg -S /usr/bin/svnversion 查看包内容 # dpkg -L 包名 dpkg -L subversion
阅读全文
摘要:开启 busybox对suid的支持 $ chmod u+s /bin/busybox $ cat /etc/busybox.conf [SUID] echo = ssx root.root
阅读全文
摘要:Image the generic Linux kernel binary image file. zImage a compressed version of the Linux kernel image that is self-extracting. uImage an image file
阅读全文
摘要:# sudo zypper in -y patchelf # patchelf 可以修改可执行文件的 使用的链接器 # It can change the dynamic loader ("ELF interpreter") of the executables and change the RPA
阅读全文
摘要:列出本地的所有 Key 执行 gpg --list-keys 列出本地所有的密钥 输出结果类似 $ gpg --list-keys /home/$USER/.gnupg/pubring.gpg pub 4 096R/375A500B 2017-03-22 [有效至:2018-03-22] uid G
阅读全文
摘要:首先确认 linux内核配置支持了 coredump 然后 执行可执行文件的用户配置 ulimit -c unlimited 其次 确认配置了 /proc/sys/kernel/core_pattern 指定的生成core的路径,user 有写入权限 如果可执行文件 被chmod u+s 或者g+s
阅读全文
摘要:可以通过一些命令设置 可执行文件的capabilities 或者查看进程或者文件的capabilites # opensuse 安装命令 sudo zypper install -y libcap-ng-utils libcap-progs # debian 安装命令 sudo apt instal
阅读全文

浙公网安备 33010602011771号