博客已迁到“金陵小周的技术博客”,博客园不在更新发表......

安装Centos7 随手记

 

1、老笔记本安装Centos7

   配置:酷睿I3  内存8G 

2、原有系统Win7  

   将原来的硬盘空间,调整出60G 给Centos7 用。 

3、安装Centos7 图形介面的,和windows安装过程类似,只是在安装时,分区方式不一样以及安装模式(可以选择生产开发模式)

4、安装极点五笔输入法

     

1 yum install ibus ibus-table-wubi*

 

5、添加打开终端(命令窗口)的快捷键

步骤:1) 应用程序---系统工具---设置---键盘

           2)快捷键--- 自定义快捷键--- 名称“终端”   命令  /usr/bin/gnome-terminal

           3)完成 

6、修改yum源,设置为阿里源

     

cd /etc/yum.repos.d

sudo mv CentOS-Base.repo CentOS-Base.repo.bak

sudo wget -O CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo

yum clean all

yum makecache

 

 7、访问windows的共享文件(使用mount挂载)

mkdir windows

sudo mount -t cifs -o username=share,password=share //192.168.66.198/share ./windows

其中几个参数表示含义:

cifs:Common Internet File System,可以理解为网络文件系统。
usrname:访问共享文件夹的用户名
password:访问密码
//192.168.66.198/share:表示网络文件夹的地址,注意这里最后不能加/,如果是//192.168.66.198/share/则会报如下错误:mount: //192.168.66.198/share/ is not a valid block device

使用mount挂载的方法在系统重新启动后就会失效,如果希望开机时自动挂载,将下面设置加入/etc/fstab文件最后面就可以了。

//192.168.66.198/share /home/windows cifs defaults,username=share,password=share 0 2

其中/home/windows表示挂载点,就是上面windows目录的完整路径。

 

 8、解决/var/run/yum.pid 被锁定的问题

rm -f /var/run/yum.pid

 

posted @ 2017-08-07 14:38  Pete-Jones  阅读(176)  评论(0编辑  收藏  举报

博客已迁到“金陵小周的技术博客”,博客园不在更新发表......