Помойму Vnc-server-ом убил комп. Help? (Что-то по страшному тормозит теперь и как то глючит)

Для новичков как вообще в Linux, так и в конкретной теме, к которой относится вопрос.

Модератор: Bizdelnick

Серёга
Сообщения: 201
ОС: Windows XP

Помойму Vnc-server-ом убил комп. Help?

Сообщение Серёга »

Привет ещё раз всем.

Короче поставил я себе на Mandriva 2007 PP+ с его диска из rpm пакеты VNC-server, VNC-doc, и VNC. Содержимое их такое:

tightvnc-server-1.2.9-13mdv2007.0:

Код: Выделить всё

/etc/rc.d/init.d/vncserver
‎/etc/sysconfig/vncservers
‎/usr/bin/Xvnc
‎/usr/bin/vncconnect
‎/usr/bin/vncpasswd
‎/usr/bin/vncserver
‎/usr/share/man/man1/Xvnc.1.bz2
‎/usr/share/man/man1/vncconnect.1.bz2
‎/usr/share/man/man1/vncpasswd.1.bz2
‎/usr/share/man/man1/vncserver.1.bz2

tightvnc-1.2.9-13mdv2007.0:

Код: Выделить всё

/usr/bin/vncviewer
‎/usr/lib/menu/tightvnc
‎/usr/share/applications/mandriva-tightvnc.desktop
‎/usr/share/doc/tightvnc-1.2.9
‎/usr/share/doc/tightvnc-1.2.9/ChangeLog
‎/usr/share/doc/tightvnc-1.2.9/README
‎/usr/share/doc/tightvnc-1.2.9/WhatsNew
‎/usr/share/icons/large/tightvnc.png
‎/usr/share/icons/mini/tightvnc.png
‎/usr/share/icons/tightvnc.png
‎/usr/share/man/man1/vncviewer.1.bz2
‎/usr/share/vnc
‎/usr/share/vnc/classes
‎/usr/share/vnc/classes/AuthPanel.class
‎/usr/share/vnc/classes/ButtonPanel.class
‎/usr/share/vnc/classes/ClipboardFrame.class
‎/usr/share/vnc/classes/DesCipher.class
‎/usr/share/vnc/classes/HTTPConnectSocket.class
‎/usr/share/vnc/classes/HTTPConnectSocketFactory.class
‎/usr/share/vnc/classes/OptionsFrame.class
‎/usr/share/vnc/classes/RecordingFrame.class
‎/usr/share/vnc/classes/ReloginPanel.class
‎/usr/share/vnc/classes/RfbProto.class
‎/usr/share/vnc/classes/SessionRecorder.class
‎/usr/share/vnc/classes/SocketFactory.class
‎/usr/share/vnc/classes/VncCanvas.class
‎/usr/share/vnc/classes/VncViewer.class
‎/usr/share/vnc/classes/VncViewer.jar
‎/usr/share/vnc/classes/index.vnc

tightvnc-doc-1.2.9-13mdv2007.0:

Код:

