$ vncconfig
No VNC extension on display :1.0
When I hit the problem again, I found my way back to one of my old blog
entries: Solaris/x64 VNC with Cut & Paste, but this time, the
situation was slightly different:
-
On SPARC
-
SFWvnc was not installed
When I re-read my old blog, it didn't seem to apply.
But I found:
$ which Xvnc
/ usr/local/bin/Xvnc
$ pkginfo -L | grep vnc
SUNWvncviewer
SUNWxvnc
$ /usr/sbin/pkgchk -l SUNWxvnc | grep Xvnc
NOTE: Couldn't lock the package database.
Pathname: /usr/X11/bin/Xvnc
Pathname: /usr/X11/share/man/man1/Xvnc.1
Someone had put Xvnc version 3.x in /usr/local. Because /usr/local was
near the start of my PATH, I wasn't using the version of Xvnc that is
supplied with Solaris 10 Update 10.
Again, the solution is simple.
1) Kill the running Xvnc process
2) Start a new Xvnc process using the Solaris supplied executable
$ export PATH=/usr/X11/bin:$PATH
$ vncviewer
3) Use a VNC viewer to visit the Xvnc server and run vncconfig:
$ vncconfig &
4) Now, cut & paste works between my laptop (e-mail, web browser,
etc.) and my VNC session.
5) You will want to make sure that vncconfig is started automatically in
your .vnc/xstartup file
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/29618264/viewspace-2141577/
,如需转载,请注明出处,否则将追究法律责任。