From 577aaa514802de34da8bcb7ae820bc041fbe02bf Mon Sep 17 00:00:00 2001 From: xiaoma Date: Wed, 16 Oct 2024 20:08:37 +0800 Subject: [PATCH] Site updated: 2024-10-16 20:08:37 --- .../index.html" | 7 ++++--- archives/2023/11/index.html | 4 ++-- archives/2023/index.html | 4 ++-- archives/2024/03/index.html | 4 ++-- archives/2024/04/index.html | 4 ++-- archives/2024/08/index.html | 4 ++-- archives/2024/09/index.html | 4 ++-- archives/2024/10/index.html | 4 ++-- archives/2024/index.html | 4 ++-- archives/index.html | 4 ++-- atom.xml | 4 ++-- categories/3DV/NeRF/index.html | 4 ++-- categories/3DV/index.html | 4 ++-- categories/AIGC/DDPM/index.html | 4 ++-- categories/AIGC/index.html | 4 ++-- categories/index.html | 2 +- categories/math/index.html | 4 ++-- categories/pytorch/index.html | 4 ++-- categories/server/index.html | 4 ++-- index.html | 4 ++-- search.xml | 2 +- tags/3dgs/index.html | 4 ++-- tags/AIGC/index.html | 4 ++-- tags/CG/index.html | 4 ++-- tags/DDPM/index.html | 4 ++-- tags/NeRF/index.html | 4 ++-- tags/deep-learning/index.html | 4 ++-- tags/index.html | 2 +- tags/linear-algebra/index.html | 4 ++-- tags/math/index.html | 4 ++-- tags/python/index.html | 4 ++-- tags/pytorch/index.html | 4 ++-- 32 files changed, 63 insertions(+), 62 deletions(-) diff --git "a/2024/09/02/\346\234\215\345\212\241\345\231\250\346\220\255\345\273\272/index.html" "b/2024/09/02/\346\234\215\345\212\241\345\231\250\346\220\255\345\273\272/index.html" index ca64509..e745541 100644 --- "a/2024/09/02/\346\234\215\345\212\241\345\231\250\346\220\255\345\273\272/index.html" +++ "b/2024/09/02/\346\234\215\345\212\241\345\231\250\346\220\255\345\273\272/index.html" @@ -7,7 +7,7 @@ - + -

服务器搭建

+

服务器搭建

本人记忆着实一般,这几天新得了几台服务器的权限,要记录下来,怎么开坑,方便自己遇到此类问题。寻来方便。。

毕竟,前一天刚开一个服务器;第二天就忘了具体咋操作了

@@ -188,6 +188,7 @@

注:

ssh connection timed out 可参考:https://stackoverflow.com/questions/59978826/why-ssh-connection-timed-out-in-vscode

+

10月06日更:

由于zz原因,国内连接github是个运气问题,而服务器上没🪜。我本人又对github commit有种蜜汁强迫,经常git push要等好久。。。

最近发现有github镜像网站(两个都可以,但是连接时得关掉本地电脑的🪜):1. https://bgithub.xyz 2. https://ggithub.xyz

