跳转至

Install omv

mirrors

sources.list:

nano /etc/apt/sources.list

content:

deb http://mirrors.ustc.edu.cn/debian/ buster main
deb-src http://mirrors.ustc.edu.cn/debian/ buster main

deb https://mirrors.tuna.tsinghua.edu.cn/debian-security/ buster/updates main contrib non-free
deb-src https://mirrors.tuna.tsinghua.edu.cn/debian-security/ buster/updates main contrib non-free

# buster-updates, previously known as 'volatile'
deb http://mirrors.ustc.edu.cn/debian/ buster-updates main contrib non-free
deb-src http://mirrors.ustc.edu.cn/debian/ buster-updates main contrib non-free

openmediavault.list:

nano /etc/apt/sources.list.d/openmediavault.list

content:

deb https://mirrors.bfsu.edu.cn/OpenMediaVault/public/ usul main
deb https://mirrors.bfsu.edu.cn/OpenMediaVault/public/ usul-proposed main
deb https://mirrors.bfsu.edu.cn/OpenMediaVault/public/ usul partner

omv extras

install (may use a proxy):

wget -O - https://github.com/OpenMediaVault-Plugin-Developers/packages/raw/master/install | bash 

ref: omv-extras.org

mirrors:

nano /etc/apt/sources.list.d/omvextras.list

deb https://mirrors.bfsu.edu.cn/OpenMediaVault/openmediavault-plugin-developers/usul buster main
deb [arch=amd64] https://download.docker.com/linux/debian buster stable
deb http://linux.teamviewer.com/deb stable main
deb https://mirrors.bfsu.edu.cn/OpenMediaVault/openmediavault-plugin-developers/usul-testing buster main
deb https://mirrors.bfsu.edu.cn/OpenMediaVault/openmediavault-plugin-developers/usul-extras buster main

docker proxy

sudo mkdir -p /etc/systemd/system/docker.service.d
sudo vim /etc/systemd/system/docker.service.d/http-proxy.conf

content:

[Service]
Environment="HTTP_PROXY=http://192.168.79.1:10809"
Environment="HTTPS_PROXY=http://192.168.79.1:10809"
Environment="NO_PROXY=localhost,127.0.0.1,docker-registry.example.com,.corp"

restart:

sudo systemctl daemon-reload
sudo systemctl show --property=Environment docker # check
sudo systemctl restart docker

ref: Control Docker with systemd | Docker Documentation

VMware linux tools

mkdir /mnt/cdrom
mount /path/to/iso /mnt/cdrom
apt install make gcc g++ cmake
cp /mnt/cdrom/VMwareTools-10.3.22-15902021.tar.gz . # copy archive file to current path
umount /mnt/cdrom
tar -xzvf VMwareTools-10.3.22-15902021.tar.gz
apt install make gcc g++ cmake
./vmware-install.pl

ssh key login

cp /mnt/hgfs/C/Users/username/.ssh/id_rsa.pub ~/.ssh # copy ssh pub from host
cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys
cat ~/.ssh/authorized_keys

gnupg

just copy, then set permission to 600 or 700.

VS Code SSH

error:

open failed: administratively prohibited: open failed

change SSH config AllowTcpForwarding to yes:

AllowTcpForwarding yes