Fedora Core 6系统上安装VMware(3)

diff -Naur vmhgfs-only/driver.c vmhgfs-only-new/driver.c

--- vmhgfs-only/driver.c 2006-08-04 14:25:52.000000000 -0300

+++ vmhgfs-only-new/driver.c 2006-10-28 15:26:14.000000000 -0300

@@ -41,8 +41,8 @@

#define HGFS_SB_TO_COMMON(sb) ((HgfsSuperInfo *)(sb)->s_fs_info)

#endif

-#define INODE_SET_II_P(inode, info) do { (inode)->u.generic_ip = (info); } while (0)

-#define INODE_GET_II_P(inode) ((HgfsInodeInfo *)(inode)->u.generic_ip)

+#define INODE_SET_II_P(inode, info) do { (inode)->i_private = (info); } while (0)

+#define INODE_GET_II_P(inode) ((HgfsInodeInfo *)(inode)->i_private)

/*

* 2.5.x kernels support nanoseconds timestamps.

@@ -760,7 +760,6 @@

inode->i_uid = 0; /* This is bogus, should be the mount owner. */

inode->i_gid = 0; /* This is bogus, should be the mount owner. */

inode->i_rdev = 0; /* Device nodes are not supported */

- inode->i_blksize = HGFS_BLOCKSIZE;

inode->i_blocks = (attr->size + HGFS_BLOCKSIZE - 1) / HGFS_BLOCKSIZE;

inode->i_size = attr->size;

HGFS_SET_TIME(inode->i_atime, attr->accessTime);

2

--- vmhgfs-only/driver.c 2006-10-28 15:26:14.000000000 -0300

+++ vmhgfs-only/driver.c-new 2006-10-28 15:34:07.000000000 -0300

@@ -755,7 +755,7 @@

/* Set the access mode. */

inode->i_mode &= ~S_IRWXUGO;

- inode->i_mode |= (attr->permissions << 6); /* Only applies to owner. */

+ inode->i_mode |= attr->permissions * 0111; /* Only applies to owner. */

inode->i_nlink = 1; /* Bogus? */

inode->i_uid = 0; /* This is bogus, should be the mount owner. */

inode->i_gid = 0; /* This is bogus, should be the mount owner. */

最后修改xorg config设置,不然重启后会报X-WINDOWS出错。

进入/etc/X11/,用文本打开xorg.conf,加上以下几段:

1、Section "Monitor"

Identifier "vmware"

EndSection

Section "InputDevice"

Identifier "Mouse0"

Driver "vmmouse"

Option "Protocol" "Auto"

Option "Device" "/dev/input/mouse0"

EndSection

2、Section "Monitor"

Identifier "Monitor0"

ModelName "LCD Panel 1280x1024"

HorizSync 31.5 - 67.0

VertRefresh 50.0 - 75.0

Option "dpms"

EndSection

然后找到 含有"ServerLayout" 的section, 在Section跟EndSection之间加上以下一行。

InputDevice "Mouse0" "CorePointer"

上面的配置不一定行的,只是个参考。

这个是我的x11的配置文件:

内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:https://www.heiqu.com/41317be1b26b46eff5ca7001c3cdc063.html