Hi,
I have a problem with my gentoo installation.
I just reinstalled my system from scratch.
My kernel version is 2.6.12 gentoo-sources.
I have the latest stable version of all packages for x86.
Most of my difficulties were solved through google, but I can't find
much useful info for this one, so any help would be appreciated.
When my gdm launches at startup and I try to login as a normal user
(lets call him "username"), I get the following error
(~/.xsession-errors):
/etc/X11/gdm/PreSession/Default: Registering your session with wtmp
and utmp
/etc/X11/gdm/PreSession/Default: running: /usr/X11R6/bin/sessreg -a
-w /var/log/wtmp -u /var/run/utmp -x "/var/gdm/:0.Xservers" -h "" -l
":0" "levashom"
/etc/X11/gdm/Xsession: Beginning session setup...
/etc/X11/gdm/Xsession: Setup done, will execute: /usr/bin/ssh-agent
-- gnome-session
Xlib: connection to ":0.0" refused by server
Xlib: Protocol not supported by server
(gnome-session:6801): Gtk-WARNING **: cannot open display:
I can login as root without any problems.
When I su as username and try to launch firefox (for example), I get
this error:
Xlib: connection to ":0.0" refused by server
Xlib: No protocol specified
xdpyinfo: unable to open display ":0.0".
No running windows found
Xlib: connection to ":0.0" refused by server
Xlib: No protocol specified
(firefox-bin:7248): Gtk-WARNING **: cannot open display:
firefox-bin exited with non-zero status (1)
Somewhere, I saw a suggestion to try to run xhost.
% xhost
access control enabled, only authorized clients can connect
% xhost +localhost
localhost being added to access control list
% xhost
access control enabled, only authorized clients can connect
INET:mul.mylnet
--running firefox from su still fails--
% xhost [EMAIL PROTECTED]
[EMAIL PROTECTED] being added to access control list
X Error of failed request: BadValue (integer parameter out of range
for operation)
Major opcode of failed request: 109 (X_ChangeHosts)
Value in failed request: 0xfe
Serial number of failed request: 7
Current serial number in output stream: 9
% xhost +
access control disabled, clients can connect from any host
-- now I can launch programs from su--
So it seems that this is the problem, yet running with access control
disabled is not what I want, so I am looking for other solutions.
Here are some parameter files that may be useful:
% cat /etc/X0.hosts
localhost
% cat hosts
# /etc/hosts: This file describes a number of hostname-to-address
# mappings for the TCP/IP subsystem. It is mostly
# used at boot time, when no name servers are running.
# On small systems, this file can be used instead of a
# "named" name server. Just add the names, addresses
# and any aliases to this file...
# $Header: /home/cvsroot/gentoo-src/rc-scripts/etc/hosts,v 1.8
2003/08/04 20:12:25 azarah Exp $
#
127.0.0.1 mul.mylnet mul localhost
# IPV6 versions of localhost and co
#::1 ip6-localhost ip6-loopback
#fe00::0 ip6-localnet
#ff00::0 ip6-mcastprefix
#ff02::1 ip6-allnodes
#ff02::2 ip6-allrouters
#ff02::3 ip6-allhosts
-- And thie is xorg.conf with no comments:
cat /tmp/myfile
Section "dri"
Group 27 # video
Mode 0660
EndSection
Section "Module"
Load "dbe" # Double buffer extension
SubSection "extmod"
EndSubSection
Load "type1"
Load "freetype"
Load "glx" # libglx.a
Load "dri" # libdri.a
Load "synaptics"
Load "xtrap"
Load "record"
EndSection
Section "Files"
RgbPath "/usr/X11R6/lib/X11/rgb"
FontPath "/usr/X11R6/lib/X11/fonts/misc/"
FontPath "/usr/X11R6/lib/X11/fonts/cyrillic/"
FontPath "/usr/X11R6/lib/X11/fonts/75dpi/:unscaled"
FontPath "/usr/X11R6/lib/X11/fonts/100dpi/:unscaled"
FontPath "/usr/X11R6/lib/X11/fonts/Type1/"
FontPath "/usr/X11R6/lib/X11/fonts/75dpi/"
FontPath "/usr/X11R6/lib/X11/fonts/100dpi/"
EndSection
#
**********************************************************************
# Server flags section.
#
**********************************************************************
Section "ServerFlags"
EndSection
Section "InputDevice"
Identifier "Keyboard1"
Driver "kbd"
Option "AutoRepeat" "500 30"
Option "XkbRules" "xfree86"
Option "XkbModel" "pc101"
Option "XkbLayout" "us"
EndSection
Section "InputDevice"
Identifier "Synaptics Mouse"
Driver "synaptics"
Option "SendCoreEvents"
Option "Device" "/dev/input/event1"
Option "Protocol" "event"
Option "LeftEdge" "1700"
Option "RightEdge" "5300"
Option "TopEdge" "1700"
Option "BottomEdge" "4200"
Option "FingerLow" "25"
Option "FingerHigh" "30"
Option "MaxTapTime" "180"
Option "MaxTapMove" "220"
Option "VertScrollDelta" "100"
Option "MinSpeed" "0.02"
Option "MaxSpeed" "0.18"
Option "AccelFactor" "0.0010"
Option "SHMConfig" "on"
EndSection
Section "InputDevice"
Identifier "USB Mouse"
Driver "mouse"
Option "Protocol" "ImPS/2"
Option "ZAxisMapping" "4 5"
Option "Device" "/dev/input/mice"
Option "Emulate3Buttons"
EndSection
Section "Monitor"
Identifier "Monitor0"
HorizSync 31.5 -91.1
VertRefresh 50 - 100
Option "DRI"
EndSection
Section "Device"
Identifier "Standard VGA"
VendorName "Unknown"
BoardName "Unknown"
Driver "vga"
EndSection
Section "Device"
Identifier "ATI Graphics Adapter"
Driver "fglrx"
Option "no_accel" "no"
Option "no_dri" "no"
Option "mtrr" "off" # disable DRI mtrr
mapper, driver has its own code for mtrr
Option "DesktopSetup" "0x00000000"
Option "MonitorLayout" "AUTO, AUTO"
Option "IgnoreEDID" "off"
Option "HSync2" "unspecified"
Option "VRefresh2" "unspecified"
Option "ScreenOverlap" "0"
Option "NoTV" "yes"
Option "TVStandard" "NTSC-M"
Option "TVHSizeAdj" "0"
Option "TVVSizeAdj" "0"
Option "TVHPosAdj" "0"
Option "TVVPosAdj" "0"
Option "TVHStartAdj" "0"
Option "TVColorAdj" "0"
Option "GammaCorrectionI" "0x00000000"
Option "GammaCorrectionII" "0x00000000"
Option "Capabilities" "0x00008800"
Option "VideoOverlay" "on"
Option "OpenGLOverlay" "off"
Option "CenterMode" "off"
Option "PseudoColorVisuals" "off"
Option "Stereo" "off"
Option "StereoSyncEnable" "1"
Option "FSAAEnable" "no"
Option "FSAAScale" "1"
Option "FSAADisableGamma" "no"
Option "FSAACustomizeMSPos" "no"
Option "FSAAMSPosX0" "0.000000"
Option "FSAAMSPosY0" "0.000000"
Option "FSAAMSPosX1" "0.000000"
Option "FSAAMSPosY1" "0.000000"
Option "FSAAMSPosX2" "0.000000"
Option "FSAAMSPosY2" "0.000000"
Option "FSAAMSPosX3" "0.000000"
Option "FSAAMSPosY3" "0.000000"
Option "FSAAMSPosX4" "0.000000"
Option "FSAAMSPosY4" "0.000000"
Option "FSAAMSPosX5" "0.000000"
Option "FSAAMSPosY5" "0.000000"
Option "UseFastTLS" "1"
Option "BlockSignalsOnLock" "on"
Option "UseInternalAGPGART" "yes"
Option "ForceGenericCPU" "no"
BusID "PCI:1:0:0" # vendor=1002, device=4e50
Screen 0
EndSection
Section "Screen"
Identifier "Screen0"
Device "ATI Graphics Adapter"
Monitor "Monitor0"
DefaultDepth 24
Subsection "Display"
Depth 24
Modes "1400x1050" "1024x768" "800x600"
ViewPort 0 0 # initial origin if mode is smaller than
desktop
EndSubsection
EndSection
Section "ServerLayout"
Identifier "Server Layout"
Screen "Screen0"
InputDevice "Synaptics Mouse" "CorePointer"
InputDevice "Keyboard1" "CoreKeyboard"
InputDevice "USB Mouse" "AlwaysCore"
EndSection
If you want any more info, I would gladly provide it.
Michael
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com