[SLL] VNC issue
Paul Franz
paul at eucleides.com
Tue Mar 10 19:38:08 PDT 2009
On Tue, March 10, 2009 4:39 pm, Andrew Sweger wrote:
> On Tue, 10 Mar 2009, Paul Franz wrote:
>
>> [paul at Beaker paul]$ cat .vnc/xstartup
>> #!/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 &
>> #twm &
>
> If /etc/vnc/xstartup is executable, the script never gets past the exec
> call.
xstartup is executable. It is in /home/paul/.vnc though.
However, the way I run it is as user paul is:
[paul at Beaker paul]$ vncserver :10
Running .vnc/xstartup :10 doesn't do the trick.
Did you see the screenshot on the client?
<http://eucleides.com/~paul/VNC-2.jpg>
That shows it works. I can ssh to the server, login as any other user and run:
vncserver :n and after it asks the password to use it creates the xstartup file and
then from any Java enabled browser, I can enter the URI beaker.eucleides.com:m
where m=5800+n
And in a few moments a Java window opens but it is full screen size and only has a
term window in it. I could not figure out how to run any x software. At this point the
xstartup file looks like this:
# 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 &
So on the server I do:
vncserver -kill :n (I have used various values for n)
Then edit the xstartup file as way above and restart with
vncserver :n and return to the client and reload the URL and you get what's in the
screen shot.
So, that works snazzy except I want the screen to fill the client's wide screen and
would be nice to have tab completion in terminal screens. Sound even comes through,
it's cool.
>
> --
> Andrew B. Sweger -- The great thing about multitasking is that several
> things can go wrong at once.
>
--
Paul Franz
425.440.9505 (O)
425.241.1618 (C)
More information about the linux-list
mailing list