debian GNU Linux系统应用手册

Debian GNU/Linux安装手册June14,2017Debian GNU/Linux安装手册版权©2004–2017Debian Installer团队本手册属于自由软件,您可以在GNU通用公共授权(GPL)下重新发布和(或)修改它。

请在附录 F 阅读该许可证的内容。

iContents1欢迎使用Debian11.1什么是Debian? (1)1.2什么是GNU/Linux? (1)1.3什么是Debian GNU/Linux? (2)1.4获得Debian (2)1.5获得本文档最新版本 (3)1.6文档的组织 (3)1.7关于版权与软件协议 (3)2系统需求52.1支持的硬件 (5)2.1.1支持的体系 (5)2.1.2CPU支持 (5)2.1.3便携机 (6)2.1.4多处理器 (6)2.1.5图形卡支持 (6)2.1.6网络连接硬件 (6)2.1.6.1无线网卡 (6)2.1.7盲文点触设备(Braille Display) (6)2.1.8硬件语音合成(Hardware Speech Synthesis) (7)2.1.9外围设备与其他硬件 (7)2.2需要固件的设备 (7)2.3特别为GNU/Linux采购硬件 (7)2.3.1避免专有或封闭的硬件 (7)2.4安装介质 (8)2.4.1CD-ROM/DVD-ROM (8)2.4.2U盘 (8)2.4.3网络 (8)2.4.4硬盘 (8)2.4.5Un*x或GNU系统 (8)2.4.6受支持的存储系统 (9)2.5内存与磁盘空间的需求 (9)3开始安装Debian GNU/Linux之前103.1安装概述 (10)3.2记得备份您所有的数据! (11)3.3一些有用的信息 (11)3.3.1文档 (11)3.3.1.1安装手册 (11)3.3.1.2硬件文档 (11)3.3.2提供硬件信息的资源 (11)3.3.3硬件兼容性 (12)3.3.3.1使用Live-System测试硬件兼容性 (12)3.3.4网络设置 (13)3.4满足最低的硬件要求 (13)3.5为多重启动系统事先分区 (13)3.6安装前的硬件和操作系统的相关设置 (14)3.6.1BIOS设置菜单的使用 (14)3.6.2选择引导设备 (14)3.6.3具有UEFI固件的系统 (15)3.6.4禁用Windows8的“快速启动”功能 (15)3.6.5需要留心的硬件问题 (15)iiCONTENTS4获取系统安装介质164.1官方的Debian GNU/Linux CD/DVD光盘套装 (16)4.2从Debian镜像服务器下载文件 (16)4.2.1在哪里能找到安装映像 (16)4.3为从U盘引导准备文件 (16)4.3.1使用混合CD或DVD映像制作U盘 (17)4.3.2手动复制文件到U盘。

(17)4.3.3手动复制文件到U盘—灵活的方法 (18)4.3.3.1给U盘分区 (18)4.3.3.2添加安装程序映像 (18)4.4为从硬盘引导准备文件 (19)4.4.1Hard disk installer booting from Linux using LILO or GRUB (19)4.4.2Hard disk installer booting from DOS using loadlin (19)4.5为使用TFTP网络引导准备文件 (19)4.5.1设置DHCP服务器 (20)4.5.1.1在DHCP配置中打开PXE引导功能 (20)4.5.2架设BOOTP服务器 (21)4.5.3开启TFTP服务器 (21)4.5.4将TFTP映像放到适当的位置 (22)4.6自动化安装 (22)4.6.1使用Debian安装程序进行自动安装 (22)5用安装系统启动235.1在64-bit PC上引导安装程序 (23)5.1.1从U盘启动 (23)5.1.2从CD-ROM启动 (23)5.1.3从Windows引导 (23)5.1.4从DOS下使用loadlin引导 (24)5.1.5引导Linux使用LILO或GRUB (24)5.1.6用TFTP引导 (25)5.1.6.1支持PXE的网卡或者主板 (25)5.1.6.2网络BootROM的网卡 (25)5.1.6.3Etherboot (25)5.1.7引导界面 (25)5.1.8图形安装程序 (26)5.2辅助功能 (26)5.2.1安装人员前端 (27)5.2.2USB盲文点显器 (27)5.2.3串口盲文点显器 (27)5.2.4软件语音合成 (27)5.2.5硬件语音合成 (27)5.2.6板卡设备 (27)5.2.7高亮主题 (27)5.2.8缩放 (27)5.2.9专家安装、救援模式、自动安装 (28)5.2.10已安装系统的辅助功能 (28)5.3引导参数 (28)5.3.1启动控制台 (28)5.3.2Debian安装程序的参数 (28)5.3.3使用内核模块参数回答提问 (30)5.3.4给内核模块传递参数 (30)5.3.5内核模块黑名单 (30)5.4安装过程中的故障修复 (31)5.4.1CD-ROM的可靠性 (31)5.4.1.1常见问题 (31)5.4.1.2如何调查研究或许可以解决问题 (31)5.4.2引导配置 (32)5.4.3软件语音合成 (32)5.4.464-bit PC常见安装问题 (32)iiiCONTENTS5.4.4.1在PCMCIA配置阶段系统停止 (32)5.4.5内核起始信息注解 (33)5.4.6报告安装问题 (33)5.4.7提交缺陷报告 (33)6使用Debian安装程序356.1安装程序如何工作 (35)6.1.1Using the graphical installer (35)6.2组件介绍 (36)6.3使用单独的组件 (37)6.3.1启动Debian安装程序与配置硬件 (37)6.3.1.1检测可用内存/小内存模式 (37)6.3.1.2选择地区选项 (37)6.3.1.3选择键盘 (38)6.3.1.4寻找Debian安装程序ISO映像 (38)6.3.1.5配置网络 (38)6.3.1.5.1自动网络配置 (38)6.3.1.5.2手动网络配置 (39)6.3.1.5.3IPv4和IPv6 (39)6.3.1.6配置时钟和时区 (39)6.3.2设置用户和密码 (39)6.3.2.1设置root密码 (39)6.3.2.2创建一个普通用户 (40)6.3.3分区与选择挂载点 (40)6.3.3.1支持的分区选项 (40)6.3.3.2导引式分区 (41)6.3.3.3手动分区 (42)6.3.3.4配置多磁盘设备(软RAID) (42)6.3.3.5配置逻辑卷管理(LVM) (44)6.3.3.6配置加密卷 (45)6.3.4安装基本系统 (46)6.3.5安装额外的软件 (46)6.3.5.1配置apt (47)6.3.5.1.1从多个CD或DVD安装 (47)6.3.5.1.2使用网络镜像 (47)6.3.5.1.3选择网络镜像 (48)6.3.5.2选择和安装软件 (48)6.3.6创建启动系统 (49)6.3.6.1检测其他的操作系统 (49)6.3.6.2硬盘上Grub Boot Loader的安装 (49)6.3.6.3硬盘上LILO Boot Loader的安装 (49)6.3.6.4不使用boot loader继续进行 (50)6.3.7完成安装 (50)6.3.7.1设置系统时钟 (50)6.3.7.2重新启动系统 (50)6.3.8排除故障 (50)6.3.8.1保存安装记录 (50)6.3.8.2使用Shell查看记录 (50)6.3.9通过网络安装 (51)6.4加载缺失的固件 (52)6.4.1准备介质 (52)6.4.2固件和安装好的系统 (52)7启动进入新的Debian系统547.1关键时刻 (54)7.2挂载加密卷 (54)7.2.1故障处理 (54)7.3登录 (55)ivCONTENTS8下一步该干什么568.1关闭系统 (56)8.2如果您不熟悉Unix (56)8.3让自己适应Debian (56)8.3.1Debian软件包系统 (56)8.3.2用于Debian的额外软件 (57)8.3.3应用程序版本管理 (57)8.3.4定时任务管理 (57)8.4更多信息 (57)8.5让您的系统使用E-Mail (57)8.5.1默认的E-Mail配置 (58)8.5.2发送邮件到系统之外 (58)8.5.3配置Exim4MTA (58)8.6编译新内核 (59)8.6.1内核映象管理 (59)8.7修复损坏的系统 (60)A安装指南61A.1前言 (61)A.2安装套件的引导 (61)A.2.1CDROM (61)A.2.2U盘 (61)A.2.3从网络启动 (62)A.2.4从硬盘启动 (62)A.3安装 (62)A.4请给我们发一份安装报告 (63)A.5末了 (63)B使用预置自动进行安装64B.1介绍 (64)B.1.1预置方法 (64)B.1.2限制 (65)B.2使用预置 (65)B.2.1加载预置文件 (65)B.2.2使用引导参数预置问题的答案 (66)B.2.3auto模式 (66)B.2.4预置中有用的别名 (67)B.2.5使用DHCP服务器指定预置文件 (68)B.3创建预置文件 (68)B.4预置文件的内容(stretch) (69)B.4.1本地化 (69)B.4.2网络设置 (70)B.4.3网络控制台 (71)B.4.4镜像设置 (71)B.4.5帐号设置 (71)B.4.6时钟与时区设置 (72)B.4.7分区 (73)B.4.7.1分区示例 (73)B.4.7.2使用RAID分区 (74)B.4.7.3分区挂载控制 (75)B.4.8基本系统安装 (75)B.4.9设置apt (76)B.4.10选择软件包 (76)B.4.11安装bootloader (77)B.4.12完成安装 (78)B.4.13预置其他的软件包 (78)B.5高级选项 (78)B.5.1安装过程中运行用户命令 (78)B.5.2使用预置修改默认值 (79)vCONTENTSB.5.3预置文件链 (79)C为Debian准备分区80C.1决定Debian分区以及大小 (80)C.2目录树 (80)C.3推荐的分区方案 (81)C.4Linux里面的设备名称 (82)C.5Debian分区程序 (82)C.5.1为64-bit PC准备分区 (82)D其他84D.1Linux里的设备 (84)D.1.1设定您的鼠标 (84)D.2各软件集所需的磁盘空间 (85)D.3通过Unix/Linux系统来安装Debian GNU/Linux (85)D.3.1准备开始 (86)D.3.2安装debootstrap (86)D.3.3运行debootstrap (87)D.3.4基本系统的配置 (87)D.3.4.1创建设备文件 (87)D.3.4.2分区的挂载 (87)D.3.4.3设置时区 (88)D.3.4.4网络的配置 (88)D.3.4.5配置Apt (89)D.3.4.6本地化和键盘的配置 (89)D.3.5内核的安装 (90)D.3.6Boot Loader的设置 (90)D.3.7远程访问:安装SSH并设置密码 (90)D.3.8最后一笔 (91)D.4通过Parallel Line IP(PLIP)安装Debian GNU/Linux (91)D.4.1需求 (91)D.4.2建立源 (91)D.4.3安装目标 (92)D.5通过PPP over Ethernet(PPPPoE)安装Debian GNU/Linux (92)E文案93E.1关于本文档 (93)E.2帮助本文档 (93)E.3主要贡献人员 (93)E.4商标确认 (94)F GNU通用公共授权95F.1导言 (95)F.2GNU通用公共授权 (96)F.3您的新程序该如何采用这些条款 (97)viList of Tables3开始安装Debian GNU/Linux之前3.1有助于安装的硬件信息 (12)3.2推荐的最低系统配置 (13)viiAbstract本文是Debian GNU/Linux9系统(代号“stretch”)在64-bit PC(“amd64”)硬件架构下的安装教程。

