|
发表于 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:- #!/bin/sh
- # Uncomment the following two lines for normal desktop:
- vncconfig -iconic -nowin &
- unset SESSION_MANAGER
- # exec startkde
- # exec gnome-session
- [ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
- xsetroot -solid black
- 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:- New '<hostname>:1 (account ID)' desktop is [color=red]<hostname>:1[/color]
- Starting applications specified in $HOME/.vnc/xstartup
- 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. |
|