那些有双显卡的,可以试试用opensuse一拖二(拖机)
opensuse吧
全部回复
仅看楼主
level 4
ymzjsr 楼主
这是原贴的地址:http://my.oschina.net/u/592101/blog/68582
一拖二系统中文习惯上称为拖机,在英语中也有一个单词:mult-seat。详情参考维基主页(英文)。在windows系统中实现拖机的方案有很多种,而且也算得上比较成熟,比如hishare,betwin,利用虚拟机等等。我家里的电脑之前一直是拖机运行,对于拖机的方案与设置也算的上是老手了,windows各版本中的拖机软件基本上都使用过。但对于linux如何拖机,是不明白的,因为我连linux都没怎么用过。
以前并不是没有安装过linux,很早以前有一个红旗的盘,装了一次,驱动不起来,删了继续98,浅尝即止。后来得到一张乌班图8.04的盘,忍不住又装一遍,弄不出声,显卡驱动也困难,折腾几次连X window都进不了,果断放弃,继续XP。
最近win7用的也么意思了,听说opensuse是号称最华丽的linux发行本,于是就想尝试一翻。
先列一下系统配置及组成:
cpu amd 5000+ 内存4G,
主板 芯片 n78 ,集成8200显卡 接一台aoc crt17寸的显示器
另有一块独立的9500GT显卡接一台 aoc2217 22寸显示器
有三块硬盘,二块是sata接口,一块是ata接口和光驱接在一条并口线上。
其中一块sata硬盘安装有win7,一块sata硬盘安装有xp,剩下的一块ata硬盘打算用来安装opensuse12.1,当然,也不是整块硬盘都划归suse,而是其中的20G主分区,安装的时候选择这个分区进行了安装,系统自动划分2.01G的交换分区,7G多的系统分区,剩下的是用户分区,不知道是以什么规则划分的。安装的时候选择的KDE进行安装的。
键盘鼠标PS2 和USB接口各一套
两个客户终端接口是:
crt显示器配PS2键盘和USB鼠标
22寸液晶配USB键盘和PS2接口鼠标
个人觉得linux的安装并不是一件困难的事,困难的是安装后的配置。
PS顺便说一下我安装nvidia驱动的经历,给大家做个借鉴。我是用yast安装的,第一次安装G01的驱动,重启后没反应,几乎要使用教程中的那种编译的方式安装,后来又安装G02的那个驱动(版本号295.xx),没想到重启之后可以使用了。如此的话驱动安装也很简单嘛。在yast中删除G01的驱动,驱动便算是安装好了,不过装好之后还有一个问题就是crt显示器的刷新率提不上去,闪得厉害,几经周折总算找到解决办法:运行nvidia x server settings,save X config文件到/etc/x11/xorg.conf,修改显示器的水平和垂直刷新范围,重启,好了多出85的刷新率,注意要在root下修改。
用linux拖机,网上中文的文档非常少,有一篇奶牛的博客介绍是利用虚拟机virtualbox实现的,不过我是没有成功,而且讲的也比较简单。英文的倒有不少,这是我看到的第一篇文章,还有文中链接的第二篇文章,还有一张图片展示:
看了这张图片使我信心大增呀。
不过让我受打击的是这两篇介绍中使用的是乌班图+gnome实现拖机的,我是suse+kde4呀,先装个gnome再说,打开yast→软件安装→软件分组,找到gnome桌面,找到gdm,安装完成重启,选择gnome登录。
对于GNOME,第一眼的印象,一般吧,上下都是黑色的任务栏不是很喜欢,可是后来才发现是这是Gnome的后备显示模式。因为在后来的多次配置中,有一次进入后不是这个样子,是另外一个样子:没有下边的任务栏,左上角是活动菜单,打开的效果还不错。
我是按文章中的介绍配置/etc/X11/xorg.cof的,可是找不到gdm.conf文件,根本没有这个文件,后来有介绍说是文件,不管那么多,做好备份,按文章中的改了。重启,毫无意料的失败了。心灰意冷之余,几乎要放弃这个想法了。
在GNOME下不行,那么KDE可不可以配置成功呢,还真找到一个成功的例子,当然也是英文(点击参考),内容几乎没怎么看懂,不过,里面提到了两个文件,一个当然是xorg.conf,另一个是/usr/share/kde/config/kdmrc ,这一次,先配置好双头显示器,然后把xorg.conf文件中除显示器外的全部复制,然后修改显示器与键盘的配置,另一个kdmrc原封不动复制过来,重启,没想到成功了,不过美中不足的是鼠标不起做用,两边键盘使用没问题,继续更改鼠标的配置,重启,成功。功夫不负有心人呀。
发一个双人登录后的程序运行进程图:
先到这儿,下一篇介绍代码。
2014年02月02日 00点02分 1
level 4
ymzjsr 楼主
继续----→:
下面是一个完整的配置好的拖机的配置:
注意代码中有我添加的说明注释!
001 # nvidia-settings: X configuration file generated by nvidia-settings
002 # nvidia-settings: version 295.49 ([email protected]) Tue May 1 00:35:28 PDT 2012
003
004 #/etc/X11/xorg.conf file
005 # PLEASE DO NOT EDIT THIS FILE!
006
007 Section "Files"
008 FontPath "/usr/share/fonts/misc:unscaled"
009 FontPath "/usr/share/fonts/local"
010 FontPath "/usr/share/fonts/75dpi:unscaled"
011 FontPath "/usr/share/fonts/100dpi:unscaled"
012 FontPath "/usr/share/fonts/Type1"
013 FontPath "/usr/share/fonts/URW"
014 FontPath "/usr/share/fonts/Speedo"
015 FontPath "/usr/share/fonts/PEX"
016 FontPath "/usr/share/fonts/cyrillic"
017 FontPath "/usr/share/fonts/latin2/misc:unscaled"
018 FontPath "/usr/share/fonts/latin2/75dpi:unscaled"
019 FontPath "/usr/share/fonts/latin2/100dpi:unscaled"
020 FontPath "/usr/share/fonts/latin2/Type1"
021 FontPath "/usr/share/fonts/latin7/75dpi:unscaled"
022 FontPath "/usr/share/fonts/baekmuk:unscaled"
023 FontPath "/usr/share/fonts/japanese:unscaled"
024 FontPath "/usr/share/fonts/kwintv"
025 FontPath "/usr/share/fonts/truetype"
026 FontPath "/usr/share/fonts/uni:unscaled"
027 FontPath "/usr/share/fonts/CID"
028 FontPath "/usr/share/fonts/ucs/misc:unscaled"
029 FontPath "/usr/share/fonts/ucs/75dpi:unscaled"
030 FontPath "/usr/share/fonts/ucs/100dpi:unscaled"
031 FontPath "/usr/share/fonts/hellas/misc:unscaled"
032 FontPath "/usr/share/fonts/hellas/75dpi:unscaled"
033 FontPath "/usr/share/fonts/hellas/100dpi:unscaled"
034 FontPath "/usr/share/fonts/hellas/Type1"
035 FontPath "/usr/share/fonts/misc/sgi:unscaled"
036 FontPath "/usr/share/fonts/xtest"
037 FontPath "/opt/kde3/share/fonts"
038 InputDevices "/dev/gpmdata"
039 InputDevices "/dev/input/mice"
040 EndSection
041
042 Section "ServerFlags"
043 Option "AllowMouseOpenFail" "on"
044 Option "AutoAddDevices" "off"
045 Option "ZapWarning" "on"
046 Option "Xinerama" "0"
047 EndSection
048
049 Section "Module"
050 Load "dbe"
051
052 SubSection "extmod"
053 Option "omit xfree86-dga"
054 EndSubSection
055
056 Load "type1"
057 Load "speedo"
058 Load "freetype"
059 Load "glx"
060 EndSection
061
062 Section "Extensions"
063 Option "Composite" "off"
064 EndSection
065
066 #以上部分代码并不存在于默认的xorg.conf文件中,原封不动添加即可
067
068 Section "InputDevice"
069 # Driver "evdev" will be disabled unless 'Option "AutoAddDevices" "off"'
070 # is set in "ServerFlags" section.
071 Driver "evdev"
072 Identifier "Keyboard0"
073 Option "Device" "/dev/input/event0"
074 Option "Protocol" "Standard"
075 Option "XkbLayout" "us"
076 Option "XkbModel" "microsoftpro"
077 Option "XkbRules" "xfree86"
078 EndSection
079 Section "InputDevice"
080 # Driver "evdev" will be disabled unless 'Option "AutoAddDevices" "off"'
081 # is set in "ServerFlags" section.
082 Driver "mouse"
083 Identifier "Mouse0"
084 Option "Buttons" "5"
085 Option "Protocol" "auto"
086 Option "Device" "/dev/input/mouse0"
087 Option "Name" "USB Optical Mouse"
088 Option "Vendor" "Sysp"
089 Option "Emulate3Buttons" "no"
090 Option "ZAxisMapping" "4 5"
091 EndSection
092
093 Section "InputDevice"
094 # Driver "evdev" will be disabled unless 'Option "AutoAddDevices" "off"'
095 # is set in "ServerFlags" section.
096 Driver "evdev"
097 Identifier "Keyboard1"
098 Option "Device" "/dev/input/event3"
099 Option "Protocol" "Standard"
100 Option "XkbLayout" "us"
101 Option "XkbModel" "microsoftpro"
102 Option "XkbRules" "xfree86"
103 EndSection
104
105 Section "InputDevice"
106 # Driver "evdev" will be disabled unless 'Option "AutoAddDevices" "off"'
107 # is set in "ServerFlags" section.
108 Driver "mouse"
109 Identifier "Mouse1"
110 #Option "Buttons" "5"
111 Option "Device" "/dev/input/mouse1"
112 Option "Name" "ImPS/2 Generic Wheel Mouse"
113 Option "Protocol" "auto"
114 #Option "Vendor" "Sysp"
115 Option "Emulate3Buttons" "no"
116 Option "ZAxisMapping" "4 5"
117 EndSection
118
2014年02月02日 03点02分 3
level 4
ymzjsr 楼主
发不完了,老删贴子,有兴趣的去原贴看吧.
2014年02月02日 03点02分 4
level 12
你这四楼什么情况.....
装B装不下去了?
2014年02月02日 06点02分 5
系统自动删贴,我有什么办法。
2014年02月02日 12点02分
这是我亲测可以实现的,只不现在笔记本平板什么的多了,用的单机。要不小吧主帮我转一下。
2014年02月02日 13点02分
回复 ymzjsr :哦,那是我理解错了....我以为你发布下去了想删贴呢.......
2014年02月02日 15点02分
level 10
你偶像
2014年02月03日 00点02分 6
level 4
ymzjsr 楼主
再接再励,补完余下的.
_________________________________________________:
#以上代码配置鼠标和键盘
120 #Keyboard0和mouse0是一对配套使用的键盘和鼠标
121 #注意鼠标的driver有“mouse”和“evdev”两种,我的用“mouse”可以正常工作
122 #注意鼠标中Option "Protocol" "auto"
123 #的“auto”改为 "ExplorerPS/2",鼠标滚轮才可正常工作
124 #可以用命令:<span>ls /dev/input/mouse*列出所有鼠标
125 #命令:<span>more /proc/bus/input/devices 列出所有键盘鼠标及 键盘的event 的ID号。</span>
126
127 #****************************显示器*******************</span>Section "Monitor"
128 # HorizSync source: xconfig, VertRefresh source: xconfig
129 Identifier "Monitor0"
130 VendorName "Unknown"
131 ModelName "CRT-0"
132 HorizSync 30.0 - 75.0
133 VertRefresh 45.0 - 100.0
134 Option "DPMS"
135 EndSection
136
137 Section "Monitor"
138 # HorizSync source: edid, VertRefresh source: edid
139 Identifier "Monitor1"
140 VendorName "Unknown"
141 ModelName "AOC 2217"
142 HorizSync 31.0 - 80.0
143 VertRefresh 56.0 - 75.0
144 Option "DPMS"
145 EndSection
146
147 #************
148 #上面是显示器的配置,对于crt显示器来说可以在上面的配置中更改刷新率。
149
150 #**下面是显卡的配置,默认即可
151
152 Section "Device"
153 Identifier "Device0"
154 Driver "nvidia"
155 VendorName "NVIDIA Corporation"
156 BoardName "GeForce 8200"
157 BusID "PCI:2:0:0"
158 EndSection
159
160 Section "Device"
161 Identifier "Device1"
162 Driver "nvidia"
163 VendorName "NVIDIA Corporation"
164 BoardName "GeForce 9500 GT"
165 BusID "PCI:3:0:0"
166 EndSection
167
168 #下面是屏幕的设置,有两个显示
169
170 Section "Screen"
171 Identifier "Screen0"
172 Device "Device0"
173 Monitor "Monitor0"
174 DefaultDepth 24
175 Option "TwinView" "0"
176 Option "metamodes" "CRT: 1024x768_85 +0+0; CRT: nvidia-auto-select +0+0"
177 SubSection "Display"
178 Depth 24
179 EndSubSection
180 EndSection
181
182 Section "Screen"
183 Identifier "Screen1"
184 Device "Device1"
185 Monitor "Monitor1"
186 DefaultDepth 24
187 Option "TwinView" "0"
188 Option "metamodes" "1680x1050_60 +0+0"
189 SubSection "Display"
190 Depth 24
191 EndSubSection
192 EndSection
193
194 #下面的配置是最终的终端与屏幕,键盘鼠标的搭配
195
196 Section "ServerLayout"
197 Identifier "Layout0"
198 Screen 0 "Screen0" 0 0
199 InputDevice "Keyboard0" "CoreKeyboard"
200 InputDevice "Mouse0" "CorePointer"
201 Option "Xinerama" "0"
202 Option "Clone" "off"
203 Option "AutoAddDevices" "off"
204 EndSection
205
206 Section "ServerLayout"
207 Identifier "Layout1"
208 Screen 1 "Screen1" 0 0
209 InputDevice "Keyboard1" "CoreKeyboard"
210 InputDevice "Mouse1" "CorePointer"
211 Option "Xinerama" "0"
212 Option "Clone" "off"
213 Option "AutoAddDevices" "off"
214 EndSection
其次是kdmrc文件,配置如下:
01 #/usr/share/kde4/config/kdm/kdmrc
02
03 [General]
04 ConfigVersion=2.4
05 SUSEConfigVersion=2
06 StaticServers=:0,:1
07 ReserveServers=:2,:3
08 ServerVTs=-7
09 ConsoleTTYs=tty1,tty2,tty3,tty4,tty5,tty6
10
11 [Xdmcp]
12
13 [Shutdown]
14
15
16 [X-*-Core]
17 ClientLogFile=.xsession-errors-%d
18
19 [X-*-Greeter]
20 LogoPixmap=/usr/share/kde4/apps/kdm/pics/kdelogo.png
21 MinShowUID=500
22 MaxShowUID=65000
23 ForgingSeed=1268675635
24 UseTheme=true
25
26 [X-:*-Core]
27
28 [X-:*-Greeter]
29 PreselectUser=Previous
30 FocusPasswd=true
31 LoginMode=DefaultLocal
32 AllowClose=false
33
34 #主要是下面两个设置,有仔细解说了
35 [X-:0-Core]
36 TerminateServer=true
37 ClientLogFile=.xsession-errors
38 ServerArgsLocal=-nolisten tcp -layout Layout0 -sharevts -novtswitch
39
40 [X-:1-Core]
41 TerminateServer=true
42 ClientLogFile=.xsession-errors
43 ServerArgsLocal=-nolisten tcp -layout Layout1 -sharevts -novtswitch
44
45 [X-:93-Core]
46 TerminateServer=true
47
48 [X-:0-Greeter]
2014年02月07日 00点02分 7
level 4
ymzjsr 楼主
如果想要GNOME也能成功拖机还要修改下面这个文件:
/etc/gdm/custom.conf
反正我是两下环境下拖机都成功了。稍微注意看下就懂了。
01 # GDM configuration storage
02 #
03 # Note: settings from /etc/sysconfig/displaymanager have a higher priority
04 #
05
06 [servers]
07 0=Standard0
08 1=Standard1
09 [server-Standard0]
10 name=Standard server
11 command=/usr/X11R6/bin/X -nolisten tcp -novtswitch -sharevts -layout Layout0
12 flexible=true
13 [server-Standard1]
14 name=Standard server
15 command=/usr/X11R6/bin/X -nolisten tcp -novtswitch -sharevts -layout Layout1
16 flexible=true
17
18 [
xdm
cp]
19
20 [greeter]
21
22 [chooser]
23
24 [debug]
好了,完 了,有想拖机的朋友可以做个参考。
2014年02月07日 00点02分 8
level 12
有意思!等资金充裕买台显示器试试
2014年02月07日 16点02分 10
一个客户是需要配一台键盘和显示器的,不过没显示器接液晶电视也可以的。配无线键鼠,也还行吧。
2014年02月09日 06点02分
level 1
一拖二双显卡驱动怎么装?一张游戏卡,一张做图卡
2017年12月30日 03点12分 11
专业卡没接触过,linux下也没用过,nvidia驱动是闭源的,手动安装吧。
2018年12月12日 02点12分
1