Headscale Migration from CentOS 7 to Ubuntu 24

This guide covers the process of migrating a Headscale setup from a CentOS 7 system to Ubuntu 24, including steps for exporting configurations, database, and Docker images, as well as importing them on the new system.

1. Export Data and Image on CentOS 7

Export Configuration and Database

To begin, export the configuration and database files from the headscale container:

docker cp headscale:/etc/headscale/config.yaml ./config.yaml
docker cp headscale:/etc/headscale/db.sqlite ./db.sqlite

Export Docker Image

Use docker save to export the headscale Docker image:

docker save -o headscale_image_backup.tar headscale/headscale:0.23.0-beta1

2. Transfer Files to Ubuntu 24

Transfer the configuration, database, and image files to the Ubuntu 24 system using scp, rsync, or another file transfer tool:

scp config.yaml db.sqlite headscale_image_backup.tar user@ubuntu-server:/path/to/backup/

3. Import Data on Ubuntu 24

Load Docker Image

On the Ubuntu system, use docker load to import the Docker image:

docker load -i /path/to/backup/headscale_image_backup.tar

Create Headscale Container

Move the configuration and database files to /etc/headscale/ and create the container:

Read more →

Vmware and Ubuntu

在Vmware安装Ubuntu 20.04 LTS 版本与windows 10 共享文件,环境搭建

我的虚拟机设置情况
img_1.png

要在 VMware 上安装 Ubuntu 20.04.6 LTS (64-bit) 版本以便编译 ThingsBoard 源码,以下是详细的步骤指南:

下载 Ubuntu 20.04.6 LTS ISO 文件

  1. 访问 Ubuntu 官方下载页面:

  2. 选择下载合适的 ISO 文件:

    • 找到 ubuntu-20.04.6-live-server-amd64.iso,这是没有桌面环境的服务器版本。

创建新的虚拟机

  1. 打开 VMware Workstation 或 VMware Player:

Read more →