Giter Club home page Giter Club logo

t-pot-autoinstall's Introduction

自动安装 T-Pot **区加速

感谢 T-Pot 17.10 ,感谢n3uz

修改如下:

1、修改Ubuntu源为163源。
2、修改pip安装源为清华源。
3、修改git源为coding。
4、docker增加aliyun mirror

脚本在ubuntu16.04 下测试通过。

部署前置条件

  • 准备普通用户,并为普通用户创建公私钥,用于密钥登录。
  • root运行安装脚本

以普通用户z为例

z@ubuntu:~$ ssh-keygen -t rsa
Generating public/private rsa key pair.
Enter file in which to save the key (/home/z/.ssh/id_rsa):
Created directory '/home/z/.ssh'.
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /home/z/.ssh/id_rsa.
Your public key has been saved in /home/z/.ssh/id_rsa.pub.
The key fingerprint is:
SHA256:ZEVXpFGTbX+e/RoGkF/XxN9McBKt7MUvaZxAZ7XL/Tw z@ubuntu
The key's randomart image is:
+---[RSA 2048]----+
|         .o o+OO+|
|         . o.o+=O|
|        o o..+.B*|
|       o   o..+.@|
|        S   o+ B*|
|             .Bo=|
|             .oE+|
|             . .o|
|              .. |
+----[SHA256]-----+

z@ubuntu:~$ ls -la ./.ssh
total 16
drwx------ 2 z z 4096 Oct 26 14:56 .
drwxr-xr-x 4 z z 4096 Oct 26 14:56 ..
-rw------- 1 z z 1766 Oct 26 14:56 id_rsa
-rw-r--r-- 1 z z  390 Oct 26 14:56 id_rsa.pub

添加公钥

z@ubuntu:~$ cat /home/z/.ssh/id_rsa.pub >> /home/z/.ssh/authorized_keys

保存私钥/home/z/.ssh/id_rsa 文件,用于后面的登录。

安装建议

  • 执行install.sh之前先执行如下命令,执行完毕之后再运行install.sh

    apt-get install python2.7
    pip install -i https://pypi.tuna.tsinghua.edu.cn/simple --upgrade pip && hash -r pip
    pip install -i https://pypi.tuna.tsinghua.edu.cn/simple --upgrade setuptools
    pip install docker-compose==1.16.1 
    pip install elasticsearch-curator==5.2.0 
    
    apt-get install nodejs npm
    npm install https://github.com/t3chn0m4g3/wetty -g
    npm install https://github.com/t3chn0m4g3/elasticsearch-dump -g
    

t-pot-autoinstall's People

Contributors

a2atsu avatar panjks avatar t3chn0m4g3 avatar vorband avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.