/usr/share/doc/tightvnc-doc-1.2.9 ‎/usr/share/doc/tightvnc-doc-1.2.9/README ‎/usr/share/doc/tightvnc-doc-1.2.9/WhatsNew ‎/usr/share/tightvnc/docs/Xvnc.gif ‎/usr/share/tightvnc/docs/ach.jpg ‎/usr/share/tightvnc/docs/alicebobcharlie.gif ‎/usr/share/tightvnc/docs/alicecharlie.gif ‎/usr/share/tightvnc/docs/announcement.html ‎/usr/share/tightvnc/docs/attbutton.gif ‎/usr/share/tightvnc/docs/attlogo.gif ‎/usr/share/tightvnc/docs/backbutton.gif ‎/usr/share/tightvnc/docs/badgeshad.gif ‎/usr/share/tightvnc/docs/bgdot.gif ‎/usr/share/tightvnc/docs/bluepix.gif ‎/usr/share/tightvnc/docs/button.gif ‎/usr/share/tightvnc/docs/cdplay.gif ‎/usr/share/tightvnc/docs/cevncviewer.html ‎/usr/share/tightvnc/docs/cim.jpg ‎/usr/share/tightvnc/docs/clientserver.gif ‎/usr/share/tightvnc/docs/collage.gif ‎/usr/share/tightvnc/docs/collagesmaller.gif ‎/usr/share/tightvnc/docs/conndlg.gif ‎/usr/share/tightvnc/docs/contribbutton.gif ‎/usr/share/tightvnc/docs/contribs.html ‎/usr/share/tightvnc/docs/docbutton.gif ‎/usr/share/tightvnc/docs/docs.html ‎/usr/share/tightvnc/docs/download.htm ‎/usr/share/tightvnc/docs/download.html ‎/usr/share/tightvnc/docs/downloadbutton.gif ‎/usr/share/tightvnc/docs/downloadtemplate.html ‎/usr/share/tightvnc/docs/extras.html ‎/usr/share/tightvnc/docs/faq.dtd ‎/usr/share/tightvnc/docs/faq.html ‎/usr/share/tightvnc/docs/faq.xml ‎/usr/share/tightvnc/docs/faqbutton.gif ‎/usr/share/tightvnc/docs/faqtemplate.html ‎/usr/share/tightvnc/docs/free.html ‎/usr/share/tightvnc/docs/freebutton.gif ‎/usr/share/tightvnc/docs/gpl.html ‎/usr/share/tightvnc/docs/help.html ‎/usr/share/tightvnc/docs/helpbutton.gif ‎/usr/share/tightvnc/docs/homebutton.gif ‎/usr/share/tightvnc/docs/howitworks.html ‎/usr/share/tightvnc/docs/ie1.gif ‎/usr/share/tightvnc/docs/ie1_small.gif ‎/usr/share/tightvnc/docs/iemacwin.gif ‎/usr/share/tightvnc/docs/iemacwin_small.gif ‎/usr/share/tightvnc/docs/iemacx.gif ‎/usr/share/tightvnc/docs/iemacx_small.gif ‎/usr/share/tightvnc/docs/index.html ‎/usr/share/tightvnc/docs/internalversion.html ‎/usr/share/tightvnc/docs/intouch.html ‎/usr/share/tightvnc/docs/intouchbutton.gif ‎/usr/share/tightvnc/docs/invalid-download.html ‎/usr/share/tightvnc/docs/javavncviewer.html ‎/usr/share/tightvnc/docs/jnw.jpg ‎/usr/share/tightvnc/docs/join.html ‎/usr/share/tightvnc/docs/krw.jpg ‎/usr/share/tightvnc/docs/machistory.html ‎/usr/share/tightvnc/docs/macshot.gif ‎/usr/share/tightvnc/docs/macshot_small.gif ‎/usr/share/tightvnc/docs/macvnc.html ‎/usr/share/tightvnc/docs/macvnc.html.bck ‎/usr/share/tightvnc/docs/macvncviewer.html ‎/usr/share/tightvnc/docs/mailinglist.html ‎/usr/share/tightvnc/docs/makefile ‎/usr/share/tightvnc/docs/newlogosmall2.gif ‎/usr/share/tightvnc/docs/ns1.gif ‎/usr/share/tightvnc/docs/ns1_small.gif ‎/usr/share/tightvnc/docs/platforms.html ‎/usr/share/tightvnc/docs/pmw.jpg ‎/usr/share/tightvnc/docs/protocol.html ‎/usr/share/tightvnc/docs/qsf.jpg ‎/usr/share/tightvnc/docs/rfbcounter.gif ‎/usr/share/tightvnc/docs/rfbcounter.html ‎/usr/share/tightvnc/docs/rfbproto.pdf ‎/usr/share/tightvnc/docs/rfbprotoheader.pdf ‎/usr/share/tightvnc/docs/screenbutton.gif ‎/usr/share/tightvnc/docs/screenshots.html ‎/usr/share/tightvnc/docs/searchbutton.gif ‎/usr/share/tightvnc/docs/sidebarbg.gif ‎/usr/share/tightvnc/docs/sideblank.gif ‎/usr/share/tightvnc/docs/sidelogo.gif ‎/usr/share/tightvnc/docs/spacer.gif ‎/usr/share/tightvnc/docs/sshvnc.html ‎/usr/share/tightvnc/docs/sshwin.html ‎/usr/share/tightvnc/docs/start.html ‎/usr/share/tightvnc/docs/startbutton.gif ‎/usr/share/tightvnc/docs/styles.css ‎/usr/share/tightvnc/docs/template.html ‎/usr/share/tightvnc/docs/tjr.jpg ‎/usr/share/tightvnc/docs/twmideas.html ‎/usr/share/tightvnc/docs/videos.html ‎/usr/share/tightvnc/docs/videos1.jpg ‎/usr/share/tightvnc/docs/videos2.jpg ‎/usr/share/tightvnc/docs/videos3.jpg ‎/usr/share/tightvnc/docs/viewertray.gif ‎/usr/share/tightvnc/docs/vinci1.gif ‎/usr/share/tightvnc/docs/vinci1_small.gif ‎/usr/share/tightvnc/docs/virus.html ‎/usr/share/tightvnc/docs/vnc.gif ‎/usr/share/tightvnc/docs/vncce1.jpg ‎/usr/share/tightvnc/docs/vncce1_medium.jpg ‎/usr/share/tightvnc/docs/vncce1_small.jpg ‎/usr/share/tightvnc/docs/vncce2.jpg ‎/usr/share/tightvnc/docs/vncce2_small.jpg ‎/usr/share/tightvnc/docs/vncce3.jpg ‎/usr/share/tightvnc/docs/vncce3_small.jpg ‎/usr/share/tightvnc/docs/vnchistory.html ‎/usr/share/tightvnc/docs/vncpeople.html ‎/usr/share/tightvnc/docs/vncpeoplebutton.gif ‎/usr/share/tightvnc/docs/vnctitle.gif ‎/usr/share/tightvnc/docs/vnctm.gif ‎/usr/share/tightvnc/docs/winhistory.html ‎/usr/share/tightvnc/docs/winviewer1.gif ‎/usr/share/tightvnc/docs/winviewer1_small.gif ‎/usr/share/tightvnc/docs/winvnc.html ‎/usr/share/tightvnc/docs/winvnctray.GIF ‎/usr/share/tightvnc/docs/winvncviewer.html ‎/usr/share/tightvnc/docs/xlibvncviewer.html ‎/usr/share/tightvnc/docs/xvnc.html ‎/usr/share/tightvnc/docs/xvnchistory.html ‎/usr/share/tightvnc/docs/xvncviewer.html

