網頁

2013年8月21日 星期三

VMware Workstation Pro 12.x --- Install VMware Tool on CentOS 6.3 x64 or 6.7 x64 minimal version

In the VMware product as Workstation or vSphere, it will be very important that install VMware Tools on any VM Guest for enhancing/improving some function as graphic display and performance, drag and drop operation, shared folder and so on.
How to install VMware Tools on CentOS?
It will be very simple operation if do the related steps as follows:

After power on the VM Guest, we have to click VM –> Install VMware Tools.. in this VM Guest menu.ScreenHunter_02So does that the VMware Tools will be mounted by CDROM device now.

In the next step, we need to create a mount point by executing the command mkdir /mnt/cdrom next to mount this CDROM by doing the command mount /dev/cdrom /mnt/cdromScreenHunter_03Now the system can read-only the CDROM data. In the moment, we will extract the VMware Tools from CDROM to the folder of local disk by using the command tar zxpf /mnt/cdrom/VMwareTools…ScreenHunter_04So does that the VMware Tool source will be accessed now.

To switch to VMware Tool directory as vmware-tools-distrib and execute the command ./vmware-install.pl for installing VMware Tools. (# 1) In the later procedure, we always press Return/Enter key to choose the default setting or configuration.ScreenHunter_05ScreenHunter_06ScreenHunter_07ScreenHunter_08ScreenHunter_10When the above process is successful and never show the warning/error message, we will reboot the system so that the VMware Tools will embed into the Kernel now. (# 2)

To verify the status of VMware Tools by using status vmware-tools command

Reference :
(# 1)   Before execute vmware-install.pl in the CentOS minimal version, please firstly confirm whether ever install gccperlfuse-libs package in the procedure of OS installation.

(# 2)   If update the Kernel or there is new VMware tool version, we have to install VMware Tools again by the above procedure except for uninstalling old version firstly.

2013年8月18日 星期日

Squid 3.1 --- Install and start with basic configuration

As we know, Squid is a public proxy server in open source environment. If use it, we can easy to cache and filter web content for reusing it for the same request in the future. For realizing its function, I will build a lab for testing it. At first, we have to know how to install this package.

Squid InstallationBy doing yum install squid command, we can quickly and easily install the squid package and its dependencies from the yum repositories.ScreenHunter_17ScreenHunter_18So does that the Squid package will be installed nowScreenHunter_28
Squid ConfigurationAfter installing Squid package, there is recommended minimum configuration that exists in the /etc/squid/squid.conf file and it can work finely without changing anything. Of course,we can correct some parameter in this default setting for conforming with the actual environment.(# 1)
After changing the configuration, we can do the command /usr/sbin/squid –f /etc/squid/squid.conf –k parse to verify whether the configuration syntax is wrong or incorrect. (# 2)ScreenHunter_20When the prerequisite is ready, we will begin to start squid daemon. For starting it in the first time, we need to do the command /usr/sbin/squid –z to create the swap directories.ScreenHunter_21and uncomment the cache_dir directories in the /etc/squid/squid.conf file (# 3)ScreenHunter_23next to start squid daemon by executing the command service squid start. So do that the Cache directories will be created in the /var/spool/squid path.ScreenHunter_24For starting Squid daemon automatically when system boots, we need to type the command chkconfig –levels 235 squid on if we need it.ScreenHunter_22
Squid function verification
After start squid daemon, we can do something to verify whether its function is normal now.
<In Server>
To confirm whether the default listening port 3128 is opened by executing the command netstat –tnl | grep 3128 if we don’t change the http_port in squid configuration.ScreenHunter_30<In Client>
In the moment, we can try to ping & telnet this squid proxy to realize whether network channel is normal between Squid Server and Client machine. ScreenHunter_25If it is normal, we need to change proxy setting in any Browsers as IE or Firefox. That is proxy server sets the squid hostname or IP and port sets squid port number as 3128.ScreenHunter_24So do that we can normally explore Internet now.ScreenHunter_26
Reference
(# 1).  Squid configuration directives
(# 2). Although I ever set hostname in the file /etc/sysconfig/network, it still has warning message “hostname rDNS test failed; Could not determine this machine public hostname” by executing the command /usr/sbin/squid –f /etc/squid/squid.conf –k parse ScreenHunter_01This problem is resolved until I add a record IP mapping FQDN into /etc/hostsScreenHunter_02or add a record visible_hostname 10.10.101.254 into the file /etc/squid/squid.confScreenHunter_03(# 3) When we execute the command /usr/sbin/squid –NCd1, the warning message tell us that cache_mem is larger than total disk cache space now.ScreenHunter_26So we change cache space from 100MB to 1024MB because cache_mem define 256 MB manually.
ScreenHunter_28
Since 2010 Design by Davidwa
©Copyright Davidwa Inc. All rights reserved.