LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 07-15-2005, 05:18 PM   #1
Mr. Asdf
LQ Newbie
 
Registered: Jul 2005
Distribution: CRUX 2.1, Debian sarge
Posts: 27

Rep: Reputation: 15
Some... odd (?) issue with Xorg 6.8.2 on CRUX 2.1


Just installed CRUX 2.1... I almost got most things arranged, except this odd problem - everytime I wanna `startx`, I have to include a line after the `windowmanager &` line in the file ~/.xinitrc, which loads up an xterm window.
Here, the /etc/X11/xinit/xinitrc file originally looked like this:

Quote:
....
<if's and fi's.....>
...
fluxbox &
exec xterm -geometry 80x66+0+0 -name login
when practically I haven't written anything in that file... then I removed the "exec xterm ..." line, startx won't work and I get back to the shell screen (black & white).
What the heck is this? maybe I don't know something... it's the first time I use CRUX and Xorg (till now it was Slack and Xfree86)
any clews?
 
Old 07-15-2005, 05:27 PM   #2
ichi
Member
 
Registered: Mar 2005
Distribution: Gentoo
Posts: 50

Rep: Reputation: 15
Are there any indications about what happened in /var/log/Xorg.0.log? That's the first place I'd check.
 
Old 07-16-2005, 11:27 AM   #3
Mr. Asdf
LQ Newbie
 
Registered: Jul 2005
Distribution: CRUX 2.1, Debian sarge
Posts: 27

Original Poster
Rep: Reputation: 15
Ok, I looked at this file (/var/log/Xorg.0.log) and I don't think I can see a clear error here.... these are the last lines of it:

Quote:
(**) Option "Protocol" "IMPS/2"
(**) Mouse1: Device: "/dev/mouse"
(**) Mouse1: Protocol: "IMPS/2"
(**) Option "CorePointer"
(**) Mouse1: Core Pointer
(**) Option "Device" "/dev/mouse"
(==) Mouse1: Emulate3Buttons, Emulate3Timeout: 50
(**) Option "ZAxisMapping" "4 5"
(**) Mouse1: ZAxisMapping: buttons 4 and 5
(**) Mouse1: Buttons: 5
(**) Option "CoreKeyboard"
(**) Keyboard1: Core Keyboard
(**) Option "Protocol" "standard"
(**) Keyboard1: Protocol: standard
(**) Option "AutoRepeat" "500 30"
(**) Option "XkbRules" "xorg"
(**) Keyboard1: XkbRules: "xorg"
(**) Option "XkbModel" "pc104"
(**) Keyboard1: XkbModel: "pc104"
(**) Option "XkbLayout" "us,il"
(**) Keyboard1: XkbLayout: "us,il"
(**) Option "XkbVariant" ",lyx"
(**) Keyboard1: XkbVariant: ",lyx"
(**) Option "XkbOptions" "grp:switch,grp:alt_shift_toggle,grp_led:scroll"
(**) Keyboard1: XkbOptions: "grp:switch,grp:alt_shift_toggle,grp_led:scroll"
(**) Option "CustomKeycodes" "off"
(**) Keyboard1: CustomKeycodes disabled
(II) XINPUT: Adding extended input device "Keyboard1" (type: KEYBOARD)
(II) XINPUT: Adding extended input device "Mouse1" (type: MOUSE)
(II) XINPUT: Adding extended input device "NVIDIA Event Handler" (type: Other)
(II) Mouse1: ps2EnableDataReporting: succeeded
Could not init font path element /usr/X11R6/lib/X11/fonts/TrueType/, removing from list!
That's it... I have no clew what the problem is...
 
Old 07-16-2005, 01:16 PM   #4
ichi
Member
 
Registered: Mar 2005
Distribution: Gentoo
Posts: 50

Rep: Reputation: 15
OK...well...seeing as, quite frankly, I can't see a problem either, try this:

Back up your startx script (locate startx).

This is a startx script for Blackbox from Slackware 10.1. Try putting this into startx.

# $Xorg: startx.cpp,v 1.3 2000/08/17 19:54:29 cpqbld Exp $
#
# This is just a sample implementation of a slightly less primitive
# interface than xinit. It looks for user .xinitrc and .xserverrc
# files, then system xinitrc and xserverrc files, else lets xinit choose
# its default. The system xinitrc should probably do things like check
# for .Xresources files and merge them in, startup up a window manager,
# and pop a clock and serveral xterms.
#
# Site administrators are STRONGLY urged to write nicer versions.
#
# $XFree86: xc/programs/xinit/startx.cpp,v 3.16tsi Exp $


