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 e745541..5d32405 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 @@ - + -

服务器搭建

+

服务器搭建

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

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

@@ -189,7 +189,7 @@

注:

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


-

10月06日更:

+

2024年10月06日更:

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

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

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

diff --git a/archives/2023/11/index.html b/archives/2023/11/index.html index 2ece514..913ae60 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:08:37' + postUpdate: '2024-10-16 20:09:11' }
\ 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 5c395b2..9d6dfcb 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:08:37' + postUpdate: '2024-10-16 20:09:11' }
\ No newline at end of file +
Tags
linear algebra math 3dgs pytorch DDPM leetcode CG AIGC python 日记 nerf deep learning NeRF 算法
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 f48a5ac..c8c0b55 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:08:37' + postUpdate: '2024-10-16 20:09:11' }
\ No newline at end of file +
Tags
linear algebra math 3dgs pytorch DDPM leetcode CG AIGC python 日记 nerf deep learning NeRF 算法
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 e6b6661..e5e4274 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:08:37' + postUpdate: '2024-10-16 20:09:11' }
\ No newline at end of file +
Tags
linear algebra math 3dgs pytorch DDPM leetcode CG AIGC python 日记 nerf deep learning NeRF 算法
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 012699e..1dcf11d 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:08:37' + postUpdate: '2024-10-16 20:09:11' }
\ No newline at end of file +
Tags
linear algebra math 3dgs pytorch DDPM leetcode CG AIGC python 日记 nerf deep learning NeRF 算法
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 d23b1b9..e6a6281 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:08:37' + postUpdate: '2024-10-16 20:09:11' }
\ No newline at end of file +
Tags
linear algebra math 3dgs pytorch DDPM leetcode CG AIGC python 日记 nerf deep learning NeRF 算法
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 8831092..f4658b3 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:08:37' + postUpdate: '2024-10-16 20:09:11' }
\ No newline at end of file +
Tags
linear algebra math 3dgs pytorch DDPM leetcode CG AIGC python 日记 nerf deep learning NeRF 算法
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 269854e..4f007b2 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:08:37' + postUpdate: '2024-10-16 20:09:11' }
\ No newline at end of file +
Tags
linear algebra math 3dgs pytorch DDPM leetcode CG AIGC python 日记 nerf deep learning NeRF 算法
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 2787fc5..70ab4b9 100644 --- a/archives/index.html +++ b/archives/index.html @@ -53,7 +53,7 @@ isHome: false, isHighlightShrink: false, isToc: false, - postUpdate: '2024-10-16 20:08:37' + postUpdate: '2024-10-16 20:09:11' }
\ No newline at end of file +
Tags
linear algebra math 3dgs pytorch DDPM leetcode CG AIGC python 日记 nerf deep learning NeRF 算法
Archives
Info
Article :
6
UV :
PV :
Last Update :
\ No newline at end of file diff --git a/atom.xml b/atom.xml index bce6525..6d5bc57 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:08:25.253Z + 2024-10-16T12:08:53.432Z -

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

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

本人是做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


