s****n 发帖数: 786 | 1 vi $HOME/.vnc/xstartup
make it look like this:
#!/bin/sh
# Uncomment the following two lines for normal desktop:
unset SESSION_MANAGER
exec /etc/X11/xinit/xinitrc
[ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup
[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
xsetroot -solid grey
vncconfig -iconic &
xterm -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
startx &
la
can |
|
c****n 发帖数: 89 | 2 BTW. I've tried vncconfig and picked all three options. no luck with the
copy/paste. |
|
z**r 发帖数: 17771 | 3 俺的VNC没有问题,To enable copy and paste, after running the vncserver
command please run this:
vncconfig -display :n -nowin &
Where :n is the number of your display. |
|
w*m 发帖数: 1806 | 4 edit ~/.vnc/xstartup
here is a copy of mine,
#!/bin/sh
# Uncomment the following two lines for normal desktop:
unset SESSION_MANAGER
exec /etc/X11/xinit/xinitrc
[ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup
[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
xsetroot -solid grey
vncconfig -iconic &
xterm -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
#twm &
startx &
ps: startx will start gnome or kde. |
|
z**r 发帖数: 17771 | 5 try vncconfig -display :n -nowin &
Where :n is the number of your display. |
|