合集下载

Debian GNULinux 图形安装教程、网络配置、软件源、基本配置

Debian GNULinux  图形安装教程、网络配置、软件源、基本配置

Debian GNULinux 图形安装教程、网络配置、软件源、基本配置一.准备安装Debian系统1.Debian简介Debian是GPL和其他自软件许可协议授权的自软件组成的操作系统,Debian计划组织维护。

Debian计划没有任何的营利组织支持,它的开发团队完全来自世界各地的志愿者组成,官方开发者的总数超过1000名,非官方开发者为数更多。

Debian计划组织跟其他自操作系统的开发组织不同。

上述这些自操作系统的开发组织通常背后公司或机构支持。

而Debian计划组织则完全是一个独立的、分散的开发者组织,纯粹志愿者组成,背后没有任何公司或机构支持。

Debian以其坚守Unix和自软件的精神,以及其给予用户的众多选择而闻名。

现时Debian包括了超过25,000个软件包并支持12个计算机系统结构。

需要指出的是,Debian并不是一种Linux发行版。

Debian 是一个大的系统组织框架,在这个框架下有多种不同操作系统核心的分支计划,如采用Linux核心的Debian GNU/Linux系统、采用GNU Hurd核心的Debian GNU/Hurd系统、采用FreeBSD 核心的Debian GNU/kFreeBSD系统,以及采用NetBSD核心的Debian GNU/NetBSD系统。

甚至还有应用Debian的系统架构和工具,采用OpenSolaris核心构建而成的Nexenta OS 系统。

在这些Debian系统中,以采用Linux核心的Debian GNU/Linux最为著名。

众多的Linux发行版,例如Ubuntu、Knoppix和Linspire及Xandros等,都建基于Debian GNU/Linux。

介绍Debian 版本Debian主要分三个版本:稳定版本、测试版本、不稳定版本。

这3个发布版同时存在,可以被用户任意选用,用户如果追求稳定、少升级,可以使用stable,这里只有一些安全更新,而不会有其他升级。

Debian参考手册

Debian参考手册

Debian参考手册Debian 参考手册Osamu Aoki (青木修)版权© 2013-2018 青木修Debian 参考手册(版本 2.76)(2019-03-21 15:39:20 UTC) 旨在作为一份 Debian 系统安装后的用户指南,为 Debian系统的使用与管理提供广泛的概览。

它通过为非开发者编写的 shell 命令示例来涵盖系统管理的方方面面。

摘要这本书是自由的;你可以在与 Debian 自由软件指导方针(DFSG)兼容的任意版本的 GNU 通用公共许可证的条款下重新分发和修改本书。