Потом в фаил /etc/sysconfig/vncservers раскоментировал строику # VNCSERVERS="1:myusername" и переписал её в VNCSERVERS="2:useradmin", где 2 - какя понял второй рабочий стол, а useradmin - имя юзера под которым я вработаю на компе.Начальное содержимое этого файла такое было:

Код: Выделить всё

# The VNCSERVERS variable is a list of display:user pairs.
#
# Uncomment the line below to start a VNC server on  display  :1  as  my
# 'myusername' (adjust this to your own). You will also need  to  set  a
# VNC password; run 'man vncpasswd' to see how to do that.
#
# DO NOT RUN THIS SERVICE if your local area network is untrusted. For a
# secure way of using VNC, see <URL:http://www.tightvnc.org>.

# VNCSERVERS="1:myusername"

Потом я начал в рутовской консоли создавать сервер и он вывел кучу мусора (какие то команды):

Код:

[root@server ~]# vncserver -useradmin server:2 You will require a password to access your desktops. Password: Verify: Would you like to enter a view-only password (y/n)? y Password: Verify: Couldn't start Xvnc; trying default font path. Please set correct fontPath in the vncserver script. Couldn't start Xvnc process. Unrecognized option: -useradmin use: X [:<display>] [option] -a # mouse acceleration (pixels) -ac disable access control restrictions -audit int set audit trail level -auth file select authorization file bc enable bug compatibility -bs disable any backing store support -c turns off key-click c # key-click volume (0-100) -cc int default color visual class -co file color database file -core generate core dump on fatal error -dpi int screen resolution in dots per inch -deferglyphs [none|all|16] defer loading of [no|all|16-bit] glyphs -f # bell base (0-100) -fc string cursor font -fn string default font name -fp string default font path -help prints message with these options -I ignore all remaining arguments -ld int limit data space to N Kb -lf int limit number of open files to N -ls int limit stack space to N Kb -nolock disable the locking mechanism -logo enable logo in screen saver nologo disable logo in screen saver -nolisten string don't listen on protocol -p # screen-saver pattern duration (minutes) -pn accept failure to listen on all ports -nopn reject failure to listen on all ports -r turns off auto-repeat r turns on auto-repeat -s # screen-saver timeout (minutes) -su disable any save under support -t # mouse threshold (pixels) -terminate terminate at server reset -to # connection time out -tst disable testing extensions ttyxx server started from init on /dev/ttyxx v video blanking for screen-saver -v screen-saver without video blanking -wm WhenMapped default backing-store -x string loads named extension at init time -query host-name contact named host for XDMCP -broadcast broadcast for XDMCP -indirect host-name contact named host for indirect XDMCP -port port-num UDP port number to send messages to -once Terminate server after one session -class display-class specify display class to send in manage -cookie xdm-auth-bits specify the magic cookie for XDMCP -displayID display-id manufacturer display ID for request -geometry WxH set framebuffer width & height -depth D set framebuffer depth -pixelformat format set pixel format (BGRnnn or RGBnnn) -udpinputport port UDP port for keyboard/pointer data -rfbport port TCP port for RFB protocol -rfbwait time max time in ms to wait for RFB client -nocursor don't put up a cursor -rfbauth passwd-file use authentication on RFB protocol -httpd dir serve files via HTTP from here -httpport port port for HTTP -deferupdate time time in ms to defer updates (default 40) -economictranslate less memory-hungry translation -lazytight disable "gradient" filter in tight encoding -desktop name VNC desktop name (default x11) -alwaysshared always treat new clients as shared -nevershared never treat new clients as shared -dontdisconnect don't disconnect existing clients when a new non-shared connection comes in (refuse new connection instead) -viewonly let clients only to view the desktop -localhost only allow connections from localhost -interface ipaddr only bind to specified interface address -inetd Xvnc is launched by inetd -compatiblekbd set META key = ALT key as in the original VNC -version report Xvnc version on stderr Unrecognized option: -useradmin use: X [:<display>] [option] -a # mouse acceleration (pixels) -ac disable access control restrictions -audit int set audit trail level -auth file select authorization file bc enable bug compatibility -bs disable any backing store support -c turns off key-click c # key-click volume (0-100) -cc int default color visual class -co file color database file -core generate core dump on fatal error -dpi int screen resolution in dots per inch -deferglyphs [none|all|16] defer loading of [no|all|16-bit] glyphs -f # bell base (0-100) -fc string cursor font -fn string default font name -fp string default font path -help prints message with these options -I ignore all remaining arguments -ld int limit data space to N Kb -lf int limit number of open files to N -ls int limit stack space to N Kb -nolock disable the locking mechanism -logo enable logo in screen saver nologo disable logo in screen saver -nolisten string don't listen on protocol -p # screen-saver pattern duration (minutes) -pn accept failure to listen on all ports -nopn reject failure to listen on all ports -r turns off auto-repeat r turns on auto-repeat -s # screen-saver timeout (minutes) -su disable any save under support -t # mouse threshold (pixels) -terminate terminate at server reset -to # connection time out -tst disable testing extensions ttyxx server started from init on /dev/ttyxx v video blanking for screen-saver -v screen-saver without video blanking -wm WhenMapped default backing-store -x string loads named extension at init time -query host-name contact named host for XDMCP -broadcast broadcast for XDMCP -indirect host-name contact named host for indirect XDMCP -port port-num UDP port number to send messages to -once Terminate server after one session -class display-class specify display class to send in manage -cookie xdm-auth-bits specify the magic cookie for XDMCP -displayID display-id manufacturer display ID for request -geometry WxH set framebuffer width & height -depth D set framebuffer depth -pixelformat format set pixel format (BGRnnn or RGBnnn) -udpinputport port UDP port for keyboard/pointer data -rfbport port TCP port for RFB protocol -rfbwait time max time in ms to wait for RFB client -nocursor don't put up a cursor -rfbauth passwd-file use authentication on RFB protocol -httpd dir serve files via HTTP from here -httpport port port for HTTP -deferupdate time time in ms to defer updates (default 40) -economictranslate less memory-hungry translation -lazytight disable "gradient" filter in tight encoding -desktop name VNC desktop name (default x11) -alwaysshared always treat new clients as shared -nevershared never treat new clients as shared -dontdisconnect don't disconnect existing clients when a new non-shared connection comes in (refuse new connection instead) -viewonly let clients only to view the desktop -localhost only allow connections from localhost -interface ipaddr only bind to specified interface address -inetd Xvnc is launched by inetd -compatiblekbd set META key = ALT key as in the original VNC -version report Xvnc version on stderr [root@server ~]# vncserver -help TightVNC server version 1.2.9 Usage: vncserver [<OPTIONS>] [:<DISPLAY#>] vncserver -kill :<DISPLAY#> <OPTIONS> are Xvnc options, or: -name <DESKTOP-NAME> -depth <DEPTH> -geometry <WIDTH>x<HEIGHT> -pixelformat rgb<NNN> -pixelformat bgr<NNN> See vncserver and Xvnc manual pages for more information. [root@server ~]# vncserver -root server:1 You will require a password to access your desktops. Password: Warning: password truncated to the length of 8. Verify: Would you like to enter a view-only password (y/n)? n Couldn't start Xvnc; trying default font path. Please set correct fontPath in the vncserver script. Couldn't start Xvnc process. Unrecognized option: -root use: X [:<display>] [option] -a # mouse acceleration (pixels) -ac disable access control restrictions -audit int set audit trail level -auth file select authorization file bc enable bug compatibility -bs disable any backing store support -c turns off key-click c # key-click volume (0-100) -cc int default color visual class -co file color database file -core generate core dump on fatal error -dpi int screen resolution in dots per inch -deferglyphs [none|all|16] defer loading of [no|all|16-bit] glyphs -f # bell base (0-100) -fc string cursor font -fn string default font name -fp string default font path -help prints message with these options -I ignore all remaining arguments -ld int limit data space to N Kb -lf int limit number of open files to N -ls int limit stack space to N Kb -nolock disable the locking mechanism -logo enable logo in screen saver nologo disable logo in screen saver -nolisten string don't listen on protocol -p # screen-saver pattern duration (minutes) -pn accept failure to listen on all ports -nopn reject failure to listen on all ports -r turns off auto-repeat r turns on auto-repeat -s # screen-saver timeout (minutes) -su disable any save under support -t # mouse threshold (pixels) -terminate terminate at server reset -to # connection time out -tst disable testing extensions ttyxx server started from init on /dev/ttyxx v video blanking for screen-saver -v screen-saver without video blanking -wm WhenMapped default backing-store -x string loads named extension at init time -query host-name contact named host for XDMCP -broadcast broadcast for XDMCP -indirect host-name contact named host for indirect XDMCP -port port-num UDP port number to send messages to -once Terminate server after one session -class display-class specify display class to send in manage -cookie xdm-auth-bits specify the magic cookie for XDMCP -displayID display-id manufacturer display ID for request -geometry WxH set framebuffer width & height -depth D set framebuffer depth -pixelformat format set pixel format (BGRnnn or RGBnnn) -udpinputport port UDP port for keyboard/pointer data -rfbport port TCP port for RFB protocol -rfbwait time max time in ms to wait for RFB client -nocursor don't put up a cursor -rfbauth passwd-file use authentication on RFB protocol -httpd dir serve files via HTTP from here -httpport port port for HTTP -deferupdate time time in ms to defer updates (default 40) -economictranslate less memory-hungry translation -lazytight disable "gradient" filter in tight encoding -desktop name VNC desktop name (default x11) -alwaysshared always treat new clients as shared -nevershared never treat new clients as shared -dontdisconnect don't disconnect existing clients when a new non-shared connection comes in (refuse new connection instead) -viewonly let clients only to view the desktop -localhost only allow connections from localhost -interface ipaddr only bind to specified interface address -inetd Xvnc is launched by inetd -compatiblekbd set META key = ALT key as in the original VNC -version report Xvnc version on stderr Unrecognized option: -root use: X [:<display>] [option] -a # mouse acceleration (pixels) -ac disable access control restrictions -audit int set audit trail level -auth file select authorization file bc enable bug compatibility -bs disable any backing store support -c turns off key-click c # key-click volume (0-100) -cc int default color visual class -co file color database file -core generate core dump on fatal error -dpi int screen resolution in dots per inch -deferglyphs [none|all|16] defer loading of [no|all|16-bit] glyphs -f # bell base (0-100) -fc string cursor font -fn string default font name -fp string default font path -help prints message with these options -I ignore all remaining arguments -ld int limit data space to N Kb -lf int limit number of open files to N -ls int limit stack space to N Kb -nolock disable the locking mechanism -logo enable logo in screen saver nologo disable logo in screen saver -nolisten string don't listen on protocol -p # screen-saver pattern duration (minutes) -pn accept failure to listen on all ports -nopn reject failure to listen on all ports -r turns off auto-repeat r turns on auto-repeat -s # screen-saver timeout (minutes) -su disable any save under support -t # mouse threshold (pixels) -terminate terminate at server reset -to # connection time out -tst disable testing extensions ttyxx server started from init on /dev/ttyxx v video blanking for screen-saver -v screen-saver without video blanking -wm WhenMapped default backing-store -x string loads named extension at init time -query host-name contact named host for XDMCP -broadcast broadcast for XDMCP -indirect host-name contact named host for indirect XDMCP -port port-num UDP port number to send messages to -once Terminate server after one session -class display-class specify display class to send in manage -cookie xdm-auth-bits specify the magic cookie for XDMCP -displayID display-id manufacturer display ID for request -geometry WxH set framebuffer width & height -depth D set framebuffer depth -pixelformat format set pixel format (BGRnnn or RGBnnn) -udpinputport port UDP port for keyboard/pointer data -rfbport port TCP port for RFB protocol -rfbwait time max time in ms to wait for RFB client -nocursor don't put up a cursor -rfbauth passwd-file use authentication on RFB protocol -httpd dir serve files via HTTP from here -httpport port port for HTTP -deferupdate time time in ms to defer updates (default 40) -economictranslate less memory-hungry translation -lazytight disable "gradient" filter in tight encoding -desktop name VNC desktop name (default x11) -alwaysshared always treat new clients as shared -nevershared never treat new clients as shared -dontdisconnect don't disconnect existing clients when a new non-shared connection comes in (refuse new connection instead) -viewonly let clients only to view the desktop -localhost only allow connections from localhost -interface ipaddr only bind to specified interface address -inetd Xvnc is launched by inetd -compatiblekbd set META key = ALT key as in the original VNC -version report Xvnc version on stderr [root@server ~]# vncserver -useradmin server:2 Couldn't start Xvnc; trying default font path. Please set correct fontPath in the vncserver script. Couldn't start Xvnc process. Unrecognized option: -useradmin use: X [:<display>] [option] -a # mouse acceleration (pixels) -ac disable access control restrictions -audit int set audit trail level -auth file select authorization file bc enable bug compatibility -bs disable any backing store support -c turns off key-click c # key-click volume (0-100) -cc int default color visual class -co file color database file -core generate core dump on fatal error -dpi int screen resolution in dots per inch -deferglyphs [none|all|16] defer loading of [no|all|16-bit] glyphs -f # bell base (0-100) -fc string cursor font -fn string default font name -fp string default font path -help prints message with these options -I ignore all remaining arguments -ld int limit data space to N Kb -lf int limit number of open files to N -ls int limit stack space to N Kb -nolock disable the locking mechanism -logo enable logo in screen saver nologo disable logo in screen saver -nolisten string don't listen on protocol -p # screen-saver pattern duration (minutes) -pn accept failure to listen on all ports -nopn reject failure to listen on all ports -r turns off auto-repeat r turns on auto-repeat -s # screen-saver timeout (minutes) -su disable any save under support -t # mouse threshold (pixels) -terminate terminate at server reset -to # connection time out -tst disable testing extensions ttyxx server started from init on /dev/ttyxx v video blanking for screen-saver -v screen-saver without video blanking -wm WhenMapped default backing-store -x string loads named extension at init time -query host-name contact named host for XDMCP -broadcast broadcast for XDMCP -indirect host-name contact named host for indirect XDMCP -port port-num UDP port number to send messages to -once Terminate server after one session -class display-class specify display class to send in manage -cookie xdm-auth-bits specify the magic cookie for XDMCP -displayID display-id manufacturer display ID for request -geometry WxH set framebuffer width & height -depth D set framebuffer depth -pixelformat format set pixel format (BGRnnn or RGBnnn) -udpinputport port UDP port for keyboard/pointer data -rfbport port TCP port for RFB protocol -rfbwait time max time in ms to wait for RFB client -nocursor don't put up a cursor -rfbauth passwd-file use authentication on RFB protocol -httpd dir serve files via HTTP from here -httpport port port for HTTP -deferupdate time time in ms to defer updates (default 40) -economictranslate less memory-hungry translation -lazytight disable "gradient" filter in tight encoding -desktop name VNC desktop name (default x11) -alwaysshared always treat new clients as shared -nevershared never treat new clients as shared -dontdisconnect don't disconnect existing clients when a new non-shared connection comes in (refuse new connection instead) -viewonly let clients only to view the desktop -localhost only allow connections from localhost -interface ipaddr only bind to specified interface address -inetd Xvnc is launched by inetd -compatiblekbd set META key = ALT key as in the original VNC -version report Xvnc version on stderr Unrecognized option: -useradmin use: X [:<display>] [option] -a # mouse acceleration (pixels) -ac disable access control restrictions -audit int set audit trail level -auth file select authorization file bc enable bug compatibility -bs disable any backing store support -c turns off key-click c # key-click volume (0-100) -cc int default color visual class -co file color database file -core generate core dump on fatal error -dpi int screen resolution in dots per inch -deferglyphs [none|all|16] defer loading of [no|all|16-bit] glyphs -f # bell base (0-100) -fc string cursor font -fn string default font name -fp string default font path -help prints message with these options -I ignore all remaining arguments -ld int limit data space to N Kb -lf int limit number of open files to N -ls int limit stack space to N Kb -nolock disable the locking mechanism -logo enable logo in screen saver nologo disable logo in screen saver -nolisten string don't listen on protocol -p # screen-saver pattern duration (minutes) -pn accept failure to listen on all ports -nopn reject failure to listen on all ports -r turns off auto-repeat r turns on auto-repeat -s # screen-saver timeout (minutes) -su disable any save under support -t # mouse threshold (pixels) -terminate terminate at server reset -to # connection time out -tst disable testing extensions ttyxx server started from init on /dev/ttyxx v video blanking for screen-saver -v screen-saver without video blanking -wm WhenMapped default backing-store -x string loads named extension at init time -query host-name contact named host for XDMCP -broadcast broadcast for XDMCP -indirect host-name contact named host for indirect XDMCP -port port-num UDP port number to send messages to -once Terminate server after one session -class display-class specify display class to send in manage -cookie xdm-auth-bits specify the magic cookie for XDMCP -displayID display-id manufacturer display ID for request -geometry WxH set framebuffer width & height -depth D set framebuffer depth -pixelformat format set pixel format (BGRnnn or RGBnnn) -udpinputport port UDP port for keyboard/pointer data -rfbport port TCP port for RFB protocol -rfbwait time max time in ms to wait for RFB client -nocursor don't put up a cursor -rfbauth passwd-file use authentication on RFB protocol -httpd dir serve files via HTTP from here -httpport port port for HTTP -deferupdate time time in ms to defer updates (default 40) -economictranslate less memory-hungry translation -lazytight disable "gradient" filter in tight encoding -desktop name VNC desktop name (default x11) -alwaysshared always treat new clients as shared -nevershared never treat new clients as shared -dontdisconnect don't disconnect existing clients when a new non-shared connection comes in (refuse new connection instead) -viewonly let clients only to view the desktop -localhost only allow connections from localhost -interface ipaddr only bind to specified interface address -inetd Xvnc is launched by inetd -compatiblekbd set META key = ALT key as in the original VNC -version report Xvnc version on stderr [root@server ~]# /etc/init.d/vncserver start Запускается VNC server: 2:useradmin WARNING: initlog is deprecated and will be removed in a future release [ СБОЙ ] [root@server ~]#

