How to specify a fontpath so xstartup won't complain?
This question is related to starting xfce for use with tightVNC. The ~/.vnc/xstartup script that runs when vncserver starts gives an error message each time: Couldn't start Xvnc; trying default font path Please set correct font path in the vncserver script. My vncserver script in ~/.vnc/xstartup is: -- xrdb $HOME/.Xresources # I picked these two out of about 12 fontpaths in xorg.conf: FontPath = /usr/lib/X11/fonts/misc/,/usr/lib/X11/fonts/75dpi/ xsetroot -solid grey xterm -geometry 80x24+10+10 -ls -title $VNCDESKTOP Desktop # Finally, launch XFce window manager exec xfwm xsetroot -solid black --- Xfce _appears_ to be running on the server but I'd really like to have a solid xstartup that didn't complain. Larry -- Larry Alkoff N2LA - Austin TX Using Thunderbird on Slackware Linux ___ VNC-List mailing list VNC-List@realvnc.com To remove yourself from the list visit: http://www.realvnc.com/mailman/listinfo/vnc-list
VNC cut copy paste using xinetd does not work vncconfig not loading from xstartup
I have VNC enterprize 4.1 running on a Redhat EL4 server through xinetd. All configurations are as specified and VNC works with KDE desktop. But! The cut/copy/paste does not work. vncconfig is not being loaded at startup. James W. in several posts (per google on vnc xinetd xstartup vncconfig) states to add vncconfig -nowin to the xstartup file. It was already in the xstartup file so I moved it around without any success. I renamed the xstartup file xstartup.old in /etc/vnc and reconnected to my server. I found that using XVnc with xinetd does not execute the xstartup file because I logged into the server. I found one post that stated that xinetd and Xvnc would not use the xstartup but it did not specify how to get vncconfig to load. Does anyone have any suggestions? Cut/copy/paste would be nice for many things. Is this a bug? Thank you Joe ___ VNC-List mailing list VNC-List@realvnc.com To remove yourself from the list visit: http://www.realvnc.com/mailman/listinfo/vnc-list
Multiple Window managers in xstartup?
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I'm faced with the following situation... I have to access some Solaris boxen and Linux boxen, but my home directory is in shared storage that is nfs-mounted to them all... So regardless of which server I'm on, I have the same .vnc directory, with one xstartup file. I figured that I could get around this by using a simple conditional in the xstartup to figure out if it was on a Solaris box or Linux box. My Linux boxen seem to work fine, but trying to use dtwm for my Solaris boxen doesn't seem to work. I just get the rootweave desktop. Here is my xstartup file: #!/bin/sh os=`uname -s` # Red Hat Linux VNC session startup script if [ $os -eq Linux ] then exec /etc/X11/xinit/xinitrc gnome-session elif [ $os -eq SunOS ] then exec /usrs/bkeefer/.vnc/xinitrc xrdb $HOME/.Xresources DTXSERVERLOCATION=remote SESIONTYPE=altDt SDT_ALT_SESSION=/usr/dt/bin/dtsession SDT_ALT_HELLO=/usr/dt/bin/dthello export DTXSERVERLOCATION SESIONTYPE SDT_ALT_SESSION SDT_ALT_HELLO /usr/dt/bin/Xsession else fvwm fi Has anyone been able to make two or more window managers peacefully co-exist in the xstartup file? Or do your fresh eyes see something that I'm just overlooking? Just asking - -- Brad Keefer -- TEKSystems Consultant [EMAIL PROTECTED] Build Environment Support (919)392-1101 == Don't bother just to be better than your contemporaries or predecessors. Try to be better than yourself. -- William Faulkner -BEGIN PGP SIGNATURE- Version: PGP 8.1 iQA/AwUBQyAvY6JgqKjOu96LEQLxOACg+wDeFGhQbwLzyjm3BCpzvtsEM5AAoO/z NhjCrJzEoDaw5Vm9sYrOCH8x =WKYR -END PGP SIGNATURE- ___ VNC-List mailing list VNC-List@realvnc.com To remove yourself from the list visit: http://www.realvnc.com/mailman/listinfo/vnc-list
RE: Multiple Window managers in xstartup?
Brad, Are you sure that the SunOS clause is being run? Why are you not simply running dtsession directly: /usr/dt/bin/dtsession? What happens if you run it directly from within your window-managerless VNC desktop? Regards, Wez @ RealVNC Ltd. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Brad Keefer Sent: 08 September 2005 13:33 To: vnc-list@realvnc.com Subject: Multiple Window managers in xstartup? -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I'm faced with the following situation... I have to access some Solaris boxen and Linux boxen, but my home directory is in shared storage that is nfs-mounted to them all... So regardless of which server I'm on, I have the same .vnc directory, with one xstartup file. I figured that I could get around this by using a simple conditional in the xstartup to figure out if it was on a Solaris box or Linux box. My Linux boxen seem to work fine, but trying to use dtwm for my Solaris boxen doesn't seem to work. I just get the rootweave desktop. Here is my xstartup file: #!/bin/sh os=`uname -s` # Red Hat Linux VNC session startup script if [ $os -eq Linux ] then exec /etc/X11/xinit/xinitrc gnome-session elif [ $os -eq SunOS ] then exec /usrs/bkeefer/.vnc/xinitrc xrdb $HOME/.Xresources DTXSERVERLOCATION=remote SESIONTYPE=altDt SDT_ALT_SESSION=/usr/dt/bin/dtsession SDT_ALT_HELLO=/usr/dt/bin/dthello export DTXSERVERLOCATION SESIONTYPE SDT_ALT_SESSION SDT_ALT_HELLO /usr/dt/bin/Xsession else fvwm fi Has anyone been able to make two or more window managers peacefully co-exist in the xstartup file? Or do your fresh eyes see something that I'm just overlooking? Just asking - -- Brad Keefer -- TEKSystems Consultant [EMAIL PROTECTED] Build Environment Support (919)392-1101 == Don't bother just to be better than your contemporaries or predecessors. Try to be better than yourself. -- William Faulkner -BEGIN PGP SIGNATURE- Version: PGP 8.1 iQA/AwUBQyAvY6JgqKjOu96LEQLxOACg+wDeFGhQbwLzyjm3BCpzvtsEM5AAoO/z NhjCrJzEoDaw5Vm9sYrOCH8x =WKYR -END PGP SIGNATURE- ___ VNC-List mailing list VNC-List@realvnc.com To remove yourself from the list visit: http://www.realvnc.com/mailman/listinfo/vnc-list ___ VNC-List mailing list VNC-List@realvnc.com To remove yourself from the list visit: http://www.realvnc.com/mailman/listinfo/vnc-list
Re: Multiple Window managers in xstartup?
Here is mine. It works fine on Solaris 8 10, as well as Linux: #!/bin/sh # Red Hat Linux VNC session startup script [ -r $HOME/.Xresources ] xrdb $HOME/.Xresources xsetroot -solid grey xterm -geometry 80x24+10+10 -ls -title $VNCDESKTOP Desktop vncconfig -nowin if [ -f /usr/bin/startkde ]; then /usr/bin/startkde elif [ -f /usr/dt/bin/dtwm ]; then /usr/dt/bin/dtwm elif [ -f /usr/bin/gnome-session ]; then /usr/bin/gnome-session else twm fi Brad Keefer wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I'm faced with the following situation... I have to access some Solaris boxen and Linux boxen, but my home directory is in shared storage that is nfs-mounted to them all... So regardless of which server I'm on, I have the same .vnc directory, with one xstartup file. I figured that I could get around this by using a simple conditional in the xstartup to figure out if it was on a Solaris box or Linux box. My Linux boxen seem to work fine, but trying to use dtwm for my Solaris boxen doesn't seem to work. I just get the rootweave desktop. Here is my xstartup file: #!/bin/sh os=`uname -s` # Red Hat Linux VNC session startup script if [ $os -eq Linux ] then exec /etc/X11/xinit/xinitrc gnome-session elif [ $os -eq SunOS ] then exec /usrs/bkeefer/.vnc/xinitrc xrdb $HOME/.Xresources DTXSERVERLOCATION=remote SESIONTYPE=altDt SDT_ALT_SESSION=/usr/dt/bin/dtsession SDT_ALT_HELLO=/usr/dt/bin/dthello export DTXSERVERLOCATION SESIONTYPE SDT_ALT_SESSION SDT_ALT_HELLO /usr/dt/bin/Xsession else fvwm fi Has anyone been able to make two or more window managers peacefully co-exist in the xstartup file? Or do your fresh eyes see something that I'm just overlooking? Just asking - -- Brad Keefer -- TEKSystems Consultant [EMAIL PROTECTED] Build Environment Support (919)392-1101 == Don't bother just to be better than your contemporaries or predecessors. Try to be better than yourself. -- William Faulkner -BEGIN PGP SIGNATURE- Version: PGP 8.1 iQA/AwUBQyAvY6JgqKjOu96LEQLxOACg+wDeFGhQbwLzyjm3BCpzvtsEM5AAoO/z NhjCrJzEoDaw5Vm9sYrOCH8x =WKYR -END PGP SIGNATURE- ___ VNC-List mailing list VNC-List@realvnc.com To remove yourself from the list visit: http://www.realvnc.com/mailman/listinfo/vnc-list ___ VNC-List mailing list VNC-List@realvnc.com To remove yourself from the list visit: http://www.realvnc.com/mailman/listinfo/vnc-list
Re: Multiple Window managers in xstartup?
James Weatherall wrote: Brad, Are you sure that the SunOS clause is being run? Why are you not simply running dtsession directly: /usr/dt/bin/dtsession? Because, if you want a session that is as close to a real CDE login session, there is alot more that /usr/dt/Xsession does than just run dtsession. If this really is what Brad wants, then I think he'll get the best results from editing his xstartup file to have nothing run (at least for Solaris) and then start vncserver with the '-query localhost' argument. His first connectino with VNC viewer will give him the DtLogin screen and he'll have to login, but this method gives the most identical login environment to sitting at the machine itself. -Kyle What happens if you run it directly from within your window-managerless VNC desktop? ___ VNC-List mailing list VNC-List@realvnc.com To remove yourself from the list visit: http://www.realvnc.com/mailman/listinfo/vnc-list
vncserver won't start xterm, twm from .vnc/xstartup
Hello, We use many Solaris (8 9) machines to create virtual desktops (Xvnc), and have done so successfully for years. However, one Solaris 9 machine has us stumped, because .vnc/xstartup won't create xterm or twm. However, after Xvnc is started, one can successfully force xterm and twm into them via: $ DISPLAY=VNC desktop xterm $ DISPLAY=VNC desktop twm However, we shouldn't have to do it this way. Here's our .vnc/xstartup contents: #!/bin/sh [ -r $HOME/.Xresources ] xrdb $HOME/.Xresources xsetroot -solid grey xterm -geometry 80x24+10+10 -ls -title $VNCDESKTOP Desktop twm Basically just the default one (minus the vncconfig line). The .vnc/VNC desktop.log file contents (first half) are: Xvnc Free Edition 4.1.1 - built Mar 22 2005 15:01:29 Copyright (C) 2002-2005 RealVNC Ltd. See http://www.realvnc.com for information on VNC. Underlying X server release 0, unknown Tue Aug 30 14:51:39 2005 vncext: VNC extension running! vncext: Listening for VNC connections on port 5902 vncext: Listening for HTTP connections on port 5802 vncext: created VNC server for screen 0 vncext: Desktop name 'cde:2 ()' error opening security policy file /usr/openwin/lib/X11/xserver/SecurityPolicy Could not init font path element /usr/dt/config/xfonts/C/, removing from list! Xlib: connection to :2.0 refused by server^M Xlib: No protocol specified It's the last two lines in particular that are different from our working Solaris machines' VNC virtual desktops. One peculiarity that may be worth mentioning is that permissions on /tmp/.X11-* are these on the bad machine (I'm kpl): drwxrwxrwt 2 kpl misc 176 Aug 30 14:51 .X11-pipe drwxrwxrwt 2 kpl misc 176 Aug 30 14:51 .X11-unix and these on a couple sampled good machines: drwxrwxr-x 2 root root 176 Aug 25 12:07 .X11-pipe drwxrwxr-x 2 root root 176 Aug 25 12:07 .X11-unix I had removed -fr /tmp/.X11-* on the bad machine, but they got subsequently recreated the same way (with kpl ownership). I don't know that this has anything to do with it, though. -Kurt Lloyd, [EMAIL PROTECTED] ___ VNC-List mailing list VNC-List@realvnc.com To remove yourself from the list visit: http://www.realvnc.com/mailman/listinfo/vnc-list
logs and xstartup file from solaris vnc - can't get dtsession to start - still getting grey xwindow
hello, subject line says it all. I posted a previous message, basically I installed solaris and it ran a few times with the 'twm' as the desktop. I changed it to the 'dtsession' with the correct path, but it still shows grey xwindow. Now, it has the 2 purple folders that show when you first log into a CDE session. I can open and close them, browse through them, but it doesn't show the rest of the CDE desktop. Most of the desktop is still the grey Xwindow. I've attached the log files and a copy of the xstartup file. If you feel it's necessary, I can also attach the vncserver file I modified. I have the same one working on another solaris box and it works fine - but if that helps you to troubleshoot this, I'll be glad to do that. Thank you, Oskar 16/06/05 11:06:48 Xvnc version 3.3.3r2 16/06/05 11:06:48 Copyright (C) ATT Laboratories Cambridge. 16/06/05 11:06:48 All Rights Reserved. 16/06/05 11:06:48 See http://www.uk.research.att.com/vnc for information on VNC 16/06/05 11:06:48 Desktop name 'X' (server:2) 16/06/05 11:06:48 Protocol version supported 3.3 16/06/05 11:06:48 Listening for VNC connections on TCP port 5902 16/06/05 11:06:48 Listening for HTTP connections on TCP port 5802 16/06/05 11:06:48 URL http://server:5802 16/06/05 11:07:00 Got connection from client 192.1.1.201 16/06/05 11:07:00 Protocol version 3.5 16/06/05 11:07:00 Ignoring minor version mismatch 16/06/05 11:07:04 Pixel format for client 192.Warning: Name: helpWidget Class: DtHelpDialog Could not find DtNhelpVolume. xterm: fatal IO error 32 (Broken pipe) or KillClient on X server unix:2.0 X connection to unix:2.0 broken (explicit kill or server shutdown). X connection to unix:2.0 broken (explicit kill or server shutdown). X connection to unix:2.0 broken (explicit kill or server shutdown). X connection to unix:2.0 broken (explicit kill or server shutdown). lient 192.1.1.201 16/06/05 11:07:04 rfbProcessClientNormalMessage: ignoring unknown encoding type -247 16/06/05 11:07:04 rfbProcessClientNormalMessage: ignoring unknown encoding type -240 16/06/05 11:07:04 rfbProcessClientNormalMessage: ignoring unknown encoding type -239 16/06/05 11:07:04 rfbProcessClientNormalMessage: ignoring unknown encoding type -232 16/06/05 11:07:04 rfbProcessClientNormalMessage: ignoring unknown encoding type -32 16/06/05 11:07:04 rfbProcessClientNormalMessage: ignoring unknown encoding type -224 16/06/05 11:07:04 rfbProcessClientNormalMessage: ignoring unknown encoding type -223 16/06/05 11:07:11 Client 192.1.1.201 gone 16/06/05 11:07:11 Statistics: 16/06/05 11:07:11 key events received 0, pointer events 147 16/06/05 11:07:11 framebuffer updates 43, rectangles 110, bytes 17916 16/06/05 11:07:11 hextile rectangles 110, bytes 17916 16/06/05 11:07:11 raw bytes equivalent 850949, compression ratio 47.496595 16/06/05 10:51:49 Xvnc version 3.3.3r2 16/06/05 10:51:49 Copyright (C) ATT Laboratories Cambridge. 16/06/05 10:51:49 All Rights Reserved. 16/06/05 10:51:49 See http://www.uk.research.att.com/vnc for information on VNC 16/06/05 10:51:49 Desktop name 'X' (server:1) 16/06/05 10:51:49 Protocol version supported 3.3 16/06/05 10:51:49 Listening for VNC connections on TCP port 5901 16/06/05 10:51:49 Listening for HTTP connections on TCP port 5801 16/06/05 10:51:49 URL http://server:5801 16/06/05 10:52:03 httpd: get '' for 192.1.1.201 16/06/05 10:52:03 httpd: defaulting to 'index.vnc' 16/06/05 10:52:06 httpd: get 'favicon.ico' for 192.1.1.201 16/06/05 10:52:06 httpProcessInput:Warning: Name: helpWidget Class: DtHelpDialog Could not find DtNhelpVolume. 201 16/06/05 10:52:06 httpd: get 'vncviewer.jar' for 192.1.1.201 16/06/05 10:52:12 Got connection from client 192.1.1.201 16/06/05 10:52:12 Protocol version 3.3 16/06/05 10:52:12 Using hextile encoding for client 192.1.1.201 16/06/05 10:52:13 Pixel format for client 192.1.1.201: 16/06/05 10:52:13 8 bpp, depth 8 16/06/05 10:52:13 true colour: max r 7 g 7 b 3, shift r 0 g 3 b 6 16/06/05 10:52:13 no translation needed 16/06/05 10:52:19 Client 192.1.1.201 gone 16/06/05 10:52:19 Statistics: 16/06/05 10:52:19 key events received 0, pointer events 58 16/06/05 10:52:19 framebuffer updates 10, rectangles 22, bytes 6612 16/06/05 10:52:19 hextile rectangles 22, bytes 6612 16/06/05 10:52:19 raw bytes equivalent 799228, compression ratio 120.875378 16/06/05 10:53:07 httpd: get '' for 192.1.1.201 16/06/05 10:53:07 httpd: defaulting to 'index.vnc' 16/06/05 10:53:08 httpd: get 'vncviewer.jar' for 192.1.1.201 16/06/05 10:53:09 httpd: get 'vncviewer.jar' for 192.1.1.201 16/06/05 10:53:14 Got connection from client 192.1.1.201 16/06/05 10:53:14 Protocol version 3.3 16/06/05 10:53:15 Using hextile encoding for client 192.1.1.201 16/06/05 10:53:15 Pixel format for client 192.1.1.201: 16/06/05 10:53:15 8 bpp, depth 8 16/06/05 10:53:15 true colour: max r 7 g 7 b 3, shift r 0 g 3 b 6 16/06/05 10:53:15 no translation needed 16/06/05 10:55:04 Client 192.1.1.201 gone
Re: vncserver shouldn't run .vnc/xstartup when xdmcp options are used.
Here's the patch. I'm surprised I haven't seen any response to this message. Maybe I'm the only one who uses the -query option?? -Kyle - --- vncserver Tue Jan 25 16:28:29 2005 +++ vncserver.new Tue Jan 25 16:25:08 2005 @@ -54,7 +54,8 @@ # Check command line options ParseOptions(-geometry,1,-depth,1,-pixelformat,1,-name,1,-kill,1, - -help,0,-h,0,--help,0); + -help,0,-h,0,--help,0,-query,1,-broadcast,0, + -indirect,1); Usage() if ($opt{'-help'} || $opt{'-h'} || $opt{'--help'}); @@ -147,6 +148,9 @@ $cmd .= -rfbwait 3; $cmd .= -rfbauth $vncUserDir/passwd; $cmd .= -rfbport $vncPort; +$cmd .= -query $opt{'-query'} if ($opt{'-query'}); +$cmd .= -indirect $opt{'-indirect'} if ($opt{'-indirect'}); +$cmd .= -broadcast if ($opt{'-broadcast'}); # Add font path and color database stuff here, e.g.: # @@ -157,6 +161,7 @@ foreach $arg (@ARGV) { $cmd .= . quotedString($arg); } + $cmd .=. quotedString($desktopLog) . 21; # Run $cmd and record the process ID. @@ -168,36 +173,38 @@ sleep(3); -warn \nNew '$desktopName' desktop is $host:$displayNumber\n\n; +warn \nNew '$desktopName' desktop is $host:$displayNumber\n; +warn Log file is $desktopLog\n\n; -# Create the user's xstartup script if necessary. +if ( !($opt{'-broadcast'} || $opt{'-indirect'} || $opt{'-query'})) { -if (!(-e $vncUserDir/xstartup)) { -warn Creating default startup script $vncUserDir/xstartup\n; -open(XSTARTUP, $vncUserDir/xstartup); -print XSTARTUP $defaultXStartup; -close(XSTARTUP); -chmod 0755, $vncUserDir/xstartup; -} +# Create the user's xstartup script if necessary. +if (!(-e $vncUserDir/xstartup)) { +warn Creating default startup script $vncUserDir/xstartup\n; +open(XSTARTUP, $vncUserDir/xstartup); +print XSTARTUP $defaultXStartup; +close(XSTARTUP); +chmod 0755, $vncUserDir/xstartup; +} -# Run the X startup script. +# Run the X startup script. -warn Starting applications specified in $vncUserDir/xstartup\n; -warn Log file is $desktopLog\n\n; +warn Starting applications specified in $vncUserDir/xstartup\n\n; -# If the unix domain socket exists then use that (DISPLAY=:n) otherwise use -# TCP (DISPLAY=host:n) +# If the unix domain socket exists then use that (DISPLAY=:n) otherwise use+# TCP (DISPLAY=host:n) -if (-e /tmp/.X11-unix/X$displayNumber || --e /usr/spool/sockets/X11/$displayNumber) -{ -$ENV{DISPLAY}= :$displayNumber; -} else { -$ENV{DISPLAY}= $host:$displayNumber; -} -$ENV{VNCDESKTOP}= $desktopName; +if (-e /tmp/.X11-unix/X$displayNumber || +-e /usr/spool/sockets/X11/$displayNumber) +{ +$ENV{DISPLAY}= :$displayNumber; +} else { +$ENV{DISPLAY}= $host:$displayNumber; +} +$ENV{VNCDESKTOP}= $desktopName; -system($vncUserDir/xstartup . quotedString($desktopLog) . 21 ); +system($vncUserDir/xstartup . quotedString($desktopLog) . 21 ); +} exit; -- _ -ooO( )Ooo Kyle J. McDonald (o o) Systems Support Engineer Sun Microsystems Inc. | [EMAIL PROTECTED] 1 Network Drive \\\// voice: (781) 442-2184 Burlington, MA 01803 (o o)fax: (781) 442-1542 ooO(_)Ooo- ___ VNC-List mailing list VNC-List@realvnc.com To remove yourself from the list visit: http://www.realvnc.com/mailman/listinfo/vnc-list
Re: vncserver shouldn't run .vnc/xstartup when xdmcp options are used.
Kyle McDonald said: Here's the patch. I'm surprised I haven't seen any response to this message. Maybe I'm the only one who uses the -query option?? -Kyle Vncserver is just a script for convenience (like startx). Once you get to a certain point of complexity, it doesn't make sense to use it. Most of the time -query is used you are passing a more precise set of options to the X server, so it makes sense to use Xvnc directly. -- William Hooper ___ VNC-List mailing list VNC-List@realvnc.com To remove yourself from the list visit: http://www.realvnc.com/mailman/listinfo/vnc-list
Re: vncserver shouldn't run .vnc/xstartup when xdmcp options are used.
William Hooper wrote: Kyle McDonald said: Here's the patch. I'm surprised I haven't seen any response to this message. Maybe I'm the only one who uses the -query option?? -Kyle Vncserver is just a script for convenience (like startx). Once you get to a certain point of complexity, it doesn't make sense to use it. I guess. But there is functionality in 'vncserver' that is useful even when -query is used. Like the code that searches for an unused vnc port. Most of the time -query is used you are passing a more precise set of options to the X server, so it makes sense to use Xvnc directly. I run login servers that many of my users run vncservers on. I find that all my users are much happier with their environment in their vnc session of they go through the full login process and environment setup that XDMCP gives you. I noticably less support calls when I started educatingmy users on this option. Unfortunately the only support calls I still get are when people try to use the -query and they have clients setup in their xstartup script. That only causes problems. It doesn't seem to be that complicated to skip the xstartup when XDMCP is in use. I can't have all the users running Xvnc directly with no mechanism to search for an empty display number, and none of the other conviences 'vncserver' supplies. I'd basically end up rewriting a parallel 'vncserver' script myself. -Kyle -- _ -ooO( )Ooo Kyle J. McDonald (o o) Systems Support Engineer Sun Microsystems Inc. | [EMAIL PROTECTED] 1 Network Drive \\\// voice: (781) 442-2184 Burlington, MA 01803 (o o)fax: (781) 442-1542 ooO(_)Ooo- ___ VNC-List mailing list VNC-List@realvnc.com To remove yourself from the list visit: http://www.realvnc.com/mailman/listinfo/vnc-list
vncserver shouldn't run .vnc/xstartup when xdmcp options are used.
Hi, I might be wrong, but I always have problems when I run vncserver with -query, -indirect, or -broadcast, because not only do the XDMCP windows appear but the clients in my .vnc/xstartup script also try to connect. Sometimes I even end up with 2 windows mangers trying to connect, and worse sometimes the 'wrong' one starts first. It seems to me that vncserver should skip the xstartup if any of those options are used. Currently I make sure xstartup is empty, or has everything commented out when I use these options, but it's a pain to edit the file back and forth. I wish it could just be there for when I need it and ignored the rest of the time. I have a patch for the vncserver script, but Im not sure I started wit the latest version. Please let me know if you think the patch would be useful. -Kyle -- _ -ooO( )Ooo Kyle J. McDonald (o o) Systems Support Engineer Sun Microsystems Inc. | [EMAIL PROTECTED] 1 Network Drive \\\// voice: (781) 442-2184 Burlington, MA 01803 (o o)fax: (781) 442-1542 ooO(_)Ooo- ___ VNC-List mailing list VNC-List@realvnc.com To remove yourself from the list visit: http://www.realvnc.com/mailman/listinfo/vnc-list
xstartup gnome
Hi there, I have similar problem to one described in [2002-11-15] gnome-session:you're already running a session manager Red Hat 8 I'm using Linux Slackware for vncserver and WinXP as viewer. I changed xstartup file so it looks like: --- #!/bin/sh [ -r $HOME/.Xresources ] xrdb $HOME/.Xresources xsetroot -solid grey xterm -geometry 80x24+10+10 -ls -title $VNCDESKTOP Desktop exec gnome-session --- But when I connect to VNCserver via win32viewer, I have only terminal access (gray window), no desktop. Can someone help me to solve the problem? Here's log file: --- Fri Mar 4 11:35:57 2005 vncext: VNC extension running! vncext: Listening for VNC connections on port 5901 vncext: Listening for HTTP connections on port 5801 vncext: created VNC server for screen 0 gnome-session: you're already running a session manager Fri Mar 4 11:36:16 2005 Connections: accepted: 193.2.14.50::1647 SConnection: Client needs protocol version 3.8 SConnection: Client requests security type VncAuth(2) Fri Mar 4 11:36:18 2005 VNCSConnST: Server default pixel format depth 16 (16bpp) little-endian rgb565 VNCSConnST: Client pixel format depth 8 (8bpp) rgb max 3,3,3 shift 4,2,0 Fri Mar 4 11:36:30 2005 Connections: closed: 193.2.14.50::1647 (Clean disconnection) SMsgWriter: framebuffer updates 35 SMsgWriter:ZRLE rects 27, bytes 1748 SMsgWriter:raw bytes equivalent 877408, compression ratio 501.949657 --- Bye! Damjan ___ VNC-List mailing list VNC-List@realvnc.com To remove yourself from the list visit: http://www.realvnc.com/mailman/listinfo/vnc-list
Re: Modifying Xstartup
Jarod.E.Cannicott-1 wrote: I would like to modify the xstartup file so that I can specify certain applications to run at start up. I have found plenty of documentation on how to change the OS as in KDE and gnome, but I am fine with twm as long as I can start up the applications needed automatically. Any help would be greatly appreciated. With twm and the origional vnc-xstartup script, it is just adding the commandline to start the application to the ~/.vnc/xstartup script. There are some details: All commands must be started in the background (add '' at the end of the command) and there is a prefered order. Just start adding one command and see where it fits in. Most likely next to the `xterm ` already in there. With other window- or displaymanagers, it is just following the managers documentation to do so. CBee ___ VNC-List mailing list [EMAIL PROTECTED] To remove yourself from the list visit: http://www.realvnc.com/mailman/listinfo/vnc-list
Modifying Xstartup
I would like to modify the xstartup file so that I can specify certain applications to run at start up. I have found plenty of documentation on how to change the OS as in KDE and gnome, but I am fine with twm as long as I can start up the applications needed automatically. Any help would be greatly appreciated. -jarod c ___ VNC-List mailing list [EMAIL PROTECTED] To remove yourself from the list visit: http://www.realvnc.com/mailman/listinfo/vnc-list
where is the xstartup?
Hi there i can not find the xstartup file, so i can edit it to start KDE, because at the moment all i see is a grey screen. Here is what the console shows when i start the vncserver: :~# vncserver xauth: (argv):1: bad display name .localdomain.fake:1 in add command New 'X' desktop is .localdomain.fake:1 Starting applications specified in /etc/X11/Xsession Log file is /root/.vnc/.localdomain.fake:1.log :~# I do not understand, in /root/.vnc/ there are the following files: -localdomain.fake:1.log -localdomain.fake:2.log -localdomain.fake:3.log -passwd So what am i doing wrong? what am i missing? _ Get your FREE, LinuxWaves.com Email Now! -- http://www.LinuxWaves.com Join Linux Discussions! -- http://Community.LinuxWaves.com ___ VNC-List mailing list [EMAIL PROTECTED] To remove yourself from the list visit: http://www.realvnc.com/mailman/listinfo/vnc-list
Re: where is the xstartup?
aristeidis tsitras said: Hi there i can not find the xstartup file, so i can edit it to start KDE, because at the moment all i see is a grey screen. Here is what the console shows when i start the vncserver: :~# vncserver xauth: (argv):1: bad display name .localdomain.fake:1 in add command This is an issue. New 'X' desktop is .localdomain.fake:1 Starting applications specified in /etc/X11/Xsession It looks like Debian moves it to /etc/X11/Xsession. Log file is /root/.vnc/.localdomain.fake:1.log Looking at the long file should give an indication of why your WM isn't starting. :~# I do not understand, in /root/.vnc/ there are the following files: -localdomain.fake:1.log -localdomain.fake:2.log -localdomain.fake:3.log -passwd You will have to ask on a Debian list why they butcher VNC like this. Combine this and the issue someone else reported with vncpasswd and I think the Debain package is just plain broken. -- William Hooper ___ VNC-List mailing list [EMAIL PROTECTED] To remove yourself from the list visit: http://www.realvnc.com/mailman/listinfo/vnc-list
where is the xstartup?
hi iam running vnc server in a linux box.apparently i cannot see the file called xstartup, so i can edit it to start KDE. VNC exists in the folder /root/.vnc/ what to do? now when i connect from my desktop(winxp), all i see is a grey dotted page). _ Get your FREE, LinuxWaves.com Email Now! -- http://www.LinuxWaves.com Join Linux Discussions! -- http://Community.LinuxWaves.com ___ VNC-List mailing list [EMAIL PROTECTED] To remove yourself from the list visit: http://www.realvnc.com/mailman/listinfo/vnc-list
VNC xstartup examples?
Hi, I've only been experimenting with VNC for a few days now. So far I think it's wonderful. Now I'm wondering if I can get a little more pizzazz in my desktop. Has anybody got a window manger like Gnome or KDE running with VNC? It looks like it's just a matter of editing $HOME/.vnc/xstartup But, I'm still a novice so I'm not too adventurous yet. Is this right if so, do any of you have an example you can share? Thanks, Bruce Ordway ___ VNC-List mailing list [EMAIL PROTECTED] To remove yourself from the list visit: http://www.realvnc.com/mailman/listinfo/vnc-list
Re: VNC xstartup examples?
Ordway, Bruce said: Hi, I've only been experimenting with VNC for a few days now. So far I think it's wonderful. Now I'm wondering if I can get a little more pizzazz in my desktop. Has anybody got a window manger like Gnome or KDE running with VNC? http://faq.gotomyvnc.com/fom-serve/cache/56.html -- William Hooper ___ VNC-List mailing list [EMAIL PROTECTED] To remove yourself from the list visit: http://www.realvnc.com/mailman/listinfo/vnc-list
Re: VNC xstartup examples?
Hi, Take a look at http://www.sourcecodecorner.com/articles/vnc/linux.asp Best regards, Dave Colliver. http://www.FOCUSPortals.com ~~ Your community connected. http://www.ashfieldfocus.com Get your business on the net, http://www.clickprovince.com Collectible dolls from http://www.collectorsdolls.com Web design, hosting, domain registration? http://www.revilloc.com is the answer. Tips, tricks and articles for programmers of all languages on http://www.sourcecodecorner.com Planning a wedding? http://www.bmcweddings.com Advertise your car on http://www.drivingseat.com - Original Message - From: Ordway, Bruce [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Sunday, February 15, 2004 6:28 PM Subject: VNC xstartup examples? Hi, I've only been experimenting with VNC for a few days now. So far I think it's wonderful. Now I'm wondering if I can get a little more pizzazz in my desktop. Has anybody got a window manger like Gnome or KDE running with VNC? It looks like it's just a matter of editing $HOME/.vnc/xstartup But, I'm still a novice so I'm not too adventurous yet. Is this right if so, do any of you have an example you can share? Thanks, Bruce Ordway ___ VNC-List mailing list [EMAIL PROTECTED] To remove yourself from the list visit: http://www.realvnc.com/mailman/listinfo/vnc-list
xstartup
I was wondering how i configure this file so that my gnome desktop or whatever is on my desktop will show when i remote to my linux box. Thanks. ___ VNC-List mailing list [EMAIL PROTECTED] To remove yourself from the list visit: http://www.realvnc.com/mailman/listinfo/vnc-list
Re: xstartup
Philip Ong said: I was wondering how i configure this file so that my gnome desktop or whatever is on my desktop will show when i remote to my linux box. Thanks. http://faq.gotomyvnc.com/fom-serve/cache/56.html -- William Hooper ___ VNC-List mailing list [EMAIL PROTECTED] To remove yourself from the list visit: http://www.realvnc.com/mailman/listinfo/vnc-list
vncserver / xstartup not working
all, i've been trying to setup vncserver and have a few questions.. first off, Debian woody / vncserver 3.3.3r2-20. basically i can start the server, and connect to it sucessfully, but i just get a grey desktop with a curser and nothing else.. i've edited a ~/.vnc/xstartup script, made it executable with no luck.. i've tried the default vnc.conf, and my modified version with no difference.. ~/.vnc/xstartup: - #!/bin/sh #Xsession exec blackbox - i've watched the ~/.vnc/*.log but cant find out any more info as to further troubleshoot whats going on. also spent some time google'ing with no sucess.. if i can eventually get it setup to run blackbox i'd be damn happy, i take it that's possible eh? ANY help appreciated, august ___ VNC-List mailing list [EMAIL PROTECTED] To remove yourself from the list visit: http://www.realvnc.com/mailman/listinfo/vnc-list
Re: xstartup for tightvnc
Hello Tim, TL == Technology Listserves [EMAIL PROTECTED] writes: TL Hello - I have been using standard VNC for some time now, and am TL trying TightVNC for the first time. Is there a different syntax or TL set of commands to use for the xstartup file with tightvnc? I put TL a posting on the tightvnc maillist, however, there is very little TL activity there. Could someone be so kind as to offer a sample TL xstartup for tightvnc that gets the gnome manager to initiate? TL Thanks! Tim The syntax and the purpose of the xstartup are the same in VNC and TightVNC, there should not be differences. So your old xstartup should work fine with TightVNC. I've just tried to make TightVNC start Gnome, and the xstartup with the only line exec gnome-session worked fine. -- With Best Wishes, Constantin ___ VNC-List mailing list [EMAIL PROTECTED] http://www.realvnc.com/mailman/listinfo/vnc-list
xstartup for tightvnc
Hello - I have been using standard VNC for some time now, and am trying TightVNC for the first time. Is there a different syntax or set of commands to use for the xstartup file with tightvnc? I put a posting on the tightvnc maillist, however, there is very little activity there.Could someone be so kind as to offer a sample xstartup for tightvnc that gets the gnome manager to initiate? Thanks! Tim ___ VNC-List mailing list [EMAIL PROTECTED] http://www.realvnc.com/mailman/listinfo/vnc-list
Request for Assistance on xstartup
xstartup looks like this [ -r $HOME/.Xresources ] xrdb $HOME/.Xresources xsetroot -solid grey xterm -geometry 80x24+10+10 -ls -title $VNCDESKTOP Desktop twm I used to run Redhat 7.2 and VNC Server ran beautifully on it. I had no issues getting my gnome desktop through it. I never had to change the config or anything. Just installed and it ran beautifully. I recently changed out the motherboard, processor, and ram and wiped the system. I then installed Redhat 8.0 and downloaded the newer version of VNC Server installing the RPM. Now I can only get the twm desktop. A grey screen and single XTERM. I can not seem to find the correct file that starts up the gnome desktop so I can place it in the xstartup script. I have tried several ways including finding all instances of gnome on the server and replacing twm with each file to in seperate attempts. I could really use a hand here, Many Thanks [EMAIL PROTECTED] John P Harper CCNA / MCP Security Administrator Electronic Data Systems ___ VNC-List mailing list [EMAIL PROTECTED] http://www.realvnc.com/mailman/listinfo/vnc-list
Re: Request for Assistance on xstartup
- Original Message - From: John Harper [EMAIL PROTECTED] xstartup looks like this [ -r $HOME/.Xresources ] xrdb $HOME/.Xresources xsetroot -solid grey xterm -geometry 80x24+10+10 -ls -title $VNCDESKTOP Desktop twm I used to run Redhat 7.2 and VNC Server ran beautifully on it. I had no issues getting my gnome desktop through it. I never had to change the config or anything. Just installed and it ran beautifully. I recently changed out the motherboard, processor, and ram and wiped the system. I then installed Redhat 8.0 and downloaded the newer version of VNC Server installing the RPM. Now I can only get the twm desktop. A grey screen and single XTERM. I can not seem to find the correct file that starts up the gnome desktop so I can place it in the xstartup script. I have tried several ways including finding all instances of gnome on the server and replacing twm with each file to in seperate attempts. I could really use a hand here, Many Thanks The approached used by the packages provided with Redhat use: #!/bin/sh # Red Hat Linux VNC session startup script exec /etc/X11/xinit/xinitrc This way if you decided to change WM using the Redhat tools, your VNC server gets the changes. Also, are you running a graphical desktop using the same user as you are trying to run the VNC server? Gnome has (previously discussed here) issues running two desktops as the same user. Providing the log file might help troubleshoot. -- William Hooper Finally, a good use for Clippy! I see you're trying to email a program to every member of your Outlook Address book. DON'T DO THAT YOU FUCKING MORON! -- Seen on Slashdot.org ___ VNC-List mailing list [EMAIL PROTECTED] http://www.realvnc.com/mailman/listinfo/vnc-list
RE: Xvnc xstartup
-Original Message- From: Lee Allen [mailto:[EMAIL PROTECTED]] I know vncserver can start applications. I must use Xvnc in -inetd mode, to support multiple users and non-persistent sessions. I was just thinking, since inetd starts Xvnc with a user name, it would be nice if it could start the apps specified in .vnc/xstartup or xinitrc, and not require XDMCP. In my case, the login step required by XDMCP is unnecessary ... but unavoidable. If security is not an issue, it is no problem to have inetd start Xvnc including some apps. There are several routes to do so. My idea: Setup a user ('specialuser') and its vncserver setup, including dedicated ~/.vnc/xstartup scripts and vnc-password. Then create an inetd 'commandline' as follows: special-vnc stream tcp nowait specialuser /usr/local/bin/vncserver vncserver -inetd (the above is 1 line). You might add options like '-once' or geometry or depth specifications. However, you can also create a special vncserver script (it's perl, so you must be able to create one) Best NOT to specify the -inetd in the scipt but have that specified from the commandline and pass trough to Xvnc, for easy testing. Note: inetd will start a new session for every connection, so if the sessins do not end automatically, you should specify -once to clear lost sessions. As for the XDMCP options: They are not required if you use inetd, it's just CBee ___ VNC-List mailing list [EMAIL PROTECTED] http://www.realvnc.com/mailman/listinfo/vnc-list
RE: Xvnc xstartup
On 11/06/2002 08:28:59 Beerse, Corni wrote: As for the XDMCP options: They are not required if you use inetd, it's just To break the suspense, I can reveal that the butler slipped cyanide into the cucumber sandwiches But maybe there are alternative endings.;-} -- -- Visit our Internet site at http://www.reuters.com Any views expressed in this message are those of the individual sender, except where the sender specifically states them to be the views of Reuters Ltd. ___ VNC-List mailing list [EMAIL PROTECTED] http://www.realvnc.com/mailman/listinfo/vnc-list
Xvnc xstartup
When Xvnc is run in -inetd mode, is there some reason it does not execute xstartup or .xinitrc ? I realize it can be configured to use XDMCP, I'm just wondering why this simpler mechanism is not utilized. Lee Allen Leadtec Systems, a division of CGS ___ VNC-List mailing list [EMAIL PROTECTED] http://www.realvnc.com/mailman/listinfo/vnc-list
RE: Xvnc xstartup
-Original Message- From: Lee Allen [mailto:[EMAIL PROTECTED]] When Xvnc is run in -inetd mode, is there some reason it does not execute xstartup or .xinitrc ? Yes, -inetd is to be used from inetd (or xinetd or tcpserve or stuf like that) Hence it get started without a real user. Actually, Xvnc never starts xstartup or .xinitrc. It's your startup script that starts both Xvnc and xstartup or .xiinitrc. vncserver is that script for most of you, have a look and try to read what happens. I realize it can be configured to use XDMCP, I'm just wondering why this simpler mechanism is not utilized. It is used as described above. THe reason is the order in which things happen: is it first login and then windows startup, then the .xinitrc and xstartup scripts can be used. Is it first windows startup and then login, it's xdmcp that starts the login. On most linux machines, you can replay this by putting the machine in runlevel 3. Then, at the prompt type `startx` or `xstart` and see the windows come to you. If you don't start the windows but start vncserver, don't be surprised it gives you display :0. Just did the next on my (RH 7.3) linux machine: reboot to runlevel 3: edit /etc/inittab and changed the default runlevel from 5 to 3 then reboot At the text-console, login as a normal user vncserver :0 This gives me the vncserver with display :0 at a unix machine then to have X windows at the console: startx -- :1 Ending with the reverse world: display:0 is in vnc, display:1 is at the display... CBee ___ VNC-List mailing list [EMAIL PROTECTED] http://www.realvnc.com/mailman/listinfo/vnc-list
Re: Xvnc xstartup
I know vncserver can start applications. I must use Xvnc in -inetd mode, to support multiple users and non-persistent sessions. I was just thinking, since inetd starts Xvnc with a user name, it would be nice if it could start the apps specified in .vnc/xstartup or xinitrc, and not require XDMCP. In my case, the login step required by XDMCP is unnecessary ... but unavoidable. -Lee Allen -Original Message- From: Lee Allen [mailto:[EMAIL PROTECTED]] When Xvnc is run in -inetd mode, is there some reason it does not execute xstartup or .xinitrc ? Yes, -inetd is to be used from inetd (or xinetd or tcpserve or stuf like that) Hence it get started without a real user. Actually, Xvnc never starts xstartup or .xinitrc. It's your startup script that starts both Xvnc and xstartup or .xiinitrc. vncserver is that script for most of you, have a look and try to read what happens. I realize it can be configured to use XDMCP, I'm just wondering why this simpler mechanism is not utilized. It is used as described above. THe reason is the order in which things happen: is it first login and then windows startup, then the .xinitrc and xstartup scripts can be used. Is it first windows startup and then login, it's xdmcp that starts the login. On most linux machines, you can replay this by putting the machine in runlevel 3. Then, at the prompt type `startx` or `xstart` and see the windows come to you. If you don't start the windows but start vncserver, don't be surprised it gives you display :0. Just did the next on my (RH 7.3) linux machine: reboot to runlevel 3: edit /etc/inittab and changed the default runlevel from 5 to 3 then reboot At the text-console, login as a normal user vncserver :0 This gives me the vncserver with display :0 at a unix machine then to have X windows at the console: startx -- :1 Ending with the reverse world: display:0 is in vnc, display:1 is at the display... CBee ___ VNC-List mailing list [EMAIL PROTECTED] http://www.realvnc.com/mailman/listinfo/vnc-list ___ VNC-List mailing list [EMAIL PROTECTED] http://www.realvnc.com/mailman/listinfo/vnc-list