-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
160 lines (139 loc) · 21.3 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
<!doctype html>
<html lang="en"><head><meta charset="utf-8"><meta name="generator" content="Hexo 4.2.1"><meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"><meta><title>YY's Notes</title><meta property="og:type" content="blog"><meta property="og:title" content="YY's Notes"><meta property="og:url" content="https://yanyangb.github.io/"><meta property="og:site_name" content="YY's Notes"><meta property="og:locale" content="en_US"><meta property="og:image" content="https://yanyangb.github.io/img/og_image.png"><meta property="article:author" content="YAN Yang"><meta property="twitter:card" content="summary"><meta property="twitter:image" content="/img/og_image.png"><script type="application/ld+json">{"@context":"https://schema.org","@type":"BlogPosting","mainEntityOfPage":{"@type":"WebPage","@id":"https://yanyangb.github.io"},"headline":"YY's Notes","image":["https://yanyangb.github.io/img/og_image.png"],"author":{"@type":"Person","name":"YAN Yang"},"description":""}</script><link rel="icon" href="/img/water.svg"><link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.12.0/css/all.css"><link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/styles/atom-one-light.css"><link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Ubuntu:wght@400;600&family=Source+Code+Pro"><link rel="stylesheet" href="/css/default.css"><style>body>.footer,body>.navbar,body>.section{opacity:0}</style><!--!--><!--!--><script src="//busuanzi.ibruce.info/busuanzi/2.3/busuanzi.pure.mini.js" defer></script><!--!--><link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/lightgallery.min.css"><link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/justifiedGallery.min.css"><!--!--><!--!--><script src="https://cdn.jsdelivr.net/npm/[email protected]/pace.min.js"></script><style>mjx-container[jax="SVG"] {
direction: ltr;
}
mjx-container[jax="SVG"] > svg {
overflow: visible;
}
mjx-container[jax="SVG"] > svg a {
fill: blue;
stroke: blue;
}
mjx-container[jax="SVG"][display="true"] {
display: block;
text-align: center;
margin: 1em 0;
}
mjx-container[jax="SVG"][justify="left"] {
text-align: left;
}
mjx-container[jax="SVG"][justify="right"] {
text-align: right;
}
g[data-mml-node="merror"] > g {
fill: red;
stroke: red;
}
g[data-mml-node="merror"] > rect[data-background] {
fill: yellow;
stroke: none;
}
g[data-mml-node="mtable"] > line[data-line] {
stroke-width: 70px;
fill: none;
}
g[data-mml-node="mtable"] > rect[data-frame] {
stroke-width: 70px;
fill: none;
}
g[data-mml-node="mtable"] > .mjx-dashed {
stroke-dasharray: 140;
}
g[data-mml-node="mtable"] > .mjx-dotted {
stroke-linecap: round;
stroke-dasharray: 0,140;
}
g[data-mml-node="mtable"] > svg {
overflow: visible;
}
[jax="SVG"] mjx-tool {
display: inline-block;
position: relative;
width: 0;
height: 0;
}
[jax="SVG"] mjx-tool > mjx-tip {
position: absolute;
top: 0;
left: 0;
}
mjx-tool > mjx-tip {
display: inline-block;
padding: .2em;
border: 1px solid #888;
font-size: 70%;
background-color: #F8F8F8;
color: black;
box-shadow: 2px 2px 5px #AAAAAA;
}
g[data-mml-node="maction"][data-toggle] {
cursor: pointer;
}
mjx-status {
display: block;
position: fixed;
left: 1em;
bottom: 1em;
min-width: 25%;
padding: .2em .4em;
border: 1px solid #888;
font-size: 90%;
background-color: #F8F8F8;
color: black;
}
foreignObject[data-mjx-xml] {
font-family: initial;
line-height: normal;
overflow: visible;
}
.MathJax path {
stroke-width: 3;
}
mjx-container[display="true"] {
overflow: auto hidden;
}
mjx-container[display="true"] + br {
display: none;
}
</style><link rel="alternate" href="/atom.xml" title="YY's Notes" type="application/atom+xml">
</head><body class="is-3-column"><nav class="navbar navbar-main"><div class="container"><div class="navbar-brand justify-content-center"><a class="navbar-item navbar-logo" href="/"><img src="/img/water.svg" alt="YY's Notes" height="28"></a></div><div class="navbar-menu"><div class="navbar-start"><a class="navbar-item is-active" href="/">Home</a><a class="navbar-item" href="/archives">Archives</a><a class="navbar-item" href="/categories">Categories</a><a class="navbar-item" href="/tags">Tags</a><a class="navbar-item" href="/about">About</a></div><div class="navbar-end"><a class="navbar-item" target="_blank" rel="noopener" title="Download on GitHub" href="https://github.com/YanYangB/"><i class="fab fa-github"></i></a><a class="navbar-item search" title="Search" href="javascript:;"><i class="fas fa-search"></i></a></div></div></div></nav><section class="section"><div class="container"><div class="columns"><div class="column order-2 column-main is-8-tablet is-8-desktop is-6-widescreen"><div class="card"><div class="card-image"><a class="image is-7by3" href="/2020/09/27/SSH-Tunnel-Local-and-Remote-Port-Forwarding/"><img class="thumbnail" src="/front-matter-photos/Network-diagram.png" alt="SSH Tunnel: Local and Remote Port Forwarding"></a></div><article class="card-content article" role="article"><div class="article-meta size-small is-uppercase level is-mobile"><div class="level-left"><time class="level-item" dateTime="2020-09-27T14:11:35.000Z" title="2020-09-27T14:11:35.000Z">2020-09-27</time><span class="level-item"><a class="link-muted" href="/categories/Linux/">Linux</a></span><span class="level-item">8 minutes read (About 1200 words)</span></div></div><h1 class="title is-3 is-size-4-mobile"><a class="link-muted" href="/2020/09/27/SSH-Tunnel-Local-and-Remote-Port-Forwarding/">SSH Tunnel: Local and Remote Port Forwarding</a></h1><div class="content"><h2 id="About-SSH"><a href="#About-SSH" class="headerlink" title="About SSH"></a>About SSH</h2><p>ssh stands for <em>Secure Shell</em>. It is a protocol used to securely connect to a remote server/system. ssh is secure in the sense that it transfers the data in encrypted form between the host and the client. For deep learning researchers, they usually use ssh to login their remote servers which have high-performance GPUs to train models.</div><a class="article-more button is-small size-small" href="/2020/09/27/SSH-Tunnel-Local-and-Remote-Port-Forwarding/#more">Read More</a></article></div><div class="card"><div class="card-image"><a class="image is-7by3" href="/2019/11/11/conda%E5%B8%B8%E7%94%A8%E5%91%BD%E4%BB%A4/"><img class="thumbnail" src="/front-matter-photos/1.jpg" alt="conda常用命令"></a></div><article class="card-content article" role="article"><div class="article-meta size-small is-uppercase level is-mobile"><div class="level-left"><time class="level-item" dateTime="2019-11-11T11:14:45.000Z" title="2019-11-11T11:14:45.000Z">2019-11-11</time><span class="level-item"><a class="link-muted" href="/categories/Linux/">Linux</a></span><span class="level-item">2 minutes read (About 282 words)</span></div></div><h1 class="title is-3 is-size-4-mobile"><a class="link-muted" href="/2019/11/11/conda%E5%B8%B8%E7%94%A8%E5%91%BD%E4%BB%A4/">conda常用命令</a></h1><div class="content"><h2 id="环境相关"><a href="#环境相关" class="headerlink" title="环境相关"></a>环境相关</h2><ul>
<li><p>查看已有环境<br><code>conda env list</code></p>
</li>
<li><p>新建环境<br><code>conda create -n env_name [python=3.6]</code><br>新建一个名为<code>env_name</code>的环境,其<code>python</code>版本为3.6</p>
</li>
<li><p>进入环境(对于conda 4.xx)<br><code>conda activate env_name</code></p></div><a class="article-more button is-small size-small" href="/2019/11/11/conda%E5%B8%B8%E7%94%A8%E5%91%BD%E4%BB%A4/#more">Read More</a></article></div><div class="card"><div class="card-image"><a class="image is-7by3" href="/2019/10/01/Ubuntu%E6%97%A0root%E5%AE%89%E8%A3%85%E8%BD%AF%E4%BB%B6/"><img class="thumbnail" src="/front-matter-photos/3.jpg" alt="Ubuntu无root安装软件"></a></div><article class="card-content article" role="article"><div class="article-meta size-small is-uppercase level is-mobile"><div class="level-left"><time class="level-item" dateTime="2019-10-01T04:05:19.000Z" title="2019-10-01T04:05:19.000Z">2019-10-01</time><span class="level-item"><a class="link-muted" href="/categories/Linux/">Linux</a></span><span class="level-item">a minute read (About 154 words)</span></div></div><h1 class="title is-3 is-size-4-mobile"><a class="link-muted" href="/2019/10/01/Ubuntu%E6%97%A0root%E5%AE%89%E8%A3%85%E8%BD%AF%E4%BB%B6/">Ubuntu无root安装软件</a></h1><div class="content"><h2 id="Linux下非root用户安装软件的一般流程"><a href="#Linux下非root用户安装软件的一般流程" class="headerlink" title="Linux下非root用户安装软件的一般流程:"></a>Linux下非root用户安装软件的一般流程:</h2><ul>
<li>下载源代码,通过wget或者url下载;</li>
<li>解压源代码安装包,一般为tar.gz,对应命令为<code>tar -zxvf xxxxx.tar.gz</code>;</li>
<li>切换到解压后的目录,运行<code>./configure --prefix=/path/to/install</code>,使用<code>./configure --help</code>可以列出可用选项,其中<code>--prefix</code>就是配置安装目录。例如:<code>./configure --prefix=/home/xxx/.local</code>;</li>
<li>编译源码并安装,<code>make -j && make install</code>,<code>-j</code>参数是并行编译,提高编译速度;</li>
<li>变更环境变量,在.zshrc或者.bashrc中加入<code>export</code>。</li>
</ul>
</div></article></div><div class="card"><div class="card-image"><a class="image is-7by3" href="/2019/09/27/Step-up-to-Linux/"><img class="thumbnail" src="/front-matter-photos/2.jpg" alt="Step up to Linux"></a></div><article class="card-content article" role="article"><div class="article-meta size-small is-uppercase level is-mobile"><div class="level-left"><time class="level-item" dateTime="2019-09-27T11:35:32.000Z" title="2019-09-27T11:35:32.000Z">2019-09-27</time><span class="level-item"><a class="link-muted" href="/categories/Linux/">Linux</a></span><span class="level-item">9 minutes read (About 1315 words)</span></div></div><h1 class="title is-3 is-size-4-mobile"><a class="link-muted" href="/2019/09/27/Step-up-to-Linux/">Step up to Linux</a></h1><div class="content"><h2 id="记录Linux的安装与Deep-Learning配置过程"><a href="#记录Linux的安装与Deep-Learning配置过程" class="headerlink" title="记录Linux的安装与Deep Learning配置过程"></a>记录Linux的安装与Deep Learning配置过程</h2><p>安装为Ubuntu单系统</p>
<h3 id="1-准备"><a href="#1-准备" class="headerlink" title="1.准备"></a>1.准备</h3><ul>
<li>下载<a href="https://www.ubuntu.com/index_kylin">Ubuntu</a>镜像, 建议下载LTS版本。<br>(官网下载速度较慢时考虑<a href="https://mirrors.tuna.tsinghua.edu.cn/">清华镜像</a>)</li>
<li>制作启动盘, 建议使用<a href="https://rufus.ie/">Rufus</a>,操作简单,在制作时要格式化U盘,先做好U盘备份工作。</li>
<li>若要安装双系统,还要清理出一块磁盘空间,参考<a href="https://zhuanlan.zhihu.com/p/35970220">知乎文章</a></li>
</ul></div><a class="article-more button is-small size-small" href="/2019/09/27/Step-up-to-Linux/#more">Read More</a></article></div></div><div class="column column-left is-4-tablet is-4-desktop is-3-widescreen order-1"><div class="card widget"><div class="card-content"><nav class="level"><div class="level-item has-text-centered flex-shrink-1"><div><figure class="image is-128x128 mx-auto mb-2"><img class="avatar is-rounded" src="/img/avatar.jpg" alt="YAN Yang"></figure><p class="title is-size-4 is-block line-height-inherit">YAN Yang</p><p class="is-size-6 is-block">Student in BUPT</p><p class="is-size-6 is-flex justify-content-center"><i class="fas fa-map-marker-alt mr-1"></i><span>Beijing, China</span></p></div></div></nav><nav class="level is-mobile"><div class="level-item has-text-centered is-marginless"><div><p class="heading">Posts</p><a href="/archives"><p class="title">4</p></a></div></div><div class="level-item has-text-centered is-marginless"><div><p class="heading">Category</p><a href="/categories"><p class="title">1</p></a></div></div><div class="level-item has-text-centered is-marginless"><div><p class="heading">Tags</p><a href="/tags"><p class="title">4</p></a></div></div></nav><div class="level"><a class="level-item button is-primary is-rounded" href="https://github.com/YanYangB/" target="_blank" rel="noopener">Follow</a></div><div class="level is-mobile"><a class="level-item button is-transparent is-marginless" target="_blank" rel="noopener" title="Github" href="https://github.com/YanYangB/"><i class="fab fa-github"></i></a><a class="level-item button is-transparent is-marginless" target="_blank" rel="noopener" title="Twitter" href="https://twitter.com/yyisrealyy/"><i class="fab fa-twitter"></i></a><a class="level-item button is-transparent is-marginless" target="_blank" rel="noopener" title="RSS" href="/atom.xml"><i class="fas fa-rss"></i></a></div></div></div><div class="card widget"><div class="card-content"><div class="menu"><h3 class="menu-label">Categories</h3><ul class="menu-list"><li><a class="level is-mobile is-marginless" href="/categories/Linux/"><span class="level-start"><span class="level-item">Linux</span></span><span class="level-end"><span class="level-item tag">4</span></span></a></li></ul></div></div></div><div class="card widget"><div class="card-content"><div class="menu"><h3 class="menu-label">Tags</h3><div class="field is-grouped is-grouped-multiline"><div class="control"><a class="tags has-addons" href="/tags/Computer-Network/"><span class="tag">Computer Network</span><span class="tag is-grey-lightest">1</span></a></div><div class="control"><a class="tags has-addons" href="/tags/Linux/"><span class="tag">Linux</span><span class="tag is-grey-lightest">3</span></a></div><div class="control"><a class="tags has-addons" href="/tags/SSH/"><span class="tag">SSH</span><span class="tag is-grey-lightest">1</span></a></div><div class="control"><a class="tags has-addons" href="/tags/conda/"><span class="tag">conda</span><span class="tag is-grey-lightest">1</span></a></div></div></div></div></div><div class="column-right-shadow is-hidden-widescreen"></div></div><div class="column column-right is-4-tablet is-4-desktop is-3-widescreen is-hidden-touch is-hidden-desktop-only order-3"><div class="card widget"><div class="card-content"><h3 class="menu-label">Recent</h3><article class="media"><a class="media-left" href="/2020/09/27/SSH-Tunnel-Local-and-Remote-Port-Forwarding/"><p class="image is-64x64"><img class="thumbnail" src="/front-matter-photos/Network-diagram.png" alt="SSH Tunnel: Local and Remote Port Forwarding"></p></a><div class="media-content size-small"><p><time dateTime="2020-09-27T14:11:35.000Z">2020-09-27</time></p><p class="title is-6"><a class="link-muted" href="/2020/09/27/SSH-Tunnel-Local-and-Remote-Port-Forwarding/">SSH Tunnel: Local and Remote Port Forwarding</a></p><p class="is-uppercase"><a class="link-muted" href="/categories/Linux/">Linux</a></p></div></article><article class="media"><a class="media-left" href="/2019/11/11/conda%E5%B8%B8%E7%94%A8%E5%91%BD%E4%BB%A4/"><p class="image is-64x64"><img class="thumbnail" src="/front-matter-photos/1.jpg" alt="conda常用命令"></p></a><div class="media-content size-small"><p><time dateTime="2019-11-11T11:14:45.000Z">2019-11-11</time></p><p class="title is-6"><a class="link-muted" href="/2019/11/11/conda%E5%B8%B8%E7%94%A8%E5%91%BD%E4%BB%A4/">conda常用命令</a></p><p class="is-uppercase"><a class="link-muted" href="/categories/Linux/">Linux</a></p></div></article><article class="media"><a class="media-left" href="/2019/10/01/Ubuntu%E6%97%A0root%E5%AE%89%E8%A3%85%E8%BD%AF%E4%BB%B6/"><p class="image is-64x64"><img class="thumbnail" src="/front-matter-photos/3.jpg" alt="Ubuntu无root安装软件"></p></a><div class="media-content size-small"><p><time dateTime="2019-10-01T04:05:19.000Z">2019-10-01</time></p><p class="title is-6"><a class="link-muted" href="/2019/10/01/Ubuntu%E6%97%A0root%E5%AE%89%E8%A3%85%E8%BD%AF%E4%BB%B6/">Ubuntu无root安装软件</a></p><p class="is-uppercase"><a class="link-muted" href="/categories/Linux/">Linux</a></p></div></article><article class="media"><a class="media-left" href="/2019/09/27/Step-up-to-Linux/"><p class="image is-64x64"><img class="thumbnail" src="/front-matter-photos/2.jpg" alt="Step up to Linux"></p></a><div class="media-content size-small"><p><time dateTime="2019-09-27T11:35:32.000Z">2019-09-27</time></p><p class="title is-6"><a class="link-muted" href="/2019/09/27/Step-up-to-Linux/">Step up to Linux</a></p><p class="is-uppercase"><a class="link-muted" href="/categories/Linux/">Linux</a></p></div></article></div></div><div class="card widget"><div class="card-content"><div class="menu"><h3 class="menu-label">Links</h3><ul class="menu-list"><li><a class="level is-mobile is-mobile" href="https://lilianweng.github.io/lil-log/" target="_blank" rel="noopener"><span class="level-left"><span class="level-item">Lil'Log</span></span><span class="level-right"><span class="level-item tag">lilianweng.github.io</span></span></a></li><li><a class="level is-mobile is-mobile" href="http://jalammar.github.io/" target="_blank" rel="noopener"><span class="level-left"><span class="level-item">Jay Alammar</span></span><span class="level-right"><span class="level-item tag">jalammar.github.io</span></span></a></li><li><a class="level is-mobile is-mobile" href="https://www.countbayesie.com/" target="_blank" rel="noopener"><span class="level-left"><span class="level-item">Will Kurt</span></span><span class="level-right"><span class="level-item tag">www.countbayesie.com</span></span></a></li><li><a class="level is-mobile is-mobile" href="https://labuladong.gitbook.io/algo/" target="_blank" rel="noopener"><span class="level-left"><span class="level-item">labuladong</span></span><span class="level-right"><span class="level-item tag">labuladong.gitbook.io</span></span></a></li></ul></div></div></div></div></div></div></section><footer class="footer"><div class="container"><div class="level"><div class="level-start"><a class="footer-logo is-block mb-2" href="/"><img src="/img/water.svg" alt="YY's Notes" height="28"></a><p class="size-small"><span>© 2020 YAN Yang</span> Powered by <a href="https://hexo.io/" target="_blank" rel="noopener">Hexo</a> & <a href="https://github.com/ppoffice/hexo-theme-icarus" target="_blank" rel="noopener">Icarus</a><br><span id="busuanzi_container_site_uv">Visited by <span id="busuanzi_value_site_uv">0</span> users</span></p></div><div class="level-end"><div class="field has-addons"><p class="control"><a class="button is-transparent is-large" target="_blank" rel="noopener" title="Creative Commons" href="https://creativecommons.org/"><i class="fab fa-creative-commons"></i></a></p><p class="control"><a class="button is-transparent is-large" target="_blank" rel="noopener" title="Attribution 4.0 International" href="https://creativecommons.org/licenses/by/4.0/"><i class="fab fa-creative-commons-by"></i></a></p><p class="control"><a class="button is-transparent is-large" target="_blank" rel="noopener" title="Download on GitHub" href="https://github.com/YanYangB/"><i class="fab fa-github"></i></a></p></div></div></div></div></footer><script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/jquery.min.js"></script><script src="https://cdn.jsdelivr.net/npm/[email protected]/min/moment-with-locales.min.js"></script><script>moment.locale("en");</script><script>var IcarusThemeSettings = {
site: {
url: 'https://yanyangb.github.io',
external_link: {"enable":true,"exclude":[]}
},
article: {
highlight: {
clipboard: true,
fold: 'unfolded'
}
}
};</script><script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/clipboard.min.js" defer></script><script src="/js/animation.js"></script><a id="back-to-top" title="Back to Top" href="javascript:;"><i class="fas fa-chevron-up"></i></a><script src="/js/back_to_top.js" defer></script><!--!--><!--!--><!--!--><script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/lightgallery.min.js" defer></script><script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/jquery.justifiedGallery.min.js" defer></script><script>window.addEventListener("load", () => {
if (typeof $.fn.lightGallery === 'function') {
$('.article').lightGallery({ selector: '.gallery-item' });
}
if (typeof $.fn.justifiedGallery === 'function') {
if ($('.justified-gallery > p > .gallery-item').length) {
$('.justified-gallery > p > .gallery-item').unwrap();
}
$('.justified-gallery').justifiedGallery();
}
});</script><!--!--><!--!--><!--!--><script src="/js/main.js" defer></script><div class="searchbox"><div class="searchbox-container"><div class="searchbox-header"><div class="searchbox-input-container"><input class="searchbox-input" type="text" placeholder="Type something..."></div><a class="searchbox-close" href="javascript:;">×</a></div><div class="searchbox-body"></div></div></div><script src="/js/insight.js" defer></script><script>document.addEventListener('DOMContentLoaded', function () {
loadInsight({"contentUrl":"/content.json"}, {"hint":"Type something...","untitled":"(Untitled)","posts":"Posts","pages":"Pages","categories":"Categories","tags":"Tags"});
});</script></body></html>