diff --git a/archives/2023/11/index.html b/archives/2023/11/index.html index 01c4a46..2ece514 100644 --- a/archives/2023/11/index.html +++ b/archives/2023/11/index.html @@ -53,7 +53,7 @@ isHome: false, isHighlightShrink: false, isToc: false, - postUpdate: '2024-10-16 20:07:47' + postUpdate: '2024-10-16 20:08:37' }
\ No newline at end of file +
Info
Article :
6
UV :
PV :
Last Update :
\ No newline at end of file diff --git a/archives/2023/index.html b/archives/2023/index.html index 8f77b32..5c395b2 100644 --- a/archives/2023/index.html +++ b/archives/2023/index.html @@ -53,7 +53,7 @@ isHome: false, isHighlightShrink: false, isToc: false, - postUpdate: '2024-10-16 20:07:47' + postUpdate: '2024-10-16 20:08:37' }
\ No newline at end of file +
Tags
Archives
Info
Article :
6
UV :
PV :
Last Update :
\ No newline at end of file diff --git a/archives/2024/03/index.html b/archives/2024/03/index.html index 45aef2c..f48a5ac 100644 --- a/archives/2024/03/index.html +++ b/archives/2024/03/index.html @@ -53,7 +53,7 @@ isHome: false, isHighlightShrink: false, isToc: false, - postUpdate: '2024-10-16 20:07:47' + postUpdate: '2024-10-16 20:08:37' }
\ No newline at end of file +
Tags
Archives
Info
Article :
6
UV :
PV :
Last Update :
\ No newline at end of file diff --git a/archives/2024/04/index.html b/archives/2024/04/index.html index bedba97..e6b6661 100644 --- a/archives/2024/04/index.html +++ b/archives/2024/04/index.html @@ -53,7 +53,7 @@ isHome: false, isHighlightShrink: false, isToc: false, - postUpdate: '2024-10-16 20:07:47' + postUpdate: '2024-10-16 20:08:37' }
\ No newline at end of file +
Tags
Archives
Info
Article :
6
UV :
PV :
Last Update :
\ No newline at end of file diff --git a/archives/2024/08/index.html b/archives/2024/08/index.html index 2412d9e..012699e 100644 --- a/archives/2024/08/index.html +++ b/archives/2024/08/index.html @@ -53,7 +53,7 @@ isHome: false, isHighlightShrink: false, isToc: false, - postUpdate: '2024-10-16 20:07:47' + postUpdate: '2024-10-16 20:08:37' }
\ No newline at end of file +
Tags
Archives
Info
Article :
6
UV :
PV :
Last Update :
\ No newline at end of file diff --git a/archives/2024/09/index.html b/archives/2024/09/index.html index 33efc9f..d23b1b9 100644 --- a/archives/2024/09/index.html +++ b/archives/2024/09/index.html @@ -53,7 +53,7 @@ isHome: false, isHighlightShrink: false, isToc: false, - postUpdate: '2024-10-16 20:07:47' + postUpdate: '2024-10-16 20:08:37' }
\ No newline at end of file +
Tags
Archives
Info
Article :
6
UV :
PV :
Last Update :
\ No newline at end of file diff --git a/archives/2024/10/index.html b/archives/2024/10/index.html index 955f057..8831092 100644 --- a/archives/2024/10/index.html +++ b/archives/2024/10/index.html @@ -53,7 +53,7 @@ isHome: false, isHighlightShrink: false, isToc: false, - postUpdate: '2024-10-16 20:07:47' + postUpdate: '2024-10-16 20:08:37' }
\ No newline at end of file +
Tags
Archives
Info
Article :
6
UV :
PV :
Last Update :
\ No newline at end of file diff --git a/archives/2024/index.html b/archives/2024/index.html index 62cbbac..269854e 100644 --- a/archives/2024/index.html +++ b/archives/2024/index.html @@ -53,7 +53,7 @@ isHome: false, isHighlightShrink: false, isToc: false, - postUpdate: '2024-10-16 20:07:47' + postUpdate: '2024-10-16 20:08:37' }
\ No newline at end of file +
Tags
Archives
Info
Article :
6
UV :
PV :
Last Update :
\ No newline at end of file diff --git a/archives/index.html b/archives/index.html index f6a9758..2787fc5 100644 --- a/archives/index.html +++ b/archives/index.html @@ -53,7 +53,7 @@ isHome: false, isHighlightShrink: false, isToc: false, - postUpdate: '2024-10-16 20:07:47' + postUpdate: '2024-10-16 20:08:37' }
\ No newline at end of file +
Tags
Archives
Info
Article :
6
UV :
PV :
Last Update :
\ No newline at end of file diff --git a/atom.xml b/atom.xml index aadd580..bce6525 100644 --- a/atom.xml +++ b/atom.xml @@ -50,9 +50,9 @@ https://xiao10ma.github.io/2024/09/02/%E6%9C%8D%E5%8A%A1%E5%99%A8%E6%90%AD%E5%BB%BA/ 2024-09-01T16:00:00.000Z - 2024-10-16T12:07:30.624Z + 2024-10-16T12:08:25.253Z -

本人记忆着实一般,这几天新得了几台服务器的权限,要记录下来,怎么开坑,方便自己遇到此类问题。寻来方便。。

毕竟,前一天刚开一个服务器;第二天就忘了具体咋操作了

