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 |
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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
 |
07-15-2005, 05:18 PM
|
#1
|
LQ Newbie
Registered: Jul 2005
Distribution: CRUX 2.1, Debian sarge
Posts: 27
Rep:
|
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?
|
|
|
07-15-2005, 05:27 PM
|
#2
|
Member
Registered: Mar 2005
Distribution: Gentoo
Posts: 50
Rep:
|
Are there any indications about what happened in /var/log/Xorg.0.log? That's the first place I'd check.
|
|
|
07-16-2005, 11:27 AM
|
#3
|
LQ Newbie
Registered: Jul 2005
Distribution: CRUX 2.1, Debian sarge
Posts: 27
Original Poster
Rep:
|
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... 
|
|
|
07-16-2005, 01:16 PM
|
#4
|
Member
Registered: Mar 2005
Distribution: Gentoo
Posts: 50
Rep:
|
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.
|
|
|
07-19-2005, 08:38 AM
|
#5
|
LQ Newbie
Registered: Jul 2005
Distribution: CRUX 2.1, Debian sarge
Posts: 27
Original Poster
Rep:
|
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!
|
|
|
07-19-2005, 10:28 AM
|
#6
|
Member
Registered: Mar 2005
Distribution: Gentoo
Posts: 50
Rep:
|
Oh OK, glad you fixed the problem.
|
|
|
All times are GMT -5. The time now is 06:09 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|