Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I have a problem with running TCL/TK program(Alarms system) in X Windows.How can we automatically run a X program at linux startup.I think it is the X security problem. It works on Mandrake 6.0. but not on any Redhat. We are using Redhat for our system . Is there any way to hack the security of Redhat X ?
Distribution: Debian, Red Hat, Slackware, Fedora, Ubuntu
Posts: 13,602
Rep:
If you boot right into X with xdm you should have an .xsession file which will run external programs. If you do not boot right into X you could put the command you want to run at the end of the startx script.
If you have an other questions the following info would help:
What program are you trying to run?
Do you boot right into X?
Do you get an error message?
What did you do to get it to work in mandrake?
Distribution: Debian, Red Hat, Slackware, Fedora, Ubuntu
Posts: 13,602
Rep:
How are you starting the script now? Have you tried using .xsession? Sounds like the user you are starting the script as does not have permission to connect to the X server. I would recommend typing "man Xsecurity" at a prompt and going from there. If you still have a question or need some clarification don't hesitate to ask.
You might need to do a "+xhost localhost" in order to allow it to connect to the XServer. It sounds rediculous but I'm pretty sure that might fix it.....
Thanks for the helps.
xhost works if someone is login to X and give the authority to others .My proble is to run a X program while Xwindows is at Xdm login prompt.
the followings is the script I put in the inittab.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.