本人是做deep learning的,故本文仅仅适合DL的同学来看,其余不是很确定???

  1. 在/home/mazipei/目录下,下载miniconda/anaconda(看个人喜好,mini够用)

    • 下载 Miniconda (Python3 version)
    1
    wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh
    • 安装
    1
    bash Miniconda3-latest-Linux-x86_64.sh
    • 随后一直按回车,所有都yes
      安装好后,source ~/.bashrc
  2. 设置清华源

    1
    2
    python -m pip install --upgrade pip
    pip config set global.index-url https://mirrors.tuna.tsinghua.edu.cn/pypi/web/simple
  3. 找一个github repo下一个你要用的 conda 环境,我目前在做 4d edit,找了 Instruct4D-to-4D

    • 创建一个环境:conda create -n instruct4d python=3.8
    • 查看当前服务器装了什么版本的cuda,(一般师兄都会帮你装好)
      • cat /usr/local/cuda/version.json
    • 安装torch:pip install torch==2.0.1+cu118 torchvision==0.15.2+cu118 --index-url https://download.pytorch.org/whl/cu118
    • 安装当前repo需要的其他库:pip install -r requirements.txt

注:

ssh connection timed out 可参考:https://stackoverflow.com/questions/59978826/why-ssh-connection-timed-out-in-vscode

10月06日更:

由于zz原因,国内连接github是个运气问题,而服务器上没🪜。我本人又对github commit有种蜜汁强迫,经常git push要等好久。。。

最近发现有github镜像网站(两个都可以,但是连接时得关掉本地电脑的🪜):1. https://bgithub.xyz 2. https://ggithub.xyz

我这里以 bgithub.xyz 为例,讲解如何 git push:

  1. git clone : git clone https://bgithub.xyz/<User Name>/<Repo Name>.git
  2. 根据这篇博客,生成token并set-url,https://www.cnblogs.com/oldweipro/p/16612197.html
    • 但是注意,博客中的 set-url:git remote set-url origin https://<your_token>@github.com/<USERNAME>/<REPO>.git,由于是镜像,需要把github.com更改为bgithub.xyz
  3. git push: git push origin main
]]>
+

本人记忆着实一般,这几天新得了几台服务器的权限,要记录下来,怎么开坑,方便自己遇到此类问题。寻来方便。。

毕竟,前一天刚开一个服务器;第二天就忘了具体咋操作了

本人是做deep learning的,故本文仅仅适合DL的同学来看,其余不是很确定???

  1. 在/home/mazipei/目录下,下载miniconda/anaconda(看个人喜好,mini够用)

    • 下载 Miniconda (Python3 version)
    1
    wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh
    • 安装
    1
    bash Miniconda3-latest-Linux-x86_64.sh
    • 随后一直按回车,所有都yes
      安装好后,source ~/.bashrc
  2. 设置清华源

    1
    2
    python -m pip install --upgrade pip
    pip config set global.index-url https://mirrors.tuna.tsinghua.edu.cn/pypi/web/simple
  3. 找一个github repo下一个你要用的 conda 环境,我目前在做 4d edit,找了 Instruct4D-to-4D

    • 创建一个环境:conda create -n instruct4d python=3.8
    • 查看当前服务器装了什么版本的cuda,(一般师兄都会帮你装好)
      • cat /usr/local/cuda/version.json
    • 安装torch:pip install torch==2.0.1+cu118 torchvision==0.15.2+cu118 --index-url https://download.pytorch.org/whl/cu118
    • 安装当前repo需要的其他库:pip install -r requirements.txt

注:

ssh connection timed out 可参考:https://stackoverflow.com/questions/59978826/why-ssh-connection-timed-out-in-vscode


10月06日更:

由于zz原因,国内连接github是个运气问题,而服务器上没🪜。我本人又对github commit有种蜜汁强迫,经常git push要等好久。。。

最近发现有github镜像网站(两个都可以,但是连接时得关掉本地电脑的🪜):1. https://bgithub.xyz 2. https://ggithub.xyz

