欢迎大家赞助一杯啤酒🍺 我们准备了下酒菜:Formal mathematics/Isabelle/ML, Formal verification/Coq/ACL2, C++/F#/Lisp
CentOS
小 (→项目) |
|||
(未显示1个用户的84个中间版本) | |||
第1行: | 第1行: | ||
− | [[Image: | + | {{SeeWikipedia}} |
+ | [[Image:Centos-90x90.png|right]] | ||
− | + | CentOS | |
− | + | ==新闻== | |
− | == | + | [https://lists.centos.org/pipermail/centos-announce/2020-December/048208.html CentOS 未来是 CentOS Stream] (20201208) |
+ | |||
+ | CentOS 8 是最后一个版本,将结束于2021年底。此后,CentOS Stream 将继续作为 RHEL 的 Upstream(开发)分支。这将形成 [[Fedora]](上游实验版本)-> CentOS Stream(中游滚动版本)-> [[Red Hat Enterprise Linux|RHEL]](下游生产版本)的循环,当然你可以基于 CentOS Stream 建立自己的稳定生产分支,也只能这样了。 | ||
+ | |||
+ | 2014年 CentOS 加入 Red Hat 后也一直蛮尴尬。现在走在 RHEL 的上游成为开发分支,更有存在感,而不是之前 RHEL 的免费版。 | ||
+ | |||
+ | CentOS Stream as a midstream between Fedora Linux and RHEL. | ||
+ | |||
+ | 上游 —— 中游 —— 下游打通了,形成了稳定的三角关系。 | ||
+ | |||
+ | ==简介== | ||
+ | CentOS 是众多 Linux 发行套件之一。在红帽子对其企业操作系统采取收费的后cAos组织开发的CentOS。 | ||
+ | |||
+ | CentOS与RHEL完全兼容,它是基于RHEL的源代码制作而成,而且它还提供一定的支持(完全免费)。 | ||
+ | |||
+ | CentOS 被誉为社区企业linux操作系统。 | ||
+ | |||
+ | ==特点== | ||
[[Image:powered_by_centos-88x31.png|right]] | [[Image:powered_by_centos-88x31.png|right]] | ||
*CentOS 还修正了一些 AS 的 BUG,比如安装过程的包选择问题 | *CentOS 还修正了一些 AS 的 BUG,比如安装过程的包选择问题 | ||
第17行: | 第35行: | ||
*使用 CentOS 完全合法,不涉及版权问题 | *使用 CentOS 完全合法,不涉及版权问题 | ||
*获得 CentOS 很方便,全球提供了 10 多个站点镜像(HTTP/FTP),以及 BT 方式(常年提供种子) | *获得 CentOS 很方便,全球提供了 10 多个站点镜像(HTTP/FTP),以及 BT 方式(常年提供种子) | ||
+ | 国内访问 http://mirror.mirr4u.com/ 、http://ftp.daum.net/ 比较快, 推荐使用 | ||
+ | 国内源 http://ftp.sjtu.edu.cn/ 比较快, 修改 /etc/yum.repos.d/CentOS-Base.repo, 修改所有的 baseurl 条目, 如: | ||
+ | [base] | ||
+ | baseurl=http://mirror.mirr4u.com/centos/5.0/os/$basearch/ | ||
+ | [update] | ||
+ | baseurl=http://mirror.mirr4u.com/centos/5.0/updates/$basearch/ | ||
+ | [addons] | ||
+ | baseurl=http://mirror.mirr4u.com/centos/5.0/addons/$basearch/ | ||
+ | [extras] | ||
+ | baseurl=http://mirror.mirr4u.com/centos/5.0/extras/$basearch/ | ||
+ | [centosplus] | ||
+ | baseurl=http://mirror.mirr4u.com/centos/5.0/centosplus/$basearch/ | ||
+ | [contrib] | ||
+ | baseurl=http://mirror.mirr4u.com/centos/5.0/contrib/$basearch/ | ||
+ | |||
+ | 64位: | ||
+ | rpm --import http://mirror.mirr4u.com/centos/5.0/os/x86_64/RPM-GPG-KEY-CentOS-5 | ||
+ | |||
+ | 32位: | ||
+ | rpm --import http://mirror.mirr4u.com/centos/5.0/os/i386/RPM-GPG-KEY-CentOS-5 | ||
+ | |||
+ | yum update | ||
+ | |||
+ | 另外,用户可考虑建立自己的本地镜像源 | ||
+ | 使用wget将centos 5镜像到本地磁盘上 | ||
+ | mkdir -pv /opt/CentOS | ||
+ | cd /opt/CentOS | ||
+ | 如: wget -m -c http://218.201.144.68/centos/5/os/i386/ | ||
+ | cd /opt/CentOS/218.201.144.68/centos/5/os/ | ||
+ | mv i386 /opt/CentOS5 | ||
+ | cd /opt | ||
+ | rm -rf CentOS | ||
+ | find CentOS5 -name index.htm?\* -exec rm -f{}\; | ||
+ | 创建 /etc/yum.repos.d/CentOS-Media.repo, 并修改文件: | ||
+ | [c5-media] | ||
+ | name=CentOS-$releasever - Media | ||
+ | baseurl=file:///opt/CentOS | ||
+ | gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-beta | ||
+ | yum check-update 测验一下本地源 | ||
+ | 如果在没有连接网络情况,最好把yum.repos.d目录下面的其它repo文件适当更名,这样yum就只使用本地源,速度得以提升。 | ||
+ | 参考: http://www.linuxdiyf.com/viewarticle.php?id=70630 | ||
+ | |||
+ | ==项目== | ||
+ | [[文件:redpesk-logo.png|right|redpesk OS]] | ||
+ | *CentOS LiveCD | ||
+ | *Cranberry | ||
+ | *Pandora | ||
+ | *Dasha | ||
+ | http://wiki.centos.org/Projects | ||
+ | *[https://redpesk.bzh/en redpesk OS] | ||
+ | |||
+ | ==SIG== | ||
+ | [https://wiki.centos.org/SpecialInterestGroup/ Special Interest Groups] | ||
+ | |||
+ | ==CentOS 8== | ||
+ | *[https://wiki.centos.org/action/show/Manuals/ReleaseNotes/CentOS8.2004 CentOS-8 (2004) Release Notes] | ||
+ | |||
+ | ==CentOS 7== | ||
+ | *[https://wiki.centos.org/action/show/Manuals/ReleaseNotes/CentOS7.2003 CentOS-7 (2003) Release Notes] | ||
+ | *[[CentOS/7|CentOS 7]] | ||
+ | *[http://docs.huihoo.com/redhat/rhel7/ Red Hat Enterprise Linux 7] | ||
+ | |||
+ | ==CentOS 6== | ||
+ | *[http://wiki.centos.org/Manuals/ReleaseNotes/CentOS6.0 CentOS 6.0 Release Notes] | ||
+ | *[http://docs.huihoo.com/redhat/rhel6/en-US/ Red Hat Enterprise Linux 6] | ||
==CentOS 5== | ==CentOS 5== | ||
+ | CentOS Extras | ||
+ | *FreeNX and NX | ||
+ | *XFCE-4.4 | ||
+ | *Yum Utilities | ||
+ | |||
+ | [[Huihoo CentOS Applications]] | ||
+ | |||
Package Management Tool | Package Management Tool | ||
system-config-packages or pirut | system-config-packages or pirut | ||
第24行: | 第114行: | ||
Repositories | Repositories | ||
/etc/yum.repos.d/CentOS-Base.repo | /etc/yum.repos.d/CentOS-Base.repo | ||
− | + | ||
+ | 将新的 repo 放在 /etc/yum.repos.d/, 如 http://rpm.pidgin.im/centos/pidgin.repo | ||
+ | yum install pidgin | ||
+ | |||
+ | $ yum whatprovides libc.so.6 | ||
+ | # yum install glibc.i686 | ||
+ | yum list installed | grep glibc | ||
+ | |||
+ | ===系统配置=== | ||
+ | system-config-authentication | ||
+ | system-config-cluster | ||
+ | system-config-date | ||
+ | system-config-display | ||
+ | system-config-httpd | ||
+ | system-config-kdump | ||
+ | system-config-keyboard | ||
+ | system-config-language | ||
+ | system-config-lvm | ||
+ | system-config-network | ||
+ | system-config-network-cmd | ||
+ | system-config-network-tui // set up IP, Netmask and Gateway | ||
+ | system-config-nfs | ||
+ | system-config-packages | ||
+ | system-config-printer | ||
+ | system-config-rootpassword | ||
+ | system-config-samba | ||
+ | system-config-securitylevel | ||
+ | system-config-securitylevel-tui | ||
+ | system-config-services | ||
+ | system-config-soundcard | ||
+ | system-config-time | ||
+ | system-config-users | ||
+ | |||
+ | 设置主机名:# hostnamectl --static set-hostname m1.dcos.centos7 | ||
+ | |||
+ | Edit /etc/sysconfig/network and set your hostname: | ||
+ | NETWORKING=yes | ||
+ | NETWORKING_IPV6=yes | ||
+ | HOSTNAME=yourhostname.yourdomain.com | ||
+ | service network restart | ||
+ | |||
+ | /etc/sysconfig/network-scripts/ifcfg-eth0 | ||
+ | DEVICE="eth0" | ||
+ | BOOTPROTO="static" | ||
+ | IPADDR="192.168.1.103" | ||
+ | NETMASK=255.255.255.0" | ||
+ | GATEWAY="192.168.1.1" | ||
+ | ONBOOT="yes" | ||
+ | TYPE="Ethernet" | ||
+ | |||
+ | ==chkconfig== | ||
+ | /sbin/chkconfig postgresql on | ||
+ | /sbin/chkconfig postgresql off | ||
+ | /sbin/service postgresql start | ||
+ | |||
+ | ===数据库=== | ||
+ | PostgreSQL | ||
+ | $ yum module list postgresql | ||
+ | # yum install @postgresql:12 | ||
+ | MySQL | ||
+ | $ yum module list mysql | ||
+ | MariaDB | ||
+ | $ yum module list mariadb | ||
+ | |||
+ | ==RPM== | ||
+ | rpm -ivh package.rpm | ||
+ | rpm -e package | ||
+ | |||
==下载== | ==下载== | ||
− | * http:// | + | * http://mirror.centos.org/ |
+ | |||
+ | ==安装== | ||
+ | 若安装时没有选择中文,也可事后安装语言支持包,不过不是很方便,建议首次安装时选择中文安装。 | ||
+ | |||
+ | 因为你后面可以选择使用 english 桌面,而又可在英文的环境下进行中文输入,这可能是很多朋友所希望的。 | ||
+ | |||
+ | 或重新以第一张光盘引导系统,选择中文安装,然后选择升级现有系统。即可完成中文字体的安装,这个方法可能最简单,不过好象还是有问题。 | ||
+ | |||
+ | 注意: | ||
+ | |||
+ | 安装 CentOS 5.0 时,不要选择安装时配置系统,这会耗费很多时间,甚至会造成死机。而要选择安装后配置系统。 | ||
+ | |||
+ | ==Build== | ||
+ | 可能需要的一些核心包: | ||
+ | yum list kernel* | ||
+ | kernel.i686 2.6.18-8.el5 installed | ||
+ | kernel-devel.i686 2.6.18-8.1.14.el5 installed | ||
+ | kernel-headers.i386 2.6.18-8.el5 installed | ||
+ | kernel-module-ntfs-2.6.18-8.1.8.el5.i686 2.1.27-0.rr.10.11 installed | ||
+ | Available Packages | ||
+ | kernel.i686 2.6.18-8.1.14.el5 updates | ||
+ | kernel-PAE.i686 2.6.18-8.1.14.el5 updates | ||
+ | kernel-PAE-devel.i686 2.6.18-8.1.14.el5 updates | ||
+ | kernel-doc.noarch 2.6.18-8.1.14.el5 updates | ||
+ | kernel-headers.i386 2.6.18-8.1.14.el5 updates | ||
+ | kernel-xen.i686 2.6.18-8.1.14.el5 updates | ||
+ | kernel-xen-devel.i686 2.6.18-8.1.14.el5 updates | ||
+ | make: *** /lib/modules/2.6.18-8.el5/build: No such file or directory. Stop. | ||
+ | yum install kernel-PAE.i686 | ||
+ | |||
+ | Build 可能需要安装的软件包: | ||
+ | yum install rpm-build (this gives you rpmbuild) | ||
+ | yum install kernel-devel | ||
+ | rpm -ivh bcm5700-version.src.rpm | ||
+ | rpmbuild -bb SPECS/bcm5700.spec | ||
+ | error | ||
+ | error: Legacy syntax is unsupported: copyright | ||
+ | error: line 9: Unknown tag: Copyright: GPL | ||
+ | 解决方法 | ||
+ | License: GPL | ||
+ | |||
+ | ==Apache httpd== | ||
+ | yum install w3m | ||
+ | yum install httpd | ||
+ | service httpd start | ||
+ | w3m http://localhost | ||
+ | chkconfig httpd on | ||
+ | service httpd reload | ||
+ | service httpd status | ||
+ | /etc/httpd/conf/httpd.conf | ||
+ | service httpd configtest | ||
+ | |||
+ | ==[[Visual Studio Code|VS Code]]== | ||
+ | [https://linuxize.com/post/how-to-install-visual-studio-code-on-centos-8/ How to Install Visual Studio Code on CentOS 8] | ||
+ | |||
+ | ==常用命令== | ||
+ | ssh -vvv [email protected] | ||
+ | |||
+ | ==freedesktop.org== | ||
+ | *Could not open X display No protocol specified | ||
+ | $ xhost | ||
+ | access control enabled, only authorized clients can connect | ||
+ | SI:localuser:huihoo | ||
+ | # hostnamectl set-hostname centos8 | ||
+ | # dnf --enablerepo=PowerTools install xorg-x11-apps | ||
+ | $ xclock | ||
+ | $ export DISPLAY=:0 | ||
+ | $ export XAUTHORITY=/var/lib/mdm/:0.Xauth | ||
+ | $ echo $XAUTHORITY | ||
+ | $ loginctl show-session $XDG_SESSION_ID | ||
+ | 显示 | ||
+ | VTNr=2 | ||
+ | TTY=tty2 | ||
+ | *[https://computingforgeeks.com/install-adobe-flash-player-on-rhel-centos-8/ How To Install Adobe Flash Player on RHEL 8 / CentOS 8] | ||
+ | # yum -y install http://linuxdownload.adobe.com/linux/x86_64/adobe-release-x86_64-1.0-1.noarch.rpm | ||
+ | # yum repolist | grep -i adobe | ||
+ | # yum install flash-plugin | ||
+ | # whereis flash-plugin | ||
+ | flash-plugin: /usr/lib64/flash-plugin | ||
+ | # cp libflashplayer.so /usr/lib/mozilla/plugins/ | ||
+ | *[https://www.binarycomputer.solutions/install-ffmpeg-centos-8-yum-dnf/ Install FFMpeg on CentOS 8 with YUM or DNF] 解决 Twitter 无法播放视频的问题。 | ||
+ | |||
+ | ==常见问题== | ||
+ | CentOS 7执行 ifconfig Command not found 未找到命令 | ||
+ | $ sudo yum install net-tools | ||
+ | |||
+ | No package dig available. | ||
+ | $ sudo yum install bind-utils | ||
+ | |||
+ | [http://blog.csdn.net/debimeng/article/details/74296152 CentOS 7.X重启网络报错 Failed to start LSB: Bring up/down---linux报错] | ||
+ | |||
+ | 配置类似信息:ifcfg-em1 | ||
+ | TYPE=Ethernet | ||
+ | PROXY_METHOD=none | ||
+ | BROWSER_ONLY=no | ||
+ | BOOTPROTO=static | ||
+ | IPADDR=192.168.0.200 | ||
+ | NETMASK=255.255.255.0 | ||
+ | GATEWAY=192.168.0.1 | ||
+ | DEFROUTE=yes | ||
+ | PEERDNS=yes | ||
+ | PEERROUTES=yes | ||
+ | IPV4_FAILURE_FATAL=no | ||
+ | IPV6INIT=yes | ||
+ | IPV6_AUTOCONF=yes | ||
+ | IPV6_DEFROUTE=yes | ||
+ | IPV6_FAILURE_FATAL=no | ||
+ | IPV6_ADDR_GEN_MODE=stable-privacy | ||
+ | NAME=em1 | ||
+ | UUID=e2071297-6a66-4221-bd38-9c176eaa5952 | ||
+ | DEVICE=em1 | ||
+ | ONBOOT=yes | ||
+ | HWADDR=78:2B:CB:12:70:28 | ||
+ | |||
+ | vi /etc/sysconfig/grub | ||
+ | GRUB_CMDLINE_LINUX="crashkernel=auto rd.lvm.lv=centos/root rd.lvm.lv=centos/swap net.ifnames=0 biosdevname=0 rhgb quiet" | ||
+ | |||
+ | vi /etc/udev/rules.d/70-persistent-net.rules | ||
+ | SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="78:2b:cb:12:70:28", ATTR{type}=="1", KERNEL=="em*", "em1" | ||
+ | |||
+ | RHEL7 slow ssh login | ||
+ | vi /etc/ssh/sshd_config | ||
+ | GSSAPIAuthentication no | ||
+ | service sshd restart | ||
+ | |||
+ | ==文档== | ||
+ | *[http://docs.huihoo.com/redhat/summit/2017/S102081-Red-Hat-Enterprise-Linux-roadmap.pdf Red Hat Enterprise Linux roadmap] | ||
+ | |||
+ | ==图集== | ||
+ | <gallery> | ||
+ | image:centos-292.png | ||
+ | image:centoslogo-mini.png | ||
+ | image:centos-32x32.png | ||
+ | image:centos-48x48.png | ||
+ | image:centos-64x64.png | ||
+ | image:centos-200x200.png | ||
+ | image:powered_by_centos-104x33.png | ||
+ | image:flash-on-centos8.png|Flash on CentOS] | ||
+ | </gallery> | ||
+ | |||
+ | ==链接== | ||
+ | * [http://www.centos.org Centos官方网站] | ||
+ | * [http://mirror.be10.com/ Centos国内镜像] | ||
+ | * http://wiki.centos.org/ | ||
+ | * http://planet.centos.org/ | ||
+ | * http://www.atrpms.net/ | ||
+ | *[http://public-yum.oracle.com/ Oracle Linux Yum Server] | ||
+ | |||
+ | {{comment}} | ||
− | + | [[category:operating system]] | |
− | + | [[category:GNU]] | |
− | + | [[category:linux]] | |
− | + | [[category:Red Hat]] | |
− | [[ | + | |
− | [[ | + |
2022年5月9日 (一) 03:02的最后版本
您可以在Wikipedia上了解到此条目的英文信息 CentOS Thanks, Wikipedia. |
CentOS
目录 |
[编辑] 新闻
CentOS 未来是 CentOS Stream (20201208)
CentOS 8 是最后一个版本,将结束于2021年底。此后,CentOS Stream 将继续作为 RHEL 的 Upstream(开发)分支。这将形成 Fedora(上游实验版本)-> CentOS Stream(中游滚动版本)-> RHEL(下游生产版本)的循环,当然你可以基于 CentOS Stream 建立自己的稳定生产分支,也只能这样了。
2014年 CentOS 加入 Red Hat 后也一直蛮尴尬。现在走在 RHEL 的上游成为开发分支,更有存在感,而不是之前 RHEL 的免费版。
CentOS Stream as a midstream between Fedora Linux and RHEL.
上游 —— 中游 —— 下游打通了,形成了稳定的三角关系。
[编辑] 简介
CentOS 是众多 Linux 发行套件之一。在红帽子对其企业操作系统采取收费的后cAos组织开发的CentOS。
CentOS与RHEL完全兼容,它是基于RHEL的源代码制作而成,而且它还提供一定的支持(完全免费)。
CentOS 被誉为社区企业linux操作系统。
[编辑] 特点
- CentOS 还修正了一些 AS 的 BUG,比如安装过程的包选择问题
- CentOS 增加了 yum 在线升级
CentOS-3.1 = AS3-update1 CentOS-3.2 = AS3-update2 CentOS-3.3 = AS3-update3 CentOS-3.4 = AS3-update4 CentOS-3.5 = AS3-update5 CentOS-4.0 = AS4 CentOS-4.1 = AS4-update1
- 使用 CentOS 完全合法,不涉及版权问题
- 获得 CentOS 很方便,全球提供了 10 多个站点镜像(HTTP/FTP),以及 BT 方式(常年提供种子)
国内访问 http://mirror.mirr4u.com/ 、http://ftp.daum.net/ 比较快, 推荐使用
国内源 http://ftp.sjtu.edu.cn/ 比较快, 修改 /etc/yum.repos.d/CentOS-Base.repo, 修改所有的 baseurl 条目, 如:
[base] baseurl=http://mirror.mirr4u.com/centos/5.0/os/$basearch/ [update] baseurl=http://mirror.mirr4u.com/centos/5.0/updates/$basearch/ [addons] baseurl=http://mirror.mirr4u.com/centos/5.0/addons/$basearch/ [extras] baseurl=http://mirror.mirr4u.com/centos/5.0/extras/$basearch/ [centosplus] baseurl=http://mirror.mirr4u.com/centos/5.0/centosplus/$basearch/ [contrib] baseurl=http://mirror.mirr4u.com/centos/5.0/contrib/$basearch/
64位:
rpm --import http://mirror.mirr4u.com/centos/5.0/os/x86_64/RPM-GPG-KEY-CentOS-5
32位:
rpm --import http://mirror.mirr4u.com/centos/5.0/os/i386/RPM-GPG-KEY-CentOS-5
yum update
另外,用户可考虑建立自己的本地镜像源
使用wget将centos 5镜像到本地磁盘上 mkdir -pv /opt/CentOS cd /opt/CentOS 如: wget -m -c http://218.201.144.68/centos/5/os/i386/ cd /opt/CentOS/218.201.144.68/centos/5/os/ mv i386 /opt/CentOS5 cd /opt rm -rf CentOS find CentOS5 -name index.htm?\* -exec rm -f{}\; 创建 /etc/yum.repos.d/CentOS-Media.repo, 并修改文件: [c5-media] name=CentOS-$releasever - Media baseurl=file:///opt/CentOS gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-beta yum check-update 测验一下本地源
如果在没有连接网络情况,最好把yum.repos.d目录下面的其它repo文件适当更名,这样yum就只使用本地源,速度得以提升。
参考: http://www.linuxdiyf.com/viewarticle.php?id=70630
[编辑] 项目
- CentOS LiveCD
- Cranberry
- Pandora
- Dasha
http://wiki.centos.org/Projects
[编辑] SIG
[编辑] CentOS 8
[编辑] CentOS 7
[编辑] CentOS 6
[编辑] CentOS 5
CentOS Extras
- FreeNX and NX
- XFCE-4.4
- Yum Utilities
Package Management Tool
system-config-packages or pirut
Repositories
/etc/yum.repos.d/CentOS-Base.repo
将新的 repo 放在 /etc/yum.repos.d/, 如 http://rpm.pidgin.im/centos/pidgin.repo
yum install pidgin
$ yum whatprovides libc.so.6 # yum install glibc.i686 yum list installed | grep glibc
[编辑] 系统配置
system-config-authentication system-config-cluster system-config-date system-config-display system-config-httpd system-config-kdump system-config-keyboard system-config-language system-config-lvm system-config-network system-config-network-cmd system-config-network-tui // set up IP, Netmask and Gateway system-config-nfs system-config-packages system-config-printer system-config-rootpassword system-config-samba system-config-securitylevel system-config-securitylevel-tui system-config-services system-config-soundcard system-config-time system-config-users
设置主机名:# hostnamectl --static set-hostname m1.dcos.centos7
Edit /etc/sysconfig/network and set your hostname:
NETWORKING=yes NETWORKING_IPV6=yes HOSTNAME=yourhostname.yourdomain.com service network restart
/etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE="eth0" BOOTPROTO="static" IPADDR="192.168.1.103" NETMASK=255.255.255.0" GATEWAY="192.168.1.1" ONBOOT="yes" TYPE="Ethernet"
[编辑] chkconfig
/sbin/chkconfig postgresql on /sbin/chkconfig postgresql off /sbin/service postgresql start
[编辑] 数据库
PostgreSQL
$ yum module list postgresql # yum install @postgresql:12
MySQL
$ yum module list mysql
MariaDB
$ yum module list mariadb
[编辑] RPM
rpm -ivh package.rpm rpm -e package
[编辑] 下载
[编辑] 安装
若安装时没有选择中文,也可事后安装语言支持包,不过不是很方便,建议首次安装时选择中文安装。
因为你后面可以选择使用 english 桌面,而又可在英文的环境下进行中文输入,这可能是很多朋友所希望的。
或重新以第一张光盘引导系统,选择中文安装,然后选择升级现有系统。即可完成中文字体的安装,这个方法可能最简单,不过好象还是有问题。
注意:
安装 CentOS 5.0 时,不要选择安装时配置系统,这会耗费很多时间,甚至会造成死机。而要选择安装后配置系统。
[编辑] Build
可能需要的一些核心包:
yum list kernel* kernel.i686 2.6.18-8.el5 installed kernel-devel.i686 2.6.18-8.1.14.el5 installed kernel-headers.i386 2.6.18-8.el5 installed kernel-module-ntfs-2.6.18-8.1.8.el5.i686 2.1.27-0.rr.10.11 installed
Available Packages
kernel.i686 2.6.18-8.1.14.el5 updates kernel-PAE.i686 2.6.18-8.1.14.el5 updates kernel-PAE-devel.i686 2.6.18-8.1.14.el5 updates kernel-doc.noarch 2.6.18-8.1.14.el5 updates kernel-headers.i386 2.6.18-8.1.14.el5 updates kernel-xen.i686 2.6.18-8.1.14.el5 updates kernel-xen-devel.i686 2.6.18-8.1.14.el5 updates
make: *** /lib/modules/2.6.18-8.el5/build: No such file or directory. Stop.
yum install kernel-PAE.i686
Build 可能需要安装的软件包:
yum install rpm-build (this gives you rpmbuild) yum install kernel-devel rpm -ivh bcm5700-version.src.rpm rpmbuild -bb SPECS/bcm5700.spec
error
error: Legacy syntax is unsupported: copyright error: line 9: Unknown tag: Copyright: GPL
解决方法
License: GPL
[编辑] Apache httpd
yum install w3m yum install httpd service httpd start w3m http://localhost chkconfig httpd on service httpd reload service httpd status /etc/httpd/conf/httpd.conf service httpd configtest
[编辑] VS Code
How to Install Visual Studio Code on CentOS 8
[编辑] 常用命令
ssh -vvv [email protected]
[编辑] freedesktop.org
- Could not open X display No protocol specified
$ xhost access control enabled, only authorized clients can connect SI:localuser:huihoo # hostnamectl set-hostname centos8 # dnf --enablerepo=PowerTools install xorg-x11-apps $ xclock $ export DISPLAY=:0 $ export XAUTHORITY=/var/lib/mdm/:0.Xauth $ echo $XAUTHORITY $ loginctl show-session $XDG_SESSION_ID 显示 VTNr=2 TTY=tty2
# yum -y install http://linuxdownload.adobe.com/linux/x86_64/adobe-release-x86_64-1.0-1.noarch.rpm # yum repolist | grep -i adobe # yum install flash-plugin # whereis flash-plugin flash-plugin: /usr/lib64/flash-plugin # cp libflashplayer.so /usr/lib/mozilla/plugins/
- Install FFMpeg on CentOS 8 with YUM or DNF 解决 Twitter 无法播放视频的问题。
[编辑] 常见问题
CentOS 7执行 ifconfig Command not found 未找到命令
$ sudo yum install net-tools
No package dig available.
$ sudo yum install bind-utils
CentOS 7.X重启网络报错 Failed to start LSB: Bring up/down---linux报错
配置类似信息:ifcfg-em1
TYPE=Ethernet PROXY_METHOD=none BROWSER_ONLY=no BOOTPROTO=static IPADDR=192.168.0.200 NETMASK=255.255.255.0 GATEWAY=192.168.0.1 DEFROUTE=yes PEERDNS=yes PEERROUTES=yes IPV4_FAILURE_FATAL=no IPV6INIT=yes IPV6_AUTOCONF=yes IPV6_DEFROUTE=yes IPV6_FAILURE_FATAL=no IPV6_ADDR_GEN_MODE=stable-privacy NAME=em1 UUID=e2071297-6a66-4221-bd38-9c176eaa5952 DEVICE=em1 ONBOOT=yes HWADDR=78:2B:CB:12:70:28
vi /etc/sysconfig/grub
GRUB_CMDLINE_LINUX="crashkernel=auto rd.lvm.lv=centos/root rd.lvm.lv=centos/swap net.ifnames=0 biosdevname=0 rhgb quiet"
vi /etc/udev/rules.d/70-persistent-net.rules
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="78:2b:cb:12:70:28", ATTR{type}=="1", KERNEL=="em*", "em1"
RHEL7 slow ssh login
vi /etc/ssh/sshd_config GSSAPIAuthentication no service sshd restart
[编辑] 文档
[编辑] 图集
[编辑] 链接
- Centos官方网站
- Centos国内镜像
- http://wiki.centos.org/
- http://planet.centos.org/
- http://www.atrpms.net/
- Oracle Linux Yum Server
<discussion>characters_max=300</discussion>