目录序言•1. 免责声明2. 什么是 Debian3. 关于本文档o 3.1. 指导原则3.2. 预备知识3.3. 排版约定3.4. popcon 流行度3.5. 软件包大小3.6. 给本文档报告 Bug4. 一些对新使用者的提醒5. 一些对新使用者的引导1. GNU/Linux 教程•1.1. 控制台基础o 1.1.1. shell 提示符1.1.2. X 系统下的 shell 提示符1.1.3. root 账户1.1.4. root shell 提示符1.1.5. GUI 系统管理工具1.1.6. 虚拟控制台1.1.7. 怎样退出命令行提示符1.1.8. 怎样关闭系统1.1.9. 恢复一个正常的控制台1.1.10. 建议新手安装的额外软件包1.1.11. 额外用户账号1.1.12. sudo 配置1.1.13. 动手时间•1.2. 类 Unix 文件系统o 1.2.1. Unix 文件基础1.2.2. 文件系统深入解析1.2.3. 文件系统权限1.2.4. 控制新建文件的权限:umask 1.2.5. 一组用户的权限(组)1.2.6. 时间戳1.2.7. 链接1.2.8. 命名管道(先进先出)1.2.9. 套接字1.2.10. 设备文件1.2.11. 特殊设备文件1.2.12. procfs 和 sysfs1.2.13. tmpfs•1.3. Midnight Commander (MC) o 1.3.1. 自定义 MC1.3.2. 启动 MC1.3.3. MC 文件管理1.3.4. MC 命令行技巧1.3.5. MC 内部编辑器1.3.6. MC 内部查看器1.3.7. 自动启动 MC1.3.8. MC 中的 FTP 虚拟文件系统•1.4. 类 Unix 工作环境基础o 1.4.1. 登录 shell1.4.2. 定制bash1.4.3. 特殊按键1.4.4. Unix类型的鼠标操作1.4.5. 分页程序1.4.6. 文本编辑器1.4.7. 设置默认文本编辑器1.4.8. 定制vim1.4.9. 记录 shell 活动1.4.10. 基本的Unix命令•1.5. 简单 shell 命令o 1.5.1. 命令执行和环境变量1.5.2. “$LANG”变量1.5.3. '$PATH' 变量1.5.4. '$HOME' 变量1.5.5. 命令行选项1.5.6. Shell 通配符1.5.7. 命令的返回值1.5.8. 典型的顺序命令和 shell 重定向1.5.9. 命令别名•1.6. 类 Unix 的文本处理o 1.6.1. Unix 文本工具1.6.2. 正则表达式1.6.3. 替换表达式1.6.4. 正则表达式的全局替换1.6.5. 从文本文件的表格中提取数据1.6.6. 用于管道命令的小片段脚本2. Debian 软件包管理•2.1. Debian 软件包管理的前提o 2.1.1. 软件包配置2.1.2. 基本的注意事项2.1.3. 持续升级的生活2.1.4. Debian 档案库基础2.1.5. Debian 是100% 的自由软件2.1.6. 软件包依赖关系2.1.7. 包管理的事件流2.1.8. 对包管理问题的第一个回应•2.2. 基础软件包管理操作o 2.2.1. apt vs. apt-get /apt-cache vs. aptitude 2.2.2. 命令行中的基础软件包管理操作2.2.3. aptitude 的交互式使用2.2.4. aptitude 的按键绑定2.2.5. aptitude 软件包视图2.2.6. aptitude 搜索方式选项2.2.7. aptitude 正则表达式2.2.8. aptitude 的依赖解决2.2.9. 软件包活动日志•2.3. aptitude 操作范例o 2.3.1. 通过正则表达式匹配软件包名称来列出软件包2.3.2. 使用正则表达式匹配浏览2.3.3. 完整地清理已删除软件包2.3.4. 调整自动/手动安装状态2.3.5. 全面的系统升级•2.4. 高级软件包管理操作o 2.4.1. 命令行中的高级软件包管理操作2.4.2. 验证安装的软件包文件2.4.3. 预防软件包故障2.4.4. 搜索软件包元数据•2.5. Debian 软件包内部管理o 2.5.1. 档案库元数据2.5.2. 顶层“Release”文件及真实性2.5.3. 档案库层的“Release”文件2.5.4. 获取用于软件包的元数据2.5.5. APT 的软件包状态2.5.6. aptitude 的软件包状态2.5.7. 获取的软件包的本地副本2.5.8. Debian 软件包文件名称2.5.9. dpkg 命令2.5.10. update-alternatives 命令2.5.11. dpkg-statoverride 命令2.5.12. dpkg-divert 命令•2.6. 从损坏的系统中恢复o 2.6.1. 不兼容旧的用户配置2.6.2. 具有相同文件的不同软件包2.6.3. 修复损坏的软件包脚本2.6.4. 使用 dpkg 命令进行救援2.6.5. 恢复软件包选择数据•2.7. 软件包管理技巧o 2.7.1. 如何挑选 Debian 软件包2.7.2. 混合源档案库中的软件包2.7.3. 调整候选版本2.7.4. 更新和向后移植2.7.5. 阻止推荐的软件包的安装2.7.6. 使用带有unstable软件包的testing版本2.7.7. 使用带有experimental软件包的unstable版本2.7.8. 自动下载和升级软件包2.7.9. 限制 APT 的下载带宽2.7.10. 紧急降级2.7.11. 上传软件包的是谁?2.7.12. equivs 软件包2.7.13. 移植一个软件包到 stable 系统2.7.14. 用于 APT 的代理服务器2.7.15. 小型公共软件包档案库2.7.16. 记录和复制系统配置2.7.17. 转换或安装一个外来的二进制软件包2.7.18. 不使用 dpkg 解压软件包2.7.19. 更多关于软件包管理的文档3. 系统初始化•3.1. 启动过程概述o 3.1.1. 第一阶段:BIOS3.1.2. 第二阶段:引载加载程序3.1.3. 第三阶段:迷你 Debian 系统3.1.4. 第四阶段:常规 Debian 系统•3.2. Systemd 初始化o 3.2.1. 主机名3.2.2. 文件系统3.2.3. 网络接口初始化3.2.4. 内核消息3.2.5. 系统消息3.2.6. systemd 下的系统管理3.2.7. 定制 systemd•3.3. udev 系统o 3.3.1. 内核模块初始化4. 认证•4.1. 一般的 Unix 认证4.2. 管理账号和密码信息4.3. 好密码4.4. 设立加密的密码4.5. PAM 和 NSSo 4.5.1. PAM 和 NSS 访问的配置文件4.5.2. 现代的集中式系统管理4.5.3. “为什么 GNU su 不支持 wheel 组”4.5.4. 严格的密码规则4.6. 其它的访问控制o 4.6.1. sudo4.6.2. PolicyKit4.6.3. SELinux4.6.4. 限制访问某些服务端的服务4.7. 安全认证o 4.7.1. 确保互联网上的的密码安全4.7.2. 安全 Shell4.7.3. 互联网额外的安全方式4.7.4. root 密码安全5. 网络设置•5.1. 基本网络架构o 5.1.1. 主机名解析5.1.2. 网络接口名称5.1.3. 局域网网络地址范围5.1.4. 网络设备支持•5.2. 现代的桌面网络配置o 5.2.1. 图形界面的网络配置工具5.3. 没有图像界面的现代网络配置5.4. 传统的网络连接和配置5.5. 网络连接方式(传统)o 5.5.1. 以太网 DHCP 连接5.5.2. 以太网静态 IP 连接5.5.3. 使用 pppconfig 的 PPP 连接5.5.4. 使用 wvdialconf 的另一种可选的 PPP 连接5.5.5. 使用 pppoeconf 的 PPPoE 以太网连接5.6. 使用 ifupdown 进行基本网络配置(旧)o 5.6.1. 简单的命令语法5.6.2. '/etc/network/interfaces' 基本语法5.6.3. 回环网络接口5.6.4. 使用 DHCP 的网络接口5.6.5. 使用静态 IP 地址的网络接口5.6.6. 无线局域网接口基础5.6.7. 使用 WPA/WPA2 的无线局域网接口5.6.8. 使用 WEP 的无线局域网接口5.6.9. PPP 连接5.6.10. 另一种 PPP 连接5.6.11. PPPoE 连接5.6.12. ifupdown 网络配置状态5.6.13. 网络重新配置基础5.6.14. ifupdown-extra 包5.7. 使用 ifupdown 的高级网络配置(旧)o 5.7.1. ifplugd 软件包5.7.2. ifmetric 软件包5.7.3. 虚拟接口5.7.4. 高级命令语法5.7.5. 映射节 mapping stanza5.7.6. 手动的可切换网络配置5.7.7. ifupdown 系统的脚本5.7.8. guessnet Mapping 映射5.8. 底层网络配置o 5.8.1. Iproute2 命令5.8.2. 安全的底层网络操作5.9. 网络优化o 5.9.1. 找出最佳 MTU5.9.2. 设置 MTU5.9.3. WAN TCP 优化5.10. Netfilter 网络过滤框架6. 网络应用•6.1. 网页浏览器o 6.1.1. 浏览器配置6.2. 邮件系统o 6.2.1. 电子邮件基础6.2.2. 现代邮件服务基础6.2.3. 工作站的邮件配置策略6.3. 邮件传输代理 (MTA)o 6.3.1. exim4 的配置6.3.2. 带有 SASL 的 postfix 配置6.3.3. 邮件地址配置6.3.4. 基础 MTA 操作6.4. 邮件用户代理 (MUA)o 6.4.1. 基础 MUA — Mutt6.4.2. 高级 MUA — Mutt + msmtp 6.5. 远程邮件检索和转发实用工具o 6.5.1. getmail 配置6.5.2. fetchmail 配置6.6. 带有过滤器的邮件投递代理 (MDA)o 6.6.1. maildrop 配置6.6.2. procmail 配置6.6.3. 重新投递 mbox 内容6.7. POP3/IMAP4 服务器6.8. 打印服务和工具6.9. 服务器远程访问和工具 (SSH)o 6.9.1. SSH 基础6.9.2. SMTP/POP3 隧道的端口转发6.9.3. 免密码远程连接6.9.4. 处理其它 SSH 客户端6.9.5. 建立 ssh 代理6.9.6. 怎样通过 SSH 关闭远程系统6.9.7. SSH 故障排查6.10. 其它网络应用服务6.11. 其它网络应用客户端6.12. 系统后台守护进程(daemon)诊断7. X 窗口系统•7.1. 关键软件包7.2. 设置桌面环境o7.2.1. Debian 菜单7.2.2. 菜单7.2.3. 从 菜单到 Debian 菜单7.3. 服务器/客户端关系7.4. X 服务器o7.4.1. X 服务器的(重新)配置7.4.2. 连接到 X 服务器的方式7.5. 启动 X 窗口系统o7.5.1. 使用 gdm3 启动 X 会话7.5.2. 自定义 X 会话(经典方式)7.5.3. 自定义 X 会话(新方式)7.5.4. 通过 SSH 连接一个远程 X 客户端7.5.5. 连接互联网的安全 X 终端7.6. X 窗口中的字体o7.6.1. 基础字体7.6.2. 其它字体7.6.3. CJK 字体7.7. X 应用o7.7.1. X 办公应用7.7.2. X 实用应用7.8. X 琐事o7.8.1. 剪贴板7.8.2. X 中的键盘和鼠标按钮映射7.8.3. 典型的 X 客户端7.8.4. X 终端模拟器—— xterm7.8.5. 以 root 运行 X 客户端8. 国际化和本地化•8.1. 键盘输入o8.1.1. IBus 支持的输入法8.1.2. 一个日语的例子8.1.3. 禁用输入法•8.2. 显示输出•8.3. 东亚环境下宽度有歧义的字符•8.4. 语言环境o8.4.1. 编码的基础知识8.4.2. UTF-8 语言环境的基本原理8.4.3. 语言环境的重新配置8.4.4. “$LANG” 环境变量的值8.4.5. 只用于 X 窗口的特定语言环境8.4.6. 文件名编码8.4.7. 本地化信息和翻译文档8.4.8. 语言环境的影响9. 系统技巧•9.1. screen 程序o9.1.1. screen(1) 的使用场景9.1.2. screen 命令的键绑定•9.2. 数据记录和展示o9.2.1. 日志后台守护进程(daemon)9.2.2. 日志分析9.2.3. 清晰的记录 shell 活动9.2.4. 定制文本数据的显示9.2.5. 定制时间和日期的显示9.2.6. shell 中 echo 的颜色9.2.7. 有颜色输出的命令9.2.8. 记录编辑器复杂的重复操作动作9.2.9. 记录 X 应用程序的图形9.2.10. 记录配置文件的变更•9.3. 监控、控制和启动程序活动o9.3.1. 进程耗时9.3.2. 调度优先级9.3.3. ps 命令9.3.4. top 命令9.3.5. 列出被一个进程打开的文件9.3.6. 跟踪程序活动9.3.7. 识别使用文件和套接字的进程9.3.8. 使用固定间隔重复一个命令9.3.9. 使用文件循环来重复一个命令9.3.10. 从 GUI 启动一个程序9.3.11. 自定义被启动的程序9.3.12. 杀死一个进程9.3.13. 单次任务时间安排9.3.14. 定时任务安排9.3.15. Alt-SysRq 键•9.4. 系统维护技巧o9.4.1. 谁在系统里?9.4.2. 警告所有人9.4.3. 硬件识别9.4.4. 硬件配置9.4.5. 系统时间和硬件时间9.4.6. 终端配置9.4.7. 声音基础设施9.4.8. 关闭屏幕保护9.4.9. 关闭蜂鸣声9.4.10. 内存使用9.4.11. 系统安全性和完整性检查•9.5. 数据存储技巧o9.5.1. 硬盘空间使用情况9.5.2. 硬盘分区配置9.5.3. 使用 UUID 访问分区9.5.4. LVM29.5.5. 文件系统配置9.5.6. 文件系统创建和完整性检查9.5.7. 通过挂载选项优化文件系统9.5.8. 通过超级块(superblock)优化文件系统9.5.9. 硬盘优化9.5.10. 固态硬盘优化9.5.11. 使用 SMART 预测硬盘故障9.5.12. 通过 $TMPDIR 指定临时存储目录9.5.13. 通过 LVM 扩展可用存储空间9.5.14. 通过挂载另一个分区来扩展可用存储空间9.5.15. 通过“mount --bind” 挂载另一个目录来扩展可用存储空间9.5.16. 通过overlay 挂载(overlay-mounting)另一个目录来扩展可用存储空间9.5.17. 使用符号链接扩展可用存储空间•9.6. 磁盘映像o9.6.1. 制作磁盘映像文件9.6.2. 直接写入硬盘9.6.3. 挂载磁盘映像文件9.6.4. 清理磁盘映像文件9.6.5. 制作空的磁盘映像文件9.6.6. 制作 ISO9660 镜像文件9.6.7. 直接写入文件到 CD/DVD-R/RW9.6.8. 挂载 ISO9660 镜像文件•9.7. 二进制数据o9.7.1. 查看和编辑二进制数据9.7.2. 不挂载磁盘操作文件9.7.3. 数据冗余9.7.4. 数据文件恢复和诊断分析9.7.5. 把大文件分成多个小文件9.7.6. 清空文件内容9.7.7. 样子文件9.7.8. 擦除整块硬盘9.7.9. 擦除硬盘上的未使用的区域9.7.10. 恢复已经删除但仍然被打开的文件9.7.11. 查找所有硬链接9.7.12. 不可见磁盘空间消耗•9.8. 数据加密提示o9.8.1. 使用 dm-crypt/LUKS 加密移动磁盘9.8.2. 用dm-crypt加密的交换分区9.8.3. 使用dm-crypt/LUKS挂载加密的磁盘9.8.4. 用eCryptfs自动加密文件9.8.5. 自动挂载 eCryptfs•9.9. 内核o9.9.1. Linux 内核 2.6/3.x9.9.2. 内核参数9.9.3. 内核头文件9.9.4. 编译内核和相关模块9.9.5. 编译内核源代码:Debian 内核团队推荐9.9.6. 硬件驱动和固件•9.10. 虚拟化系统o9.10.1. 虚拟化工具9.10.2. 虚拟化工作流9.10.3. 挂载虚拟磁盘映像文件9.10.4. Chroot 系统9.10.5. 多桌面系统10. 数据管理•10.1. 共享,拷贝和存档o10.1.1. 存档和压缩工具10.1.2. 复制和同步工具10.1.3. 归档语法10.1.4. 复制语法10.1.5. 查找文件的语法10.1.6. 归档媒体10.1.7. 可移动存储设备10.1.8. 选择用于分享数据的文件系统10.1.9. 网络上的数据分享•10.2. 备份和恢复o10.2.1. 实用备份套件10.2.2. 一个系统备份的脚本例子10.2.3. 用于备份数据的复制脚本•10.3. 数据安全基础o10.3.1. GnuPG 密钥管理10.3.2. 在文件上使用 GnuPG10.3.3. 在 Mutt 中使用 GnuPG10.3.4. 在 Vim 中使用 GnuPG10.3.5. MD5 校验和•10.4. 源代码合并工具o10.4.1. 从源代码文件导出差异10.4.2. 源代码文件移植更新10.4.3. 通过三方移植进行更新•10.5. 版本控制系统o10.5.1. VCS 命令的比较10.6. Gito10.6.1. 配置 Git 客户端10.6.2. Git 参考10.6.3. Git 命令10.6.4. 用于 Subversion 仓库的 Git10.6.5. 记录配置历史的 Git10.7. CVSo10.7.1. CVS 存储库的配置10.7.2. 本地访问 CVS10.7.3. 使用 pserver 远程访问 CVS10.7.4. 使用 ssh 远程访问 CVS10.7.5. 往 CVS 导入新的源10.7.6. CVS 存储库中的文件权限10.7.7. CVS 工作流10.7.8. CVS 中最新的文件10.7.9. CVS 的管理10.7.10. 用于 CVS 签出时的可执行位10.8. Subversiono10.8.1. Subversion 存储库的配置10.8.2. 通过 Apache2 服务器访问 Subversion 10.8.3. 按组本地访问 Subversion10.8.4. 通过 SSH 远程访问 Subversion10.8.5. Subversion 目录结构10.8.6. 往 Subversion 里导入一个新的源10.8.7. Subversion 工作流11. 数据转换•11.1. 文本数据转换工具o11.1.1. 用 iconv 命令来转换文本文件11.1.2. 用 iconv 检查文件是不是 UTF-8 编码11.1.3. 使用 iconv 转换文件名11.1.4. 换行符转换11.1.5. TAB 转换11.1.6. 带有自动转换功能的编辑器11.1.7. 提取纯文本11.1.8. 高亮并格式化纯文本数据•11.2. XML 数据o11.2.1. XML 的基本提示11.2.2. XML 处理11.2.3. XML 数据提取•11.3. 排版o11.3.1. roff 排版11.3.2. TeX/LaTeX11.3.3. 漂亮的打印手册页11.3.4. 创建手册页•11.4. 可印刷的数据o11.4.1. Ghostscript11.4.2. 合并两个 PS 或 PDF 文件11.4.3. 处理可印刷数据的工具11.4.4. 用 CUPS 打印•11.5. 邮件数据转换o11.5.1. 邮件数据基础11.6. 图形数据工具11.7. 不同种类的数据转换工具12. 编程•12.1. Shell 脚本o12.1.1. POSIX shell 兼容性12.1.2. Shell 参数12.1.3. Shell 条件语句12.1.4. shell 循环12.1.5. shell 命令行的处理顺序12.1.6. 用于 shell 脚本的应用程序12.1.7. shell 脚本对话框12.1.8. zenity 的 shell 脚本案例•12.2. make•12.3. Co12.3.1. 简单的 C 程序(gcc)12.4. 调试o12.4.1. 基本的 gdb 使用命令12.4.2. 调试 Debian 软件包12.4.3. 获得栈帧12.4.4. 高级 gdb 命令12.4.5. 调试与 X 相关的错误12.4.6. 检查库依赖性12.4.7. 内存泄漏检测工具12.4.8. 静态代码分析工具12.4.9. 反汇编二进制程序12.5. Flex —一个更好的 Lex 12.6. Bison —一个更好的 Yacc 12.7. Autoconfo12.7.1. 编译并安装程序12.7.2. 卸载程序12.8. Perl 短脚本的疯狂12.9. Web12.10. 源代码转换12.11. 制作 Debian 包A. 附录•A.1. Debian 迷宫A.2. 版权历史A.3. 文档格式A.4. 简体中文翻译表格清单1.1. 有趣的文本模式程序包列表1.2. 软件包信息文档列表1.3. 重要目录的用途列表1.4. “ls -l”输出的第一个字符列表1.5. chmod(1)命令文件权限的数字模式1.6. umask值举例1.7. 关于文件访问的由系统提供的著名组列表1.8. 著名的由系统提供用于特定命令运行的组列表1.9. 时间戳类型列表1.10. 特殊设备文件列表1.11. MC 快捷键绑定1.12. MC 中对回车键的响应1.13. shell 程序列表1.14. bash的按键绑定列表1.15. Unix样式的鼠标操作列表1.16. 基本的Unix命令列表1.17. 语言环境值的 3 个部分1.18. 语言环境推荐列表1.19. '$HOME' 变量值列表1.20. Shell glob 模式1.21. 命令的退出代码1.22. Shell 命令常见用法1.23. 预定义的文件描述符1.24. BRE 和 ERE 中的元字符1.25. 替换表达式1.26. 管道命令的小片段脚本列表2.1. Debian 软件包管理工具列表2.2. Debian 档案库站点列表2.3. Debian 归档区域(area)列表2.4. 套件和代号的关系2.5. 解决特定软件包问题的主要网站2.6. 使用apt(8),aptitude(8)和apt-get(8)/apt-cache(8)的命令行基本软件包管理操作2.7. aptitude(8)中重要的命令选项2.8. aptitude 的按键绑定2.9. aptitude 视图2.10. 标准软件包视图的分类2.11. aptitude 正则表达式2.12. 软件包活动日志文件2.13. 高级软件包管理操作2.14. Debian 档案库元数据的内容2.15. Debian 软件包的名称结构2.16. Debian 软件包名称中每一个组件可以使用的字符2.17. dpkg创建的重要文件2.18. 用于 apt-pinning 技术的值得注意的 Pin-Priority 值列表。

