随笔-124  评论-194  文章-0  trackbacks-0

CNTLM

安装:
tar xvfz ./cntlm-0.35.1.tar.gz
./configure
make
make install

导出环境变量:
export http_proxy=http://127.0.0.1:3128

到:
/root/.bash_profile


修改配置:
/usr/local/etc/cntlm.conf

的前几行:
Username        xxxxx
Domain          xxxxx
Password        xxxxx
Proxy           172.19.4.42:8080


已经安装至/usr/local/bin/cntlm直接运行起来即可。



vmware-vdiskmanager的两个用法:

在VMWARE WORKSTATION的安装目录里有这个工具,它不依赖于其它库,可以单独拿出来使用:
"C:"Program Files"VMware"VMware Workstation"vmware-vdiskmanager.exe"

转换原fix size固定大小的磁盘成可增长growable的磁盘:
vmware-vdiskmanager.exe -r sourceDisk.vmdk -t 0 destinationDisk.vmdk

其中-t的TYPE可以取值如下:
     Disk types:
        0                 : single growable virtual disk
        1                 : growable virtual disk split in 2Gb files
        2                 : preallocated virtual disk
        3                 : preallocated virtual disk split in 2Gb files
        

减小、缩减(shrink)磁盘文件大小:
vmware-vdiskmanager.exe -k myDisk.vmdk

在WINDOWS下好像要先MOUNT分区,而在LINUX下应该将不用的分区全部写0后,再执行以上命令:
dd if=/dev/zero of=/emptyfile
rm /emptyfile


YUM的用法:


检查需要更新的包:
yum check-update

更新所有包:
yum update

安装开发环境,-y是所有问题回答yes:
yum -y httpd php mysql mysql-server gcc


更改源为国内服务器:

# CentOS-Base.repo
#
# This file uses a new mirrorlist system developed by Lance Davis for CentOS.
# The mirror system uses the connecting IP address of the client and the
# update status of each mirror to pick mirrors that are updated to and
# geographically close to the client. You should use this for CentOS updates
# unless you are manually picking other mirrors.
#
# If the mirrorlist
= does not work for you, as a fall back you can try the
# remarked out baseurl
= line instead.
#
[base]
name
=CentOS-5 - Base
baseurl
=http://mirror.be10.com/centos/5/os/i386/
gpgcheck
=1
#released updates
[update]
name
=CentOS-5 - Updates
baseurl
=http://mirror.be10.com/centos/5/updates/i386/
gpgcheck
=1
#packages used/produced in the build but not released
[addons]
name
=CentOS-5 - Addons
baseurl
=http://mirror.be10.com/centos/5/addons/i386/
gpgcheck
=1
#additional packages that may be useful
[extras]
name
=CentOS-5 - Extras
baseurl
=http://mirror.be10.com/centos/5/extras/i386/
gpgcheck
=1
#additional packages that extend functionality of existing packages
[centosplus]
name
=CentOS-5 - Plus
baseurl
=http://mirror.be10.com/centos/5/centosplus/i386/
gpgcheck
=1
enabled
=0
#contrib - packages by Centos Users
[contrib]
name
=CentOS-5 - Contrib
baseurl
=http://mirror.be10.com/centos/5/contrib/i386/
gpgcheck
=1
enabled
=0
#packages in testing
[testing]
name
=CentOS-5 - Testing
baseurl
=http://mirror.be10.com/centos/5/testing/i386/
gpgcheck
=1
enabled
=0


还要执行:
rpm --import http://mirror.be10.com/centos/RPM-GPG-KEY-CentOS-5


两个VMWARE问题解决:

如果是遇到VMWARE 6(SERVER)出现2GB FILE REASONS TOO BIG。
就在VMX文件下加这一句:
diskLib.sparseMaxFileSizeCheck= "false"


系统提示:
Could not create named IPC listener pipe ""."pipe"VMWARE"control-fd.1052: 修订级别未知。
Module VUI initialization failed.
解决方案:
因为没有建立"__vmware_user__",以用户帐户里建立一下这个用户名就可以了



posted on 2008-09-08 09:57 我爱佳娃 阅读(1571) 评论(0)  编辑  收藏 所属分类: 工具使用

只有注册用户登录后才能发表评论。


网站导航: