GaGa's Blog

One GaGa, One World !

Multipass 是一个非常实用、轻量级的虚拟机管理工具,尤其适合开发者和运维人员在 macOS、Windows、Linux 上快速创建和管理 Ubuntu 实例。它由 Canonical(Ubuntu 官方) 开发,本质上可以看作是 Ubuntu 版的「轻量 Vagrant + QEMU/Hyper-V/VirtualBox 管理器」。


一、Multipass 概念与定位

Read more »

qcow2格式转换vdi

1.1先将qcow2文件转换成VirtualBox支持的格式(如vdi),然后用Vagrant的package命令进行打包。

转换磁盘格式

qemu-img convert -f qcow2 my_image.qcow2 -O vdi my_image.vdi
Read more »

一、是什么?

ChatGPT Atlas 是 OpenAI 新推出的一款 Web 浏览器。基本定义如下:

  • 它内置了 ChatGPT,也就是你可随时呼叫的语言模型助手。
  • 初期版本支持 macOS(Apple Silicon + macOS 12 Monterey 及以上)用户。
  • 将来会支持 Windows、iOS、Android。
  • 将浏览器 → 助手 →任务执行,这三者合为一体,而不只是传统的浏览器 + 插件。
  • 它基于 Chromium 引擎(即与 Chrome、Edge 等共享底层技术)但把 AI 聊天和“代理模式”(Agent mode)作为核心亮点。

一句话:Atlas 不是“给 Chrome 加个 ChatGPT 插件”,而是“重想浏览器 + 聊天 +代办任务”的整体体验。

Read more »

问题

容器启动发现/var/lib/postgresql/data: no such file or directory

Error response from daemon: failed to create task for container: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: error during container init: error mounting "/Users/mac/.app/pg17/pgdata" to rootfs at "/var/lib/postgresql/data": change mount propagation through procfd: open o_path procfd: open /var/lib/docker/overlay2/2757a24f55148f253e713ead2ac58d249aeafd4419031e5911303c030a3b9c16/merged/var/lib/postgresql/data: no such file or directory

解决

Read more »

问题

vagrant up 在m1上提示: There was an error while executing `VBoxManage`, a CLI used by Vagrant
for controlling VirtualBox. The command and stderr is shown below.

Command: ["startvm", "0f035c23-1ced-4dc5-98e6-c4d62d3e39ea", "--type", "headless"]

Stderr: VBoxManage: error: Cannot run the machine because its platform architecture x86 is not supported on ARM
VBoxManage: error: Details: code VBOX_E_PLATFORM_ARCH_NOT_SUPPORTED (0x80bb0012), component MachineWrap, interface IMachine, callee nsISupports
VBoxManage: error: Context: "LaunchVMProcess(a->session, sessionType.raw(), ComSafeArrayAsInParam(aBstrEnv), progress.asOutParam())" at line 921 of file VBoxManageMisc.cpp

vagrant无法有效识别出系统的架构arm64,导致的问题。
7e520fa7f434825adc24ab86871d8a36.png

1d0866142623bb690c0e1b6fd8d0f8f4.png

Read more »

dmesg 默认显示的是当前系统运行以来的 内核环形缓冲区(ring buffer)日志,而 系统重启后上一次的 dmesg 日志会被清空,除非系统启用了日志持久化机制(如 systemd-journald 或 rsyslog)。

一、查看上一次启动的内核日志(推荐)

如果系统是 systemd 管理的(比如 CentOS 7+/RockyLinux/Ubuntu 18.04+),可以用:

1
journalctl -k -b -1
Read more »

最常用完整命令

1
mvn clean package -U -X

参数详解:

参数 含义
clean 清理编译输出(target/ 目录)
package 打包阶段(编译 + 测试 + 打包)
-U 强制更新 snapshots/release 依赖,忽略本地缓存,重新从远程仓库拉取
-X 开启 Maven Debug 日志,输出详细调试信息(包括依赖解析、插件执行过程等)
Read more »

结论

在 GitLab 中,SSH 密钥是与具体用户绑定的,而不是与仓库绑定。

因此,当两个不同用户使用同一对 SSH 密钥时,
GitLab 只会识别该密钥最先绑定的那个用户账户。

无论谁用这对密钥拉取(clone/push/pull),GitLab 都认为是那个绑定的用户在操作。

Read more »
0%