LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   problems running xhost with no windows or desktop manager (https://www.linuxquestions.org/questions/linux-newbie-8/problems-running-xhost-with-no-windows-or-desktop-manager-247136/)

iagranat 10-25-2004 12:58 PM

problems running xhost with no windows or desktop manager
 
hi,
i installed red hat 9 on a desktop computer and i need to get the X loading automaticaly and do an autologin with a specific account but without running anything else (like windows manager or desktop manager) except for the command "xhost +", so basicly what i'll have is a clean X screen that enables anyone to "throw" their display on to it.


i tried to create a startup script such as the following:
------------------------
#!/bin/tcsh
setenv DISPLAY :0
/usr/bin/X11/X &
/usr/bin/X11/xhost +
su - username
------------------------

what happend was that the X is now up, i also got the "access control disabled" from the xhost, but when i run the command "xhost" it says "access control enabled".
for some reason the xhost command does not save the current configuration and is always stuck on enabled. the only way to get it to stay is by opening a term window in the X and running the command there, but even then the access control remains disabled as long as the term window is open (which is not good for me). once i close it the access control returns to enabled.
another problem i have with the xhost is that whenever i run the command (no matter what arguments i add) it always pops the display where the X is running.

if anyone has ever encounterd any of this problems or has a better way of doing this, let me know.

thanks!


All times are GMT -5. The time now is 04:57 PM.