Автор Тема: Debian xorg проблем  (Прочетена 2195 пъти)


  • Новаци
  • *
  • Публикации: 2
    • Профил
Debian xorg проблем
« -: Mar 30, 2007, 18:13 »
След dist-upgrade на Debian от stable до testing се появи проблем с xorg.След всеки рестарт на компютъра излиза съобщение,че Х server-а не е конфигуриран правилно и gdm не стартира.След пускане на modprobe mousedev и след това /etc/init.d/gdm stop->/etc/init.d/gdm start всичко тръгва(без да изпълнявам dpkg-reconfigure xserver-xorg),но gdm вади следното съобщение:Configuration is not correct.The configuration file contains an invalid command line for the login dialogue,so running the default command.Please fix your configuration.Пиша име и парола и всичко тръгва,но след рестарт положението е същото.Какво трябва да настроя,че gdm да тръгва веднага след рестарт без да е необходимо да повтарям посочените горе команди.
Съдържанието на /etc/gdm/gdm.conf е следното:
Примерен код
# GDM Configuration file.  You can use gdmsetup program to graphically
# edit this, or you can optionally just edit this file by hand.  Note that
# gdmsetup does not tweak every option here, just the ones most users
# would care about.  Rest is for special setups and distro specific
# tweaks.  If you edit this file, you should run:
# /etc/init.d/gdm reload or /etc/init.d/gdm restart

# For full reference documentation see the gnome help browser under
# GNOME|System category.  You can also find the docs in HTML form
# on http://www.jirka.org/gdm.html
# NOTE: Some of these are commented out but still show their default values.
# If you wish to change them you must remove the '#' from the beginning of
# the line.  The commented out lines are lines where the default might
# change in the future, so set them one way or another if you feel
# strongly about it.
# Have fun! - George

# Automatic login, if true the first local screen will automatically logged
# in as user as set with AutomaticLogin key.

# Timed login, useful for kiosks.  Log in a certain user after a certain
# amount of time

# The gdm configuration program that is run from the login screen, you should
# probably leave this alone
#Configurator=/usr/bin/gdmsetup --disable-sound --disable-crash-dialog

# The chooser program.  Must output the chosen host on stdout, probably you
# should leave this alone

# The greeter for local (non-xdmcp) logins.  Change gdmlogin to gdmgreeter to
# get the new graphical greeter.

# The greeter for xdmcp logins, usually you want a less graphically intensive
# greeter here so it's better to leave this with gdmlogin

# Launch the greeter with an additional list of colon seperated gtk
# modules. This is useful for enabling additional feature support
# e.g. gnome accessibility framework. Only "trusted" modules should
# be allowed to minimise security holes
# By default these are the accessibility modules

# Default path to set.  The profile scripts will likely override this
# Default path for root.  The profile scripts will likely override this

# If you are having trouble with using a single server for a long time and
# want gdm to kill/restart the server, turn this on

# User and group used for running gdm GUI applicaitons.  By default this
# is set to user gdm and group gdm.  This user/group should have very
# limited permissions and access to ony the gdm directories and files.

# To try to kill all clients started at greeter time or in the Init script.
# doesn't always work, only if those clients have a window of their own
# You should probably never change this value unless you have a weird setup
# Note that a post login script is run before a PreSession script.
# It is run after the login is successful and before any setup is
# run on behalf of the user
# Distributions:  If you have some script that runs an X server in say
# VGA mode, allowing a login, could you please send it to me?
# if X keeps crashing on us we run this script.  The default one does a bunch
# of cool stuff to figure out what to tell the user and such and can
# run an X configuration program.
# Reboot, Halt and suspend commands, you can add different commands
# separated by a semicolon and gdm will use the first one it can find
RebootCommand=/sbin/shutdown -r now \"Rebooted from gdm menu.\"
HaltCommand=/sbin/shutdown -h now \"Shut Down from gdm menu.\"
SuspendCommand=/usr/bin/apm --suspend
# Probably should not touch the below this is the standard setup
# This is our standard startup script.  A bit different from a normal
# X session, but it shares a lot of stuff with that.  See the provided
# default for more information.
# This is a directory where .desktop files describing the sessions live
# It is really a PATH style variable since to allow actual
# interoperability with KDM.  Note that <sysconfdir>/dm/Sessions is there
# for backwards compatibility reasons with 2.4.4.x
# This is the default .desktop session.  One of the ones in SessionDesktopDir
# Better leave this blank and HOME will be used.  You can use syntax ~/ below
# to indicate home directory of the user.  You can also set this to something
# like /tmp if you don't want the authorizations to be in home directories.
# This is useful if you have NFS mounted home directories.  Note that if this
# is the home directory the UserAuthFBDir will still be used in case the home
# directory is NFS, see security/NeverPlaceCookiesOnNFS to override this behaviour.
# Fallback if home directory not writable
# The X server to use if we can't figure out what else to run.
# The maximum number of flexible X servers to run.
# And after how many minutes should we reap the flexible server if there is
# no activity and no one logged on.  Set to 0 to turn off the reaping.
# Does not affect Xnest flexiservers.
# the X nest command
Xnest=/usr/X11R6/bin/Xnest -audit 0 -name Xnest
# Automatic VT allocation.  Right now only works on Linux.  This way
# we force X to use specific vts.  turn VTAllocation to false if this
# is causing problems.
# Should double login be treated with a warning (and possibility to change
# vts on linux and freebsd systems for console logins)

# If true then the last login information is printed to the user before
# being prompted for password.  While this gives away some info on what
# users are on a system, it on the other hand should give the user an
# idea of when they logged in and if it doesn't seem kosher to them,
# they can just abort the login and contact the sysadmin (avoids running
# malicious startup scripts)

# Program used to play sounds.  Should not require any 'daemon' or anything
# like that as it will be run when no one is logged in yet.

# These are the languages that the console cannot handle because of font
# issues.  Here we mean the text console, not X.  This is only used
# when there are errors to report and we cannot start X.
# This is the default:

# This will allow remote timed login
# 0 is the most restrictive, 1 allows group write permissions, 2 allows all
# write permissions
# Check if directories are owned by logon user.  Set to false, if you have, for
# example, home directories owned by some other user.
# Number of seconds to wait after a bad login
# Maximum size of a file we wish to read.  This makes it hard for a user to DoS
# us by using a large file.
# If true this will basically append -nolisten tcp to every X command line,
# a good default to have (why is this a "negative" setting? because if
# it is false, you could still not allow it by setting command line of
# any particular server).  It's probably better to ship with this on
# since most users will not need this and it's more of a security risk
# then anything else.
# Note: Anytime we find a -query or -indirect on the command line we do
# not add a "-nolisten tcp", as then the query just wouldn't work, so
# this setting only affects truly local sessions.
# By default never place cookies if we "detect" NFS.  We detect NFS
# by detecting "root-squashing".  It seems bad practice to place
# cookies on things that go over the network by default and thus we
# don't do it by default.  Sometimes you can however use safe remote
# filesystems where this is OK and you may want to have the cookie in your
# home directory.

# XDMCP is the protocol that allows remote login.  If you want to log into
# gdm remotely (I'd never turn this on on open network, use ssh for such
# remote usage that).  You can then run X with -query <thishost> to log in,
# or -indirect <thishost> to run a chooser.  Look for the 'Terminal' server
# type at the bottom of this config file.
# Distributions: Ship with this off.  It is never a safe thing to leave
# out on the net.  Setting up /etc/hosts.allow and /etc/hosts.deny to only
# allow local access is another alternative but not the safest.
# Firewalling port 177 is the safest if you wish to have xdmcp on.
# Read the manual for more notes on the security of XDMCP.
# Honour indirect queries, we run a chooser for these, and then redirect
# the user to the chosen host.  Otherwise we just log the user in locally.
# Maximum pending requests
# Maximum open XDMCP sessions at any point in time
# Maximum wait times
# How many times can a person log in from a single host.  Usually better to
# keep low to fend off DoS attacks by running many logins from a single
# host.  This is now set at 2 since if the server crashes then gdm doesn't
# know for some time and wouldn't allow another session.
# The number of seconds after which a non-responsive session is logged off.
# Better keep this low.
# The port.  177 is the standard port so better keep it that way
# Willing script, none is shipped and by default we'll send
# hostname system id.  But if you supply something here, the
# output of this script will be sent as status of this host so that
# the chooser can display it.  You could for example send load,
# or mail details for some user, or some such.

# The specific gtkrc file we use.  It should be the full path to the gtkrc
# that we need.  Unless you need a specific gtkrc that doesn't correspond to
# a specific theme, then just use the GtkTheme key

# The GTK+ theme to use for the gui
# If to allow changing the GTK+ (widget) theme from the greeter.  Currently
# this only affects the standard greeter as the graphical greeter does
# not yet have this ability
# Comma separated list of themes to allow.  These must be the names of the
# themes installed in the standard locations for gtk themes.  You can
# also specify 'all' to allow all installed themes.  These should be just
# the basenames of the themes such as 'Thinice' or 'LowContrast'.