DebianGNULinux50(lenny),AMD64的发行说明

DebianGNULinux50(lenny),AMD64的发行说明

Debian GNU/Linux 5.0("lenny"), AMD64 的发行说明Debian 文档项目 [/doc/]目录1. 简介 (1)1.1. 报告本文档的 bug (1)1.2. 贡献升级报告 (1)1.3. 本文档的源文件 (2)2. Debian GNU/Linux 5.0 有什么新东西 (3)2.1. 这次发布中有什么新东西? (3)2.1.1. 包管理 (4)2.1.2. proposed-updates 区 (5)2.2. 系统改进 (5)2.3. Debian Live (6)2.4. 内核相关的主要变化 (6)2.4.1. 内核打包的变化 (6)2.5. Emdebian 1.0(基于 Debian GNU/Linux lenny 5.0) (6)2.6. 上网本支持 (7)2.7. Debian 中的 Java (7)3. 安装系统 (8)3.1. 安装系统有哪些新特性? (8)3.1.1. 主要更新 (8)3.1.2. 自动安装 (9)3.1.3. 使用布莱叶显示屏安装 Debian GNU/Linux (9)3.1.4. 使用硬件语言合成器安装 Debian GNU/Linux (10)4. 从以前的发行版升级 (11)4.1. 升级前的准备 (11)4.1.1. 备份数据和配置文件 (11)4.1.2. 提前告知用户 (11)4.1.3. 准备恢复 (11)4.1.4. 为升级准备安全环境 (12)4.1.5. 为 LILO 准备 initramfs (13)4.2. 检查系统状态 (13)4.2.1. 复审包管理器中的未决操作 (13)4.2.2. 禁用 APT pinning 操作 (13)4.2.3. 检查包状态 (14)4.2.4. proposed-updates 区 (14)4.2.5. 非官方源和 backports (15)4.3. 手工删除软件包的标记 (15)4.4. 为 APT 准备源 (16)4.4.1. 添加互联网 APT 源 (16)4.4.2. 添加本地镜像 APT 源 (17)4.4.3. 从 CD-ROM 或 DVD 添加 APT 源 (17)4.5. 升级软件包 (18)4.5.1. 记录会话 (18)4.5.2. 更新包列表 (18)4.5.3. 确保您有足够的空间升级 (19)4.5.4. 先升级 apt 和/或 aptitude (20)4.5.5. 使用 aptitudes 记录的 apt 自动安装的软件包列表 (21)4.5.6. 最小系统升级 (21)Debian GNU/Linux 5.0("lenny"), AMD64 的发行说明4.5.7. 升级系统的其它部分 (22)4.5.8. 升级期间可能遇到的问题 (22)4.6. 升级内核与相关包 (23)4.6.1. 安装内核元数据包 (23)4.6.2. 从 2.6 内核升级 (24)4.6.3. 从 2.4 内核升级 (24)4.6.4. 设备枚举的顺序 (25)4.6.5. 引导期间的问题 (25)4.7. 在重启之前要做的事情 (25)4.7.1. 重新运行 lilo (26)4.8. 系统引导时在显示Waiting for root file system后挂起 (26)4.8.1. 如何在升级前避免此问题 (26)4.8.2. 如何在升级后解决此问题 (28)4.9. 为下个发行版做准备 (30)4.10. 不赞成地包 (30)4.11. 过时的包 (31)4.11.1. 哑包 (31)5. lenny 中需要注意的问题 (32)5.1. 潜在的问题 (32)5.1.1. 与 udev 相关的设备的问题 (32)5.1.2. 某些应用程序可能无法在 2.4 内核下工作 (32)5.1.3. 某些网站无法通过 TCP 进行连接 (32)5.1.4. 无法自动关机 (32)5.1.5. 异步网络初始化可能引起无法预测的情况 (32)5.1.6. 使用 WPA 保护无线网络的问题 (33)5.1.7. 文件名中使用非 ASCII 字符可能引起问题 (33)5.1.8. 声音停止工作 (33)5.2. NFS 挂载现在由 nfs-common 来处理 (34)5.3. 罗马尼亚(ro)键盘布局的改变 (34)5.4. 升级 apache2 (34)5.5. NIS 和网络管理器 (34)5.6. Mozilla 产品的安全状态 (35)5.7. GNOME 桌面改变与支持 (35)5.8. Emacs21* 默认不支持 Unicode (35)5.9. slurpd/replica 已经被删除 (35)5.10. 桌面没有使用全部屏幕 (35)5.11. DHCP 失败备选问题 (35)6. 关于 Debian GNU/Linux 的更多信息 (37)6.1. 更多读物 (37)6.2. 获得帮助 (37)6.2.1. 邮件列表 (37)6.2.2. 互联网在线聊天系统 (37)6.3. 报告 Bug (37)6.4. 为 Debian 做贡献 (38)A. 管理您的 etch 系统 (39)A.1. 升级您的 etch 系统 (39)A.2. 检查您的 sources list (39)B. 发行注记的贡献者 (40)Debian GNU/Linux 5.0("lenny"), AMD64 的发行说明C. Lenny 献给 Thiemo Seufer ......................................................................................................... 41索引 ................................................................................................................................................... 42术语表 .. (44)第 1 章简介本文档告知 Debian GNU/Linux 发行版的用户,关于版本 5.0 (代号 "lenny") 的主要变化。

Linux教程菜鸟教程2024新版

Linux教程菜鸟教程2024新版
使用ps、top、htop等命令查看当前系统进程状 态。
进程控制
使用kill、pkill、killall等命令终止进程,使用 nohup、disown等命令使进程在后台运行。
3进程Βιβλιοθήκη 控使用systemd、supervisor等工具监控进程状态 ,实现进程自动重启、日志收集等功能。
系统资源监控与性能优化
05
数据存储与安全防护
磁盘分区与格式化操作指南
磁盘分区概念及作用
解释磁盘分区的含义,阐述分区对于数据管理和系统性能的重要性。
常见分区工具介绍
介绍在Linux系统中常用的分区工具,如fdisk、parted等,并说明各 自的特点和使用方法。
分区操作步骤详解
详细讲解使用分区工具进行磁盘分区的操作步骤,包括创建、删除、 调整分区大小等。
端口号
用于标识设备上运行的不同服务,常见端口号如80(HTTP)、22(SSH)等。
路由器与交换机
网络设备,用于实现不同网络之间的通信和数据传输。
TCP/IP协议栈
网络通信的基础协议,包括传输层的TCP和UDP协议、网络层的IP协议等。
网络配置工具及命令
ifconfig
用于配置和显示Linux内核中网络接 口的网络参数。
BIND(Berkeley Internet Name Domain): 一种常用的DNS服务器软件,用于配置和管理 DNS服务。
DHCP(Dynamic Host Configuration Protocol):动态主机配置协议,用于自动给网 络上的计算机分配IP地址和其他网络参数。
dhcpd:一种常用的DHCP服务器软件,用于配 置和管理DHCP服务,自动分配IP地址等网络参数 给客户端。

Debian 新维护者手册

Debian 新维护者手册

Debian新维护者手册版权©1998-2002Josip Rodin版权©2005-2015Osamu Aoki版权©2010Craig Small版权©2010Raphaël Hertzog本文档可在GNU通用公共许可证第二版或更高版本的条款规定下使用。

本文档在撰写过程中参考了以下两篇文档:•Making a Debian Package(AKA the Debmake Manual),copyright©1997Jaldhar Vyas.•The New-Maintainer’s Debian Packaging Howto,copyright©1997Will Lowe.COLLABORATORSTITLE:Debian新维护者手册ACTION NAME DATE SIGNATURE WRITTEN BY Josip Rodin、July23,2018Osamu Aoki(青木修)、Aron Xu、李凌、郑原真、周默和杨博远July23,2018July23,2018July23,2018July23,2018July23,2018REVISION HISTORYNUMBER DATE DESCRIPTION NAMEContents1正确的起点11.1Debian的社会驱动力 (1)1.2需要的开发工具 (3)1.3需要的开发文档 (4)1.4到何处求助 (4)2第一步62.1Debian软件包制作流程 (6)2.2挑一个你喜欢的程序 (7)2.3获取程序并试用 (9)2.4简单的编译系统 (9)2.5常见的可移植编译系统 (10)2.6软件包名称和版本 (10)2.7设置dh_make (11)2.8初始化外来Debian软件包 (12)3修改源代码133.1设置quilt (13)3.2修复上游Bug (13)3.3文件安装 (14)3.4不同的库名称 (16)4debian目录中的必须内容174.1control (17)4.2copyright (21)4.3changelog (22)4.4rules (23)4.4.1rules文件中的Target (23)4.4.2默认的rules文件 (23)4.4.3定制rules文件 (26)5debian目录下的其他文件295.1README.Debian (29)5.2compat (30)5.3conffiles (30)5.4package.cron.* (30)5.5dirs (31)5.6package.doc-base (31)5.7docs (31)5.8emacsen-* (31)5.9package.examples (32)5.10package.init和package.default (32)5.11install (32) (32)5.13package.links (32)5.14{package.,source/}lintian-overrides (33)5.15manpage.* (33)5.15.1manpage.1.ex (33)5.15.2manpage.sgml.ex (33)5.15.3manpage.xml.ex (34)5.16package.manpages (34)5.17NEWS (34)5.18{pre,post}{inst,rm} (34)5.19package.examples (35)5.20TODO (35)5.21watch (35)5.22source/format (35)5.23source/local-options (36)5.24source/options (36)5.25patches/* (36)6构建软件包386.1完整的(重)构建 (38)6.2自动编译系统 (39)6.3debuild命令 (40)6.4pbuilder软件包 (40)6.5git-buildpackage及其相似命令 (41)6.6快速重构建 (42)6.7命令层级 (43)7检查软件包中的错误447.1诡异可疑的改动 (44)7.2校验软件包安装过程 (44)7.3检验软件包的maintainer scripts (44)7.4使用lintian (45)7.5debc命令 (45)7.6debdiff命令 (46)7.7interdiff命令 (46)7.8mc命令 (46)8更新软件包478.1新的Debian版本 (47)8.2检查新上游版本 (48)8.3新上游版本 (48)8.4更新打包风格 (49)8.5UTF-8转换 (50)8.6对更新软件包的几点提示 (50)9上传软件包519.1上传到Debian仓库 (51)9.2在上传时包含orig.tar.gz文件 (52)9.3跳过的上传 (52)A高级打包53A.1共享库 (53)A.2管理debian/package.symbols (54)A.3多体系结构 (55)A.4构建共享库包 (56)A.5Debian本土软件包 (57)Chapter1正确的起点本文档致力于为普通Debian用户,和希望对Debian软件包有所了解的开发人员讲述如何制作Debian软件包。

Debian参考手册

Debian参考手册

整理了一下自己的笔记,学习来源是大名鼎鼎的《Debian参考手册》=================================================================== dselect运行于APT和dpkg之上。

APT使用/var/lib/apt/lists/*来跟踪可用的软件包,dpkg使用/var/lib/dpkg/available来跟踪可用的软件包。

如果直接用apt-get或同类工具如aptitude等来安装软件包,千万别忘了更新/var/lib/dpkg/available文件,可以使用dselect的Update选项或在运行tasksel或dpkg -l前执行shell命令行“dselect update”。

在处理关联软件包的方式上,apt-get会自动搜索下载depends类软件包,但不理睬recommends和suggests类软件包,dselect在软件包的选择方面采用菜单方式操作,对depends、recommends和suggests三类相关软件包均给出提示。

aptitude则提供了下载安装所有depends、recommends和suggests类软件包。

比较下面的文件可以确切了解最近的安装过程对系统造成了那些改变。

/var/lib/dpkg/status 与 /var/backups/dpkg.status*使用APT安装软件包会在/var/cache/apt/archives目录留下缓存文件,要清除这些文件可使用:apt-get autoclean # removes only useless package filesapt-get clean # removes all cached package files对软件包选择情况进行本地备份:dpkg --get-selections "*" >myselections “*”使myselections包含那些被指定“完全删除(purge)”的文件。

Linux操作指南说明书

1) What is Linux?Linux is an operating system based on UNIX and was first introduced by Linus Torvalds. It is based on the Linux Kernel and can run on different hardware platforms manufactured by Intel, MIPS, HP, IBM, SPARC, and Motorola. Another popular element in Linux is its mascot, a penguin figure named Tux.2) What is the difference between UNIX and LINUX?Unix originally began as a propriety operating system from Bell Laboratories, which later on spawned into different commercial versions. On the other hand, Linux is free, open source and intended as a non-propriety operating system for the masses.3) What is BASH?BASH is short for Bourne Again SHell. It was written by Steve Bourne as a replacement to the original Bourne Shell (represented by /bin/sh). It combines all the features from the original version of Bourne Shell, plus additional functions to make it easier and more convenient to use. It has since been adapted as the default shell for most systems running Linux.4) What is Linux Kernel?The Linux Kernel is a low-level systems software whose main role is to manage hardware resources for the user. It is also used to provide an interface for user-level interaction.5) What is LILO?LILO is a boot loader for Linux. It is used mainly to load the Linux operating system into main memory so that it can begin its operations.6) What is a swap space?Swap space is a certain amount of space used by Linux to temporarily hold some programs that are running concurrently. This happens when RAM does not have enough memory to hold all programs that are executing.7) What is the advantage of open source?Open source allows you to distribute your software, including source codes freely to anyone who is interested. People would then be able to add features and even debug and correct errors that are in the source code. They can even make it run better and then redistribute these enhanced source code freely again. This eventually benefits everyone in the community.8 ) What are the basic components of Linux?Just like any other typical operating system, Linux has all of these components: kernel, shells and GUIs, system utilities, and an application program. What makes Linux advantageous over otheroperating system is that every aspect comes with additional features and all codes for these are downloadable for free.9) Does it help for a Linux system to have multiple desktop environments installed?In general, one desktop environment, like KDE or Gnome, is good enough to operate without issues. It’s all a matter of preference for the user, although the system allows switching from one environment to another. Some programs will work in one environment and not work on the other, so it could also be considered a factor in selecting which environment to use.10) What is the basic difference between BASH and DOS?The key differences between the BASH and DOS console lie in 3 areas:- BASH commands are case sensitive while DOS commands are not;- Under BASH, / character is a directory separator and \ acts as an escape character. Under DOS, / serves as a command argument delimiter and \ is the directory separator- DOS follows a convention in naming files, which is 8 character file name followed by a dot and 3 characters for the extension. BASH follows no such convention.11) What is the importance of the GNU project?This so-called Free software movement allows several advantages, such as the freedom to run programs for any purpose and freedom to study and modify a program to your needs. It also allows you to redistribute copies of software to other people, as well as the freedom to improve software and have it released for the public.12) Describe the root account.The root account is like a systems administrator account and allows you full control of the system. Here you can create and maintain user accounts, assigning different permissions for each account. It is the default account every time you install Linux.13) What is CLI?CLI is short for Command Line Interface. This interface allows the user to type declarative commands to instruct the computer to perform operations. CLI offers greater flexibility. However, other users who are already accustomed to using GUI find it difficult to remember commands including attributes that come with it.14) What is GUI?GUI, or Graphical User Interface, make use of images and icons that users click and manipulate as a way of communicating with the computer. Instead of having to remember and type commands, the use of graphical elements makes it easier to interact with the system, as well as adding more attraction through images, icons, and colors.15) How do you open a command prompt when issuing a command?To open the default shell (which is where the command prompt can be found), press Ctrl-Alt-F1. This will provide a command line interface (CLI) from which you can run commands as needed. 16) How can you find out how much memory Linux is using?From a command shell, use the “concatenate” command: cat /proc/meminfo for memory usage information. You should see a line starting something like Mem: 64655360, etc. This is the total memory Linux thinks it has available to use.You can also use commandsfree - mvmstattophtopto find current memory usage17) What is a typical size for a swap partition under a Linux system?The preferred size for a swap partition is twice the amount of physical memory available on the system. If this is not possible, then the minimum size should be the same as the amount of memory installed.18) What are symbolic links?Symbolic links act similarly to shortcuts in Windows. Such links point to programs, files or directories. It also allows you instant access to it without having to go directly to the entire pathname.19) Does the Ctrl+Alt+Del key combination work on Linux?Yes, it does. Just like Windows, you can use this key combination to perform a system restart. One difference is that you won’t be getting any confirmation message and therefore, a reboot is immediate.20) How do you refer to the parallel port where devices such as printers are connected? Whereas under Windows you refer to the parallel port as the LPT port, under Linux you refer to it as /dev/lp . LPT1, LPT2 and LPT3 would therefore be referred to as /dev/lp0, /dev/lp1, or /dev/lp2 under Linux.21) Are drives such as hard drive and floppy drives represented with drive letters?No. In Linux, each drive and device have different designations. For example, floppy drives are referred to as /dev/fd0 and /dev/fd1. IDE/EIDE hard drives are referred to as /dev/hda, /dev/hdb, /dev/hdc, and so forth.22) How do you change permissions under Linux?Assuming you are the system administrator or the owner of a file or directory, you can grant permission using the chmod command. Use + symbol to add permission or – symbol to deny permission, along with any of the following letters: u (user), g (group), o (others), a (all), r (read), w (write) and x (execute). For example, the command chmod go+rw FILE1.TXT grants read and write access to the file FILE1.TXT, which is assigned to groups and others.23) In Linux, what names are assigned to the different serial ports?Serial ports are identified as /dev/ttyS0 to /dev/ttyS7. These are the equivalent names of COM1 to COM8 in Windows.24) How do you access partitions under Linux?Linux assigns numbers at the end of the drive identifier. For example, if the first IDE hard drive had three primary partitions, they would be named/numbered, /dev/hda1, /dev/hda2 and /dev/hda3.25) What are hard links?Hard links point directly to the physical file on disk, and not on the pathname. This means that if you rename or move the original file, the link will not break since the link is for the file itself, not the path where the file is located.26) What is the maximum length for a filename under Linux?Any filename can have a maximum of 255 characters. This limit does not include the path name, so therefore the entire pathname and filename could well exceed 255 characters.27)What are filenames that are preceded by a dot?In general, filenames that are preceded by a dot are hidden files. These files can be configuration files that hold important data or setup info. Setting these files as hidden makes it less likely to be accidentally deleted.28) Explain virtual desktop.This serves as an alternative to minimizing and maximizing different windows on the current desktop. Using virtual desktops can clear the desktop when you can open one or more programs. Rather than minimizing/restoring all those programs as needed, you can simply shuffle between virtual desktops with programs intact in each one.29) How do you share a program across different virtual desktops under Linux?To share a program across different virtual desktops, in the upper left-hand corner of a program window look for an icon that looks like a pushpin. Pressing this button will “pin” that application in place, making it appear in all virtual desktops, in the same position onscreen.30) What does a nameless (empty) directory represent?This empty directory name serves as the nameless base of the Linux file system. This serves as an attachment for all other directories, files, drives, and devices.31) What is the pwd command?The pwd command is short for print working directory command.Example:pwdOutput:/home/guru99/myDir32) What are daemons?Daemons are services that provide several functions that may not be available under the base operating system. Its main task is to listen for service request and at the same time to act on these requests. After the service is done, it is then disconnected and waits for further requests.33) How do you switch from one desktop environment to another, such as switching from KDE to Gnome?Assuming you have these two environments installed, just log out from the graphical interface. Then at the login screen, type your login ID and password and choose which session type you wish to load. This choice will remain your default until you change it to something else.34) What are the kinds of permissions under Linux?There are 3 kinds of permissions under Linux:- Read: users may read the files or list the directory- Write: users may write to the file of new files to the directory- Execute: users may run the file or lookup a specific file within a directory35) How does case sensitivity affect the way you use commands?When we talk about case sensitivity, commands are considered identical only if every character is encoded as is, including lowercase and uppercase letters. This means that CD, cd, and Cd are threedifferent commands. Entering a command using uppercase letters, where it should be in lowercase, will produce different outputs.36) What are environmental variables?Environmental variables are global settings that control the shell’s function as well as that of other Linux programs. Another common term for environmental variables is global shell variables. 37) What are the different modes when using vi editor?There are 3 modes under vi:- Command mode – this is the mode where you start in- Edit mode – this is the mode that allows you to do text editing- Ex mode – this is the mode wherein you interact with vi with instructions to process a file38) Is it possible to use shortcuts for a long pathname?Yes, there is. A feature known as filename expansion allows you do this using the TAB key. For example, if you have a path named /home/iceman/assignments directory, you would type as follows: /ho[tab]/ice[tab]/assi[tab] . This, however, assumes that the path is unique and that the shell you’re using supports this feature.39) What is redirection?Redirection is the process of directing data from one output to another. It can also be used to direct an output as an input to another process.40) What is grep command?grep a search command that makes use of pattern-based searching. It makes use of options and parameters that are specified along with the command line and applies this pattern in searching the required file output.41) What could be the problem when a command that was issued gave a different result from the last time it was used?One highly possible reason for getting different results from what seems to be the same command has something to do with case sensitivity issues. Since Linux is case sensitive, a command that was previously used might have been entered in a different format from the present one. For example, to lists all files in the directory, you should type the command ls, and not LS. Typing LS will either result in an error message if there is no program by that exact name exist or may produce a different output if there is a program named LS that performs another function.42) What are the contents of /usr/local?It contains locally installed files. This directory matters in environments where files are stored on the network. Specifically, locally-installed files go to /usr/local/bin, /usr/local/lib, etc.). Anotherapplication of this directory is that it is used for software packages installed from source, or software not officially shipped with the distribution.43) How do you terminate an ongoing process?Every process in the system is identified by a unique process id or pid. Use the kill command followed by the pid to terminate that process. To terminate all process at once, use kill 0.44) How do you insert comments in the command line prompt?Comments are created by typing the # symbol before the actual comment text. This tells the shell to completely ignore what follows. For example "# This is just a comment that the shell will ignore."45) What is command grouping and how does it work?You can use parentheses to group commands. For example, if you want to send the current date and time along with the contents of a file named OUTPUT to a second file named MYDATES, you can apply command grouping as follows: (date cat OUTPUT) > MYDATES46) How do you execute more than one command or program from a single command line entry?You can combine several commands by separating each command or program using a semicolon symbol. For example, you can issue such a series of commands in a single entry:ls –l cd .. ls –a MYWORK which is equivalent to 3 commands: ls -l cd.. ls -a MYWORK**Note that this will be executed one after the other, in the order specified.47) Write a command that will look for files with an extension “c”, and has the occurrence of the string “apple” in it.Answer:Find ./ -name “*.c” | xargs grep –i “apple”48) Write a command that will display all .txt files, including its individual permission. Answer:ls -al *.txt49) Write a command that will do the following:-look for all files in the current and subsequent directories with an extension c,v-strip the,v from the result (you can use sed command)-use the result and use a grep command to search for all occurrences of the word ORANGE in the files.Find ./ -name “*.c,v” | sed ‘s/,v//g’ | xargs grep “ORANGE”50) What, if anything, is wrong with each of the following commands?a) ls -l-sb) cat file1, file2c) ls - s FactdirAnswers:a) there should be space between the 2 options: ls -l -sb) do not use commas to separate arguments: cat file1 file2c) there should be no space between hyphen and option label: ls –s Factdir51) What is the command to calculate the size of a folder?To calculate the size of a folder uses the command du –sh folder1.52) How can you find the status of a process?Use the commandps ux53) How can you check the memory status?You can use the commandfree -m to display output in MBfree -g to display output in GB54) Explain how to color the Git console?To color the Git console, you can use the command git config—global color.ui auto. In the command, the color.ui variable sets the default value for a variable such as color.diff and color.grep.55) How can you append one file to another in Linux?To append one file to another in Linux you can use command cat file2 >> file 1. The operator >> appends the output of the named file or creates the file if it is not created. While another command cat file 1 file 2 > file 3 appends two or more files to one.56) Explain how you can find a file using Terminal?To find a file you have to use a command, find . –name “process.txt” . It will look for the current directory for a file called process.txt.57) Explain how you can create a folder using Terminal?To create a folder, you have to use command mkdir. It will be something like these: ~$mkdir Guru9958) Explain how you can view the text file using Terminal?To view the text file, go to the specific folder where the text files are located by using the command cd and then type less filename.txt.59) Explain how to enable curl on Ubuntu LAMP stack?To enable curl on Ubuntu, first, install libcurl, once done use following command sudo/etc/init .d /apache2 restart or sudo service apache2 restart.60) Explain how to enable root logging in Ubuntu?The command which enables root logging is#sudo sh-c ‘echo “greater-show-manual-login=true” >>/etc/lightdm/lightdm.conf’61) How can you run a Linux program in the background simultaneously when you start your Linux Server?By using nohup. It will stop the process receiving the NOHUP signal and thus terminating it you log out of the program which was invoked with. & runs the process in the background.62) Explain how to uninstall the libraries in Linux?To uninstall the libraries in Linux, you can use command sudo apt-get remove library_nameGuru99 Provides FREE ONLINE TUTORIAL on Various courses likeJava MIS MongoDB BigData CassandraWeb Services SQLite JSP Informatica AccountingSAP Training Python Excel ASP Net HBase ProjectTest Management Business Analyst Ethical Hacking PMP ManagementLive Project SoapUI Photoshop Manual Testing Mobile TestingData Warehouse R Tutorial Tableau DevOps AWSJenkins Agile Testing RPA JUnitSoftware EngineeringSelenium CCNA AngularJS NodeJS PLSQL。

Debian操作指南说明书

Table of ContentsAbout1 Chapter 1: Getting started with debian2 Remarks2 Versions2 Examples2 Installation and Setup2 Glossary3 Chapter 2: Create a debian package4 Introduction4 Examples4 RegExpTestor4 Credits6AboutYou can share this PDF with anyone you feel could benefit from it, downloaded the latest version from: debianIt is an unofficial and free debian ebook created for educational purposes. All the content is extracted from Stack Overflow Documentation, which is written by many hardworking individuals at Stack Overflow. It is neither affiliated with Stack Overflow nor official debian.The content is released under Creative Commons BY-SA, and the list of contributors to each chapter are provided in the credits section at the end of this book. Images may be copyright of their respective owners unless otherwise specified. All trademarks and registered trademarks are the property of their respective company owners.Use the content presented in this book at your own risk; it is not guaranteed to be correct nor accurate, please send your feedback and corrections to ********************Chapter 1: Getting started with debianRemarksThis section provides an overview of what debian is, and why a developer might want to use it.It should also mention any large subjects within debian, and link out to the related topics. Since the Documentation for debian is new, you may need to create initial versions of those related topics. VersionsExamplesInstallation and SetupDescription of the installation process :•Debian jessie -- Installation GuideEach architecture has his own installation guide :•amd64•i386•armel•s390x•powerpc•armhfmips••AArch64•POWER.Download an iso image of the Debian distribution (stable release):•Debian installerUse the graphical installer :•Debian GNU/Linux Installation Guide, Chapter 6. Using the Debian InstallerDebian testing:Debian testing is the current development state of the next stable Debian distribution DownloadThe ISOs images can be downloaded from the official website : Debian-testing ISOs GlossaryAreaThe term used in Debian Policy for the main, contrib, and non-free divisions.ArchitectureThe type of system a piece of software is built for.Such as amd64, i386, armel, s390x, powerpc, armhf, mips, AArch64, POWER.Binary packageAn installable .deb fileSource packageA unit of upstream software (with a single build system)SuiteA repository holding one particular "branch" of Debian's development process.Such as unstable, testing, stable, oldstable.Read Getting started with debian online: https:///debian/topic/9043/getting-started-with-debianChapter 2: Create a debian package IntroductionThis topic show how to create a debian package for software deployment. ExamplesRegExpTestorThis example show how I have created a package for my project RegExpTestor So first of all, you have to create a tree. In my case I did this:regexp_testor├── DEBIAN│ ├── control│ └── postinst├── opt│ └── regexp_testor│ ├── Icon│ │ └── 48x48│ │ └── regexp_testor_icon.png│ └── regexp_testor└── usr├── bin└── share├── applications│ └── regexp_testor.desktop└── icons└── hicolor└── 48x48└── apps└── regexp_testor_icon.png•control and postinst are script files without extension with 755 right•regexp_testor is my binary•regexp_testor.desktop is to add a shortcut in the menuNow the content of files:control file:Package: regexp-testorVersion: 1.0Section: develPriority: optionalArchitecture: amd64Depends: qt5-defaultMaintainer:thibDev<**************>Homepage: https:///thibDevDescription: RegExp testorRegExp testor is a regular expression testor like the website.postinst file:#!/bin/bashecho "Create a symbolic link towards the binary"sudo ln -s /opt/regexp_testor/regexp_testor /usr/binecho "Enjoy ;)"regexp_testor.desktop file:[Desktop Entry]Version=1.0Type=ApplicationName=RegExp testorGenericName=RegExp testorComment=A regular expression testor like the websiteExec=/opt/regexp_testor/regexp_testorTerminal=falseMimeType=text/plain;Icon=regexp_testor_iconCategories=Development;StartupNotify=trueNow you have everything you need to create your package ! Follow these steps1.move into the folder that contain your package2.run sudo dpkg-deb --build package_nameYou have your package !Read Create a debian package online: https:///debian/topic/9925/create-a-debian-packageCredits。

LinuxCNC入门指南说明书

Getting Started V2.8.1, 2020-11-29 The LinuxCNC Team该手册正在编写中。

如果您能够在编写, 编辑或者图片准备上为我们提供帮助, 联系文档编写团队任何成员,或加入我们团队。

发送电子邮件至***************************.net版权所有©2000-2020 授予复制,分发和/或修改本文档的权限 根据GNU Free Documentation License Version 1.1的条款 或自由软件基金会发布的任何更高版本; 没有不变的部分,没有前封面文字,也没有后封面文字。

许可证的副本包含在标题为“GNU Free Documentation License”中。

LINUX®是Linus Torvalds在美国和其他国家/地区的注册商标。

注册商标Linux®是根据来自Linux商标协会(LMI)分许可证使用, LMI是Linus Torvalds的独家许可持有人,全球范围内商标的所有者。

LinuxC NC项目不属于Debian®。

Debian是公益软件公司(Software in the Public Interest,Inc.)拥有的注册商标,Linux C N C项目不属于UBUNTU®。

B NT是科能软件有限公司(C anonical Limited)拥有的注册商标。

关于LinuxCNC软件•LinuxCNC(增强型机器控制器)是一个软件系统,用于机床(例如铣床和车床),机器人(例如puma 和scara)以及其他最多9轴的计算机控制器。

•LinuxCNC是开源代码的免费软件。

当前版本的LinuxCNC完全根据GNU通用公共许可证和次要GNU通用公共许可证(GPL和LGPL)获得许可•LinuxCNC提供:◦图形用户界面(实际上是几个界面可供选择)◦G代码的解释器(RS-274机床编程语言)◦具有超前的实时运动调度系统◦底层机器电子设备(例如传感器和电机驱动器)的操作◦易于使用的"面包板"层,可为您的机器快速创建独特的配置◦可通过梯形图编程的软件PLC◦使用Live-CD轻松安装•不提供工程图(CAD-计算机辅助设计)或从工程图生成G代码(CAM-计算机自动化制造)的功能。

Debian GNULinux学习笔记

Debian GNU/Linux学习笔记---------------Debian学习者读目录:系统安装Debian 安装简明手册Debian 中文化设置grub 重装技巧网络服务pure-ftpd 服务器samba 服务器CVS 服务器常用软件CUPS 打印系统Latex 排版系统Debian 使用点滴内容基础,语言简短简洁红联Linux论坛是致力于Linux技术讨论的站点,目前网站收录的文章及教程基本能满足不同水平的朋友学习。

红联Linux门户: 红联Linux论坛: /bbs下载:Linux电子书籍:/linux/linuxdzsj.htm目录Debian学习笔记Debian 使用经验点滴从Windows转向Linux教程Linux海量教程Debian学习笔记发布时间:2007-07-29 16:18:38系统安装Debian 安装简明手册Linux 的安装是所有用户首先关注的。

自从我 2000 年第一次安装 Linux,尝试了数种发行版本以来,最后投入了Debian 的怀抱。

从安装的角度看,Debian 不是最简单的,甚至有一定难度,那我为什么还要选择它呢?最主要的原因是它可以平滑升级(在网络条件允许的前提下),可以选择二进制(bin)/源码(src)包安装,拥有最为丰富的软件仓库。

平滑升级是一个很重要的理由,以前用 Redhat,在 8.0 以前就不懂升级这一回事。

后来有了升级的功能,又不知道怎么,或者说升级很不方便。

Debian 在安装软件上的方便程度更远非其它发行版本可以企及,从前装软件,必须先 google 一番,到处搜索最新的版本,解决各种各样的依赖关系,后来还不一定能装上。

在 Debian 下根本不用为什么发愁,强大的 apt 工具可以帮你搞定一切。

言归正传,我们假设读者已经有了最基础的 Linux 知识。

首先去 Debian Testing CD-Image 下载debian-testing-i386-netinst.iso 文件,根据个人的需要,可以下载对应于自己机器硬件的其它版本的光盘映像。

  1. 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
  2. 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
  3. 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
相关文档
最新文档