Потом я подумав (или поняв) что -name это команда а не имя начил давать команду по другому:

Код:

[root@server ~]# cat /etc/sysconfig/vncservers # The VNCSERVERS variable is a list of display:user pairs. # # Uncomment the line below to start a VNC server on display :1 as my # 'myusername' (adjust this to your own). You will also need to set a # VNC password; run 'man vncpasswd' to see how to do that. # # DO NOT RUN THIS SERVICE if your local area network is untrusted. For a # secure way of using VNC, see <URL:http://www.tightvnc.org>. # VNCSERVERS="1:myusername" VNCSERVERS="2:useradmin" [root@server ~]# vncserver -name server:1 New 'server:1' desktop is server:2 Starting applications specified in /root/.vnc/xstartup Log file is /root/.vnc/server:2.log [root@server ~]# cat /etc/sysconfig/vncservers # The VNCSERVERS variable is a list of display:user pairs. # # Uncomment the line below to start a VNC server on display :1 as my # 'myusername' (adjust this to your own). You will also need to set a # VNC password; run 'man vncpasswd' to see how to do that. # # DO NOT RUN THIS SERVICE if your local area network is untrusted. For a # secure way of using VNC, see <URL:http://www.tightvnc.org>. # VNCSERVERS="1:useradmin" [root@server ~]# vncserver -name server:1 New 'server:1' desktop is server:3 Starting applications specified in /root/.vnc/xstartup Log file is /root/.vnc/server:3.log [root@server ~]#