# Maximum size of an icon, larger icons are scaled down

# Greeter has a nice title bar that the user can move
# Configuration is available from the system menu of the greeter
# Face browser is enabled.  This only works currently for the
# standard greeter as it is not yet enabled in the graphical greeter.
# The default picture in the browser
# These are things excluded from the face browser, not from logging in
# As an alternative to the above this is the minimum uid to show
# If user or user.png exists in this dir it will be used as his picture
# File which contains the locale we show to the user.  Likely you want to use
# the one shipped with gdm and edit it.  It is not a standard locale.alias file,
# although gdm will be able to read a standard locale.alias file as well.
# Logo shown in the standard greeter
# The standard greeter should shake if a user entered the wrong username or
# password.  Kind of cool looking
# The Actions menu (formerly system menu) is shown in the greeter, this is the
# menu that contains reboot, shutdown, suspend, config and chooser.  None of
# these is available if this is off.  They can be turned off individually
# however
# The Actions in the Actions menu require the root password
# Should the chooser button be shown.  If this is shown, GDM can drop into
# chooser mode which will run the xdmcp chooser locally and allow the user
# to connect to some remote host.  Local XDMCP does not need to be enabled
# however
# Note to distributors, if you wish to have a different Welcome string
# and wish to have this translated you can have entries such as
# Welcome[cs]=Vitejte na %n
# Just make sure the string is in utf-8
# Welcome is for all console logins and RemoteWelcome is for remote logins
# (through XDMCP).
# The default entries that are shipped are translated inside gdm and
# are as follows:
#RemoteWelcome=Welcome to %n
# Don't allow user to move the standard greeter window.  Only makes sense
# if TitleBar is on
# Set a position rather then just centering the window.  If you enter
# negative values for the position it is taken as an offset from the
# right or bottom edge.
# Xinerama screen we use to display the greeter on.  Not for true
# multihead, currently only works for Xinerama.
# Background settings for the standard greeter:
# Type can be 0=None, 1=Image, 2=Color
# XDMCP session should only get a color, this is the sanest setting since
# you don't want to take up too much bandwidth
# Program to run to draw the background in the standard greeter.  Perhaps
# something like an xscreensaver hack or some such.
# if this is true then the background program is run always, otherwise
# it is only run when the BackgroundType is 0 (None)
# Show the Failsafe sessions.  These are much MUCH nicer (focus for xterm for
# example) and more failsafe then those supplied by scripts so distros should
# use this rather then just running an xterm from a script.
# Normally there is a session type called 'Last' that is shown which refers to
# the last session the user used.  If off, we will be in 'switchdesk' mode where
# the session saving stuff is disabled in GDM
# Always use 24 hour clock no matter what the locale.
# Use circles in the password field.  Looks kind of cool actually,
# but only works with certain fonts.
# Do not show any visible feedback in the password field. This is standard
# for instance in console, xdm and ssh.
# These two keys are for the new greeter.  Circles is the standard
# shipped theme
# If InfoMsgFile points to a file, the greeter will display the contents of the
# file in a modal dialog box before the user is allowed to log in.
# If InfoMsgFile is present then InfoMsgFont can be used to specify the font
# to be used when displaying the contents of the file.
#InfoMsgFont=Sans 24
# If SoundOnLogin is true, then the greeter will beep when login is ready
# for user input.  If SoundOnLogin is a file and the greeter finds the
# 'play' executable (see daemon/SoundProgram) it will play that file
# instead of just beeping

# The chooser is what's displayed when a user wants an indirect XDMCP
# session, or selects Run XDMCP chooser from the system menu
# Default image for hosts
# Directory with host images, they are named by the hosts: host or host.png
# Time we scan for hosts (well only the time we tell the user we are
# scanning actually, we continue to listen even after this has
# expired)
# A comma separated lists of hosts to automatically add (if they answer to
# a query of course).  You can use this to reach hosts that broadcast cannot
# reach.
# Broadcast a query to get all hosts on the current network that answer
# Set it to true if you want to send a multicast query to hosts.
# It is an IPv6 multicast address.It is hardcoded here and will be replaced when
# officially registered xdmcp multicast address of TBD will be available
# Allow adding random hosts to the list by typing in their names

# This will enable debugging into the syslog, usually not neccessary
# and it creates a LOT of spew of random stuff to the syslog.  However it
# can be useful in determining when something is going very wrong.