userclientrc=$HOME/.xinitrc
userserverrc=$HOME/.xserverrc
sysclientrc=/usr/X11R6/lib/X11/xinit/xinitrc
sysserverrc=/usr/X11R6/lib/X11/xinit/xserverrc
defaultclient=/usr/X11R6/bin/xterm
defaultserver=/usr/X11R6/bin/X
defaultclientargs=""
defaultserverargs=""
clientargs=""
serverargs=""






if [ -f $userclientrc ]; then
defaultclientargs=$userclientrc
elif [ -f $sysclientrc ]; then
defaultclientargs=$sysclientrc
fi




if [ -f $userserverrc ]; then
defaultserverargs=$userserverrc
elif [ -f $sysserverrc ]; then
defaultserverargs=$sysserverrc
fi

whoseargs="client"
while [ x"$1" != x ]; do
case "$1" in
# '' required to prevent cpp from treating "/*" as a C comment.
/''*|\./''*)
if [ "$whoseargs" = "client" ]; then
if [ x"$clientargs" = x ]; then
client="$1"
else
clientargs="$clientargs $1"
fi
else
if [ x"$serverargs" = x ]; then
server="$1"
else
serverargs="$serverargs $1"
fi
fi
;;
--)
whoseargs="server"
;;
*)
if [ "$whoseargs" = "client" ]; then
clientargs="$clientargs $1"
else
# display must be the FIRST server argument
if [ x"$serverargs" = x ] && \
expr "$1" : ':[0-9][0-9]*$' > /dev/null 2>&1; then
display="$1"
else
serverargs="$serverargs $1"
fi
fi
;;
esac
shift
done

# process client arguments
if [ x"$client" = x ]; then
# if no client arguments either, use rc file instead
if [ x"$clientargs" = x ]; then
client="$defaultclientargs"
else
client=$defaultclient
fi
fi

# process server arguments
if [ x"$server" = x ]; then
# if no server arguments or display either, use rc file instead
if [ x"$serverargs" = x -a x"$display" = x ]; then
server="$defaultserverargs"
else
server=$defaultserver
fi
fi

if [ x"$XAUTHORITY" = x ]; then
XAUTHORITY=$HOME/.Xauthority
export XAUTHORITY
fi

removelist=


# set up default Xauth info for this machine
case `uname` in
Linux*)
if [ -z "`hostname --version 2>&1 | grep GNU`" ]; then
hostname=`hostname -f`
else
hostname=`hostname`
fi
;;
*)
hostname=`hostname`
;;
esac

authdisplay=${display:-:0}
mcookie=`mcookie`
for displayname in $authdisplay $hostname$authdisplay; do
if ! xauth list "$displayname" | grep "$displayname " >/dev/null 2>&1; then
xauth -q << EOF
add $displayname . $mcookie
EOF
removelist="$displayname $removelist"
fi
done


xinit $client $clientargs -- $server $display $serverargs

if [ x"$removelist" != x ]; then
xauth remove $removelist
fi





if command -v deallocvt > /dev/null 2>&1; then
deallocvt
fi



It's kind of a long shot considering they're different distros but it might work. Obviously change the variables at the top of it (sysclientrc etc) to match your system.
 
Old 07-19-2005, 08:38 AM   #5
Mr. Asdf
LQ Newbie
 
Registered: Jul 2005
Distribution: CRUX 2.1, Debian sarge
Posts: 27

Original Poster
Rep: Reputation: 15
I've managed to fix it!
The problem was the .xinitrc file - the default setting were bad:

fluxbox &
exec xterm -geometry 80x66+0+0 -name login

it should have been:

<xterm or whatever...> &
... &
exec fluxbox

got it with `man startx`. hey but, thanks anyway!
 
Old 07-19-2005, 10:28 AM   #6
ichi
Member
 
Registered: Mar 2005
Distribution: Gentoo
Posts: 50

Rep: Reputation: 15
Oh OK, glad you fixed the problem.
 
  


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
odd mandriva issue goofusbrain Linux - Networking 1 11-13-2005 07:09 PM
Diablo II under 9.3...odd cd mount issue crxgames SUSE / openSUSE 2 06-03-2005 01:54 AM
Odd package upgrade issue OneBinary Debian 2 04-26-2005 03:18 PM
Odd *nix issue with c/c++ Will_C_T Programming 3 09-10-2004 12:17 AM
xorg problems... got an odd error Nikon01 Slackware 9 08-19-2004 10:16 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:09 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