LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This 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


Reply
  Search this Thread
Old 08-27-2000, 10:14 PM   #1
aungtn
LQ Newbie
 
Registered: Aug 2000
Location: Singapore
Posts: 3

Rep: Reputation: 0

Hi,

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 ?

Rds,
Aung
 
Old 08-27-2000, 10:27 PM   #2
jeremy
root
 
Registered: Jun 2000
Distribution: Debian, Red Hat, Slackware, Fedora, Ubuntu
Posts: 13,597

Rep: Reputation: 4080Reputation: 4080Reputation: 4080Reputation: 4080Reputation: 4080Reputation: 4080Reputation: 4080Reputation: 4080Reputation: 4080Reputation: 4080Reputation: 4080
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?
 
Old 08-27-2000, 10:49 PM   #3
aungtn
LQ Newbie
 
Registered: Aug 2000
Location: Singapore
Posts: 3

Original Poster
Rep: Reputation: 0
Yes I boot into X and the system go to Xdm login screen.

My TCL/TK program is just to show a alert windows on X windows screen. Thereis no problem ,if I login into the X and run it.

In mandrake I just put a script to run my TK program in inittab.(with some delay to wait the X comes up).It work without anybody login into system.

here is the error on redhat .
Xlib: connection to "0:0.0" refused by server
Xlib: Client is not authorized to connect to Server

Rds,
Aung
 
Old 08-27-2000, 11:05 PM   #4
jeremy
root
 
Registered: Jun 2000
Distribution: Debian, Red Hat, Slackware, Fedora, Ubuntu
Posts: 13,597

Rep: Reputation: 4080Reputation: 4080Reputation: 4080Reputation: 4080Reputation: 4080Reputation: 4080Reputation: 4080Reputation: 4080Reputation: 4080Reputation: 4080Reputation: 4080
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.
 
Old 08-28-2000, 12:51 AM   #5
bickford
Member
 
Registered: Jun 2000
Location: SUNY Buffalo
Posts: 79

Rep: Reputation: 15
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.....
 
Old 08-29-2000, 04:18 PM   #6
bickford
Member
 
Registered: Jun 2000
Location: SUNY Buffalo
Posts: 79

Rep: Reputation: 15
Angry doh

And of course by +xhost localhost I mean xhost +localhost. My bad!
 
Old 08-29-2000, 08:42 PM   #7
aungtn
LQ Newbie
 
Registered: Aug 2000
Location: Singapore
Posts: 3

Original Poster
Rep: Reputation: 0
Re: doh

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.


#runprocess.bash
export DISPLAY=:0.0

sleep 10

/usr/local/my_alarms/bin/alarm_process.tcl &
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Samba vs windows security Daniboy Linux - Software 8 09-12-2005 06:29 AM
Why can't Windows 9x have security? NCC-1701&NCC-1701-D General 9 06-29-2005 06:56 AM
security: windows vs linux crispyleif Linux - Newbie 10 03-08-2005 03:14 AM
security in windows narendra_i General 6 11-15-2003 11:29 AM
Linux security Vs Windows security keene General 50 11-01-2003 11:22 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 09:58 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration