diff --git "a/\345\274\240\345\242\236\346\266\233/20240514-Liunx\345\237\272\347\241\200\345\221\275\344\273\244.md" "b/\345\274\240\345\242\236\346\266\233/20240514-Liunx\345\237\272\347\241\200\345\221\275\344\273\244.md" new file mode 100644 index 0000000000000000000000000000000000000000..fad65b8d2ab7b3269c4864152eac3e7545beddf9 --- /dev/null +++ "b/\345\274\240\345\242\236\346\266\233/20240514-Liunx\345\237\272\347\241\200\345\221\275\344\273\244.md" @@ -0,0 +1,15 @@ +# Liunx基础命令 + +1.查找文件名称,目录:whereis XXX + +2.切换目录:cd XXX + +3.显示当前目录:pwd + +4.显示当前所有文件夹和文件: ls + +5.详细显示文件加和文件: ls -l(文件夹前面有个D) + +6.查看文件内容显示:cat XXX + +7.剪切MV XX XX \ No newline at end of file diff --git "a/\345\274\240\345\242\236\346\266\233/20240514-\345\260\206\347\254\224\350\256\260\346\225\264\347\220\206\346\210\220\347\275\221\351\241\265.md" "b/\345\274\240\345\242\236\346\266\233/20240514-\345\260\206\347\254\224\350\256\260\346\225\264\347\220\206\346\210\220\347\275\221\351\241\265.md" new file mode 100644 index 0000000000000000000000000000000000000000..44af82ebec1b18cf679a8d152b8de219f5e091f8 --- /dev/null +++ "b/\345\274\240\345\242\236\346\266\233/20240514-\345\260\206\347\254\224\350\256\260\346\225\264\347\220\206\346\210\220\347\275\221\351\241\265.md" @@ -0,0 +1,85 @@ +# 如何将笔记整理成网页 + +1.在电脑D盘建个文件夹,并用vs code打开 + +2.在终端输入 + +``` +npm add -D vitepress//输完能看到以下文件说明正确 +``` + +![img001](./image/img001.png) + +``` +npx vitepress init //输入这个会有几个问题: + + Welcome to VitePress! +│ +◇ Where should VitePress initialize the config? +│ ./doces +│ +◇ Site title: +│ 我的笔记仓库 //标题 +│ +◇ Site description: +│ 实施笔记 //副标题 +│ +│ Default Theme +│ +◇ Use TypeScript for config and theme files? +│ Yes +│ +◇ Add VitePress npm scripts to package.json? +│ Yes +│ +└ Done! Now run npm run docs:dev and start writing. +``` + +3.运行: + +``` +npm run docs:dev +``` + +4.完善页面 + +``` +//1.在index.html找到"features"删除 +//2. 修改按钮 +- theme: alt //主题 + text: Linux //标题 + link: /api-examples 跳转链接 +//3.在config修改侧边和右上角如下图片 +``` + +![img001](./image/img002.png) + +5.将对应的笔记文件夹复制到docees文件夹中 + +``` + { + text: '计算机基础', + items: [ + { text: '20240302-主板', link: '/ComputerBasicsNotes/20240302-主板.md' }, + { text: '20240304-CPU,显卡,内存,硬盘', link: '/ComputerBasicsNotes/20240304-CPU,显卡,内存,硬盘' } + ] + }, +``` + +整理成以上形式,可以用Ai弄 + +提取文字:根目录,终端输入 tree /f + +6.如果你要将笔记放在一个统一的子目录中访问,用在配置文件config中加入一行 + +``` + 'base':'/books/', +``` + +7.将md文件保存为html文件 + +``` +npm run docs:build +npm run docs:preview //本地预览文件 +``` + diff --git "a/\345\274\240\345\242\236\346\266\233/20240515-\345\256\211\350\243\205\350\231\232\346\213\237\346\234\272,debian.md" "b/\345\274\240\345\242\236\346\266\233/20240515-\345\256\211\350\243\205\350\231\232\346\213\237\346\234\272,debian.md" new file mode 100644 index 0000000000000000000000000000000000000000..4dfa5beab6be51daf6c048e7c052928c420f3595 --- /dev/null +++ "b/\345\274\240\345\242\236\346\266\233/20240515-\345\256\211\350\243\205\350\231\232\346\213\237\346\234\272,debian.md" @@ -0,0 +1,46 @@ +# 安装虚拟机,debian + +1.安装vmware 17和debian12.X 64位版本 + +2.安装ssh + +``` +apt-get install ssh -y //需要进入root用户,默认root不可以直接远程登录需要安装vim编辑器: +logout切换用户 +apt-get install vim //安装vim编辑器 +``` + +3.修改ssh配置文件使得可以远程登入 + +``` +/etc/ssh/sshd_config +vim sshd_config +修改一下4个点: +Port 22 // 开启端口22 +PermitRootLogin yes // 允许root登录 +PasswordAuthentication yes // 采用密码验证模式 +PermitEmptyPasswords no // 禁用空密码 +在重启一遍ssh:systemctl restart ssh +``` + +编辑:按i启用编辑 + +按esc退出编辑模式 + +:wq保存退出 + +:q!强制退出 + +4.可以安装临时借用权限sudo + +``` +在root用户下安装:apt-get install sudo +在安转net-tools:apt0get install net-tools +``` + +5.删除安装文件 + +``` +apt-get remove --purge XX +``` + diff --git "a/\345\274\240\345\242\236\346\266\233/image/img001.png" "b/\345\274\240\345\242\236\346\266\233/image/img001.png" new file mode 100644 index 0000000000000000000000000000000000000000..cb142f12877fcf519845d90d0dbbc006fb554292 Binary files /dev/null and "b/\345\274\240\345\242\236\346\266\233/image/img001.png" differ diff --git "a/\345\274\240\345\242\236\346\266\233/image/img002.png" "b/\345\274\240\345\242\236\346\266\233/image/img002.png" new file mode 100644 index 0000000000000000000000000000000000000000..ce1de9ff01b5657cf4b7e5c94c96f6785952b7b4 Binary files /dev/null and "b/\345\274\240\345\242\236\346\266\233/image/img002.png" differ