# These are the standard servers.  You can add as many you want here
# and they will always be started.  Each line must start with a unique
# number and that will be the display number of that server.  Usually just
# the 0 server is used.
# Note the VTAllocation and FirstVT keys on linux and freebsd.
# Don't add any vt<number> arguments if VTAllocation is on, and set FirstVT to
# be the first vt available that your gettys don't grab (gettys are usually
# dumb and grab even a vt that has already been taken).  Using 7 will work
# pretty much for all linux distributions.  VTAllocation is not currently
# implemented on anything but linux and freebsd.  Feel free to send patches.
# X servers will just not get any extra arguments then.
# If you want to run an X terminal you could add an X server such as this
#0=Terminal -query serverhostname
# or for a chooser (optionally serverhostname could be localhost)
#0=Terminal -indirect serverhostname
# If you wish to run the XDMCP chooser on the local display use the following
# line

## Note:
# is your X server not listening to TCP requests?  Perhaps you should look
# at the security/DisallowTCP setting!

# Definition of the standard X server.
name=Standard server
command=/usr/X11R6/bin/X -audit 0

# To use this server type you should add -query host or -indirect host
# to the command line
name=Terminal server
# Add -terminate to make things behave more nicely
command=/usr/X11R6/bin/X -audit 0 -terminate
# Make this not appear in the flexible servers (we need extra params
# anyway, and terminate would be bad for xdmcp choosing).  You can
# make a terminal server flexible, but not with an indirect query.
# If you need flexible indirect query server, then you must get rid
# of the -terminate and the only way to kill the flexible server will
# then be by Ctrl-Alt-Backspace
# Not local, we do not handle the logins for this X server

# To use this server type you should add -query host or -indirect host
# to the command line
name=Chooser server
command=/usr/X11R6/bin/X -audit 0
# Make this not appear in the flexible servers for now, but if you
# wish to allow a chooser server then make this true.  This is the
# only way to make a flexible chooser server that behaves nicely.
# Run the chooser instead of the greeter.  When the user chooses a
# machine they will get this same server but run with
# "-terminate -query hostname"

Съдържанието на /etc/X11/xorg.conf е:
Примерен код
# /etc/X11/xorg.conf (xorg X Window System server configuration file)
# This file was generated by dexconf, the Debian X Configuration tool, using
# values from the debconf database.
# Edit this file with caution, and see the /etc/X11/xorg.conf manual page.
# (Type "man /etc/X11/xorg.conf" at the shell prompt.)
# This file is automatically updated on xserver-xorg package upgrades *only*
# if it has not been modified since the last upgrade of the xserver-xorg
# package.
# If you have edited this file but would like it to be automatically updated
# again, run the following command:
#   sudo dpkg-reconfigure -phigh xserver-xorg

Section "Files"
   FontPath   "/usr/share/fonts/X11/misc"
   FontPath   "/usr/X11R6/lib/X11/fonts/misc"
   FontPath   "/usr/share/fonts/X11/cyrillic"
   FontPath   "/usr/X11R6/lib/X11/fonts/cyrillic"
   FontPath   "/usr/share/fonts/X11/100dpi/:unscaled"
   FontPath   "/usr/X11R6/lib/X11/fonts/100dpi/:unscaled"
   FontPath   "/usr/share/fonts/X11/75dpi/:unscaled"
   FontPath   "/usr/X11R6/lib/X11/fonts/75dpi/:unscaled"
   FontPath   "/usr/share/fonts/X11/Type1"
   FontPath   "/usr/X11R6/lib/X11/fonts/Type1"
   FontPath   "/usr/share/fonts/X11/100dpi"
   FontPath   "/usr/X11R6/lib/X11/fonts/100dpi"
   FontPath   "/usr/share/fonts/X11/75dpi"
   FontPath   "/usr/X11R6/lib/X11/fonts/75dpi"
   # path to defoma fonts
   FontPath   "/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType"

Section "Module"
   Load   "bitmap"
   Load   "dbe"
   Load   "ddc"
   Load   "dri"
   Load   "extmod"
   Load   "freetype"
   Load   "int10"
   Load   "record"
   Load   "v4l"
   Load   "vbe"

Section "InputDevice"
   Identifier   "Generic Keyboard"
   Driver      "kbd"
   Option      "CoreKeyboard"
   Option      "XkbRules"   "xorg"
   Option      "XkbModel"   "pc104"
   Option      "XkbLayout"   "us"

Section "InputDevice"
   Identifier   "Configured Mouse"
   Driver      "mouse"
   Option      "CorePointer"
   Option      "Device"      "/dev/input/mice"
   Option      "Protocol"      "ImPS/2"
   Option      "Emulate3Buttons"   "true"

Section "Device"
   Identifier   "nVidia Corporation NV34 [GeForce FX 5500]"
   Driver      "vesa"
   BusID      "PCI:1:0:0"

Section "Monitor"
   Identifier   "Generic Monitor"
   Option      "DPMS"
   HorizSync   28-51
   VertRefresh   43-60

Section "Screen"
   Identifier   "Default Screen"
   Device      "nVidia Corporation NV34 [GeForce FX 5500]"
   Monitor      "Generic Monitor"
   DefaultDepth   24
   SubSection "Display"
      Depth      1
      Modes      "1024x768" "800x600" "640x480"
   SubSection "Display"
      Depth      4
      Modes      "1024x768" "800x600" "640x480"
   SubSection "Display"
      Depth      8
      Modes      "1024x768" "800x600" "640x480"
   SubSection "Display"
      Depth      15
      Modes      "1024x768" "800x600" "640x480"
   SubSection "Display"
      Depth      16
      Modes      "1024x768" "800x600" "640x480"
   SubSection "Display"
      Depth      24
      Modes      "1024x768" "800x600" "640x480"

Section "ServerLayout"
   Identifier   "Default Layout"
   Screen      "Default Screen"
   InputDevice   "Generic Keyboard"
   InputDevice   "Configured Mouse"

Section "DRI"
   Mode   0666

Някакви идеи?


  • Напреднали
  • *****
  • Публикации: 2117
    • Профил
Debian xorg проблем
« Отговор #1 -: Mar 30, 2007, 18:40 »
За модула за мишката - сложи го в /etc/modules.

За gdm - при мен на unstable/testing greeter-а се намира в /usr/lib/gdm/gdmgreeter. Виж при теб къде е (dpkg -L gdm) и го смени където е Greeter=.


  • Напреднали
  • *****
  • Публикации: 1337
  • Distribution: Ubuntu
  • Window Manager: Unity
  • левел: авераж :)
    • Профил
Debian xorg проблем
« Отговор #2 -: Mar 30, 2007, 23:03 »
Section "Device"
Identifier "nVidia Corporation NV34 [GeForce FX 5500]"
Driver "vesa"
BusID "PCI:1:0:0"
'<img'> що vesa направи го nv или ако си инсталирал дравер на nvidia го направи nvidia

... в Столичен инспекторат една година след миграцията, продължават да работят под Linux. Което, май прави "експеримента" успешен
by entusiast


  • Новаци
  • *
  • Публикации: 2
    • Профил
Debian xorg проблем
« Отговор #3 -: Mar 31, 2007, 12:03 »
@Hapkoc:Модула на мишката го поставих в /etc/modules.Направих и това с gdm-a,в резултат на което той вече не изкарва съобщение за грешка.Проблема обаче си остава,т.е след пускане на компютъра Х-а ми дава,че не е конфигуриран правилно и за да го подкарам пиша:modprobe mousedev->/etc/init.d/gdm stop->/etc/inid.d gdm start.Ако пробвам само /etc/init.d/gdm stop->/etc/inid.d gdm start Х-а не стартира!
@tolostoi:Ок,смених го на nv.Това обаче не реши проблема ми!
Някакви други идеи?


  • Напреднали
  • *****
  • Публикации: 564
    • Профил
Debian xorg проблем
« Отговор #4 -: Mar 31, 2007, 12:30 »
Примерен код
dpkg-reconfigure xserver-xorg

А за Nvidia драйвера погледни тук

Debian Lenny/sid

Подобни теми
Заглавие Започната от Отговора Прегледи Последна публикация
Настройка на програми
draco 2 1285 Последна публикация Oct 13, 2004, 22:09
xorg 6.8.1
Настройка на програми
PAIN1 3 1349 Последна публикация Nov 08, 2004, 11:32
от PAIN1
Конфигурация на графична среда - Xorg
Настройка на програми
Apache 5 1712 Последна публикация Jan 17, 2006, 13:42
от poisoner
Debian unstable xserver-xorg 7.3
Настройка на програми
ivo1204 23 4931 Последна публикация Sep 21, 2007, 02:45
от ivo1204
xorg 1:7.4+4 Debian Sid **********************
Настройка на програми
go_fire 25 4195 Последна публикация Nov 01, 2009, 21:29
от c2h5oh