LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Starting Xsession remotely, help (https://www.linuxquestions.org/questions/slackware-14/starting-xsession-remotely-help-476107/)

kniwor 08-21-2006 11:46 PM

Starting Xsession remotely, help
 
ok, i need to start an Xsession remotely on another comp, i have to root for bot remote comp and existing comp and also physical acess to both, i installed tightvnc, but it starts the session in some window manager i dont like, i need to start it in gnome, since it is on lan bandwidth is not a problem, i can use x11vnc to connect to that display, but first i need to start it on a virtual terminal there. help here plaease, also what command can i use to know which display are already running. Sorry for any questions that do not make sense, i have not much idea of this.

ryanoa 08-22-2006 12:26 AM

You can change the window manager that tightVNC uses by editing ~/.vnc/xstartup.

The last line will say "fvwm &" or something similar. Change this to "gnome &". That should get you into gnome (I've never used gnome with tightvnc so I could be wrong).

As for the display #,
Every time you start a new instance of the vnc server on the remote computer it will use the next available display. This will usually be display :1. But, if you start another instance it will be display :2.

drj000 08-22-2006 01:11 AM

You'll probably actually need to change it to gnome-session, rather than gnome.
Also, instead of it being "gnome-session &", I would put
Code:

gnome-session
vncserver -kill "$DISPLAY"

That way, your VNC server will actually end when you shut down gnome.

kniwor 08-22-2006 01:59 AM

sorry that did not work, it is still not gnome, no difference.

kniwor 08-22-2006 02:00 AM

#!/bin/sh

[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
xsetroot -solid grey
vncconfig -iconic &
xterm -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
gnome-session &


here is the xstartup

kniwor 08-22-2006 10:14 AM

sorry for th trouble, and for multiple posting, but it is working now... a reboot did the job. thanks.


All times are GMT -5. The time now is 01:24 AM.