на что комп стал отвечать жутким торможением некоторое время и потом отказывались до перезагрузки открыватиься любые программы в KDE. Пробовал смотреть в службах запущен ли vncserver - оказалось он не запущен, к тому же попытка его хапуска давала сбой са ошибкой что опубликована выше.

Дальше я стал смотреть где он что создаёт и нашол что он создает в директории /root/.vnc фыйлы:

Код: Выделить всё

[root@server ~]# cd /root/.vnc
[root@server .vnc]# ls -l
итого 4
-rw------- 1 root root   8 Апр 18 16:41 passwd
-rw-r--r-- 1 root root 697 Апр 18 18:01 server:1.log
-rw-r--r-- 1 root root   5 Апр 18 18:01 server:1.pid
-rwxr-xr-x 1 root root  83 Апр 18 18:01 xstartup*
[root@server .vnc]#

и ещё создаёт в диреториях /root и /home/useradmin такие вот файлы:

Код: Выделить всё

@.DCOPserver_server_:0
.DCOPserver_server__0

Я их пробовал удалять но они создаются заново по команде с консоле (что я писал выше) и чем больше раз я подаю там команду тем их больше.

Короче я помойму всё убил. Что теперь делать? как востоновить чтобы нормально эта программа заработала? И вообще что я сделал не так?
Спасибо сказали:
Серёга
Сообщения: 201
ОС: Windows XP

