隨筆-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 我愛佳娃 閱讀(1605) 評論(0)  編輯  收藏 所屬分類: 工具使用
          <2008年9月>
          31123456
          78910111213
          14151617181920
          21222324252627
          2829301234
          567891011

          常用鏈接

          留言簿(19)

          隨筆分類(134)

          隨筆檔案(123)

          我的博客

          最新隨筆

          搜索

          •  

          積分與排名

          • 積分 - 552902
          • 排名 - 89

          最新評論

          閱讀排行榜

          評論排行榜

          主站蜘蛛池模板: 加查县| 齐齐哈尔市| 五常市| 灵台县| 兴和县| 曲靖市| 潮州市| 手游| 姜堰市| 英山县| 云龙县| 屏南县| 奉新县| 鲁甸县| 聂荣县| 彝良县| 葵青区| 泽库县| 射洪县| 丁青县| 巫溪县| 乐昌市| 会昌县| 肇州县| 盐城市| 育儿| 赞皇县| 庆城县| 醴陵市| 白山市| 锦屏县| 兰溪市| 昌图县| 昂仁县| 赣榆县| 漯河市| 深水埗区| 宿迁市| 拉萨市| 金秀| 泰州市|