-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathchang-yong-she-zhi.html
67 lines (62 loc) · 11.8 KB
/
chang-yong-she-zhi.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
<!DOCTYPE html><html lang="en-us"><head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width,initial-scale=1"><title>常用设置 - Kadath Drawer 's Blog</title><meta name="description" content="http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ # 默认注释了源码镜像以提高 apt update 速度,如有需要可自行取消注释 deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ jammy main restricted universe…"><meta name="generator" content="Publii Open-Source CMS for Static Site"><link rel="canonical" href="https://marc.stic.work/chang-yong-she-zhi.html"><link rel="alternate" type="application/atom+xml" href="https://marc.stic.work/feed.xml"><link rel="alternate" type="application/json" href="https://marc.stic.work/feed.json"><meta property="og:title" content="常用设置"><meta property="og:site_name" content="Kadath Drawer 's Blog"><meta property="og:description" content="http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ # 默认注释了源码镜像以提高 apt update 速度,如有需要可自行取消注释 deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ jammy main restricted universe…"><meta property="og:url" content="https://marc.stic.work/chang-yong-she-zhi.html"><meta property="og:type" content="article"><link rel="preload" href="https://marc.stic.work/assets/dynamic/fonts/redhatmono/redhatmono.woff2" as="font" type="font/woff2" crossorigin><link rel="stylesheet" href="https://marc.stic.work/assets/css/style.css?v=90d5119bff82861af1c762add7dbd180"><script type="application/ld+json">{"@context":"http://schema.org","@type":"Article","mainEntityOfPage":{"@type":"WebPage","@id":"https://marc.stic.work/chang-yong-she-zhi.html"},"headline":"常用设置","datePublished":"2024-03-17T22:44","dateModified":"2024-03-17T22:44","description":"http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ # 默认注释了源码镜像以提高 apt update 速度,如有需要可自行取消注释 deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ jammy main restricted universe…","author":{"@type":"Person","name":"幻夢境抽匣 Kadath Drawer","url":"https://marc.stic.work/authors/chan-tian-chantian/"},"publisher":{"@type":"Organization","name":"幻夢境抽匣 Kadath Drawer"}}</script><noscript><style>img[loading] {
opacity: 1;
}</style></noscript><script async src="https://www.googletagmanager.com/gtag/js?id=G-79V5FTM82J"></script><script>window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-79V5FTM82J');</script><script>var _hmt = _hmt || [];
(function() {
var hm = document.createElement("script");
hm.src = "https://hm.baidu.com/hm.js?ac05f56d3a20a58534f71027d1ad42d4";
var s = document.getElementsByTagName("script")[0];
s.parentNode.insertBefore(hm, s);
})();</script></head><body><div class="content"><div class="left-bar"><div class="left-bar__inner"><header class="header"><a class="logo" href="https://marc.stic.work/">Kadath Drawer 's Blog</a><nav class="navbar"><button class="navbar__toggle" aria-label="Menu" aria-haspopup="true" aria-expanded="false"><span class="navbar__toggle__box"><span class="navbar__toggle__inner">Menu</span></span></button><ul class="navbar__menu"><li><a href="https://marc.stic.work/" target="_self" aria-label="Home"><span>Home</span></a></li><li><a href="https://marc.stic.work/authors/kadathdrawer/" target="_self" aria-label="About"><span>About</span></a></li><li><a href="https://github.com/marc-shen" target="_blank" aria-label="GitHub"><span>GitHub</span></a></li><li><a href="https://github.com/marc-shen/marc-shen.github.io" target="_blank" aria-label="This Repo"><span>This Repo</span></a></li><li><a href="https://marc.stic.work/feed.xml" target="_self" aria-label="RSS"><span>RSS</span></a></li><li><a href="https://marc.stic.work/links-exchange.html" target="_self" aria-label="友链"><span>友链</span></a></li><li><a href="https://marc.stic.work/copyright.html" target="_self" aria-label="Copyright"><span>Copyright</span></a></li></ul></nav><a class="logo logo--atbottom" href="./">Kadath Drawer 's Blog</a></header></div></div><main class="main"><div class="banner"><div class="main__inner"><link rel="stylesheet" href="https://marc.stic.work/assets/dist/APlayer.min.css"><div id="aplayer"></div><script type="text/javascript" src="https://marc.stic.work/assets/dist/APlayer.min.js"></script><script type="text/javascript" src="https://marc.stic.work/assets/dist/music.js"></script></div></div><article class="post"><div class="post__meta post__meta--attop"><div class="post__meta--attop__inner"><div class="post__maintag"><svg width="20" height="20" aria-hidden="true" focusable="false"><use xlink:href="https://marc.stic.work/assets/svg/svg-map.svg#tag"/></svg> Published in <a href="https://marc.stic.work/tags/jiao-cheng/" class="metadata__maintag">教程</a></div></div></div><div class="main__inner"><div class="post__meta"><div class="post__author"><img src="https://www.gravatar.com/avatar/4c492733ec4ad6c12e88d16617500122?s=240" loading="lazy" height="240" width="240" alt="幻夢境抽匣 Kadath Drawer" class="post__author__avatar"><div><a href="https://marc.stic.work/authors/chan-tian-chantian/" class="post__author__name">幻夢境抽匣 Kadath Drawer</a></div></div><div class="post__date"><time datetime="2024-03-17T22:44">Mar 17, 2024</time></div></div><header class="post__header"><h1 class="post__title">常用设置</h1></header><div class="post__entry"><pre><code>http://mirrors.tuna.tsinghua.edu.cn/ubuntu/
</code></pre><pre><code># 默认注释了源码镜像以提高 apt update 速度,如有需要可自行取消注释
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ jammy main restricted universe multiverse
# deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ jammy main restricted universe multiverse
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ jammy-updates main restricted universe multiverse
# deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ jammy-updates main restricted universe multiverse
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ jammy-backports main restricted universe multiverse
# deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ jammy-backports main restricted universe multiverse
deb http://security.ubuntu.com/ubuntu/ jammy-security main restricted universe multiverse
# deb-src http://security.ubuntu.com/ubuntu/ jammy-security main restricted universe multiverse
# 预发布软件源,不建议启用
# deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ jammy-proposed main restricted universe multiverse
# # deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ jammy-proposed main restricted universe multiverse
</code></pre><pre><code class="language-shell">sudo dpkg-reconfigure console-setup
</code></pre><pre><code class="language-shell">sudo vim /etc/default/grub
</code></pre><pre><code>GRUB_CMDLINE_LINUX="fbcon=rotate:1"
</code></pre><pre><code class="language-shell">sudo update-grub
</code></pre><pre><code class="language-shell">echo 1 | sudo tee /sys/class/graphics/fbcon/rotate
echo 1 | sudo tee /sys/class/graphics/fbcon/rotate_all
</code></pre><pre><code class="language-shell">sudo apt install zsh
chsh -s $(which zsh)
sudo chsh -s $(which zsh)
</code></pre><pre><code class="language-shell">sudo vim /etc/sudoers
</code></pre><pre><code>username ALL=(ALL:ALL) NOPASSWD:ALL
</code></pre><pre><code class="language-shell">sudo apt install build-essential
</code></pre><pre><code class="language-shell">mkdir -p ~/miniconda3
wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh -O ~/miniconda3/miniconda.sh
bash ~/miniconda3/miniconda.sh -b -u -p ~/miniconda3
rm -rf ~/miniconda3/miniconda.sh
</code></pre><pre><code>#!/bin/bash
#SBATCH -N 1
#SBATCH -n 4
# specify all the variables
EXECUTABLE=/home/chantian/tristan-mp-v2/bin/tristan-mp2d
INPUT=/home/chantian/tristan-mp-v2/inputs/input.2d_rec
OUTPUT_DIR=/home/chantian/program/output
SLICE_DIR=/home/chantian/program/slices
RESTART_DIR=/home/chantian/program/restart
REPORT_FILE=report
ERROR_FILE=error
srun $EXECUTABLE -i $INPUT -o $OUTPUT_DIR -s $SLICE_DIR -r $RESTART_DIR >$OUTPUT_DIR/$REPORT_FILE 2>$OUTPUT_DIR/$ERROR_FILE
</code></pre></div><footer class="post__footer"><div class="post__last-updated">This article was updated on <time datetime="2024-03-17T22:44">Mar 17, 2024</time></div><div class="post__share"><a href="https://www.facebook.com/sharer/sharer.php?u=https%3A%2F%2Fmarc.stic.work%2Fchang-yong-she-zhi.html" class="js-share facebook tltp tltp--top" aria-label="Facebook" rel="nofollow noopener noreferrer"><svg><use xlink:href="https://marc.stic.work/assets/svg/svg-map.svg#facebook"/></svg> <span>Facebook</span> </a><a href="https://twitter.com/intent/tweet?url=https%3A%2F%2Fmarc.stic.work%2Fchang-yong-she-zhi.html&via=Kadath%20Drawer%20's%20Blog&text=%E5%B8%B8%E7%94%A8%E8%AE%BE%E7%BD%AE" class="js-share twitter tltp tltp--top" aria-label="Twitter" rel="nofollow noopener noreferrer"><svg><use xlink:href="https://marc.stic.work/assets/svg/svg-map.svg#twitter"/></svg> <span>Twitter</span> </a><a href="https://pinterest.com/pin/create/button/?url=https%3A%2F%2Fmarc.stic.work%2Fchang-yong-she-zhi.html&media=undefined&description=%E5%B8%B8%E7%94%A8%E8%AE%BE%E7%BD%AE" class="js-share pinterest tltp tltp--top" aria-label="Pinterest" rel="nofollow noopener noreferrer"><svg><use xlink:href="https://marc.stic.work/assets/svg/svg-map.svg#pinterest"/></svg> <span>Pinterest</span></a></div></footer></div></article><div class="post__section banner"><div class="main__inner"><script src="https://giscus.app/client.js" data-repo="marc-shen/marc-shen.github.io" data-repo-id="MDEwOlJlcG9zaXRvcnkyNDg4OTIxNzA=" data-category="Announcements" data-category-id="DIC_kwDODtXLCs4CeBwC" data-mapping="title" data-strict="0" data-reactions-enabled="1" data-emit-metadata="0" data-input-position="bottom" data-theme="preferred_color_scheme" data-lang="zh-CN" crossorigin="anonymous" async></script></div></div></main><div class="right-bar"><div class="right-bar__inner"><div class="sidebar"><section class="box authors"><h3 class="box__title">Authors</h3><ul class="authors__cotainer"><li class="authors__item"><a href="https://marc.stic.work/authors/chan-tian-chantian/" class="authors__image"><img src="https://www.gravatar.com/avatar/4c492733ec4ad6c12e88d16617500122?s=240" loading="lazy" alt="幻夢境抽匣 Kadath Drawer" height="240" width="240" class="authors__img"></a><div><a href="https://marc.stic.work/authors/chan-tian-chantian/" class="authors__title">幻夢境抽匣 Kadath Drawer</a> <span class="authors__meta">Post: 7</span></div></li></ul></section><section class="box tags"><h3 class="box__title">Recommended Topics</h3><ul class="tags__list"><li class="tags__item"><a href="https://marc.stic.work/tags/jiao-cheng/" class="btn btn--gray">教程 <sup>(3)</sup></a></li><li class="tags__item"><a href="https://marc.stic.work/tags/lu-you/" class="btn btn--gray">旅游 <sup>(1)</sup></a></li><li class="tags__item"><a href="https://marc.stic.work/tags/ke-yan/" class="btn btn--gray">科研 <sup>(1)</sup></a></li><li class="tags__item"><a href="https://marc.stic.work/tags/ji-lu/" class="btn btn--gray">记录 <sup>(1)</sup></a></li></ul></section><div class="box copyright">Kadath Drawer's Blog © 2024 by 幻夢境抽匣 Kadath Drawer is licensed under CC BY-NC-ND 4.0</div></div></div></div></div><script defer="defer" src="https://marc.stic.work/assets/js/scripts.min.js?v=12d8fcd46db8fdc7af6797ec26849875"></script><script>var images = document.querySelectorAll('img[loading]');
for (var i = 0; i < images.length; i++) {
if (images[i].complete) {
images[i].classList.add('is-loaded');
} else {
images[i].addEventListener('load', function () {
this.classList.add('is-loaded');
}, false);
}
}</script></body></html>