diff --git "a/16\350\260\242\347\277\240\350\220\215/05.15\342\200\224\342\200\224\345\256\211\350\243\205\350\231\232\346\213\237\346\234\272\345\222\214Debian.md" "b/16\350\260\242\347\277\240\350\220\215/05.15\342\200\224\342\200\224\345\256\211\350\243\205\350\231\232\346\213\237\346\234\272\345\222\214Debian.md" new file mode 100644 index 0000000000000000000000000000000000000000..3143e640bf9fc5d511b16909e852b80e1527be2a --- /dev/null +++ "b/16\350\260\242\347\277\240\350\220\215/05.15\342\200\224\342\200\224\345\256\211\350\243\205\350\231\232\346\213\237\346\234\272\345\222\214Debian.md" @@ -0,0 +1,66 @@ +# 安装虚拟机和Debian + +1. ### Linux是操作系统的内核,以其为基础会有很多发行版本 + + - Redhat收费版本,Centos是Redhat的社区版本 + - Debian 命令为主,Ubantu是以Debian+桌面皮肤的版本 + - 类似显卡的核心,N卡A卡相对于内核,不同商家出的具体的型号的显卡,相当于发行版本 + +2. ### 学习Debian的两种方式 + +- 安装虚拟机,再安装debian,快照 +- 利用阿里云,华为云,腾旭云,也利用快照功能,对服务器进行存档 + +3. ### 准备好虚拟机vm 17版本+Debian 12.5 64位的iOS文件 + +4. ### 先安装好vm,再创建一个新虚拟机 + +5. ### 如何下载一个Debian的安装镜像 http://www.debian.org + +6. ### 直接在虚拟机操作Debian很麻烦,所以想办法用ssh远程登录它 + +7. 默认Debian没有安装ssh服务端,自己安装一个 + +```xiujs +apt-get install ssh -y //需要root权限,安装ssh服务端 +ip address show //查看地址 +//以上两步,就可以让我们用普通用户远程登录了,但是默认下root是不可以直接登录的,需要对ssh做配置 +//为了方便我们编辑文件,安装一个vim编辑器,默认是vi +ifconfig //需要root权限,可以借权sudo +``` + +8. ### 修改ssh的服务端配置文件/etc/ssh/sshd_config文件 + + ```js + vim/etc/ssh/ssd_config + port 22 + permitRootLogin yes //允许root登录 + passwordAuthentication yes //采用密码验证模式 + permitEmptPassword no //禁用空密码 + + //启用ssh,让修改后的配置生效 + systemctl restart ssh 或 etc/init.d/ssh restart + ``` + + + +9. ### 如何借用root权限 + +- 安装 sudo + +```js +apt-get install sudo -y +``` + +- 将普通用户加入 + +```js +vim/etc/sudoers + +## Allow root to run any commands anywhere + root ALL=(ALL) ALL + 用户名 ALL=(ALL) ALL +``` + +- 重新登录普通用户,就可以使用sudo功能 + diff --git a/README.en.md b/README.en.md deleted file mode 100644 index 7ecb642315b1305938427e7c7924cb8aa64f86f2..0000000000000000000000000000000000000000 --- a/README.en.md +++ /dev/null @@ -1,36 +0,0 @@ -# Linux基础 - -#### Description -{**When you're done, you can delete the content in this README and update the file with details for others getting started with your repository**} - -#### Software Architecture -Software architecture description - -#### Installation - -1. xxxx -2. xxxx -3. xxxx - -#### Instructions - -1. xxxx -2. xxxx -3. xxxx - -#### Contribution - -1. Fork the repository -2. Create Feat_xxx branch -3. Commit your code -4. Create Pull Request - - -#### Gitee Feature - -1. You can use Readme\_XXX.md to support different languages, such as Readme\_en.md, Readme\_zh.md -2. Gitee blog [blog.gitee.com](https://blog.gitee.com) -3. Explore open source project [https://gitee.com/explore](https://gitee.com/explore) -4. The most valuable open source project [GVP](https://gitee.com/gvp) -5. The manual of Gitee [https://gitee.com/help](https://gitee.com/help) -6. The most popular members [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/) diff --git a/README.md b/README.md deleted file mode 100644 index cda094fa37a081f0932af0bd52dc12718d684b00..0000000000000000000000000000000000000000 --- a/README.md +++ /dev/null @@ -1,39 +0,0 @@ -# Linux基础 - -#### 介绍 -{**以下是 Gitee 平台说明,您可以替换此简介** -Gitee 是 OSCHINA 推出的基于 Git 的代码托管平台(同时支持 SVN)。专为开发者提供稳定、高效、安全的云端软件开发协作平台 -无论是个人、团队、或是企业,都能够用 Gitee 实现代码托管、项目管理、协作开发。企业项目请看 [https://gitee.com/enterprises](https://gitee.com/enterprises)} - -#### 软件架构 -软件架构说明 - - -#### 安装教程 - -1. xxxx -2. xxxx -3. xxxx - -#### 使用说明 - -1. xxxx -2. xxxx -3. xxxx - -#### 参与贡献 - -1. Fork 本仓库 -2. 新建 Feat_xxx 分支 -3. 提交代码 -4. 新建 Pull Request - - -#### 特技 - -1. 使用 Readme\_XXX.md 来支持不同的语言,例如 Readme\_en.md, Readme\_zh.md -2. Gitee 官方博客 [blog.gitee.com](https://blog.gitee.com) -3. 你可以 [https://gitee.com/explore](https://gitee.com/explore) 这个地址来了解 Gitee 上的优秀开源项目 -4. [GVP](https://gitee.com/gvp) 全称是 Gitee 最有价值开源项目,是综合评定出的优秀开源项目 -5. Gitee 官方提供的使用手册 [https://gitee.com/help](https://gitee.com/help) -6. Gitee 封面人物是一档用来展示 Gitee 会员风采的栏目 [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/)