Loading

上一页 1 2 3 4 5 6 ··· 12 下一页
摘要: 当前我用的ubuntu机器内核是5.13,为了试试ntfs3打算升级到5.15。 查看内核版本 uname -sr # 或 cat /proc/version 下载内核文件 https://kernel.ubuntu.com/~kernel-ppa/mainline/v5.15/ 根据机器架构直接点 阅读全文
posted @ 2022-04-14 00:02 dylanchu 阅读(426) 评论(0) 推荐(0) 编辑
摘要: 查看标记为手动安装的包 sudo apt-mark showmanual 升级时忽略 docker-ce sudo apt-mark hold docker-ce 恢复忽略的 docker-ce sudo apt-mark unhold docker-ce 阅读全文
posted @ 2022-04-13 21:54 dylanchu 阅读(218) 评论(0) 推荐(0) 编辑
摘要: 提示:fstab配置错误会因无法正确挂载导致启动失败,虽可修改前先备份出错时通过liveCD/USB还原fstab,但最好在修改fstab之后用 mount 命令测试一下: sudo vim /etc/fstab sudo systemctl daemon-reload # 重新加载修改后的fsta 阅读全文
posted @ 2022-04-07 00:16 dylanchu 阅读(799) 评论(0) 推荐(0) 编辑
摘要: 修复 在liveCD下先挂载相应分区,然后使用grub-install进行修复。 注意:如果系统是使用systemd的,修复环境也要是基于systemd的(直接搞个ubuntu的livecd好了),否则grub-install可能会失败(提示 cannot read 'boot/efi': Is a 阅读全文
posted @ 2022-04-06 23:56 dylanchu 阅读(989) 评论(0) 推荐(0) 编辑
摘要: linux使用UTC格式时间设置到bios,显示时按时区进行偏移,windows则直接以Local方式记录时间,故二者存在8小时时差,为让二者同步这里在linux更改硬件时间为本地时间: sudo hwclock --localtime --systohc # 或简写为 sudo hwclock - 阅读全文
posted @ 2022-04-06 23:47 dylanchu 阅读(423) 评论(0) 推荐(0) 编辑
摘要: 定义 struct MY_TYPE { int first; double second; char* third; float four; }; 方法一:标准方式 (ANSI C89风格 Standard Initialization) struct MY_TYPE foo = {-10,3.14 阅读全文
posted @ 2022-02-09 17:52 dylanchu 阅读(1454) 评论(0) 推荐(0) 编辑
摘要: 使用pycharm时在类、方法/函数、变量上按下Ctrl+Q时会显示其对应的描述和docstring,我记得默认情况下鼠标在其上停留一秒就会自动显示,但是不知为何最近不自动显示了,重新开启方法如下: 确认关闭 Power Save Mode 在设置中勾上 Show the documentation 阅读全文
posted @ 2022-01-25 17:27 dylanchu 阅读(796) 评论(0) 推荐(0) 编辑
摘要: 看这个例子: def my_print(val): print val lst = [1, 2, 3] func_list = [] for x in lst: func_list.append(lambda: my_print(x)) for func in func_list: func() " 阅读全文
posted @ 2021-11-02 23:41 dylanchu 阅读(210) 评论(0) 推荐(0) 编辑
摘要: # ls options export LS_OPTIONS='--color=auto' alias ls='ls $LS_OPTIONS' alias ll='ls $LS_OPTIONS -l' alias l='ls $LS_OPTIONS -lA' # log and search exp 阅读全文
posted @ 2021-04-08 10:22 dylanchu 阅读(226) 评论(0) 推荐(0) 编辑
摘要: ffmpeg有多好用就不说了, 将flac文件转换为mp3文件使用以下命令即可 (同时会将flac文件的Vorbis注释转换为mp3的ID3v2元数据) ffmpeg -i input.flac -ab 320k -map_metadata 0 -id3v2_version 3 output.mp3 阅读全文
posted @ 2021-03-14 00:44 dylanchu 阅读(2314) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 ··· 12 下一页