Vyos How to Setup Wireguard

How to conifugre wireguard in vyos WireGuard is an extremely simple yet fast and modern VPN that utilizes state-of-the-art cryptography. Wireguard Today I will try to deploy wireguard with two vyos . Site-to-Sit mode Toplogy |--------------------------------| |---------------------------------| | Server | | Client | | |-----cloud ----| wan:${wan-address} | | wireguard tunnel interface:wg01| | Wireguard tunnel interface:wg01 | |--------------------------------| |---------------------------------| Server configuration # Generates a new keypair, if one exists already is asks you if you want to overwrite the existing one.

Librenms Deploy Librenms With Docker Container

How to deploy librenms monitoring system with docker container Librenms is a very light and easy handle moniting software. It is suitable for us to monitoring server,networdevice, printer etc via snmp. At now, docker is easy for software deployment. After deploy librenms in ubuntu vm, I have a try to deploy librenms with docker-compose. Install librenms with docker-compose mkdir -p librenms-docker-compose cd ./librenms-docker-compose wget https://raw.githubusercontent.com/librenms/docker/master/examples/compose/.env wget https://raw.githubusercontent.com/librenms/docker/master/examples/compose/docker-compose.yml wget https://raw.githubusercontent.com/librenms/docker/master/examples/compose/librenms.env touch acme.

Proxmov Ve How to Upgrade Pve

How to ugrade Proxmove VE If your proxmox ve server in china ,Change utsc mirrors will speed up your proxmoxve upgrade speed. Here are the steps. 1. Change debian,pve,ceph upgrade source, and upgrade your PVE #chang debian source list echo "deb https://mirrors.ustc.edu.cn/debian/ stretch main contrib non-free deb-src https://mirrors.ustc.edu.cn/debian/ stretch main contrib non-free deb https://mirrors.ustc.edu.cn/debian/ stretch-updates main contrib non-free deb-src https://mirrors.ustc.edu.cn/debian/ stretch-updates main contrib non-free deb https://mirrors.ustc.edu.cn/debian/ stretch-backports main contrib non-free deb-src https://mirrors.

How to Build a Kms Server

How to build a kms server Option 1: docker mode docker pull luodaoyi/kms-server docker run -itd -p 1688:1688 --name kms luodaoyi/kms-server docker update --restart=always $dockername Option 2: docker compose docker-compose.yml version:'3'services:frontend:image:luodaoyi/kms-servercontainer_name:mykmsports:- 1688:1688restart:alwaysdocker-compose start the container docker-compose up -d Active Script echo "To active office" cd "%programfiles%\Microsoft Office\Office16" cscript ospp.vbs /sethst:xx.xx.xx.xx cscript ospp.vbs /act echo "to active windows" slmgr /skms xxx.xxx.xxx.xxx slmgr /ato Reference blog

How to Setup Oh My Zsh

How to setup Oh-My-Zsh Install support application apt install git curl wget zsh Install zsh via curl sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)" via wget sh -c "$(wget https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh -O -)" Change zsh settings change theme #change theme froy robbyrussell to agnoster sed -i 's/ZSH_THEME=\"robbyrussell\"/ZSH_THEME=\"agnoster\"/g' ~/.zshrc change plugin support sed -i 's/plugins=(git)/plugin=(\n\tgit\n\tboundler\n\tdotenv\n\trake\n\trbenv\n\truby\n\tpython\n)/g' ~/.zshrc Switch default bash to zsh chsh -s /bin/zsh

How to Setup Vim

How to setup vim Install vundle vundle is a plugin manage tools for vim git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim Edit vim configure file cat > ~/.vimrc <<EOF set nocompatible " be iMproved, required filetype off " required syntax on " set the runtime path to include Vundle and initialize set rtp+=~/.vim/bundle/Vundle.vim call vundle#begin() " alternatively, pass a path where Vundle should install plugins "call vundle#begin('~/some/path/here') " let Vundle manage Vundle, required

How to Enable Docker in Lxc

How to install docker-ce in lxc container in pve At now, Proxmox is base debian and it can be install docker directly. To install docker in host without proxmox support. It will be lost HA function. Deploy a vm then install docker-ce in the vm, it works. but take a lot resource than directly install docker in proxmox. Is there a way to take less performance ,at the same time

How to Enable Proxmoxve Nested Virtualization

How to enable Proxmox VE nested virtualization To enable nested virtualization on Proxmox VE, we need to stop all the vm and enable nested virtualization to linux kernel. then change vm settings Stop all the vm on proxmox VE stop all virtual machines with shell command. root@xa-sys-pve01:~# pvesh create /nodes/localhost/stopall Stopping VM 116 (timeout = 180 seconds) Stopping VM 115 (timeout = 180 seconds) Stopping CT 112 (timeout = 60 seconds) Stopping CT 111 (timeout = 60 seconds) Stopping CT 108 (timeout = 60 seconds) Stopping CT 106 (timeout = 60 seconds) Stopping VM 101 (timeout = 180 seconds) UPID:xa-sys-pve01:0036EA66:01992199:5CB98D6C:stopall::root@pam: stop all the virtual machine with admin web.

How to Extend Lvm Allocted PE With Freee PE

LVM EXTEND How to extend lvm size use free PE # show volume group information vgdisplay --- Volume group --- VG Name ubuntu-vg System ID Format lvm2 Metadata Areas 1 Metadata Sequence No 2 VG Access read/write VG Status resizable MAX LV 0 Cur LV 1 Open LV 1 Max PV 0 Cur PV 1 Act PV 1 VG Size <99.00 GiB PE Size 4.00 MiB Total PE 25343 Alloc PE / Size 1024 / 4.

Cisco Ssh Error

cisco ssh error When you met error like this: ssh cisco@ Unable to negotiate with port 22: no matching key exchange method found. Their offer: diffie-hellman-group1-sha1 Solution: $ ssh -l <USERNAME> -oHostKeyAlgorithms=+ssh-dss -oKexAlgorithms=+diffie-hellman-group1-sha1 <HOST> or ssh -l <username> -o HostKeyAlgorithms=+ssh-dss -o KexAlgorithms=+diffie-hellman-group1-sha1 -c 3des-cbc <hostname> Reference SSH failed on 3750 switch SSH Not Working After Update To 10.13.2 (HighSierra)

Macos Update Time via Ntpserver

How to update time via ntpserver Today, My MBP is out of power. I cannot surfing internet. and the brower tell me my time was wrong. Then I checked my time in my MBB, I’m back in time jan 1, 2018. Wow, I got extra whole year time! Majove update time sudo sntp -sS time.asia.apple.com When you’re getting this error kod_init_kod_db(): Cannot open KoD db file /var/db/ntp-kod: No such file or directory You can solved the problems with:

Learning Flask 01

learning Flask 01 Installation and configure of anaconda Installaltion homebrew ruby -e "$(curl - fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" Installation of pyenv # Installing pyenv brew install pyenv Install anaconda 2 and anaconda 3 Download anaconda from here

Proxmox Ve Network Adapter Pass Through

Proxmox Network Adapter Pass Through Long time ago, I konw virtualization is go very good solution to server. But how about router build in virtualization? After tried to do it, I was failed. because virtual switch made networking very slow. So i just use dedicate server as a router. Recently days, I just learn proxmox and find pci-e pass through function. I think maybe it is way to make routing virtualization.