OracleLinuxServer7安装VMwareTools问题
#./vmware-install.pl时报错:
#-bash: ./vmware-instal.pl:/usr/bin/perl:bad interpreter:No such file or directory
原因:
未安装perl环境。
解决方法:
在YUM环境下安装perl。
配置本地yum源:(参考资料:http://www.cnblogs.com/rusking/p/4248946.html)
编写 /etc/yum.repos.d/local_repo.repo 文件内容如下。
[rhel-source]
name=Red Hat Enterprise Linux Local repo
##仓库描述
baseurl=file:///opt/rpm/local_repo
##软件仓库位置
enabled=1
##是否启用
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle
##签名秘钥,/etc/pki/rpm-gpg/在这个目录下,可进入该目录查看。
YUM安装perl:
#yum install perl
perl安装完成之后,再安装vmwareTool,执行/vmware-install.pl,默认安装,一路回车即可。
======================
其它问题:
在安装vmware tool的过程中,出现如下提示:
What is the location of the "ifconfig" program on your machine?
此处回车不行,因为系统没有安装ifconfig,需要重新手动安装后,再来安装vmware Tool。
Yum安装ifconfig:
#yum search ifconfig
#net-tools.x86_64:Basc networking tools
#yum install net-tools-2.0-0.17.20131004git.e17.x86_64.rpm
之后,再来安装vmware tool正常。
--------之后,问题又出现了,安装完VMware Tool之后,reboot默认启动到字符界面。也切换不到图形登录界面。
---------也不像官方文档里说的安装完成之后,重启直接进行图形界面---折腾--折腾--再折腾。
官方安装文档:http://oracle-base.com/articles/linux/oracle-linux-7-installation.php
SELinux
- If the OS is to be used for an Oracle installation, it is easier if Secure Linux (SELinux) is disabled or switched to permissive. To do this edit the "/etc/selinux/config" file, making sure the SELINUX flag is set as follows.
SELINUX=permissive
If SELinux is configured after installation, the server will need a reboot for the change to take effect.
Firewall
- If the OS is to be used for an Oracle installation, it is easier if the firewall is disabled. This can be done by issuing the following commands from a terminal window as the "root" user.
# systemctl stop firewalld # systemctl disable firewalld
You can install and configure it later if you wish.
SSH
- Make sure the SSH daemon is started using the following commands.
# systemctl start sshd.service # systemctl enable sshd.service