LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 08-31-2004, 09:50 AM   #1
kaon
Member
 
Registered: Dec 2003
Location: Hong Kong SAR
Distribution: Slackware 9.1, 10.x, slackware-current
Posts: 186

Rep: Reputation: 30
.xinitrc crashes my Xorg


Hi all,

I am using slackware 10.0. Recently, I have my Xorg crashed when it is being fired up (returned to console). I tried to figure out why, and the solution is no file should be named .xinitrc.

Interestingly enough, there is only 3 sentences inside. I commented all of them still I got the same problem.

I 'cat' the Xorg.0.log, looking for err msg, tough, none!

When I remove/rename it, X works properly again!

Any idea on that?

Thanks.
 
Old 08-31-2004, 09:53 AM   #2
egag
Senior Member
 
Registered: Jul 2004
Location: Netherlands
Distribution: Slackware
Posts: 2,721

Rep: Reputation: 52
maybe you could post your xinitrc here, and.... do you startup with ' startx ' ?

egag
 
Old 08-31-2004, 09:59 AM   #3
gbonvehi
Senior Member
 
Registered: Jun 2004
Location: Argentina (SR, LP)
Distribution: Slackware
Posts: 3,145

Rep: Reputation: 51
kaon, if .xinitrc exists on your home directory, startx will startup and run the commands on that file. If it doesn't exists it'll load the file /etc/X11/xinit/xinitrc
Maybe you should copy /etc/X11/xinit/xinitrc to ~/.xinitrc and modify that to suit your needs, or just remove ~/.xinitrc and let startx to read the default one (/etc/X11/xinit/xinitrc is configure acording to xwmconfig).
 
Old 09-03-2004, 03:39 AM   #4
kaon
Member
 
Registered: Dec 2003
Location: Hong Kong SAR
Distribution: Slackware 9.1, 10.x, slackware-current
Posts: 186

Original Poster
Rep: Reputation: 30
Quote:
kaon, if .xinitrc exists on your home directory, startx will startup and run the commands on that file. If it doesn't exists it'll load the file /etc/X11/xinit/xinitrc
Maybe you should copy /etc/X11/xinit/xinitrc to ~/.xinitrc and modify that to suit your needs, or just remove ~/.xinitrc and let startx to read the default one (/etc/X11/xinit/xinitrc is configure acording to xwmconfig).
I removed the .xinitrc and added the 3 lines to /etc/X11/xinit/xinitrc, still nothing changed.
Anyway, I will try your way.

Thanks.
 
Old 09-03-2004, 04:19 AM   #5
kaon
Member
 
Registered: Dec 2003
Location: Hong Kong SAR
Distribution: Slackware 9.1, 10.x, slackware-current
Posts: 186

Original Poster
Rep: Reputation: 30
I copied and renamed as .xinitrc, still the lines I added does not run.

I am using XFCE and all the lines can be run perfetly under xterm.

# Run xfce4-session if installed
if [ -x /usr/bin/xfce4-session ]; then
exec /usr/bin/xfce4-session
export XMODIFIERS="@im=SCIM"
/usr/bin/setnumlock
/usr/bin/scim -d
fi

Tried many ways... frustrated.
 
Old 09-03-2004, 06:49 AM   #6
egag
Senior Member
 
Registered: Jul 2004
Location: Netherlands
Distribution: Slackware
Posts: 2,721

Rep: Reputation: 52
in :/etc/X11/xinit you can find ' xinitrc.xfce '. if you just want to start xfce, you should
copy that file to ~/ .xinitrc. ( and don't edit it )
think that works.....?

egag
 
Old 09-03-2004, 10:04 AM   #7
kaon
Member
 
Registered: Dec 2003
Location: Hong Kong SAR
Distribution: Slackware 9.1, 10.x, slackware-current
Posts: 186

Original Poster
Rep: Reputation: 30
this is the content of /etc/X11/xinit:

total 8
-rw-r--r-- 1 root root 321 Jun 6 05:46 README.Xmodmap
lrwxrwxrwx 1 root root 12 Aug 15 18:57 xinitrc -> xinitrc.xfce*
-rwxr-xr-x 1 root root 664 Jun 6 05:43 xinitrc.twm*
lrwxrwxrwx 1 root root 16 Aug 15 18:31 xinitrc.xfce -> ../xfce4/xinitrc*

And I "cp /etc/X11/xinit/xinitrc ~/.xinitrc" and "startx".

Nothing else is changed after X brings up the screen.
 
Old 09-03-2004, 10:41 AM   #8
egag
Senior Member
 
Registered: Jul 2004
Location: Netherlands
Distribution: Slackware
Posts: 2,721

Rep: Reputation: 52
it is linked to : /etc/X11/xfce4/xinitrc. did you copy that file or the link ?

egag
 
Old 09-04-2004, 02:16 AM   #9
kaon
Member
 
Registered: Dec 2003
Location: Hong Kong SAR
Distribution: Slackware 9.1, 10.x, slackware-current
Posts: 186

Original Poster
Rep: Reputation: 30
yep

xinitrc and xinitrc.xfce are both symbolic links, which points to xfce4/xinitrc.
No matter what I have changed in xinitrc, the changes will be the same in xfce4/xinitrc.

Anyone that can help?
 
Old 09-04-2004, 02:29 AM   #10
gbonvehi
Senior Member
 
Registered: Jun 2004
Location: Argentina (SR, LP)
Distribution: Slackware
Posts: 3,145

Rep: Reputation: 51
Reinstall the xfce package from the slackware cd, that would put the original xfce4/xinitrc back
 
Old 09-04-2004, 02:58 AM   #11
kaon
Member
 
Registered: Dec 2003
Location: Hong Kong SAR
Distribution: Slackware 9.1, 10.x, slackware-current
Posts: 186

Original Poster
Rep: Reputation: 30
I just simply added 3 lines in xinitirc and other are kept unchanged. Will reinstallation solve the problem?

 
Old 09-04-2004, 03:11 AM   #12
gbonvehi
Senior Member
 
Registered: Jun 2004
Location: Argentina (SR, LP)
Distribution: Slackware
Posts: 3,145

Rep: Reputation: 51
Sorry, you got me this time, i read wrong, i thought someting messed up the xinitrc file.

Edit: Just a thought, have you tried adding them before the if sentence?
I checked (i've slackware's default xfce install) and i don't have a file xfce4-session in my /usr/bin so if you are in the same situation and don't have the file, the lines inside that if won't be executed.

Last edited by gbonvehi; 09-04-2004 at 03:21 AM.
 
Old 09-04-2004, 04:20 AM   #13
Cedrik
Senior Member
 
Registered: Jul 2004
Distribution: Slackware
Posts: 2,140

Rep: Reputation: 243Reputation: 243Reputation: 243
Normally the line that execute xfce x session should be :

/usr/bin/startxfce4

Also with the code :
# Run xfce4-session if installed
if [ -x /usr/bin/xfce4-session ]; then
exec /usr/bin/xfce4-session
export XMODIFIERS="@im=SCIM"
/usr/bin/setnumlock
/usr/bin/scim -d
fi

The lines :
export XMODIFIERS="@im=SCIM"
/usr/bin/setnumlock
/usr/bin/scim -d

Will be never executed as the 'exec' command never return to the the script

Last edited by Cedrik; 09-04-2004 at 04:24 AM.
 
Old 09-05-2004, 02:22 AM   #14
kaon
Member
 
Registered: Dec 2003
Location: Hong Kong SAR
Distribution: Slackware 9.1, 10.x, slackware-current
Posts: 186

Original Poster
Rep: Reputation: 30
Cedrik, I just found that there is some difference between startx and startxfce4:

1) Both will load the desktop for me, but the history in mozilla (at least) is not shared between them.
2) startxfce4 will run the lines I added myself, while startx won't run at all.
3) startxfce4 locks up everything (no response after clicking any icon), while startx won't.
4) Both are binary files.

Any idea?

Last edited by kaon; 09-05-2004 at 02:28 AM.
 
  


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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Xorg 6.8.99.15 crashes Suse 9.2 paulsm4 SUSE / openSUSE 0 07-24-2005 01:20 AM
Slackware-current Xorg 6.8.1 crashes SirJohnWackness Slackware 20 11-26-2004 09:09 AM
Xorg, xinitrc not being initiated lukebeales Linux - Software 0 09-14-2004 05:41 AM
Xorg Hard Crashes and corrupts xorg.conf Advocator Linux - General 0 07-15-2004 01:41 PM
Mplayer crashes with Xorg (Slack 10) OdieQ Slackware 5 07-07-2004 08:17 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 12:02 PM.

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