- CentOS7
- 服务器配置
/etc/ssh/sshd_config
AllowTcpForwarding yes X11Forwarding yes
- 服务器安装
xorg-x11-xauth
yum install -y xorg-x11-xauth
- 服务器配置
- 本地修改文件
/etc/ssh/ssh_config
ForwardAgent yes
ForwardX11 yes
ForwardX11Trusted yes
- 登录
ssh -X root@ip
/etc/ssh/sshd_config
AllowTcpForwarding yes X11Forwarding yes
xorg-x11-xauth
yum install -y xorg-x11-xauth
/etc/ssh/ssh_config
ForwardAgent yes
ForwardX11 yes
ForwardX11Trusted yes
ssh -X root@ip
Set-ExecutionPolicy RemoteSigned
npm i -g --registry=http://registry.npm.taobao.org npm tbify
tnpm install -g --unsafe-perm node-red
# 运行node-red
node-red
cd .node-red
tnpm i --no-audit --no-update-notifier --no-fund --save --save-prefix=~ --production --engine-strict node-red-contrib-modbus node-red-contrib-uibuilder
替换
<user>
为您的实际用户名
tnpm i -g pm2
tnpm i -g pm2-windows-startup
pm2-startup install
pm2 start C:\Users\<user>\AppData\Roaming\npm\node_modules\node-red\red.js
pm2 save
pm2 ls
卸载
pm2-startup uninstall
makepkg -s
sudo pacman -U *.pkg.tar.zst
/etc/pacman.conf
中的 IgnorePkg =
中添加对应的包名,用空格分隔多个包名。参考:http://www.huasay.com/2020/08/05/manjaro-install-old-version/
chrome://net-internals/#dns
maven-central
https://maven.aliyun.com/repository/public
添加一个新的 Role
Nexus role
publish
nx-repository-view-*-*-add
nx-repository-view-*-*-edit
nx-anonymous
添加一个 User
publish
publish
Admin - Compact blob store
Docker-Delete incomplete uploads
~/Android/Sdk/emulator/
~/Library/Android/sdk/emulator
C:\Documents and Settings\user\Library\Android\sdk\emulator
C:\Users\user\Library\Android\sdk\emulator
$ ./emulator -list-avds
Nexus_5X_API_23
$ ./emulator -avd Nexus_5X_API_23 -netdelay none -netspeed full
官方文档:https://developer.android.com/studio/run/emulator-commandline?hl=zh-cn
sudo apt update
sudo apt install build-essential dkms linux-headers-$(uname -r)
sudo ./VBoxLinuxAdditions.run
vboxmanage clonehd <uuid>|<filename> <outputfile>
[--format VDI|VMDK|VHD|RAW|<other>]
[--variant Standard,Fixed,Split2G,Stream,ESX]
[--type normal|writethrough|immutable]
[--remember] [--existing]
VBoxManage modifyhd /path/to/your/virtual/disk.vdi --compact
安装
# centos7
yum install -y p7zip
#ubuntu
apt-get install -y p7zip
压缩
7za a zipfile.7z /path/to/file_or_folder
解压
7za x zipfile.7z [-o/path/to/folder]
o
参数用于指定解压目录,-o
之后没有空格
执行以下脚本确定 CPU 支持虚拟化,如果有输出则代表支持。
grep -E '(vmx|svm)' /proc/cpuinfo
kvm相关安装包及其作用:
qemu-kvm
主要的KVM程序包python-virtinst
创建虚拟机所需要的命令行工具和程序库virt-manager
GUI虚拟机管理工具virt-top
虚拟机统计命令virt-viewer
GUI连接程序,连接到已配置好的虚拟机libvirt
C语言工具包,提供libvirt服务libvirt-client
为虚拟客户机提供的C语言工具包virt-install
基于libvirt服务的虚拟机创建命令bridge-utils
创建和管理桥接设备的工具yum install -y qemu-kvm virt-manager libvirt
安装完后要开启服务
systemctl enable --now libvirtd.service
继续阅读