隨筆-124  評(píng)論-194  文章-0  trackbacks-0

          CNTLM

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

          導(dǎo)出環(huán)境變量:
          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


          已經(jīng)安裝至/usr/local/bin/cntlm直接運(yùn)行起來即可。



          vmware-vdiskmanager的兩個(gè)用法:

          在VMWARE WORKSTATION的安裝目錄里有這個(gè)工具,它不依賴于其它庫,可以單獨(dú)拿出來使用:
          "C:"Program Files"VMware"VMware Workstation"vmware-vdiskmanager.exe"

          轉(zhuǎn)換原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)磁盤文件大?。?br /> vmware-vdiskmanager.exe -k myDisk.vmdk

          在WINDOWS下好像要先MOUNT分區(qū),而在LINUX下應(yīng)該將不用的分區(qū)全部寫0后,再執(zhí)行以上命令:
          dd if=/dev/zero of=/emptyfile
          rm /emptyfile


          YUM的用法:


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

          更新所有包:
          yum update

          安裝開發(fā)環(huán)境,-y是所有問題回答yes:
          yum -y httpd php mysql mysql-server gcc


          更改源為國內(nèi)服務(wù)器:

          # 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


          還要執(zhí)行:
          rpm --import http://mirror.be10.com/centos/RPM-GPG-KEY-CentOS-5


          兩個(gè)VMWARE問題解決:

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


          系統(tǒng)提示:
          Could not create named IPC listener pipe ""."pipe"VMWARE"control-fd.1052: 修訂級(jí)別未知。
          Module VUI initialization failed.
          解決方案:
          因?yàn)闆]有建立"__vmware_user__",以用戶帳戶里建立一下這個(gè)用戶名就可以了



          posted on 2008-09-08 09:57 我愛佳娃 閱讀(1605) 評(píng)論(0)  編輯  收藏 所屬分類: 工具使用
          主站蜘蛛池模板: 容城县| 达日县| 呼伦贝尔市| 石楼县| 夏邑县| 上高县| 通河县| 永昌县| 东至县| 昭平县| 保定市| 虞城县| 乐至县| 富平县| 富蕴县| 屯门区| 天祝| 富锦市| 洪湖市| 浦城县| 福清市| 武山县| 余姚市| 兴安盟| 兰坪| 英山县| 双辽市| 方山县| 沙雅县| 嘉鱼县| 紫金县| 江源县| 资中县| 大丰市| 巴塘县| 丰县| 罗江县| 石柱| 句容市| 家居| 苍梧县|