Calendso 是开源的 Calendly (一个知名日程计划工具) 替代品,人话:可以 self-host 的开源日历

下文将展示如何在 Debian 11 下搭建 calendso

环境

  • Debian 11

参考

步骤

以下指令在 root 用户下执行,其他用户酌情添加 sudo

安装运行环境

Node.js & Yarn

curl -fsSL https://deb.nodesource.com/setup_lts.x | bash -
apt-get install -y nodejs
npm install -g yarn

Postgresql

sudo sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt $(lsb_release -cs)-pgdg main" > /etc/apt/sources.list.d/pgdg.list'
wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add -
apt update
apt install postgresql -y

配置数据库

登录 Postgresql

sudo -u postgresql psql

新建数据库

CREATE DATABASE calendso;

新建用户并赋予权限

CREATE USER calendso WITH PASSWORD '[your password here]';
GRANT ALL PRIVILEGES ON DATABASE calendso TO calendso;

安装 Calendso

获取 Calendso

git clone [email protected]:calendso/calendso.git
cd calendso

安装 Node 依赖包

yarn install

复制并编辑配置文件

cp .env.example .env

编辑 .env 文件,修改数据库配置变量 DATABASE_URL

Configure environment variables in the .env file. Replace <user><pass><db-host><db-port> with their applicable values

以上图为例,DATABASE_URL 的值为

postgresql://calendso:[email protected]:5432/calendso?schema=public

然后填写 CALENDSO_ENCRYPTION_KEY(填写 32 长度的随机字符串)

还原数据库

npx prisma db push

Continue reading “Calendso – 自托管日程计划工具”

Few days ago I wrote about ESXi on RPi,  as an another popular virtualization platform, Proxmox VE(or PVE) can also be installed on a Raspberry Pi 4 with Pimox, and the installation process is quite simpler than ESXi’s.

Content below shows how to install Proxmox VE on a Raspberry Pi 4 (8GB).

Preparation

  • A RPi 4
    • Although it’s not recommended by the repo author, it is possible to run on a RPi 3B+. If you want to try it, please check this issue.
  • A microSD card with arm64 Raspbian installed
    • The arm64 Raspbian can be downloaded here, the latest version should be fine.
    • PVE itself does not require much of the space, a 16GB card will be enough. If you want to run multiple VMs you should get bigger card, but considering the max speed of a SD card, adding other USB drives would be more suitable.
    • I originally tried to install on Debian Bullseye as the repository suggests, but as always (why do bad things happen to good people) —— it didn’t work somehow(I’m tired of saying this): the pve-* packages can’t be configured properly.
  • Power supply, type-c cable, keyboard, monitor, micro HDMI cable, Ethernet cable

Reference

Steps

Make sure you flashed arm64 Raspbian to the SD card, plug the card into RPi, then boot it up.

Follow instructions must be performed locally(as in monitor and keyboard) not remotely(like SSH), since the installation will stop/start network interfaces.

Network configuration

Static IP address

On Debian Bullseye, network interfaces configuration can be handled by editing /etc/network/interfaces and ifup/ifdown. Although Raspbian is based on Debian, its networking can’t be handled by that out-of-the-box, we have to edit /etc/dhcpcd.conf instead.

Find the interface sector in /etc/dhcpcd.conf, uncomment the lines and change it according to your condition.

Save the config file, execute

systemctl restart dhcpcd.service

Hostname and hosts file

Edit /etc/hostname if you want to customize Pi’s name.

Then make sure you have the corrent IP – Hostname bond record in /etc/hosts: the record’s IP is your previously configured static IP and the Hostname is the RPi’s.

Then you can try to ping your Pi’s hostname to check the connection.

Installing PVE

Continue reading “Proxmox VE on Raspberry Pi 4 with Pimox”