Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
startx just dies
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
eivinn
Apprentice
Apprentice


Joined: 10 Jul 2002
Posts: 219
Location: Norway

PostPosted: Sun Aug 11, 2002 9:42 am    Post subject: startx just dies Reply with quote

I have run the xf86config script, choosen my monitor and a Diamond FireGL 1000 Pro
card. I get no errors or warnings and when I run startx everything goes
blank.

Then after switching to virtual terminal 1 everything is back to cl.

There is nothing helpful for me in my XFree86.0.log file...
Back to top
View user's profile Send private message
eivinn
Apprentice
Apprentice


Joined: 10 Jul 2002
Posts: 219
Location: Norway

PostPosted: Sun Aug 11, 2002 10:13 am    Post subject: NB: startx just dies Reply with quote

I have fiddled with xf86config now and came to this error message:

waiting for X server to begin accepting connections
giving up.
xinit: Connection refused (errno 111): unable to connect to X server
xinit: No such process (errno 3): Server error.


I have compiled kernel with maximum security. Can this break X?
Back to top
View user's profile Send private message
mglauche
Retired Dev
Retired Dev


Joined: 25 Apr 2002
Posts: 564
Location: Germany

PostPosted: Sun Aug 11, 2002 10:45 am    Post subject: Reply with quote

Whats in your logs ? check /var/log/XFree86.0.log and look why XFree server won't start
Back to top
View user's profile Send private message
tomas
n00b
n00b


Joined: 05 Jul 2002
Posts: 62
Location: Sweden

PostPosted: Sun Aug 11, 2002 11:00 am    Post subject: Reply with quote

If you have grsec on the highest level, you must run chpax -p /usr/X11R6/bin/XFree86 for X to start.
The chpax program can be found here.
Back to top
View user's profile Send private message
eivinn
Apprentice
Apprentice


Joined: 10 Jul 2002
Posts: 219
Location: Norway

PostPosted: Sun Aug 11, 2002 11:54 am    Post subject: Reply with quote

What exactly does the chpax program do, and how do I compile it with gcc?

I also would like to know what grsec things to disable for X to work. I'm running a test-server with apache, procmail, etc, and would like to be able to run X remotely from it...
Back to top
View user's profile Send private message
tomas
n00b
n00b


Joined: 05 Jul 2002
Posts: 62
Location: Sweden

PostPosted: Sun Aug 11, 2002 1:58 pm    Post subject: Reply with quote

chpax is used to view or set security settings on a per executable basis. -p disables enforcing of PAGE_EXEC (whatever that is :)).
I can't remember there being any particular problems compiling it. Just try gcc chpax.c -o chpax. Add options as necessary... ;)
chpax -p ... seems to be enough to get X to work.
Back to top
View user's profile Send private message
eivinn
Apprentice
Apprentice


Joined: 10 Jul 2002
Posts: 219
Location: Norway

PostPosted: Sun Aug 11, 2002 7:15 pm    Post subject: Thanks alot Reply with quote

Thanks alot!

chpax did fix startx, but I still cannot run startx remotely through ssh.
I have now emerged WindowMaker, but cannot start this either, what is the command for this (or what do I need to do)?
Back to top
View user's profile Send private message
eivinn
Apprentice
Apprentice


Joined: 10 Jul 2002
Posts: 219
Location: Norway

PostPosted: Sun Aug 11, 2002 7:24 pm    Post subject: Reply with quote

OK, sorry for crying so fast...

Fixed WindowMaker by running the wmaker.inst got it working on localhost now.

Still won't start remotely :-( Any suggestions?
Back to top
View user's profile Send private message
Iturbide
n00b
n00b


Joined: 28 Jun 2002
Posts: 27

PostPosted: Sun Aug 11, 2002 7:30 pm    Post subject: Reply with quote

That makes sense, IMHo. Somebody correct me if I'm wrong, but..

Startx tries to start an xserver on the localhost. That's not going to work over an ssh connection.
If your sshd config is set to handle the display setting, once you logged in, and type "set", you should see the DISPLAY variable set to your client:0, or something similar. That means that you can start a small xwindows program, and that it will try to display itself on your client machine, provided you have an xserver running there that accepts connections. On a windows platform, try something like exceed or xwin32 to act as xserver and windowmanager. On a unix client already running X, type "xhost +" to make it accept incoming connections (and blow away security. You can finetune with something like xhost +"name of remote machine".)
Now that will enable you to start a simple application. Just try with xterm to see if you can get it working.

I'm not sure what to do (what options, etc) to start an entire windowmanager. You already have a windowmanager running on your client machine. Surely it must be possible, but it may need some heavy command-line options.

OTOH, have you considered vnc? That'll do it pretty easily. Not that certain about security, though.
Back to top
View user's profile Send private message
eivinn
Apprentice
Apprentice


Joined: 10 Jul 2002
Posts: 219
Location: Norway

PostPosted: Sun Aug 11, 2002 8:00 pm    Post subject: Reply with quote

Well, wmaker does tell me that another Windowmanager is running when I try to run it from ssh. Strange enough I have tried this successfully with KDE, but I'll have to try starting plane x-programs first as you point out.
Taking a nap, and will post back when I have something new to report...
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum