【Linux】CentOS 学习笔记之一(安装配制)


如何打开命令窗口:应用程序》系统工具》终端


如何获取root 权限:在终端下,输入su 再输入密码(密码不显示在屏幕上)


如何将英文版转换成中文:

 

[root@localhost ~]# echo 'LANG="zh_CN.UTF-8"' > /etc/sysconfig/i18n
[root@localhost ~]# init 6


 

如何使用中输入法:yum groupinstall "Chinese support" -y

注消后可重新添加输入法


FlashPlayer的安装:

1.打开一个需要flashPlayer 的网页。下载FlashPlayer (rpm 格式)

2.在终端打开下载位置,输入rpm -ivh + 下载的文件名.rpm

3.重启


附:之前尝试网上其它方法总是不行,主要原因是在图形界面root 权限的问题。要求移动flashPlayer.so文件,而权限不够。或gdm文件修改不了。新手果然菜啊。。。


vi编辑器的安装:

yum -y install vim*


 


shells 的安装:(CentOS6.4)

sh yum.sh 其中yum.sh 脚本如下:

 

 

#!/bin/bash
 
mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.$(date +%F)_backup
cd /etc/yum.repos.d/
Ver=$(cat /etc/redhat-release |awk -F "." '{print $1}')
if [ "${Ver}" == "CentOS release 6" ]
then
wget http://mirrors.163.com/.help/CentOS6-Base-163.repo
else
wget http://mirrors.163.com/.help/CentOS5-Base-163.repo
fi
yum makecache
echo "##########################################"
echo "      The installation is complete        "
echo "##########################################"


 


 

posted @ 2013-07-18 19:06  坚固66  阅读(166)  评论(0编辑  收藏  举报