大鳥的學習樂園
          路漫漫其修遠兮,吾將上下而求索
          posts - 26,comments - 27,trackbacks - 0

          安裝VBox

              \\192.168.12.xxxx\install\VBox\VirtualBox-4.0.6-71416-Win.exe

           

           VBox安裝Linux

              Linux映像保存于下面的路徑下

              \\192.168.12.xxxx\debian4_iso

           

           VBoxLinux操作系

              下面的命令看當前IP,并修改IP

              vim /etc/network/interfaces

              若修改,入字母「i」即入可編輯,修正后Esc退出編輯,入「:wq」保存并退出

               IP:

                 allow-hotplug eth1

                 #iface eth1 inet dhcp

                 iface eth1 inet static

                 address 192.168.12.xxxx
                 netmask 255.255.255.0

                 gateway 192.168.12.1

               重啟網卡:

                 /etc/init.d/networking stop

                 /etc/init.d/networking start

           

           ifconfig看修正后的ip

              機是否能ping通自己的機器

           

           配置Linux路徑

              命令:vim /etc/init.d/donkey_service」新建文件donkey_service

              編輯文件:

                      # mount window share folder to /mnt/debian4_iso

                      mount -t cifs //192.168.12.xxx/debian4_iso -o username="remote",password="abcd@1234" /mnt/debian4_iso

                      mount -t cifs //192.168.12.xxx/install -o username="remote",password="abcd@1234" /mnt/nas_share

           

                      # mount debian4 iso

                      mount -t iso9660 -o loop /mnt/debian4_iso/debian-4.0.0-i386-DVD-1.iso /mnt/debian4/dvd01

                      mount -t iso9660 -o loop /mnt/debian4_iso/debian-4.0.0-i386-DVD-2.iso /mnt/debian4/dvd02

                      mount -t iso9660 -o loop /mnt/debian4_iso/debian-4.0.0-i386-DVD-3.iso /mnt/debian4/dvd03

                      mount -t iso9660 -o loop /mnt/debian4_iso/debian-4.0.0-i386-DVD-4.iso /mnt/debian4/dvd04

              行文件:sh donkey_service

           

              :新建虛機的網卡沒有訪問200,可以把debian4到本機一文件,共享文件

           

             安裝ssh-server

               安裝后就可以使用putty接,操作。

               aptitude install ssh-server

           

             ⑦安裝Linux必要

               aptitude install make -- 編譯

           

             ⑧apache,php,mysql安裝前準

               Linux下用件安裝包保存位置:

                    \\192.168.12.xxx\software\install\linux\httpd-2.2.9.tar.gz

                    \\192.168.12.xxx\software\install\linux\mysql-5.1.53.tar.gz

                    \\192.168.12.xxx\software\install\linux\php-5.2.5.tar.gz

               可通FileZilla,把上面的件包copyLinux機上

                     \\192.168.12.xxx\software\progrem\FileZilla-3.0.9.

               件包的保存位置和安裝路徑文件

                : mkdir /opt/soft -- 上面各個件包copy到此

                    mkdir /opt/build -- 安裝的安裝路徑

           

          posted on 2012-01-18 21:51 大鳥 閱讀(385) 評論(0)  編輯  收藏 所屬分類: linux
          主站蜘蛛池模板: 万年县| 青阳县| 彩票| 平舆县| 锦州市| 沅陵县| 赣州市| 始兴县| 庆城县| 兰州市| 扎赉特旗| 耒阳市| 平远县| 治县。| 封丘县| 海伦市| 临江市| 东乡族自治县| 白城市| 伽师县| 恩施市| 友谊县| 高台县| 孝感市| 邯郸市| 苍溪县| 东丰县| 资源县| 景谷| 泗洪县| 商南县| 临西县| 资溪县| 灵宝市| 宜章县| 信宜市| 汶川县| 纳雍县| 雷波县| 夹江县| 南召县|