我这里以 bgithub.xyz 为例,讲解如何 git push:

  1. git clone : git clone https://bgithub.xyz/<User Name>/<Repo Name>.git
  2. 根据这篇博客,生成token并set-url,https://www.cnblogs.com/oldweipro/p/16612197.html
    • 但是注意,博客中的 set-url:git remote set-url origin https://<your_token>@github.com/<USERNAME>/<REPO>.git,由于是镜像,需要把github.com更改为bgithub.xyz
  3. git push: git push origin main
]]>
diff --git a/categories/3DV/NeRF/index.html b/categories/3DV/NeRF/index.html index 78f63c6..7439061 100644 --- a/categories/3DV/NeRF/index.html +++ b/categories/3DV/NeRF/index.html @@ -53,7 +53,7 @@ isHome: false, isHighlightShrink: false, isToc: false, - postUpdate: '2024-10-16 20:07:47' + postUpdate: '2024-10-16 20:08:36' }
\ No newline at end of file +
Tags
Archives
Info
Article :
6
UV :
PV :
Last Update :
\ No newline at end of file diff --git a/categories/3DV/index.html b/categories/3DV/index.html index f7ed8ec..2db1a1f 100644 --- a/categories/3DV/index.html +++ b/categories/3DV/index.html @@ -53,7 +53,7 @@ isHome: false, isHighlightShrink: false, isToc: false, - postUpdate: '2024-10-16 20:07:47' + postUpdate: '2024-10-16 20:08:36' }
\ No newline at end of file +
Tags
Archives
Info
Article :
6
UV :
PV :
Last Update :
\ No newline at end of file diff --git a/categories/AIGC/DDPM/index.html b/categories/AIGC/DDPM/index.html index da3db43..8c27855 100644 --- a/categories/AIGC/DDPM/index.html +++ b/categories/AIGC/DDPM/index.html @@ -53,7 +53,7 @@ isHome: false, isHighlightShrink: false, isToc: false, - postUpdate: '2024-10-16 20:07:47' + postUpdate: '2024-10-16 20:08:36' }
\ No newline at end of file +
Tags
Archives
Info
Article :
6
UV :
PV :
Last Update :
\ No newline at end of file diff --git a/categories/AIGC/index.html b/categories/AIGC/index.html index fb5185f..13f769e 100644 --- a/categories/AIGC/index.html +++ b/categories/AIGC/index.html @@ -53,7 +53,7 @@ isHome: false, isHighlightShrink: false, isToc: false, - postUpdate: '2024-10-16 20:07:47' + postUpdate: '2024-10-16 20:08:36' }
\ No newline at end of file +
Tags
Archives
Info
Article :
6
UV :
PV :
Last Update :
\ No newline at end of file diff --git a/categories/index.html b/categories/index.html index c0a226b..bf3be66 100644 --- a/categories/index.html +++ b/categories/index.html @@ -161,7 +161,7 @@
Tags
Archives
Info
Article :
6
UV :
PV :
Last Update :
\ No newline at end of file +
Info
Article :
6
UV :
PV :
Last Update :
\ No newline at end of file diff --git a/categories/pytorch/index.html b/categories/pytorch/index.html index 13a55ed..3a0c3aa 100644 --- a/categories/pytorch/index.html +++ b/categories/pytorch/index.html @@ -53,7 +53,7 @@ isHome: false, isHighlightShrink: false, isToc: false, - postUpdate: '2024-10-16 20:07:47' + postUpdate: '2024-10-16 20:08:36' }
\ No newline at end of file +
Tags
Archives
Info
Article :
6
UV :
PV :
Last Update :
\ No newline at end of file diff --git a/categories/server/index.html b/categories/server/index.html index 33bc15d..fec78ea 100644 --- a/categories/server/index.html +++ b/categories/server/index.html @@ -53,7 +53,7 @@ isHome: false, isHighlightShrink: false, isToc: false, - postUpdate: '2024-10-16 20:07:47' + postUpdate: '2024-10-16 20:08:36' }
\ No newline at end of file +
Tags
Archives
Info
Article :
6
UV :
PV :
Last Update :
\ No newline at end of file diff --git a/index.html b/index.html index 49c01b6..d95b56d 100644 --- a/index.html +++ b/index.html @@ -53,7 +53,7 @@ isHome: true, isHighlightShrink: false, isToc: false, - postUpdate: '2024-10-16 20:07:47' + postUpdate: '2024-10-16 20:08:36' }
\ No newline at end of file +
Tags
Archives
Info
Article :
6
UV :
PV :
Last Update :
\ No newline at end of file diff --git a/tags/AIGC/index.html b/tags/AIGC/index.html index 4539178..37273d9 100644 --- a/tags/AIGC/index.html +++ b/tags/AIGC/index.html @@ -53,7 +53,7 @@ isHome: false, isHighlightShrink: false, isToc: false, - postUpdate: '2024-10-16 20:07:47' + postUpdate: '2024-10-16 20:08:37' }
\ No newline at end of file +
Tags
Archives
Info
Article :
6
UV :
PV :
Last Update :
\ No newline at end of file diff --git a/tags/CG/index.html b/tags/CG/index.html index 789d5ca..24ac576 100644 --- a/tags/CG/index.html +++ b/tags/CG/index.html @@ -53,7 +53,7 @@ isHome: false, isHighlightShrink: false, isToc: false, - postUpdate: '2024-10-16 20:07:47' + postUpdate: '2024-10-16 20:08:37' }
\ No newline at end of file +
Tags
Archives
Info
Article :
6
UV :
PV :
Last Update :
\ No newline at end of file diff --git a/tags/DDPM/index.html b/tags/DDPM/index.html index 9f5e7e8..19a7bdf 100644 --- a/tags/DDPM/index.html +++ b/tags/DDPM/index.html @@ -53,7 +53,7 @@ isHome: false, isHighlightShrink: false, isToc: false, - postUpdate: '2024-10-16 20:07:47' + postUpdate: '2024-10-16 20:08:37' }
\ No newline at end of file +
Tags
Archives
Info
Article :
6
UV :
PV :
Last Update :
\ No newline at end of file diff --git a/tags/NeRF/index.html b/tags/NeRF/index.html index ef4cfdb..24ea4d3 100644 --- a/tags/NeRF/index.html +++ b/tags/NeRF/index.html @@ -53,7 +53,7 @@ isHome: false, isHighlightShrink: false, isToc: false, - postUpdate: '2024-10-16 20:07:47' + postUpdate: '2024-10-16 20:08:37' }
\ No newline at end of file +
Tags
Archives
Info
Article :
6
UV :
PV :
Last Update :
\ No newline at end of file diff --git a/tags/deep-learning/index.html b/tags/deep-learning/index.html index c1989a5..329b084 100644 --- a/tags/deep-learning/index.html +++ b/tags/deep-learning/index.html @@ -53,7 +53,7 @@ isHome: false, isHighlightShrink: false, isToc: false, - postUpdate: '2024-10-16 20:07:47' + postUpdate: '2024-10-16 20:08:37' }
\ No newline at end of file +
Tags
Archives
Info
Article :
6
UV :
PV :
Last Update :
\ No newline at end of file diff --git a/tags/index.html b/tags/index.html index 080294a..d98dcf6 100644 --- a/tags/index.html +++ b/tags/index.html @@ -161,7 +161,7 @@
Tags
Archives
Info
Article :
6
UV :
PV :
Last Update :
\ No newline at end of file +
Info
Article :
6
UV :
PV :
Last Update :
\ No newline at end of file diff --git a/tags/math/index.html b/tags/math/index.html index f109c6e..8fcf4fa 100644 --- a/tags/math/index.html +++ b/tags/math/index.html @@ -53,7 +53,7 @@ isHome: false, isHighlightShrink: false, isToc: false, - postUpdate: '2024-10-16 20:07:47' + postUpdate: '2024-10-16 20:08:37' }
\ No newline at end of file +
Tags
Archives
Info
Article :
6
UV :
PV :
Last Update :
\ No newline at end of file diff --git a/tags/python/index.html b/tags/python/index.html index 19d7475..1daeb51 100644 --- a/tags/python/index.html +++ b/tags/python/index.html @@ -53,7 +53,7 @@ isHome: false, isHighlightShrink: false, isToc: false, - postUpdate: '2024-10-16 20:07:47' + postUpdate: '2024-10-16 20:08:37' }
\ No newline at end of file +
Tags
Archives
Info
Article :
6
UV :
PV :
Last Update :
\ No newline at end of file diff --git a/tags/pytorch/index.html b/tags/pytorch/index.html index 0912d4b..4633edd 100644 --- a/tags/pytorch/index.html +++ b/tags/pytorch/index.html @@ -53,7 +53,7 @@ isHome: false, isHighlightShrink: false, isToc: false, - postUpdate: '2024-10-16 20:07:47' + postUpdate: '2024-10-16 20:08:37' }
\ No newline at end of file +
Tags
Archives
Info
Article :
6
UV :
PV :
Last Update :
\ No newline at end of file