KinglittleQ / scripts

Scripts to configure servers.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Scripts to configure servers.

My personal scripts to auto-configure in new machines.

install.sh

Automatically

  1. Link all dotfiles
  2. Download v2ray and run it on port 7891
  3. Set proxy as 127.0.0.1:7891
  4. Download oh-my-zsh and autosuggestion package
  5. Set oh-my-zsh theme as ys, enable autosuggestion package

docker_run.sh

Automatically

  1. Build a docker image if not exists (using proxy 127.0.0.1:7891)
  2. Push the built image to the docker server
  3. Create a user with the same user name, user id and group id as the host user
  4. Start a container with the name dev_in_$(PWD)

docker_exec.sh

Connect to a running container named dev_in_$(PWD)

env.sh

Some util functions and environment variables. The proxy could be disabled by replacing 127.0.0.1:7891 with an empty string.

Packages in docker:

  1. Python 3.7
  2. Pytorch 1.6
  3. OpenCV 3
  4. gcc-7, g++-7
  5. libboost-all-dev
  6. CMake
  7. wget, curl
  8. sudo

NOTE: sudo is enabled without password

About

Scripts to configure servers.


Languages

Language:Shell 80.6%Language:Vim Script 19.4%