LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1470|回复: 17

请问有谁在vmware里的FreeBSD成功的安裝使用x-win??

[复制链接]
发表于 2003-12-25 14:28:44 | 显示全部楼层 |阅读模式
最近终于有心情搞一下x-win了, 不过由于沒有机子, 只好试一下用vmware了..
以前听说在vm里很难成功使用x-win, 所以请问一下有谁在vmware里的FreeBSD成功的安裝使用x-win??

谢谢!!
发表于 2003-12-25 14:32:45 | 显示全部楼层
看过一些贴, 同真实的没多大差别, 主要是要熟悉机器的配置!
发表于 2003-12-25 15:40:04 | 显示全部楼层
不难,,,
很简单的..

偶等菜鸟....
vm中每个系统都要X-WINDOWN
 楼主| 发表于 2003-12-25 17:55:17 | 显示全部楼层
有文件参考一下吗??
发表于 2003-12-26 09:10:39 | 显示全部楼层
希望对你有帮助,我用的是vmware workstation 4.x,FreeBSD5.1,安装了vmware-tools
# /etc/X11/XF86Config-4
# VMware SVGA

Section "Module"
    Load        "dbe"          # Double buffer extension
    SubSection  "extmod"
    EndSubSection
    Load        "type1"
    Load        "freetype"
#    Load       "glx"
EndSection

Section "Files"
    RgbPath        "/usr/X11R6/lib/X11/rgb"
#    FontPath   "/usr/X11R6/lib/X11/fonts/local/"
    FontPath   "/usr/X11R6/lib/X11/fonts/misc/"
    FontPath   "/usr/X11R6/lib/X11/fonts/75dpi/:unscaled"
    FontPath   "/usr/X11R6/lib/X11/fonts/100dpi/:unscaled"
    FontPath   "/usr/X11R6/lib/X11/fonts/Type1/"
    FontPath   "/usr/X11R6/lib/X11/fonts/Speedo/"
    FontPath   "/usr/X11R6/lib/X11/fonts/75dpi/"
    FontPath   "/usr/X11R6/lib/X11/fonts/100dpi/"
#    ModulePath "/usr/X11R6/lib/modules"
EndSection

Section "ServerFlags"
#    Option NoTrapSignals
EndSection

Section "InputDevice"
    Identifier        "Keyboard1"
    Driver        "Keyboard"
    Option "AutoRepeat" "500 30"
    Option "XkbRules"        "xfree86"
    Option "XkbModel"        "pc104"
    Option "XkbLayout"        "us"
    Option "XkbCompat"        ""
EndSection

Section "InputDevice"
    Identifier        "Mouse1"
    Driver        "mouse"
    Option "rotocol"    "SysMouse"
    Option "Device"      "/dev/sysmouse"
    Option "ZAxisMapping"        "4 5"
#    Option "Emulate3Buttons"
#    Option "Emulate3Timeout"    "50"
#    Option "ChordMiddle"
EndSection

Section "Monitor"
    Identifier  "vmware"
    VendorName "VMware, Inc"
    HorizSync 1-10000
    VertRefresh 1-10000

    ModeLine "640x480" 100 640 700 800 900 480 500 600 700
    ModeLine "800x600" 100 800 900 1000 1100 600 700 800 900
    ModeLine "1024x768" 100 1024 1100 1200 1300 768 800 900 1000
    ModeLine "1152x864" 100 1152 1200 1300 1400 864 900 1000 1100
    ModeLine "1152x900" 100 1152 1200 1300 1400 900 1000 1100 1200
    ModeLine "1280x1024" 100 1280 1300 1400 1500 1024 1100 1200 1300
    ModeLine "1376x1032" 100 1376 1400 1500 1600 1032 1100 1200 1300
    ModeLine "1600x1200" 100 1600 1700 1800 1900 1200 1300 1400 1500
    ModeLine "2364x1773" 100 2364 2400 2500 2600 1773 1800 1900 2000
EndSection

Section "Device"
    Identifier  "VMware SVGA"
    Driver        "vmware"
            
EndSection

Section "Screen"
    Identifier  "Screen 1"
    Device      "VMware SVGA"
    Monitor     "vmware"

    # Don't specify DefaultColorDepth unless you know what you're
    # doing. It will override the driver's preferences which can
    # cause the X server not to run if the host doesn't support the
    # depth.
   
    Subsection "Display"
        # VGA mode: better left untouched
        Depth       4
        Modes       "640x480"
        ViewPort    0 0
    EndSubsection
    Subsection "Display"
        Depth       8
        Modes "800x600"
        ViewPort    0 0
    EndSubsection
    Subsection "Display"
        Depth       15
        Modes "800x600"
        ViewPort    0 0
    EndSubsection
    Subsection "Display"
        Depth       16
        Modes "800x600"
        ViewPort    0 0
    EndSubsection
    Subsection "Display"
        Depth       24
        Modes "800x600"
        ViewPort    0 0
    EndSubsection
EndSection

Section "ServerLayout"
    Identifier  "Simple Layout"
    Screen "Screen 1"
    InputDevice "Mouse1" "CorePointer"
    InputDevice "Keyboard1" "CoreKeyboard"
EndSection
发表于 2003-12-28 20:07:54 | 显示全部楼层
我的更简单。主要配置/etc/X11/XF86Config

Section "ServerLayout"
        Identifier     "XFree86 Configured"
        Screen      0  "Screen0" 0 0
        InputDevice    "Mouse0" "CorePointer"
        InputDevice    "Keyboard0" "CoreKeyboard"
EndSection

Section "Files"
        RgbPath      "/usr/X11R6/lib/X11/rgb"
        ModulePath   "/usr/X11R6/lib/modules"
        FontPath     "/usr/X11R6/lib/X11/fonts/misc/"
        FontPath     "/usr/X11R6/lib/X11/fonts/Speedo/"
        FontPath     "/usr/X11R6/lib/X11/fonts/Type1/"
        FontPath     "/usr/X11R6/lib/X11/fonts/75dpi/"
        FontPath     "/usr/X11R6/lib/X11/fonts/100dpi/"
        FontPath     "/usr/X11R6/lib/X11/fonts/TrueType/"
EndSection

Section "Module"
        Load  "dbe"
        Load  "dri"
        Load  "extmod"
        Load  "glx"
   ###  Load  "record"
        Load  "xtrap"
        Load  "speedo"
   ###  Load  "type1"
        Load  "xtt"
EndSection

Section "InputDevice"
        Identifier  "Keyboard0"
        Driver      "keyboard"
EndSection

Section "InputDevice"
        Identifier  "Mouse0"
        Driver      "mouse"
        Option            "rotocol" "auto"
        Option            "Device" "/dev/sysmouse"
EndSection

Section "Monitor"
        Identifier   "Monitor0"
        VendorName   "Monitor Vendor"
        ModelName    "Monitor Model"
        HorizSync    31.5 - 57.0
        VertRefresh  50.0 - 100.0
EndSection

Section "Device"
        ### Available Driver options are:-
        ### Values: <i>: integer, <f>: float, <bool>: "True"/"False",
        ### <string>: "String", <freq>: "<f> Hz/kHz/MHz"
        ### [arg]: arg optional
        #Option     "HWcursor"                   # [<bool>]
        #Option     "NoAccel"                    # [<bool>]
        Identifier  "Card0"
        Driver      "vmware"
        VendorName  "VMWare Inc"
        BoardName   "Unknown Board"
        BusID       "CI:0:15:0"
EndSection

Section "Screen"
        Identifier "Screen0"
        Device     "Card0"
        Monitor    "Monitor0"
        DefaultDepth    24
        SubSection "Display"
                Depth     24           //可修改为16
                Modes     "1024x768"   // 可修改为 “800X600
        EndSubSection
EndSection
发表于 2003-12-28 20:12:24 | 显示全部楼层

vmware4.0下安装freebsd5.1的Xwindows全攻略

vmware4.0下安装freebsd5.1的Xwindows全攻略
http://forum.cnfug.org/index.php?showtopic=1136&hl=vmware
发表于 2003-12-29 11:15:10 | 显示全部楼层
发表于 2003-12-30 14:24:04 | 显示全部楼层
我看了一下上述的帖子,发现使VMEARE支持freebsd x需要改动xfree86config。

其实不需要

我曾经在vm中成功安装了freebd5.1 ,并能运行X
具体做法是:
1。安装好了freebsd5.1 和x11之后,关闭系统。
2。把vmware里的光驱使用ISOimg释放掉。改成物理光驱
3。vmwear里file-install vmware tools.
4。进入freebsd,#mount /cdrom
                #cd /cdrom
5。ls就可看到里面有一个vmware-for freebsd 的tool文件
6。拷出来,解压缩,安装
7。#sysinstall 进入设置xfreeconfig
8。显卡选vga-vmware(好像是这样的,都在很后面)
   显示器选普通,模式选800*600,即可,其他该则么设就怎么设
9。好了,startx就可以进去了。
发表于 2003-12-30 16:05:46 | 显示全部楼层
改XF86Config是通用的...
不管是4X.还是5X的都可以..
其实有时候不装VMWARE一样可以X的..
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表