Re: Помойму Vnc-server-ом убил комп. Help?

Сообщение Серёга »

короче поковыряв его (VNC) немного я всё-таки понял как он запускается и работает: в системе находятся вроде процесс Xvnc а не vncserver.

Теперь вопрос по другому задаю: как войти в систему под обычным юзером? VNC разрешает создать профиль и сервер соответственно только для root а если я пишу обычного юзера под которым сам в системе нахожусь то он не может запустить сервер.

Как сделать чтобы можно было входить под обычным юзером?

И второй вопрос тут же:

в папке /etc/rc.d/init.d лежит скрипт автозапуска этой службы. Вот его текст(он не мной писан фирменный от мандривы):

Код: Выделить всё

[root@server ~]# cat /etc/rc.d/init.d/vncserver
#!/bin/bash
#
# chkconfig: - 91 35
# description: Starts and stops vncserver. \
#              used to provide remote X administration services.

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

# Check that networking is up.
[ ${NETWORKING} = "no" ] && exit 0

VNCSERVERS=""
[ -f /etc/sysconfig/vncservers ] && . /etc/sysconfig/vncservers

prog=$"VNC server"

start() {
    gprintf "Starting %s: " "$prog"
    ulimit -S -c 0 >/dev/null 2>&1
    RETVAL=0
    for display in ${VNCSERVERS}
    do
        gprintf "%s " "${display}"
        initlog $INITLOG_ARGS -c \
        "su --login ${display##*:} -c \"cd ~${display##*:} && [ -f .vnc/passwd ] && vncserver :${display%%:*}\""
         RETVAL=$?
        [ "$RETVAL" -ne 0 ] && break
    done
    [ "$RETVAL" -eq 0 ] && success $"vncserver startup" || \
        failure "vncserver start"
    echo
    [ "$RETVAL" -eq 0 ] && touch /var/lock/subsys/vncserver
}

