×

Falcon

  • Falcon
    2023-12-12 13:19
    #daily tips# MacOS提示app已损坏的修复方式。(以MiniNote为例)
    xattr -d com.apple.quarantine /Applications/MiniNote.app
  • Falcon
    2023-12-12 03:33
    跨链小主机装上了win11,并且可以开启hyperV虚拟机,焕发第二春。
  • Falcon
    2023-12-12 02:36
    n100厂家搭配16G的ddr4频率只有1666。
    我觉得不行啊✋
  • Falcon
    2023-12-12 02:32
    安装win11时遇到了问题:提示了“Windows无法安装到这个磁盘,选中的磁盘采用gpt分区形式”

    可以转换磁盘格式为MBR,但是会清除所有磁盘分区。
    不要重启电脑,直接在键盘上按下“Shift+F10”组合键,这时就会弹出CMD命令提示符窗口。

    在弹出的CMD命令提示符窗口中,先输入diskpart后,再依次输入命令如下图所示。
    1、输入“list disk”,回车键确定;(会列出所有的磁盘,记住自己硬盘的磁盘号,通过容量大小就可以分辨了,如下图所示,磁盘0就是我们的硬盘,磁盘1就是U盘)
    2、输入“select disk 0”,回车键确定;(选择磁盘0,也就是我们的硬盘,就是准备做系统的硬盘)
    3、输入“clean”,回车键确定;(清空磁盘,相当于格式化全盘)
    4、输入“convert mbr”,回车键确定;(将该硬盘转换为mbr格式,如果想要将硬盘转化为gpt,那就是输入“convert gpt”)

    后退到前一页再返回就能正常安装了。
    参考:
    https://www.zhihu.com/tardis/zm/art/344383888
  • Falcon
    2023-12-11 08:16
    在cloudcone给ubuntu升级内核,完成后重启进入不了系统,在vnc看到 kernel panic:
    unable to mount root fs on unknown-block

    通过救援模式,死马当活马医我还拉回来了并且切换到了最新的内核,核心命令就是进入救援 rescue 模式后,其实rescue是另外一个linux系统,跟原系统不一样。
    fdisk -l 查看原来系统盘的设备,如/dev/vdb1

    挂载并chroot,这样就相当于使用了原系统的环境。
    $ sudo mount /dev/vdb1 /mnt
    $ sudo mount --bind /dev /mnt/dev
    $ sudo mount --bind /dev/pts /mnt/dev/pts
    $ sudo mount --bind /proc /mnt/proc
    $ sudo mount --bind /sys /mnt/sys
    $ sudo chroot /mnt

    然后执行 update-initramfs -u -k 5.15.0-91-generic
    5.15.0-91-generic 为/boot下的看到的内核文件之一,是我新升级的内核。

    有警告时忽略。
    最后执行: update-grub
    参考:
    https://www.geekswarrior.com/2019/07/solved-how-to-fix-kernel-panic-on-linux.html、
    但是我后来发现,可能在重新前执行一下
    dpkg --configure -a
    就可以了,因为这条命令自动更新了很多启动相关的信息。
    See system logs and 'systemctl status snapd.mounts-pre.target' for details.
    Could not execute systemctl: at /usr/bin/deb-systemd-invoke line 142.
    Setting up ubuntu-server-minimal (1.481.1) ...
    Setting up linux-image-5.15.0-91-generic (5.15.0-91.101) ...
    I: /boot/vmlinuz.old is now a symlink to vmlinuz-5.15.0-46-generic
    I: /boot/initrd.img.old is now a symlink to initrd.img-5.15.0-46-generic
    I: /boot/vmlinuz is now a symlink to vmlinuz-5.15.0-91-generic
    I: /boot/initrd.img is now a symlink to initrd.img-5.15.0-91-generic
    Setting up linux-modules-extra-5.15.0-91-generic (5.15.0-91.101) ...
    Setting up linux-image-generic (5.15.0.91.88) ...
    Setting up linux-modules-5.15.0-91-generic (5.15.0-91.101) ...
    Setting up linux-generic (5.15.0.91.88) ...
    Processing triggers for libc-bin (2.35-0ubuntu3.5) ...
    Processing triggers for rsyslog (8.2112.0-2ubuntu2.2) ...
    Processing triggers for man-db (2.10.2-1) ...
    Processing triggers for plymouth-theme-ubuntu-text (0.9.5+git20211018-1ubuntu3) ...
    update-initramfs: deferring update (trigger activated)
    Processing triggers for install-info (6.8-4build1) ...
    Processing triggers for initramfs-tools (0.140ubuntu13.4) ...
    update-initramfs: Generating /boot/initrd.img-5.15.0-91-generic
    I: The initramfs will attempt to resume from /dev/vda2
    I: (UUID=2eafbaba-93ab-4336-8fcc-ba5e0a86aec4)
    I: Set the RESUME variable to override this.
    Processing triggers for linux-image-5.15.0-91-generic (5.15.0-91.101) ...
    /etc/kernel/postinst.d/initramfs-tools:
    update-initramfs: Generating /boot/initrd.img-5.15.0-91-generic
    I: The initramfs will attempt to resume from /dev/vda2
    I: (UUID=2eafbaba-93ab-4336-8fcc-ba5e0a86aec4)
    I: Set the RESUME variable to override this.
    /etc/kernel/postinst.d/zz-update-grub:
    Sourcing file `/etc/default/grub'
    Sourcing file `/etc/default/grub.d/init-select.cfg'
    Generating grub configuration file ...
    Found linux image: /boot/vmlinuz-5.15.0-91-generic
    Found initrd image: /boot/initrd.img-5.15.0-91-generic
    Found linux image: /boot/vmlinuz-5.15.0-46-generic
    Found initrd image: /boot/initrd.img-5.15.0-46-generic
    Found linux image: /boot/vmlinuz-5.15.0-43-generic
    Found initrd image: /boot/initrd.img-5.15.0-43-generic
    Warning: os-prober will not be executed to detect other bootable partitions.
    Systems on them will not be added to the GRUB boot configuration.
    Check GRUB_DISABLE_OS_PROBER documentation entry.
    done
  • Falcon
    2023-12-11 03:15
    #daily tips# 国内加速github的一个网站:https://github.ur1.fun/

    写入github地址后会得到一个克隆版的github repo,此时按github上的操作git clone即可。

    或者在本地配置:git config --global url."https://github.ur1.fun/".insteadOf "https://github.com/"
  • Falcon
    2023-12-11 02:44
    docker-compose.yml 中,如果image中带上 sha256 , 使用docker compose 启动就不会联网检查是否有新版本。
    如:mysql:8.0.33@sha256:xxxxxx
  • Falcon
    2023-12-10 15:57
    发现另一个不错的laravel后台组件,文档很完整
    https://backpackforlaravel.com/
  • Traefik使用示例

    从一个[开源cms](https://docs.halo.run/getting-started/install/other/traefik "开源cms")中(但它是用java写的,瞬间失去兴趣)不过看到traefik的用法,感觉还挺有趣的,好像比nginx proxy manage更聪明,因为它是跟docker联动的,可以发现服务。以下摘自那个cms的介...

    2023-12-10 14:48 Falcon 阅读