LinuxSir.cn,穿越时空的Linuxsir!

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

请教一个多用户远程图形界面登陆的问题

[复制链接]
发表于 2006-12-11 17:02:51 | 显示全部楼层 |阅读模式
情况是这样的:
实验室有一个比较大的软件,跑起来相当耗费资源,但是每个人都得经常用。
于是就想了一个办法,打算架设一个配置好一点的服务器,让每个人在需要的时候,通过自己的
电脑用预先分配好的帐号远程登陆到这台服务器上面来,在各自的xwindows环境下面进行调试工作。

我已经尝试的方法是:
1,用rh自带的vnc。登陆成功之后,目标应用软件的GUI也能够正常工作,但是貌似只能远程登陆一个administrator,而且没有gnome的桌面环境。
最关键的一点是:它好像需要每次运行生成一个随机的 数字,用它来加上默认的5800 来作为远程登陆的端口号。

2,用xmanager和xdm。这种方法对xdm的配置文件改动稍微多一点,但是用起来很方便。通过测试,已经可以多个用户同时登陆,运行各种应用程序的GUI,但是 好像所有的应用程序都需要从命令行打开, 而不是每个人出现像 本地登陆那样 的gnome的桌面环境。

我也是今天第一次接触这个方向,没有任何经验。
请问我是什么地放设置不对?或者通过别的更好的方法,能实现多用户远程登陆都是gnome的桌面环境?

还有就是如果10个用户以内的使用强度,请问需要怎么样配置的服务器比较好呢?谢谢
发表于 2006-12-11 18:12:12 | 显示全部楼层
关注一下, 前些时候也有这个需求!
回复 支持 反对

使用道具 举报

发表于 2006-12-12 02:15:50 | 显示全部楼层
Based on your Method 1:

In the server, modify ~/.vnc/xstartup for each account. Following is my setup for you reference:
  1. #!/bin/sh
  2. # Uncomment the following two lines for normal desktop:
  3. vncconfig -iconic -nowin &
  4. unset SESSION_MANAGER
  5. # exec startkde
  6. # exec gnome-session
  7. [ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
  8. xsetroot -solid black
  9. fvwm &
复制代码

putty to the server, run 'vncpasswd' to setup a passwd for vnc;
Then in putty console run 'vncserver -geometry <your screen resolution>', you will get output like this:
  1. New '<hostname>:1 (account ID)' desktop is [color=red]<hostname>:1[/color]
  2. Starting applications specified in $HOME/.vnc/xstartup
  3. Log file is $HOME/.vnc/<hostname>:1.log
复制代码

Then from your desktop, run vncviewer, input <hostname>:1 in the server field, you can login to the xwindow in your server.
Now you can close putty console if you want to.

If another account runs putty also, it will get <hostname>:2

-- good luck.
回复 支持 反对

使用道具 举报

发表于 2006-12-12 02:23:57 | 显示全部楼层
BTY, I am using realVNC...
回复 支持 反对

使用道具 举报

发表于 2006-12-12 12:22:18 | 显示全部楼层
1:/etc/sysconfig/vncserver
2:export DISAPLAY=xx
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

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