From 671bb9ca1ead764560584758a39dc457f04717b1 Mon Sep 17 00:00:00 2001 From: xiaoma Date: Sat, 19 Oct 2024 10:11:17 +0800 Subject: [PATCH] Site updated: 2024-10-19 10:11:17 --- .../index.html" | 13 ++-- 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 +- sitemap.xml | 74 +++++++++---------- 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 +- 33 files changed, 104 insertions(+), 101 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 5d32405..943cfa7 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,18 +189,21 @@

注:

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


-

2024年10月06日更:

+

2024年10月16日更:

由于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
    • +
    • 但是注意,博客中的 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
+
+

2024年10月19日更:

+

HuggingFace 镜像下载:https://github.com/LetheSec/HuggingFace-Download-Accelerator

Author: Ma ZiPei
Link: https://xiao10ma.github.io/2024/09/02/服务器搭建/
Copyright Notice: All articles in this blog are licensed under CC BY-NC-SA 4.0 unless stating additionally.
avatar
Ma ZiPei
好好学习,天天向上
Follow Me
Announcement
This is my Blog
\ 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 9d6dfcb..546fbc7 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:09:11' + postUpdate: '2024-10-19 10:11:17' }
\ 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 c8c0b55..18488fd 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:09:11' + postUpdate: '2024-10-19 10:11:17' }
\ 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 e5e4274..6c86d24 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:09:11' + postUpdate: '2024-10-19 10:11:17' }
\ 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 1dcf11d..d219ee5 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:09:11' + postUpdate: '2024-10-19 10:11:17' }
\ 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 e6a6281..18c3e1d 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:09:11' + postUpdate: '2024-10-19 10:11:17' }
\ 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 f4658b3..6ec8295 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:09:11' + postUpdate: '2024-10-19 10:11:17' }
\ 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 4f007b2..3658f90 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:09:11' + postUpdate: '2024-10-19 10:11:17' }
\ 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 70ab4b9..94a9a04 100644 --- a/archives/index.html +++ b/archives/index.html @@ -53,7 +53,7 @@ isHome: false, isHighlightShrink: false, isToc: false, - postUpdate: '2024-10-16 20:09:11' + postUpdate: '2024-10-19 10:11:17' }
\ 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 6d5bc57..0c457cb 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:53.432Z + 2024-10-19T02:11:11.762Z -

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

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

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

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

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

本人是做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月16日更:

由于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

2024年10月19日更:

HuggingFace 镜像下载:https://github.com/LetheSec/HuggingFace-Download-Accelerator

]]>
diff --git a/categories/3DV/NeRF/index.html b/categories/3DV/NeRF/index.html index 45dc0d2..04328b1 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:09:11' + postUpdate: '2024-10-19 10:11:17' }
\ 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 a0b10ff..281008b 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:09:11' + postUpdate: '2024-10-19 10:11:17' }
\ 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 9aa651b..769ec66 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:09:11' + postUpdate: '2024-10-19 10:11:17' }
\ 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 93f34e5..e844681 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:09:11' + postUpdate: '2024-10-19 10:11:17' }
\ 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 70eddd8..55561f4 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 50ff496..06f2380 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:09:11' + postUpdate: '2024-10-19 10:11:17' }
\ 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 fb69c43..854a0a7 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:09:11' + postUpdate: '2024-10-19 10:11:17' }
\ 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 6589ec7..a810de3 100644 --- a/index.html +++ b/index.html @@ -53,7 +53,7 @@ isHome: true, isHighlightShrink: false, isToc: false, - postUpdate: '2024-10-16 20:09:11' + postUpdate: '2024-10-19 10:11:17' }
\ 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 e61d69b..a4ca4a1 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:09:11' + postUpdate: '2024-10-19 10:11:17' }
\ 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 0b02e52..99016c3 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:09:11' + postUpdate: '2024-10-19 10:11:17' }
\ 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 8536aaa..16998f2 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:09:11' + postUpdate: '2024-10-19 10:11:17' }
\ 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 3274d49..1894342 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:09:11' + postUpdate: '2024-10-19 10:11:17' }
\ 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 8fa67f9..e3b40cc 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:09:11' + postUpdate: '2024-10-19 10:11:17' }
\ 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 a727851..51fd842 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 a8efea9..6775abc 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:09:11' + postUpdate: '2024-10-19 10:11:17' }
\ 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 ece7444..b1423f0 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:09:11' + postUpdate: '2024-10-19 10:11:17' }
\ 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 ec729ec..eeef194 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:09:11' + postUpdate: '2024-10-19 10:11:17' }
\ No newline at end of file +
Tags
Archives
Info
Article :
6
UV :
PV :
Last Update :
\ No newline at end of file