Linux 无线网络带宽低的问题

/etc/modprobe.d/iwlwifi.conf 文件中的 11n_disable=1 改为 11n_disable=0,然后重启系统。

查看全文

Linux 用户目录创建标准文件夹

新版本的 KDE noen (ubuntu 22.04) 安装完成后,用户目录下没有标准目录。执行 xdg-user-dirs-update 即可自动创建

查看全文

hexdump 格式化

hexdump 常用的选项有三个:跳过的字节数(-s)、打印的字节数(-n)和打印的格式(-e)

1hexdump [-s SKIP_BYTES] [-n BYTES] [-e FORMAT] 

其中 FORMAT 的格式为 'm/n "F"',其中 m 为一组打印多少个元素,n为一个元素的字节数。 F 支持 C 语言中 printf 相同的格式,并且额外持支以下格式:

| 格式 | 说明 |

查看全文

制作 deb 包

参考 QtTheme

准备工作

安装工具:

1sudo apt-get install build-essential
查看全文

双系统时差问题

Linux 默认把 RTC 时间当作 UTC 时间,而 Windows 默认把 RTC 时间当作本地时间。

因此解决办法就是把 Linux 的 RTC 时间设为本地时间,或者把 Windows 的 RTC 时间设为 UTC 时间。

把 Linux 的 RTC 时间设为本地时间的命令为:

1timedatectl set-local-rtc 1
查看全文

在树莓派上配置 Clash 代理

编译 clash 源码

1git clone https://github.com/Dreamacro/clash.git
2cd clash
3go build
4sudo cp clash /usr/bin
查看全文

在没有网络的环境下配置 VS Code SSH Remote

VS Code SSH Remote 连接时需要在远程主机上下载 VS Code Server,没有网络时无法自动下载,需要手动下载并复制到正确的路径中去。

点击 VS Code菜单栏 Help->About ,查看当前客户端版本的 <Commit-ID>:

help-about

1Version: 1.73.1
查看全文

查看和修改可执行文件的 RPATH

查看:

1readelf -d $EXEC | grep runpath

修改:

查看全文

退出进程的常用信号

参考: GNU libc

1$ kill -l
2 1) SIGHUP       2) SIGINT       3) SIGQUIT      4) SIGILL       5) SIGTRAP
3 6) SIGABRT      7) SIGBUS       8) SIGFPE       9) SIGKILL     10) SIGUSR1
411) SIGSEGV     12) SIGUSR2     13) SIGPIPE     14) SIGALRM     15) SIGTERM
516) SIGSTKFLT   17) SIGCHLD     18) SIGCONT     19) SIGSTOP     20) SIGTSTP
查看全文

通过systemd service启动的程序无法写文件

编译安装 NetworkManager 之后,网络功能瘫痪。提示 read-only file system:

1$ nmcli device wifi rescan
2$ nmcli device wifi connect HBC-WiFi
3Error: Failed to add/activate new connection: failure adding connection: 
4error writing to file '/usr/etc/NetworkManager/system-connections/HBC-WiFi.nmconnection': 
5failed to create file /usr/etc/NetworkManager/system-connections/HBC-WiFi.nmconnection.QZNRI1:read-only file system
查看全文