GithubHelp home page GithubHelp logo

shared-notes's Introduction

Remember Who You Are

何当痛饮黄龙府,高筑神州风雨楼

Hi there 👋

GitHub Stats
  • 👋 Hi, I’m Osgood001
  • 👀 I’m interested in Math,Physics and Programming, and mainly write in Python.
  • 🌱 I’m currently learning Physics and are interested in simulating real world.
  • 📫 This account will not be checked frequently.
  • ⚡ My personal blog: Osgood's Blog
  • 📫 Feel free to reach me at [email protected]

shared-notes's People

Contributors

osgood001 avatar

Watchers

 avatar

shared-notes's Issues

配置环境

Motivation

在任意设备,配置可运行/可开发的环境。

Solution

对特定的开发环境,使用对应的镜像是最为快捷有效的,我们采用docker容器化服务。

配置任何环境的方法:

1.下载docker
2.下载对应的容器(如果有)
3. _ _, 启动!

参考安装docker,如果用的是windows,直接点这里,开装!

看到一个合适的容器(这里以可视化分子的Jmol为例),拿来把你:

docker run -dp 3001:3001 --name jsmol immersification/jsmol 

它就会告诉你本地没有,然后自己开始安装。

一些有用的小命令:

To stop the container: docker stop jsmol

To start the container again: docker start jsmol

To remove the container: docker rm jsmol

To remove the image: docker image rm immersification/jsmol

其他的如法炮制即可


对于他人运行的大型服务器,作为非root用户,可能会复杂一些,下面是教程:

首先,安装一个docker。

如果你用的windows,直接点这里,下载安装按照要求搞完,就可以了。

参考docker安装,无论什么系统,一条命令给他安装啰:

curl -fsSL https://get.docker.com -o install-docker.sh; sudo sh install-docker.sh

没有curl?(警觉)也可以选择

wget -O install-docker.sh https://get.docker.com; sh install-docker.sh

sudo都没有?(叹气)叫你服务器负责人给你加一个权限吧,sudo adduser 你的名字 sudo就可以了。

还是不行?参考 #28

判断是否成功,运行

sudo docker run hello-world

要运行镜像需要设置各类参数,参考上面那个例子即可,复杂的问AI好吧。

进入后默认为root权限,因此没有sudo等功能,但如果需要运行,有时候需要设置 chmod g+rwx <filepath>以确保能正常写入。

能够运行后,可以参考配置Vscode,Vim等,获得较好的体验。

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.