惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Cloudbric
Cloudbric
WordPress大学
WordPress大学
博客园 - 叶小钗
B
Blog RSS Feed
T
Tailwind CSS Blog
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
美团技术团队
Scott Helme
Scott Helme
D
Darknet – Hacking Tools, Hacker News & Cyber Security
Hugging Face - Blog
Hugging Face - Blog
T
Threat Research - Cisco Blogs
B
Blog
V
V2EX
Simon Willison's Weblog
Simon Willison's Weblog
I
Intezer
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
T
Threatpost
Cisco Talos Blog
Cisco Talos Blog
阮一峰的网络日志
阮一峰的网络日志
C
Cybersecurity and Infrastructure Security Agency CISA
PCI Perspectives
PCI Perspectives
雷峰网
雷峰网
The Register - Security
The Register - Security
博客园 - 【当耐特】
Google DeepMind News
Google DeepMind News
N
News and Events Feed by Topic
H
Hackread – Cybersecurity News, Data Breaches, AI and More
U
Unit 42
Security Latest
Security Latest
NISL@THU
NISL@THU
腾讯CDC
S
SegmentFault 最新的问题
小众软件
小众软件
The GitHub Blog
The GitHub Blog
月光博客
月光博客
A
Arctic Wolf
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
N
Netflix TechBlog - Medium
IT之家
IT之家
D
DataBreaches.Net
C
CXSECURITY Database RSS Feed - CXSecurity.com
N
News | PayPal Newsroom
L
LINUX DO - 最新话题
博客园 - 司徒正美
大猫的无限游戏
大猫的无限游戏
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
J
Java Code Geeks
TaoSecurity Blog
TaoSecurity Blog
P
Privacy International News Feed

Jiayi Liu on Jiayi Liu

Differential variability analysis of single-cell gene expression data | Jiayi Liu Phylogenetic inference from single-cell RNA-seq data | Jiayi Liu Running singularity containers in a High Performance Computing (HPC) environment | Jiayi Liu 2021这一年 | Jiayi Liu A 'one-two punch' therapy strategy to target chemoresistance in estrogen receptor positive breast cancer | Jiayi Liu Activation of EPHA2-ROBO1 heterodimer by SLIT2 attenuates non-canonical signaling and proliferation in squamous cell carcinomas | Jiayi Liu 强迫症二三事 | Jiayi Liu 来Houston一周年 | Jiayi Liu 与母亲对话若干则 | Jiayi Liu 烧饭经验 | Jiayi Liu 乘车记 by 我妈 | Jiayi Liu 2019 | Jiayi Liu Patterned progression of gut microbiota associated with necrotizing enterocolitis and late onset sepsis in preterm infants: a prospective study in a Chinese neonatal intensive care unit | Jiayi Liu 【转】食人族留学生纪事本末 | Jiayi Liu
Deploying Huginn with Docker on Google Cloud Platform | Jiayi Liu
Jiayi Liu · 2020-08-21 · via Jiayi Liu on Jiayi Liu

This is a step by step tutorial for new vps/huginn hobbyists who are not quite familiar with Docker, Huggin, Tmux or Google Cloud Platform.

Prerequisites:

You have a google account

Steps:

  1. Open Terminal on your own computer, copy, paste and press enter:
   ssh-keygen -t rsa -f ~/.ssh/gcloud -C "yourname"
   cat .ssh/gcloud.pub
  1. Copy the output (your public key). It looks like such:
   ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQDqHVubWmyWj5R3I8Wa7kZdTcT9DclFfO/bXnIMps28281IS9iJjKWRVpWCZby6fc/QxZZguRrFvWL7bBm5r3lzW37bvBhy/tcjYd4Kq66gPklK9mygeelubvR1m2TRcN6ty5oi8w28Ik0I0iN04YVa0rx0qW4LrG4SCXyIdHuw2HWBruszY8eNFPFY1YFO81Q1Yfsl5b2fzPlNwc2zaGOYy2naKPXdXPb/tTGNvJrO3JuP2M8b+e7vmTyZVecHeNjWrce0xd2W9qiFLoj6aklcVyFqoDfHT1hEZ7t5/prbgD0k3cFsjexBYzI/bwfGKstkNSKty4/58NeF43pPBHUiC1Mpby4u4ChRFGRDzwsh84YQXgr5AZTjTok9QAnYtiUPc1yVMLLnAdQv0mtpAvXxDW7SuZ/8jpP6ivxGlKVCeMkB9hqTy/Qoajv4OskswML7qL+kJUQz2z+aD6CIzf+aQpm+gI1hWnwIhMdghE7IyDgrJe/D7gcUBBSb2af2icM= username
  1. Go to your Google Cloud Platform Console

  2. Click on the hamburger on the top left corner –> ‘COMPUTE’ –> ‘Compute Engine’ –> ‘VM instances’

  3. Click ‘Create instance’. Tick the boxes: “Allow HTTP traffic” and “Allow HTTPS traffic” then click save.

  4. Go back to “VM instances” –> copy the ‘External IP’ of the instance (address as such: 192.168.1.1).

  5. Go to the instance that you’ve just created and edit the ‘ssh keys’ by copying your public key (generated in step2) in the box.

  6. Click on the hamburger on the top left –> ‘NETWORKING’ –> ‘VPC Networks’ –> ‘Firewall’ (left side bar)

  7. ‘CREAT FIREWALL RULE’, edit the followings:

    1. Change the Targets dropdown to All instances in the network.
    2. Specify the Source IP ranges to be 0.0.0.0/0.
    3. Protocols and ports: Specified protocols and ports
    4. tcp: 3000
  8. Open Terminal on your own computer, connect to your instance via ssh:

    ssh -i .ssh/gcloud username@192.168.1.1
    
    1. Update the system, install docker and tmux, and run the huginn image:
    # update the system
    sudo apt-get update
    
    # install docker, change docker socket mode
    sudo curl -sSL https://get.docker.com/ | sh
    sudo chmod 666 /var/run/docker.sock
    
    # install tmux
    sudo apt install tmux
    
    # run huginn with docker in a new tmux session
    tmux new -s huginn
    docker run -it -p 3000:3000 huginn/huginn
    
  9. Open your web browser and visit: http://192.168.1.1:3000

  10. Default username: admin Default password: password