2024年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 7439061..45dc0d2 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:08:36' + postUpdate: '2024-10-16 20:09:11' }
\ No newline at end of file +
Tags
linear algebra math 3dgs pytorch DDPM leetcode CG AIGC python 日记 nerf deep learning NeRF 算法
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 2db1a1f..a0b10ff 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:08:36' + postUpdate: '2024-10-16 20:09:11' }
\ No newline at end of file +
Tags
linear algebra math 3dgs pytorch DDPM leetcode CG AIGC python 日记 nerf deep learning NeRF 算法
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 8c27855..9aa651b 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:08:36' + postUpdate: '2024-10-16 20:09:11' }
\ No newline at end of file +
Tags
linear algebra math 3dgs pytorch DDPM leetcode CG AIGC python 日记 nerf deep learning NeRF 算法
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 13f769e..93f34e5 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:08:36' + postUpdate: '2024-10-16 20:09:11' }
\ No newline at end of file +
Tags
linear algebra math 3dgs pytorch DDPM leetcode CG AIGC python 日记 nerf deep learning NeRF 算法
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 bf3be66..70eddd8 100644 --- a/categories/index.html +++ b/categories/index.html @@ -161,7 +161,7 @@
Tags
linear algebra python pytorch nerf CG deep learning 算法 leetcode AIGC DDPM math NeRF 日记 3dgs
Archives
Info
Article :
6
UV :
PV :
Last Update :
\ 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/pytorch/index.html b/categories/pytorch/index.html index 3a0c3aa..50ff496 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:08:36' + postUpdate: '2024-10-16 20:09:11' }
\ No newline at end of file +
Tags
linear algebra math 3dgs pytorch DDPM leetcode CG AIGC python 日记 nerf deep learning NeRF 算法
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 fec78ea..fb69c43 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:08:36' + postUpdate: '2024-10-16 20:09:11' }
\ No newline at end of file +
Tags
linear algebra math 3dgs pytorch DDPM leetcode CG AIGC python 日记 nerf deep learning NeRF 算法
Archives
Info
Article :
6
UV :
PV :
Last Update :
\ No newline at end of file diff --git a/index.html b/index.html index d95b56d..6589ec7 100644 --- a/index.html +++ b/index.html @@ -53,7 +53,7 @@ isHome: true, isHighlightShrink: false, isToc: false, - postUpdate: '2024-10-16 20:08:36' + postUpdate: '2024-10-16 20:09:11' }
\ No newline at end of file +
Tags
linear algebra math 3dgs pytorch DDPM leetcode CG AIGC python 日记 nerf deep learning NeRF 算法
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 37273d9..e61d69b 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:08:37' + postUpdate: '2024-10-16 20:09:11' }
\ No newline at end of file +
Tags
linear algebra math 3dgs pytorch DDPM leetcode CG AIGC python 日记 nerf deep learning NeRF 算法
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 24ac576..0b02e52 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:08:37' + postUpdate: '2024-10-16 20:09:11' }
\ No newline at end of file +
Tags
linear algebra math 3dgs pytorch DDPM leetcode CG AIGC python 日记 nerf deep learning NeRF 算法
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 19a7bdf..8536aaa 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:08:37' + postUpdate: '2024-10-16 20:09:11' }
\ No newline at end of file +
Tags
linear algebra math 3dgs pytorch DDPM leetcode CG AIGC python 日记 nerf deep learning NeRF 算法
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 24ea4d3..3274d49 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:08:37' + postUpdate: '2024-10-16 20:09:11' }
\ No newline at end of file +
Tags
linear algebra math 3dgs pytorch DDPM leetcode CG AIGC python 日记 nerf deep learning NeRF 算法
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 329b084..8fa67f9 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:08:37' + postUpdate: '2024-10-16 20:09:11' }
\ No newline at end of file +
Tags
linear algebra math 3dgs pytorch DDPM leetcode CG AIGC python 日记 nerf deep learning NeRF 算法
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 d98dcf6..a727851 100644 --- a/tags/index.html +++ b/tags/index.html @@ -161,7 +161,7 @@
Tags
linear algebra python pytorch nerf CG deep learning 算法 leetcode AIGC DDPM math NeRF 日记 3dgs
Archives
Info
Article :
6
UV :
PV :
Last Update :
\ 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/math/index.html b/tags/math/index.html index 8fcf4fa..a8efea9 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:08:37' + postUpdate: '2024-10-16 20:09:11' }
\ No newline at end of file +
Tags
linear algebra math 3dgs pytorch DDPM leetcode CG AIGC python 日记 nerf deep learning NeRF 算法
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 1daeb51..ece7444 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:08:37' + postUpdate: '2024-10-16 20:09:11' }
\ No newline at end of file +
Tags
linear algebra math 3dgs pytorch DDPM leetcode CG AIGC python 日记 nerf deep learning NeRF 算法
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 4633edd..ec729ec 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:08:37' + postUpdate: '2024-10-16 20:09:11' }
\ No newline at end of file +
Tags
linear algebra math 3dgs pytorch DDPM leetcode CG AIGC python 日记 nerf deep learning NeRF 算法
Archives
Info
Article :
6
UV :
PV :
Last Update :
\ No newline at end of file