Giter VIP home page Giter VIP logo

linux101-docs's Introduction

如何构建?

  1. (建议)使用 python3 -m venv venv 创建虚拟环境,. venv/bin/activate 进入虚拟环境;
  2. 使用 pip install -r requirements.txt 安装依赖;
  3. 使用 mkdocs serve 构建并查看效果。

编写建议

请参考 编写指导 页面,了解我们的编写规范。

许可

本文档以 Creative Commons BY-SA 4.0 协议发布。详情请见 LICENSE

linux101-docs's People

Contributors

ak1ra-komj avatar bc-li avatar billchenchina avatar catoverflow avatar crabtux avatar flurry-l avatar gloit042 avatar ibug avatar imba-tjd avatar jiangyh1 avatar ksqsf avatar lamws avatar liginity avatar liyishuai avatar myl7 avatar psi-cmd avatar pudh4418 avatar riessarius avatar rtxux avatar rubyocelot avatar sirius1242 avatar taoky avatar tiankaima avatar vainpointer avatar weirane avatar whenmelancholy avatar wolfyzhang-github avatar yuanyiwei avatar yusanshi avatar zeyugao avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

linux101-docs's Issues

Ch01: Outdated Information on Choice of Images and Performance Issues of 32-bit Systems

The current Linux 101 Ch01 documentation contains an outdated recommendation regarding the choice of image:

推荐选用和自己系统字长相匹配的镜像。如果不确定自己的电脑是 32 位还是 64 位,可选择 32 位版。

This recommendation may no longer be applicable to most users given the prevalence of 64-bit systems.

Additionally, a significant consideration to note is the decrease in performance when emulating a 64-bit system on a 32-bit system. This issue is elaborated on in this Zhihu article:

然而,承办学校有很多 32-bit 的 Windows 7,而在 32-bit 上模拟 64-bit 的性能非常堪忧——用户态的程序没法借用本地的页表,所以全系统都要模拟执行,而且内核模拟的负担也大了很多。

ch02 部署wordpress后显示database error

image

我的电脑是m2芯片的mac,于是按照第一章的mac安装虚拟机教程,安装了VMWare Fusion,又安装了ubuntu 20.04.6 LTS。随后我自行上网安装了Xfce和firefox浏览器

然而在按照第二章教程本地部署wordpress时遇到了上图的报错,即Error establishing a database connection,我试图上网检索这个报错,但是这个报错对应的可能性错误太多了,作为刚接触linux,不了解前后端的小白比较难以一一排查,遂在这里提问。我的猜测是,我的虚拟机是否比官方给出的Xubuntu 的虚拟机镜像少安装了某几个软件,导致了这个错误?

(如果这个问题太蠢,请轻喷QAQ)

添加 Apple Silicon (ARM) 下的环境配置补充说明

相关邮件咨询:

请问mac m1版本如何配置linux虚拟机呢?教程中的方法似乎并不能用

可以在第一章「拓展阅读」里面加入相关的内容(对 x86_64 和 ARM64 两种体系结构的简单解说、使用 UTM 或者 VMware Fusion 之类的软件安装 ARM64 架构的 Ubuntu 的说明、以及能否用 UTM 直接跑 x86_64 架构的带桌面环境的 Linux?至于虚拟机预配置的镜像我感觉可以暂时不考虑)

纠正一处拼写错误

在“第三章”的“安装预编译可执行文件”中的“安装预编译的 LLVM”的例子的最后一段

“在上面的复制过程中,源目录和目标目录的两个 bin 目录会相互合并,clang 和 clang++ 两个可执行文件也就倍复制到了 /usr/local/bin/ 目录中。这样子也就达到了我们希望能够在任意地方调用我们的可执行文件的目的。此外,在复制的时候 lib、doc 等文件夹也会和 /usr/local 下的对应目录合并,将 clang 的库和文档加到系统当中。”

莫名地出现了“被”拼写成了“倍”的情况。:()

Ch01 虚拟机更新

  • Ubuntu 18.04 五年的支持即将结束
  • Ubuntu 20.04 中需要关闭 LTS 大版本更新(有反馈点了更新之后系统挂了)
  • 制作 Ubuntu 22.04 镜像
  • 是否可以将 VMware 和 VirtualBox 的镜像合并为一个?

軟件安裝與文件操作章節的模式匹配部分中命令無效

問題:

mv -r *.[ch] /path無效

演示:

yibotian@Nicolette86132:~/files_operate_test$ mv -r *.[ch] ./test2
mv: invalid option -- 'r'
Try 'mv --help' for more information.

附加信息:

yibotian@Nicolette86132:~/files_operate_test$ tree
.
├── test1
│   ├── test1.txt
│   ├── test2
│   │   └── test3
│   ├── test2.txt
│   └── tset2
│       ├── test1.txt
│       └── test2.txt
├── test1.txt
├── test2
│   └── tset2
│       ├── test1.txt
│       └── test2.txt
├── test.c
└── test.h

6 directories, 9 files
yibotian@Nicolette86132:~/files_operate_test$ mv --version
mv (GNU coreutils) 8.32
Copyright (C) 2020 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Written by Mike Parker, David MacKenzie, and Jim Meyering.

環境:

yibotian@Nicolette86132:~/files_operate_test$ screenfetch
                          ./+o+-       yibotian@Nicolette86132
                  yyyyy- -yyyyyy+      OS: Ubuntu 22.04 jammy
               ://+//////-yyyyyyo      Kernel: x86_64 Linux 5.19.0-45-generic
           .++ .:/++++++/-.+sss/`      Uptime: 4h 35m
         .:++o:  /++++++++/:--:/-      Packages: 1675
        o:+o+:++.`..```.-/oo+++++/     Shell: bash 5.1.16
       .:+o:+o/.          `+sssoo+/    Resolution: 1920x1080
  .++/+:+oo+o:`             /sssooo.   DE: GNOME 41.7
 /+++//+:`oo+o               /::--:.   WM: Mutter
 \+/+o+++`o++o               ++////.   WM Theme: Adwaita
  .++.o+++oo+:`             /dddhhh.   GTK Theme: Yaru-blue-dark [GTK2/3]
       .+.o+oo:.          `oddhhhh+    Icon Theme: Yaru-blue
        \+.++o+o``-````.:ohdhhhhh+     Font: Ubuntu 11
         `:o+++ `ohhhhhhhhyo++os:      Disk: 52G / 175G (31%)
           .o:`.syhhhhhhh/.oo++o`      CPU: Intel Core i5-9300HF @ 8x 4.1GHz [71.0°C]
               /osyyyyyyo++ooo+++/     GPU: GeForce GTX 1650 Mobile / Max-Q
                   ````` +oo+++o\:     RAM: 4080MiB / 7856MiB
                          `oo++.      

修正建議

mv -t /path *.[ch]

修正效果

yibotian@Nicolette86132:~/files_operate_test$ mv -t test2 *.[ch]
yibotian@Nicolette86132:~/files_operate_test$ tree
.
├── test1
│   ├── test1.txt
│   ├── test2
│   │   └── test3
│   ├── test2.txt
│   └── tset2
│       ├── test1.txt
│       └── test2.txt
├── test1.txt
└── test2
    ├── test.c
    ├── test.h
    └── tset2
        ├── test1.txt
        └── test2.txt

6 directories, 9 files

修订 Ch10

  • 如果作为一章的话,需要扩充(现在还不够)
  • 如果不扩充,那么需要修改 + 验证目前的内容,然后放在附录

对文档的一个建议

我是 B站上 LeisureLinux Up主,平常对文档的编写也比较关心,自己也想着写一本 《Systemd 101》 的书。我的粉丝中也有很多大学生或者毕业不久的同学。 感觉很多人还是对于使用网络资源有很大的障碍,国内高校的各种镜像其实是解决这个障碍的重要跳板。

建议:《Linux 101》 的图书编写中,结合科大镜像站内的源,介绍源的使用。例如:

  • 介绍 pip 时,顺便介绍如何集成科大的 PyPi 镜像站。
  • 介绍 Debian 时,可以介绍在 sources.list 文件中,源的 URL 可以修改成 http://ftp.cn.debian.org/debian 这对于很多没有科学上网环境,甚至有科学上网环境的人也是有用的。毕竟很多科学上网也是有流量限制的。

PDF下载

您好,请问有没有办法将本书转化为本地的PDF?不太喜欢看网页,谢谢!

Ch08中,docker container ls 说明错误

docker container ls 和docker ps 一样只能查看运行中的容器,并不能查看已经停止的容器

如果没有加上 --rm,退出后可以使用 docker ps -a 或者 docker container ls 查看系统中所有的容器。

这里应该给docker container ls 加上-a

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.