LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   How to start x0rfbserver automatically? (https://www.linuxquestions.org/questions/linux-software-2/how-to-start-x0rfbserver-automatically-65775/)

fraglord 06-15-2003 02:52 PM

How to start x0rfbserver automatically?
 
hello,

i would like to start the x0rfbserver on my machine before anybody is logged in! so that everybody can login as everybody!
dont know which script is responsable for this hope you can help me guys :confused:

MasterC 06-16-2003 02:18 AM

Normally to start an application prior to anyone logging in you place the application to execute (using full PATH) in rc.local The location of that file is dependant upon your distro, check /etc and /etc/rc.d

Also, since I am unaware, could you expand on what x0rfbserver is, and more importantly, why you want to be able to login as anyone from anyone???

Cool

fraglord 06-16-2003 05:23 PM

x0rfbserver is a program that shows you the exact 0 display and doenst open another xwindow session like the normal vnc!
i dont htink its the right playe to install it in the initta on my suse system because it has to start after xwindows is launched. so better add a line to the config of kdm?
but i dont know how to do that right :(

MasterC 06-16-2003 07:23 PM

If it has to load after X starts, then it probably depends on how you startx. It looks like you start from a graphical login manager. If that is so, you probably need to edit the corresponding wm entry to start that wm. However that's distro specific and sometimes can be A LOT of work. I prefer the "startx" way of getting to X. Then all you will need to do is edit your .xinitrc file and add, with full path:
/path/to/application/application &
exec /path/to/window/manager/windowmanager

Cool

fraglord 06-17-2003 04:48 PM

well, i guess thats too complicated to start this program automatically. so i tried to start it over a ssh connection but it doesnt start, seems not to use display 0 :( X11 forwaridn is enadbled on ssh server and ssh client and the display offest is set to 0!

fraglord 06-18-2003 09:54 AM

here is what i get when i start the x0rfbserver:

X connection to localhost:1.0 broken (explicit kill or server shutdown).

as i said the X11 forwarding is enabled on the server and inc lient ( putty from windows). the display offset is set to 0. dont know whats wrong :(

MasterC 06-18-2003 10:50 AM

Yah, me neither. I've never quite mastered the art of starting X remotely. There's quite a few threads on it, I just can't seem to get them to work for me. Supposedly it's extremely easy:
xhost +
And then startx, but I don't seem to be able to get that to work :( ;)

Good Luck.

Cool

doctorwebbox 06-20-2003 01:51 PM

Using Gnome
 
I have been using Gnome and I get it to start by going to the main menu Configuration>GNOME>Advanced>Sessions and sticking it in the Startup Programs tab. Unfortunately (for me anyway) it open a little window on the desktop and in the window lsit at the bottom. I want it to just run silently behind the scenes. I can't figure out how to get it to run on startup with KDE though.


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