stop() {
    gprintf "Shutting down %s: " "$prog"
    for display in ${VNCSERVERS}
    do
        gprintf "%s " "${display}"
        unset BASH_ENV ENV
        initlog $INITLOG_ARGS -c \
            "su ${display##*:} -c \"vncserver -kill :${display%%:*} >/dev/null 2>&1\""
    done
    RETVAL=$?
    [ "$RETVAL" -eq 0 ] && success $"vncserver shutdown" || \
        failure "vncserver shutdown"
    echo
    [ "$RETVAL" -eq 0 ] && rm -f /var/lock/subsys/vncserver
}

# See how we were called.
case "$1" in
  start)
        start
       ;;
  stop)
        stop
       ;;
  restart|reload)
        stop
        start
       ;;
  condrestart)
        if [ -f /var/lock/subsys/vncserver ]; then
            stop
            start
        fi
       ;;
  status)
        status Xvnc
       ;;
  *)
        gprintf "Usage: %s {start|stop|restart|condrestart|status}\n" "$0"
        exit 1
esac

[root@server ~]#

При его запуске хоть через меню служб, хоть через консоль он выдаёт вот такое сообщение:

Код: Выделить всё

[root@server ~]# /etc/init.d/vncserver start
Запускается VNC server: 1:useradmin WARNING: initlog is deprecated and will be removed in a future release
                                                                [ СБОЙ ]
[root@server ~]#

Ему что-то не нравится в файле initlog если я правильно понял. Как это устранить?
Спасибо сказали: