How to Install Squirrel on Macos

How to install squirrel as your chinese input method for your macos 1. Install squirrel brew cask install squirrel 2. Logout and login or Reboot your mac Reboot your mac 3. Copy squirrel configuration for you configuration file: https://github.com/wongdean/rime-settings# mkdir rime && cd rime git clone https://github.com/wongdean/rime-settings.git 4. configure squrriel Press control + space key to enable squirrel. Then click settings... Copy all contents in rime-settings expect fonts folder to configure folder.

How to Create Debian10 With Cloudinit for Pve

How to Create Debian10 template With Cloudinit for PVE VMID=9002 VM_NAME=CentOS-7-x86_64-GenericCloud VM_DOWNLOAD_URL=http://mirrors.ustc.edu.cn/centos-cloud/centos/7/images/CentOS-7-x86_64-GenericCloud.qcow2.xz TEMPLATE_VM_NAME=$(echo $VM_NAME | sed 's/_/-/g') STORAGE_PATH=local DEFAULT_PVE_PATH=/var/lib/vz/images #Change directory to `local` cd /var/lib/vz/images #Download centos 7 cloud images on proxmox ve wget $VM_DOWNLOAD_URL #unzip the file #xz -z (to zip file) #xz -k( to keep original file and valur `-0` to `-9` to set zip rate, default zip rate is -6 #xz -d (to unzip file) # xz -k (to keep zipped file not deleted) xz -d -k $VM_NAME.

How to Create Centos7 Template for Pve

HOw to create CentOS 7 template for PVE VMID=9002 VM_NAME=CentOS-7-x86_64-GenericCloud VM_DOWNLOAD_URL=http://mirrors.ustc.edu.cn/centos-cloud/centos/7/images/CentOS-7-x86_64-GenericCloud.qcow2.xz TEMPLATE_VM_NAME=$(echo $VM_NAME | sed 's/_/-/g') STORAGE_PATH=local DEFAULT_PVE_PATH=/var/lib/vz/images #Change directory to `local` cd /var/lib/vz/images #Download centos 7 cloud images on proxmox ve wget $VM_DOWNLOAD_URL #unzip the file #xz -z (to zip file) #xz -k( to keep original file and valur `-0` to `-9` to set zip rate, default zip rate is -6 #xz -d (to unzip file) # xz -k (to keep zipped file not deleted) xz -d -k $VM_NAME.

How to Extend All Available Disk to Local Data

How to extend all available disk to local-data After install Proxmove VE, the local-data only have about 50GB disk availabe. But how to let all availabld disk space to the local-data? Here we go: # Remove local-data lvremove /dev/pve/data # Extend all available disk to /dev/pve/root lvresize -l +100%FREE /dev/pve/root #recreate pve-root resize2fs /dev/mapper/pve-root Reference Proxmox – Remove LVM local-data

How to make Destination Base Routing With Vyos

How to make Destination Base Routing with Vyos I have 2 network interfaces. one for user access inboard network,another for user to access network aboard. How to make it work with vyos? Make a network group #Define a netwrok-group set firewall group network-group china-ip-ranges #Define lan network group set firewall group network-group lan-net-group network '192.168.11.0/24' set policy set policy route network-shunt rule 20 destination group network-group 'china-ip-ranges' set policy route network-shunt rule 20 set table '20' set policy route network-shunt rule 20 source group network-group 'lan-net-group' set policy route network-shunt rule 30 set table '30' set policy route network-shunt rule 30 source group network-group 'lan-net-group' Download and set the network-group with ipset Download and make a list for network-group loading when booting.

How to Config Ddns for Vyos With Dns.he.net

How to config DDNS for vyos with dns.he.net Register A Recored Register a domian host.mydomain.com on your https://dns.he.net Generate a key 64LGiLiuoiuoiuoi Run command to setup the ddns service configure set service dns dynamic interface pppoe0 service dyndns host-name 'host.mydomain.com' set service dns dynamic interface pppoe0 service dyndns login 'host.mydomain.com' set service dns dynamic interface pppoe0 service dyndns password '64LGiLiuoiuoiuoi' set service dns dynamic interface pppoe0 service dyndns server 'dyn.

How to Build L2tp Over Ipsec VPN With Vyos

How to build L2tp over ipsec vpn with vyos Today, I will show you how to build a l2tp over ipsec vpn with adsl wan address. Setup vpn on vyos Generate a preshare key $ generate wireguard preshared-key uND0O6RYI1O833NL2+qwSrW4htMll1hJAUM2nPQaa8k= With authentication local configuration VPN Key Value WAN interface pppoe0 l2tp vpn network 172.16.100.0/24 PRESHARE KEY uND0O6RYI1O833NL2+qwSrW4htMll1hJAUM2nPQaa8k= DNS server 01 192.

How to Deploy Jitsi Server With Docker Compose

How to deploy Jisti Server with docker-compose Install jisti Server git clone latest version git clone https://github.com/jitsi/docker-jitsi-meet && cd docker-jitsi-meet cp env.example .env Generate security password ./gen-passwords.sh #mkdir -p ~/.jitsi-meet-cfg/{web/letsencrypt,transcripts,prosody,jicofo,jvb} mkdir -p ~/.jitsi-meet-cfg/{web/letsencrypt,transcripts,prosody/config,prosody/prosody-plugins-custom,jicofo,jvb,jigasi,jibri} Modify .env copy env.example to .env. cp env.example .env Modify key and value as followed. CONFIG=~/.jitsi-meet-cfg # Exposed HTTP port HTTP_PORT=80 # Exposed HTTPS port HTTPS_PORT=443 # System time zone TZ=Asia/Shanghai # Public URL for the web

How to Convert Cert to Ssl

How to convert godaddy certification files from .cert to .pem Recently days, I met an issue to renew ssl certification file for a website. The former developer setup certification file to .pem. It take a long time to make it work. Here we go. Convert .crt to .pem # convert .key file to key.pem openssl rsa -in mywebsite.com.key -text > key.pem # convert .cert to cert.pem cat mywebsite.com.crt > cert.pem # add cert chain to the cert.

How to Enable Ntfs Read and Write in Macos Catalina 10.15

How to enable NTFS Read and Write in Macos Catalina 10.15 For a long time. It was much trouble to enable ntfs write mode in macos. Today I done it about enable ntfs wirte support with fuse and ntfs-3g. Install FUSE for macos You can download latest FUSE for macOS from here: FUSE for macOS Then you can install it by yourself. Install ntfs-3g brew install ntfs-3g Replace ntfs-3g Since from OS X 10.

How to Install Graylog With Docker Compose

How to Install Graylog with Docker-compose Hostname my-graylog Docker-compose.yaml version:'2'services:# MongoDB: https://hub.docker.com/_/mongo/mongodb:image:mongo:3volumes:- ./data/mongo_data:/data/db- /etc/localtime:/etc/localtime:ro# Elasticsearch: https://www.elastic.co/guide/en/elasticsearch/reference/6.x/docker.htmlelasticsearch:image:docker.elastic.co/elasticsearch/elasticsearch-oss:6.8.2volumes:- ./data/es_data:/usr/share/elasticsearch/data- /etc/localtime:/etc/localtime:roenvironment:- http.host=0.0.0.0- transport.host=localhost- network.host=0.0.0.0- "ES_JAVA_OPTS=-Xms512m -Xmx512m"ulimits:memlock:soft:-1hard:-1mem_limit:1g# Graylog: https://hub.docker.com/r/graylog/graylog/graylog:image:graylog/graylog:3.1volumes:- ./data/graylog_journal:/usr/share/graylog/data/journal- /etc/localtime:/etc/localtime:roenvironment:# CHANGE ME (must be at least 16 characters)!- GRAYLOG_PASSWORD_SECRET=somepasswordpepper# Password: admin- GRAYLOG_ROOT_PASSWORD_SHA2=8c6976e5b5410415bde908bd4dee15dfb167a9c873fc4bb8a81f6f2ab448a918- GRAYLOG_HTTP_EXTERNAL_URI=http://my-graylog:9000/links:- mongodb:mongo- elasticsearchdepends_on:- mongodb- elasticsearchports:# Graylog web interface and REST API- 9000:9000# Syslog TCP- 1514:1514# Syslog UDP- 1514:1514/udp# GELF TCP- 12201:12201# GELF UDP- 12201:12201/udp# Volumes for persisting data, see https://docs.

How to Build Ipsec Site to Site Vpn With Vyos and Pfsense

How to build ipse site-to-site VPN with vyos and pfsense Vyos VS pfsense For build all kinds of network functions like nat,firewall, site-to-site vpn , dial in vpn with pfsense.It works well. But it has some Crons: Hard to upgrade version, it manybe crashed Didn’t support API. Heavy loading and low performance. After try to replace pfsense to build all functions with vyos. It has a lot of pros:

How to Install Jenkins With Docker Compose

How to install Jenkins with docker compose Create Dockerfile With office jenkins docker images.change the jenkins mirrors and change alpine linux soure list to aliyun #DockerfileFROM jenkins/jenkins:alpineUSER rootENV JENKINS_MIRROR https://mirrors.tuna.tsinghua.edu.cnENV JENKINS_UC_DOWNLOAD="https://mirrors.tuna.tsinghua.edu.cn/jenkins/"RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.aliyun.com/g' /etc/apk/repositories \&&apk update \&&apk add docker nodejs nodejs-npm yarnCreate docker-compose.yaml # docker-compose.yamlversion:"2.4"services:jenkins:build:./#image: jenkins/jenkins:alpinecontainer_name:jenkinsports:- "80:8080"- "50000:50000"environment:#- JAVA_OPTS=-Xmx1500m -Duser.timezone=GMT+8- JAVA_OPTS=-Duser.timezone=GMT+8- JENKINS_UC_DOWNLOAD=https://mirrors.tuna.tsinghua.edu.cn/jenkins/volumes:- ./data/jenkins:/var/jenkins_home- /var/run/docker.sock:/var/run/docker.sock- /root/.ssh/:/root/.ssh- /etc/localtime:/etc/localtime:ro# cpus: 3.5# mem_limit: 1800muser:rootrestart:alwaysInstall Jenkins with Check initial Admin Password by run command

How to Install Gitlab With Docker-Compose

How to Install gitlab with docer-compose version:"3.5"services:gitlab:image:gitlab/gitlab-ce:latestcontainer_name:gitlabrestart:alwayshostname:'xa-gitlab'environment:GITLAB_OMNIBUS_CONFIG:|external_url 'http://xa-gitlab' gitlab_rails['backup_keep_time'] = 604800 gitlab_rails['time_zone'] = 'Asia/Shanghai' gitlab_rails['gitlab_shell_ssh_port'] = 1022 #gitlab_rails['ldap_enabled'] = true #gitlab_rails['ldap_servers'] = YAML.load <<-EOS #main: # label: 'LDAP' # host: '192.168.1.1' # port: 389 # uid: 'uid' # bind_dn: 'CN=admin,DC=lotbrick,DC=com' # password: 'admin' # user_filter: 'objectclass=person' # base: 'ou=People,dc=xxxxx,dc=com' # active_directory: false # method: 'plain' # attributes: # username: ["cn"] # email: ['email'] # name: 'displayName' # first_name: 'givenName' #