PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : WinXP(cygwin) -> Suse 10.1



smartysmart34
28.11.06, 00:26
Hallo zusammen,

ich habe auf meinem WinXP cygwin installiert und dabei auch die x-server-Pakete ausgewählt. Der lokale xserver startet auch und xeyes o.ä. läuft. Sollte also passen.

Unter Suse habe ich unter YAST -> Netzwerk -> Administration von Remote erlaubt und die Firewall entsprechend geöffnet.

Ich habe dann in der kdmrc (/opt/kde3/share/config/kdm) noch manuell xdmcp erlaubt (=true).

Wenn ich nun xwin.exe auf Windowsseite aufrufe (xwin -from 192.168.2.221 -query 192.168.2.97) dann erscheint nach einer Weile der leere X-Server mit den schwarz-weißen Karos. Aber ich sehe keinen KDE-Login. Weder in /var/log/warn noch sonstwo sind Fehlermeldungen. Nachdem der Port auf der Firewall offen ist sehe ich auch keine gedroppten Pakete mehr (vorher waren da die beiden Rechner auf Port 177 gedropped...) und in var/log/firewall ist kein Fehler zu sehen.

Hat sonst noch jmd. eine Idee?

Danke und Gruß,
Martin Soltau

Columbo0815
28.11.06, 07:43
Eine Fehlermeldung kannst du auch in /var/log/kdm sehen. Du musst aber auch noch
in /etc/kde3/kdm/Xaccess die Zeile
# * #any host can get a login window
ändern in
* #any host can get a login window
(also das anführende "#" entfernen)

Bei Windows XP musst du noch die Ports 177 UDP und 6000 TCP freigeben.

Erleichtern kannst du dir die Arbeit weiterhin wenn du folgendest machst:

X:\Foo\bar\cygwin\usr\X11R6\bin\startxdmcp.bat editieren.
SET REMOTE_HOST=IP.vom.Linux.Rechner
SET CYGWIN_ROOT:=X:\foo\bar\cygwin

smartysmart34
28.11.06, 08:42
Hallo,

Entschuldige bitte, die Xaccess-Zeile habe ich geändert. Hatte ich vergessen, hab's aber gerade nochmal geprüft. Genaugenommen steht da aber:
* <tab> <tab> <tab> # any host can get...
Also mit den <tab>s will ich nur andeuten, daß es keine Leerzeichen, sondern Tabulatorsprünge sind. Sollte aber nicht stören, oder?

Das verwirrende ist für mich, daß ich vorübergehend garkeine XP-Firewall aktiv habe. Also... ich weiß nicht was es noch sein könnte. Beim Start von xwin erhalte ich ein paar Meldungen. Einige davon habe ich gegen die cygwin-Homepage geprüft und da steht, daß man die ignorieren kann. Habe aber nicht alles gesehen. Fällt noch wem was auf? Anbeo die Meldungen:



Welcome to the XWin X Server
Vendor: The Cygwin/X Project
Release: 6.8.99.901-4

Contact: cygwin-xfree@cygwin.com

XWin was started with the following command line:

xwin -from 192.168.2.221 -query 192.168.2.97

_XSERVTransmkdir: Owner of /tmp/.X11-unix should be set to root
winValidateArgs - g_iNumScreens: 1 iMaxConsecutiveScreen: 1
(II) XF86Config is not supported
(II) See http://x.cygwin.com/docs/faq/cygwin-x-faq.html for more information
winDetectSupportedEngines - Windows NT/2000/XP
winDetectSupportedEngines - DirectDraw installed
winDetectSupportedEngines - DirectDraw4 installed
winDetectSupportedEngines - Returning, supported engines 00000007
winSetEngine - Using Shadow DirectDraw NonLocking
winAdjustVideoModeShadowDDNL - Using Windows display depth of 16 bits per pixel
winFinishScreenInitFB - Masks: 0000f800 000007e0 0000001f
MIT-SHM extension disabled due to lack of kernel support
XFree86-Bigfont extension local-client optimization disabled due to lack of shar
ed memory support in the kernel
(--) Setting autorepeat to delay=500, rate=31
(--) winConfigKeyboard - Layout: "00000407" (00000407)
(--) Using preset keyboard for "German (Germany)" (407), type "4"
Rules = "xorg" Model = "pc105" Layout = "de" Variant = "(null)" Options = "(null
)"
expected keysym, got dead_diaresis: line 143 of pc/de
The XKEYBOARD keymap compiler (xkbcomp) reports:
> Warning: Type "ONE_LEVEL" has 1 levels, but <RALT> has 2 symbols
> Ignoring extra symbols
Errors from xkbcomp are not fatal to the X server
(--) 3 mouse buttons found
Could not init font path element /usr/X11R6/lib/X11/fonts/CID/, removing from li
st!
winPointerWarpCursor - Discarding first warp: 509 351
winDeleteNotifyIcon - Shell_NotifyIcon failed
FreeFontPath: FPE "/usr/X11R6/lib/X11/fonts/misc/" refcount is 2, should be 1; f
ixing.
winDeinitMultiWindowWM - Noting shutdown in progress


Danke und Gruß,
Martin

Columbo0815
28.11.06, 08:50
starte X wie beschrieben über die editierte startxdmcp.bat

smartysmart34
28.11.06, 09:07
Ich habe die startxdmcp.bat angepasst und cygwin darüber gestartet.
Mit dem selben Ergebnis, daß der Screen schwarzweißkariert bleibt :-(

Woran könnte ich denn auf Serverseite nicht gedacht haben? Ich finde leider in keinem Log irgendeinen Hinweis.

Danke und Gruß,
Martin

Columbo0815
28.11.06, 09:21
Was gibt die /var/log/kdm auf dem Server denn als Fehlerhinweis aus? Und poste mal die ganzen config-Dateien vom Server, die du geändert hast

smartysmart34
28.11.06, 12:55
Hallo,

OK, werde ich machen. Schaffe ich nur frühestens heute Abend. Eher morgen Früh...

Danke und Gruß,
Martin

smartysmart34
28.11.06, 20:42
Also zuerst die kdmrc:



# KDM master configuration file
#
# Definition: the greeter is the login dialog, i.e., the part of KDM
# which the user sees.
#
# You can configure every X-display individually.
# Every display has a display name, which consists of a host name
# (which is empty for local displays specified in {Static|Reserve}Servers),
# a colon, and a display number. Additionally, a display belongs to a
# display class (which can be ignored in most cases; the control center
# does not support this feature at all).
# Sections with display-specific settings have the formal syntax
# "[X-" host [":" number [ "_" class ]] "-" sub-section "]"
# You can use the "*" wildcard for host, number, and class. You may omit
# trailing components; they are assumed to be "*" then.
# The host part may be a domain specification like ".inf.tu-dresden.de".
# It may also be "+", which means non-empty, i.e. remote displays only.
# From which section a setting is actually taken is determined by these
# rules:
# - an exact match takes precedence over a partial match (for the host part),
# which in turn takes precedence over a wildcard ("+" taking precedence
# over "*")
# - precedence decreases from left to right for equally exact matches
# Example: display name "myhost:0", class "dpy".
# [X-myhost:0_dpy] precedes
# [X-myhost:0_*] (same as [X-myhost:0]) precedes
# [X-myhost:*_dpy] precedes
# [X-myhost:*_*] (same as [X-myhost]) precedes
# [X-+:0_dpy] precedes
# [X-*:0_dpy] precedes
# [X-*:0_*] (same as [X-*:0]) precedes
# [X-*:*_*] (same as [X-*])
# These sections do NOT match this display:
# [X-hishost], [X-myhost:0_dec], [X-*:1], [X-:*]
# If a setting is not found in any matching section, the default is used.
#
# Every comment applies to the following section or key. Note that all
# comments will be lost if you change this file with the kcontrol frontend.
# The defaults refer to KDM's built-in values, not anything set in this file.
#
# Special characters need to be backslash-escaped (leading and trailing
# spaces (\s), tab (\t), linefeed (\n), carriage return (\r) and the
# backslash itself (\\)).
# In lists, fields are separated with commas without whitespace in between.
# Some command strings are subject to simplified sh-style word splitting:
# single quotes (') and double quotes (") have the usual meaning; the backslash
# quotes everything (not only special characters). Note that the backslashes
# need to be doubled because of the two levels of quoting.

[General]
# This option exists solely for the purpose of a clean automatic upgrade.
# Do not even think about changing it!
ConfigVersion=2.3
# List of permanent displays. Displays with a hostname are foreign. A display
# class may be specified separated by an underscore.
# Default is ":0"
StaticServers=:0
# List of on-demand displays. See StaticServers for syntax.
# Default is ""
ReserveServers=:1,:2,:3
# VTs to allocate to X-servers. A negative number means that the VT will be
# used only if it is free. If all VTs in this list are used up, the next free
# one greater than the last one in this list will be allocated.
# Default is ""
ServerVTs=-7
# TTYs (without /dev/) to monitor for activity while in console mode.
# Default is ""
ConsoleTTYs=tty1,tty2,tty3,tty4,tty5,tty6
# Where KDM should store its PID (do not store if empty).
# Default is ""
PidFile=/var/run/xdm.pid
# Whether KDM should lock the PID file to prevent having multiple KDM
# instances running at once. Do not change unless you are brave.
# Default is true
#LockPidFile=false
# Where to store authorization files.
# Default is "/var/run/xauth"
AuthDir=/var/lib/xdm/authdir
# Whether KDM should automatically re-read configuration files, if it
# finds them having changed.
# Default is true
#AutoRescan=false
# Additional environment variables KDM should pass on to all programs it runs.
# LD_LIBRARY_PATH and XCURSOR_THEME are good candidates;
# otherwise, it should not be necessary very often.
# Default is ""
#ExportList=LD_LIBRARY_PATH,ANOTHER_IMPORTANT_VAR
# A character device KDM should read entropy from.
# Empty means use the system's preferred entropy device.
# Default is ""
#RandomDevice=/dev/altrandom
# Where the command FiFos should be created; make it empty to disable
# them.
# Default is "/var/run/xdmctl"
#FifoDir=/tmp
# The group to which the global command FiFo should belong;
# can be either a name or a numerical ID.
# Default is 0
#FifoGroup=xdmctl
# The directory in which KDM should store persistent working data.
# Default is "/var/lib/kdm"
#DataDir=
# The directory in which KDM should store users' .dmrc files. This is only
# needed if the home directories are not readable before actually logging in
# (like with AFS).
# Default is ""
#DmrcDir=/nfs-shared/var/dmrcs

[Xdmcp]
# Whether KDM should listen to incoming XDMCP requests.
# Default is true
Enable=true
# The UDP port on which KDM should listen for XDMCP requests. Do not change.
# Default is 177
#Port=177
# File with the private keys of X-terminals. Required for XDM authentication.
# Default is ""
#KeyFile=/opt/kde3/share/config/kdm/kdmkeys
# XDMCP access control file in the usual XDM-Xaccess format.
# Default is "/opt/kde3/share/config/kdm/Xaccess"
Xaccess=/opt/kde3/share/config/kdm/Xaccess
# Number of seconds to wait for display to respond after the user has
# selected a host from the chooser.
# Default is 15
#ChoiceTimeout=10
# Strip domain name from remote display names if it is equal to the local
# domain.
# Default is true
#RemoveDomainname=false
# Use the numeric IP address of the incoming connection on multihomed hosts
# instead of the host name.
# Default is false
#SourceAddress=true
# The program which is invoked to dynamically generate replies to XDMCP
# DirectQuery or BroadcastQuery requests.
# If empty, no program is invoked and "Willing to manage" is sent.
# Default is ""
Willing=/opt/kde3/share/config/kdm/Xwilling

[Shutdown]
# The command (subject to word splitting) to run to halt the system.
# Default is "/sbin/halt"
#HaltCmd=
# The command (subject to word splitting) to run to reboot the system.
# Default is "/sbin/reboot"
#RebootCmd=
# Whether it is allowed to shut down the system via the global command FiFo.
# Default is false
#AllowFifo=true
# Whether it is allowed to abort active sessions when shutting down the
# system via the global command FiFo.
# Default is true
#AllowFifoNow=false
# The boot manager KDM should use for offering boot options in the
# shutdown dialog.
# "None" - no boot manager
# "Grub" - Grub boot manager
# "Lilo" - Lilo boot manager (Linux on i386 &amp; x86-64 only)
# Default is None
#BootManager=Grub

# Rough estimations about how many seconds KDM will spend at most on
# - opening a connection to the X-server (OpenTime) if the attempt
# - times out: OpenTimeout
# - is refused: OpenRepeat * OpenDelay
# - starting a local X-server (ServerTime):
# ServerAttempts * (ServerTimeout + OpenDelay)
# - starting a display:
# - local display: ServerTime + OpenTime
# - foreign display: StartAttempts * OpenTime
# - XDMCP display: OpenTime (repeated indefinitely by client)

# Core config for all displays
[X-*-Core]
# How long to wait before retrying to connect a display.
# Default is 15
#OpenDelay=15
# How long to wait before timing out a display connection attempt.
# Default is 120
#OpenTimeout=120
# How many connection attempts to make during a start attempt. Note that
# a timeout aborts the entire start attempt.
# Default is 5
#OpenRepeat=5
# Try at most that many times to start a display. If this fails, the display
# is disabled.
# Default is 4
#StartAttempts=4
# Ping remote display every that many minutes.
# Default is 5
#PingInterval=5
# Wait for a Pong that many minutes.
# Default is 5
#PingTimeout=5
# The name of this X-server's Xauth file.
# If empty, a random name in the AuthDir directory will be used.
# Default is ""
#AuthFile=
# Specify a file with X-resources for the greeter, chooser and background.
# The KDE frontend does not use this file, so you do not need it unless you
# use another background generator than krootimage.
# Default is ""
Resources=/opt/kde3/share/config/kdm/Xresources
# The xrdb program to use to read the above specified recources.
# Subject to word splitting.
# Default is "/usr/X11R6/bin/xrdb"
#Xrdb=
# A program to run before the greeter is shown. Can be used to start an
# xconsole or an alternative background generator. Subject to word splitting.
# Default is ""
Setup=/opt/kde3/share/config/kdm/Xsetup
# A program to run before a user session starts. Subject to word splitting.
# Default is ""
Startup=/opt/kde3/share/config/kdm/Xstartup
# A program to run after a user session exits. Subject to word splitting.
# Default is ""
Reset=/opt/kde3/share/config/kdm/Xreset
# The program which is run as the user which logs in. It is supposed to
# interpret the session argument (see SessionsDirs) and start an appropriate
# session according to it. Subject to word splitting.
# Default is "/usr/X11R6/bin/xterm -ls -T"
Session=/opt/kde3/share/config/kdm/Xsession
# The program to run if Session fails.
# Default is "/usr/X11R6/bin/xterm"
#FailsafeClient=
# The PATH for the Session program.
# Default is "/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/usr/games"
#UserPath=
# The PATH for Setup, Startup and Reset, etc.
# Default is "/opt/kde3/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/X11R6/bin"
#SystemPath=
# The default system shell.
# Default is "/bin/sh"
#SystemShell=/bin/bash
# Where to put the user's X-server authorization file if ~/.Xauthority
# cannot be created.
# Default is "/tmp"
#UserAuthDir=
# Whether to automatically restart sessions after X-server crashes.
# Note that enabling this makes circumventing screen lockers other than
# KDE's built-in one possible!
# Default is false
#AutoReLogin=true
# Allow root logins?
# Default is true
AllowRootLogin=false
# Allow to log in, when user has set an empty password?
# Default is true
AllowNullPasswd=false
# Who is allowed to shut down the system. This applies both to the
# greeter and to the command FiFo.
# "None" - no "Shutdown..." menu entry is shown at all
# "Root" - the root password must be entered to shut down
# "All" - everybody can shut down the machine
# Default is All
AllowShutdown=Root
# Who is allowed to abort active sessions when shutting down.
# "None" - no forced shutdown is allowed at all
# "Root" - the root password must be entered to shut down forcibly
# "All" - everybody can shut down the machine forcibly
# Default is All
#AllowSdForceNow=Root
# The default choice for the shutdown condition/timing.
# "Schedule" - shut down after all active sessions exit (possibly at once)
# "TryNow" - shut down, if no active sessions are open; otherwise, do nothing
# "ForceNow" - shut down unconditionally
# Default is Schedule
#DefaultSdMode=ForceNow
# How to offer shutdown scheduling options:
# "Never" - not at all
# "Optional" - as a button in the simple shutdown dialogs
# "Always" - instead of the simple shutdown dialogs
# Default is Never
#ScheduledSd=Optional
# The directories containing session type definitions in .desktop format.
# Default is "/opt/kde3/share/apps/kdm/sessions,/usr/share/xsessions"
#SessionsDirs=/etc/X11/sessions,/usr/share/xsessions
# The file (relative to $HOME) to redirect the session output to. This is
# a printf format string; one %s will be replaced with the display name.
# Default is ".xsession-errors"
ClientLogFile=.xsession-errors-%s
# Whether KDM's built-in utmp/wtmp/lastlog registration should be used.
# Default is true
#UseSessReg=false
# Which X-authorization mechanisms should be used.
# Default is "MIT-MAGIC-COOKIE-1"
AuthNames=MIT-MAGIC-COOKIE-1
# Restart instead of resetting the local X-server after session exit.
# Use it if the server leaks memory etc.
# Default is false
TerminateServer=false

# Greeter config for all displays
[X-*-Greeter]
# Widget style of the greeter. "" means the built-in default which currently
# is "Plastik".
# Default is ""
#GUIStyle=Windows
# Admin session
# Default is false
#UseAdminSession=true
# Widget color scheme of the greeter. "" means the built-in default which
# currently is yellowish grey with some light blue and yellow elements.
# Default is ""
#ColorScheme=Pumpkin
# What should be shown in the greeter's logo are:
# "None" - nothing
# "Logo" - the image specified by LogoPixmap
# "Clock" - a neat analog clock
# Default is Clock
LogoArea=Logo
# The image to show when LogoArea=Logo.
# Default is ""
LogoPixmap=/opt/kde3/share/apps/kdm/pics/kdelogo.png
# The relative coordinates (X,Y in percent) of the center of the greeter.
# Default is "50,50"
#GreeterPos=30,40
# The screen the greeter should be displayed on in multi-headed and Xinerama
# setups. The numbering starts with 0. For Xinerama, it corresponds to the
# listing order in the active ServerLayout section of XF86Config; -1 means
# to use the upper-left screen, -2 means to use the upper-right screen.
# Default is 0
#GreeterScreen=-1
# The headline in the greeter. The following character pairs are replaced:
# - %d -> current display
# - %h -> host name, possibly with domain name
# - %n -> node name, most probably the host name without domain name
# - %s -> the operating system
# - %r -> the operating system's version
# - %m -> the machine (hardware) type
# - %% -> a single %
# Default is "Welcome to %s at %n"
#GreetString=K Desktop Environment (%n)
# Whether the fonts used in the greeter should be antialiased.
# Default is false
#AntiAliasing=true
# The font for the greeter headline.
# Default is "Serif,20,bold"
#GreetFont=Serif,20,5,0,50,0
# The normal font used in the greeter.
# Default is "Sans Serif,10"
#StdFont=Sans Serif,10,5,0,50,0
# The font used for the "Login Failed" message.
# Default is "Sans Serif,10,bold"
#FailFont=Sans Serif,10,5,0,75,0
# What to do with the Num Lock modifier for the time the greeter is running:
# "Off" - turn off
# "On" - turn on
# "Keep" - do not change the state
# Default is Keep
#NumLock=Off
# Language and locale to use in the greeter, encoded like $LC_LANG.
# Default is "en_US"
#Language=de_DE
# Enable autocompletion in the username line edit.
# Default is false
#UserCompletion=true
# Enable user list (names along with images) in the greeter.
# Default is true
#UserList=false
# User selection for UserCompletion and UserList:
# "NotHidden" - all users except those listed in HiddenUsers
# "Selected" - only the users listed in SelectedUsers
# Default is NotHidden
#ShowUsers=Selected
# For ShowUsers=Selected. @<group> means all users in that group.
# Default is ""
#SelectedUsers=root,johndoe
# For ShowUsers=NotHidden. @<group> means all users in that group.
# Default is ""
#HiddenUsers=root
# Special case of HiddenUsers: users with a non-zero UID less than this number
# will not be shown as well.
# Default is 0
MinShowUID=500
# Complement to MinShowUID: users with a UID greater than this number will
# not be shown as well.
# Default is 65535
MaxShowUID=65000
# If false, the users are listed in the order they appear in /etc/passwd.
# If true, they are sorted alphabetically.
# Default is true
#SortUsers=false
# Specify, where the users' pictures should be taken from.
# "AdminOnly" - from <FaceDir>/$USER.face[.icon]
# "PreferAdmin" - prefer <FaceDir>, fallback on $HOME
# "PreferUser" - ... and the other way round
# "UserOnly" - from the user's $HOME/.face[.icon]
# Default is AdminOnly
#FaceSource=PreferUser
# The directory containing the user images if FaceSource is not UserOnly.
# Default is "/opt/kde3/share/apps/kdm/faces"
#FaceDir=/usr/share/faces
# Specify, if/which user should be preselected for log in.
# "None" - do not preselect any user
# "Previous" - the user which successfully logged in last time
# "Default" - the user specified in the DefaultUser option
# Default is None
#PreselectUser=Previous
# If this is true, the password input line is focused automatically if
# a user is preselected.
# Default is false
#FocusPasswd=true
# The password input fields cloak the typed in text. Specify, how to do it:
# "OneStar" - <literal>*</literal> is shown for every typed letter
# "ThreeStars" - <literal>***</literal> is shown for every typed letter
# "NoEcho" - nothing is shown at all, the cursor does not move
# Default is OneStar
#EchoMode=NoEcho
# If true, krootimage will be automatically started by KDM; otherwise, the
# Setup script should be used to setup the background.
# Default is true
#UseBackground=false
# The configuration file to be used by krootimage.
# Default is "/opt/kde3/share/config/kdm/backgroundrc"
BackgroundCfg=/opt/kde3/share/config/kdm/backgroundrc
# Hold the X-server grabbed the whole time the greeter is visible. This
# may be more secure, but it will disable any background and other
# X-clients started from the Setup script.
# Default is false
#GrabServer=true
# How many seconds to wait for grab to succeed.
# Default is 3
#GrabTimeout=3
# Warn, if display has no X-authorization (local auth cannot be created,
# XDMCP display wants no auth, or display is foreign from StaticServers).
# Default is true
AuthComplain=false
# Random seed for forging saved session types, etc. of unknown users.
# This value should be random but constant across the login domain.
# Default is 0
ForgingSeed=1146580049
# Specify conversation plugins for the login dialog. Each plugin can be
# specified as a base name (which expands to $kde_modulesdir/kgreet_$base)
# or as a full pathname.
# Default is "classic"
#PluginsLogin=sign
# Same as PluginsLogin, but for the shutdown dialog.
# Default is "classic"
#PluginsShutdown=modern
# A list of options of the form Key=Value. The conversation plugins can query
# these settings; it is up to them what possible keys are.
# Default is ""
#PluginOptions=SomeKey=randomvalue,Foo=bar
# Show the "Console Login" action in the greeter (if ServerTTY/ConsoleTTYs
# is configured).
# Default is true
#AllowConsole=false
# A program to run while the greeter is visible. It is supposed to preload
# as much as possible of the session that is going to be started (most
# probably).
# Default is ""
Preloader=/opt/kde3/bin/preloadkde
# Whether the greeter should be themed.
# Default is false
#UseTheme=true
# The theme to use for the greeter. Can point to either a directory or an XML
# file.
# Default is ""
Theme=/opt/kde3/share/apps/kdm/themes/circles

# Core config for local displays
[X-:*-Core]
# How often to try to run the X-server. Running includes executing it and
# waiting for it to come up.
# Default is 1
#ServerAttempts=1
# How long to wait for a local X-server to come up.
# Default is 15
#ServerTimeout=15
# The command line to start the X-server, without display number and VT spec.
# This string is subject to word splitting.
# Default is "/usr/X11R6/bin/X -br"
ServerCmd=/usr/X11R6/bin/X -br
# Additional arguments for the X-servers for local sessions.
# This string is subject to word splitting.
# Default is ""
ServerArgsLocal=-nolisten tcp
# Additional arguments for the X-servers for remote sessions.
# This string is subject to word splitting.
# Default is ""
#ServerArgsRemote=
# See above
#TerminateServer=true
# The signal needed to reset the local X-server.
# Default is 1 (SIGHUP)
#ResetSignal=1
# The signal needed to terminate the local X-server.
# Default is 15 (SIGTERM)
#TermSignal=15
# Create X-authorizations for local displays.
# Default is true
#Authorize=false
# See above
#AuthNames=
# Need to reset the X-server to make it read initial Xauth file.
# Default is false
#ResetForAuth=true
# See above
AllowNullPasswd=true
# See above
AllowShutdown=All
# Enable password-less logins on this display. USE WITH EXTREME CARE!
# Default is false
#NoPassEnable=true
# The users that do not need to provide a password to log in. NEVER list root!
# "*" means all non-root users. @<group> means all users in that group.
# Default is ""
#NoPassUsers=fred,ethel
# All users can login without password
# Default is false
#NoPassAllUsers=true

# Greeter config for local displays
[X-:*-Greeter]
# See above
PreselectUser=Previous
# See above
FocusPasswd=true
# Specify whether the greeter of local displays should start up in host chooser
# (remote) or login (local) mode and whether it is allowed to switch to the
# other mode.
# "LocalOnly" - only local login possible
# "DefaultLocal" - start up in local mode, but allow switching to remote mode
# "DefaultRemote" - ... and the other way round
# "RemoteOnly" - only choice of remote host possible
# Default is LocalOnly
LoginMode=DefaultLocal
# A list of hosts to be automatically added to the remote login menu. The
# special name "*" means broadcast.
# Default is "*"
#ChooserHosts=*,ugly,sky,dino,kiste.local,login.cr ap.com
# Show the "Restart X Server"/"Close Connection" action in the greeter.
# Default is true
AllowClose=false

# Core config for 1st local display
[X-:0-Core]
# The VT the X-server should run on; auto-assign if zero, don't assign if -1.
# Better leave it zero and use ServerVTs.
# Default is 0
#ServerVT=7
# Enable automatic login. USE WITH EXTREME CARE!
# Default is false
#AutoLoginEnable=true
# If true, auto-login after logout. If false, auto-login is performed only
# when a display session starts up.
# Default is false
#AutoLoginAgain=true
# The delay in seconds before automatic login kicks in.
# Default is 0
#AutoLoginDelay=10
# The user to log in automatically. NEVER specify root!
# Default is ""
#AutoLoginUser=fred
# The password for the user to log in automatically. This is NOT required
# unless the user is logged into a NIS or Kerberos domain. If you use this
# option, you should "chmod 600 kdmrc" for obvious reasons.
# Default is ""
#AutoLoginPass=secret!
# Immediately lock the automatically started session. This works only with
# KDE sessions.
# Default is false
#AutoLoginLocked=true
# See above
ClientLogFile=.xsession-errors
# See above
Authorize=true
# See above
TerminateServer=true

# Greeter config for 1st local display
[X-:0-Greeter]
# See above
#PreselectUser=Default
# The user to preselect if PreselectUser=Default.
# Default is ""
#DefaultUser=johndoe
# Enable KDM's built-in xconsole. Note that this can be enabled for only
# one display at a time.
# Default is false
ShowLog=true
# The data source for KDM's built-in xconsole.
# If empty, a console log redirection is requested from /dev/console.
# Default is ""
LogSource=/dev/xconsole

[X-:1-Core]
# See above
Authorize=true



dann die Xaccess:



# $XConsortium: Xaccess,v 1.5 91/08/26 11:52:51 rws Exp $
#
# Access control file for XDMCP connections
#
# NOTE: In order to use this feature the resource
# DisplayManager.requestPort in xdm-config
# should be commented out to enable XDMCP.
#
# To control Direct and Broadcast access:
#
# pattern
#
# To control Indirect queries:
#
# pattern list of hostnames and/or macros ...
#
# To use the chooser:
#
# pattern CHOOSER BROADCAST
#
# or
#
# pattern CHOOSER list of hostnames and/or macros ...
#
# To define macros:
#
# %name list of hosts ...
#
# The first form tells xdm which displays to respond to itself.
# The second form tells xdm to forward indirect queries from hosts matching
# the specified pattern to the indicated list of hosts.
# The third form tells xdm to handle indirect queries using the chooser;
# the chooser is directed to send its own queries out via the broadcast
# address and display the results on the terminal.
# The fourth form is similar to the third, except instead of using the
# broadcast address, it sends DirectQuerys to each of the hosts in the list
#
# In all cases, xdm uses the first entry which matches the terminal;
# for IndirectQuery messages only entries with right hand sides can
# match, for Direct and Broadcast Query messages, only entries without
# right hand sides can match.
#

* #any host can get a login window

#
# To hardwire a specific terminal to a specific host, you can
# leave the terminal sending indirect queries to this host, and
# use an entry of the form:
#

#terminal-a host-a


#
# The nicest way to run the chooser is to just ask it to broadcast
# requests to the network - that way new hosts show up automatically.
# Sometimes, however, the chooser can't figure out how to broadcast,
# so this may not work in all environments.
#

* CHOOSER BROADCAST #any indirect host can get a chooser

#
# If you'd prefer to configure the set of hosts each terminal sees,
# then just uncomment these lines (and comment the CHOOSER line above)
# and edit the %hostlist line as appropriate
#

#%hostlist host-a host-b

#* CHOOSER %hostlist #



Und jetzt ein Auszug aus kdm.log:



X Window System Version 6.9.0
Release Date: 21 December 2005
X Protocol Version 11, Revision 0, Release 6.9
Build Operating System: SuSE Linux [ELF] SuSE
Current Operating System: Linux SoltauSuse1 2.6.16.21-0.25-bigsmp #1 SMP Tue Sep 19 07:26:15 UTC 2006 i686
Build Date: 13 September 2006
Before reporting problems, check http://wiki.X.Org
to make sure that you have the latest version.
Module Loader present
Markers: (--) probed, (**) from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: "/var/log/Xorg.0.log", Time: Tue Nov 28 21:04:05 2006
(==) Using config file: "/etc/X11/xorg.conf"
(WW) RADEON: No matching Device section for instance (BusID PCI:1:0:1) found
The XKEYBOARD keymap compiler (xkbcomp) reports:
> Warning: Type "ONE_LEVEL" has 1 levels, but <RALT> has 2 symbols
> Ignoring extra symbols
Errors from xkbcomp are not fatal to the X server
Could not init font path element /usr/X11R6/lib/X11/fonts/local, removing from list!
Could not init font path element /usr/X11R6/lib/X11/fonts/CID, removing from list!
Link points to "/var/tmp/kdecache-root"
SetClientVersion: 0 9
SetGrabKeysState - disabled
SetGrabKeysState - enabled




Hilft das weiter? Fehlt noch was?

Danke und Gruß,
Martin

Columbo0815
29.11.06, 08:05
Hm, du könntest mal versuchen deine XAccess in der Form anzupassen, dass nur das erste "*" ausgewertet wird. Ich kann mir zwar nicht vorstellen, dass sich das in dem Punkt behindert aber testen kannst du es.

Du hast Suse, du hast auch ganz sicher alle Firewalls auf der Suse-Kiste AUS?

smartysmart34
29.11.06, 08:20
Oh mann, ich krieg' ne Krise.... ;-)

Also ich habe ursprünglich in der Suse-Firewall (Yast -> Sicherheit... -> Firewall) nur die Dienste "Fernzugriff auf Display-Manager" und "Verwaltung via entferntem Rechner (remote)" aktiviert. Ich dachte, daß wären die zwei. Ich habe in Yast leider keine Möglichkeit gesehen zu prüfen, welche Ports das denn nun genau sind. Nachdem ich im Firewall-Log aber keine gedroppten Pakete mehr gesehen habe dachte ich, es sei OK.
Nun habe ich die Firewall in Yast komplett angehalten, und ich kriege immernoch keinen connect über cygwin. Gibt es noch mehr ecken, an denen ich Friewalls abschalten müsste? Du sprichst im Plural...

Danke und Gruß,
Martin

Edit: Was genau meinst Du mit der Anpassung der Xaccess? Das habe ich nicht verstanden...

Columbo0815
29.11.06, 08:30
Du sprichst im Plural...
Ich spreche auch manchmal in der dritten Person über mich ;) Aber den Thread wirst du nicht finden *hust*

scan einfach mal die Suse Kiste von einem entfernten Rechner aus. Alternativ kannst du am Suse-Rechner
nmap 192.168.2.97 ausführen. Ich gehe davon aus, dass .2.97 dein Suse-Rechner ist.

Deatkiviere auch alle Firewalls am XP-Rechner komplett.

Nur um sicher zu gehen: Du hast kdm auch neu gestartet, nachdem du die Änderung der config vorgenommen hast?

smartysmart34
29.11.06, 08:35
Also ich glaube, mit nmap kommen wir weiter.

Aber zuerst: Ja, ich habe den Rechner durchgestartet, da ich ihn eher als Arbeitsplatz nutze als als Server. Der wird immer abends abgeschaltet und morgends wieder an. Reboot war also schon mehrfach...

Aber jetzt zu nmap. Aus irgendwelchen Gründen scheinen Port 177 und 6000 nicht dabei zu sein...


Interesting ports on 192.168.2.97:
(The 1665 ports scanned but not shown below are in state: closed)
PORT STATE SERVICE
111/tcp open rpcbind
631/tcp open ipp
3306/tcp open mysql
5801/tcp open vnc-http-1
5901/tcp open vnc-1
6543/tcp open mythtv
6544/tcp open mythtv



Frage: Wenn die zwei oben genannten erlaubten Dienste hier also nicht Port 177 betreffen: Wie kriege ich den manuell aufgemacht? Am besten über YAST?

Danke und Gruß,
Martin

Edit: Habe gerade den gleichen Scan mit deaktivierter Firewall gemacht....
sieht genauso aus... Was stimmt da nicht?

Columbo0815
29.11.06, 08:54
Der Dienst wird nicht laufen. Lasse alternativ mal
nmap 127.0.0.1laufen.

Prüfe mal mit
ps axob X mit -nolisten tcp gestartet wurde, was wohl falsch wäre

smartysmart34
29.11.06, 09:54
Hallo Columbo,

OK, werde ich testen. Allerdings erst wieder heute abend... Bin nicht an dem Rechner.
Kurze Frage: FALLS X mit nolisten gestartet wäre: Woran würde das liegen und was könnte man dagegen tun? Die Configs sahen doch gut aus?

Gruß,
Martin

Columbo0815
29.11.06, 09:59
Das liegt daran, dass dein loginmanager (kdm) X mit -nolisten tcp startet.



ServerArgsLocal=-nolisten tcp
Habe ich eben aus deiner kdm.conf entnommen.

smartysmart34
29.11.06, 11:02
Das ist aber konisch ;-)
Ich hätte jetzt in meiner mir eigenen Naivität angenommen, daß wenn ich in Yast sage, daß ein Remotezugriff erlaubt ist, das dann auch so konfiguriert wird, daß es geht. Wieso muß ich den Parameter jetzt manuell ändern? Ist das normal?

Gruß,
Martin

Columbo0815
29.11.06, 11:04
Ich habe kein Suse, weiß deshalb nicht ob das dort normal ist. Ich ändere alle meine config-Dateien manuell.

smartysmart34
29.11.06, 13:16
Alla gut, ich nehm's mal raus.
Letzte Frage, und dann lass Ich Dich auch in Ruhe:
Kommentiere ich die Zeile dann am besten raus, schreibe ich nach dem "=" none, lösche ich nur die beiden Parameter weg und lass nach dem "=" leer?

Gruß,
Martin

P.S.: Vielen VIELEN Dank für die Geduld und die guten Tips!

Columbo0815
29.11.06, 13:22
Überlasse ich deiner Phantasie, da beides zum gleichen Ergebnis führen sollte. Es gibt keinen "richtigen" Weg.

In Ruhe lassen musst du mich nicht. Es wäre schon nett zu erfahren ob es läuft oder nicht ;)

smartysmart34
29.11.06, 13:30
Sicher, ich sage nochmal bescheid. Aber erst heute Abend zu fortgeschrittener Stunde.
Eigentlich hatte ich drei Alternativen gefragt. Ich nehme aber an, daß "none" kein gültiger Weg ist, sondern die Zeile entweder auskommentiert wird, oder nach dem "=" gelöscht wird...

Danke und Gruß,
Martin

smartysmart34
29.11.06, 21:08
Hallo Columbo0815,

Leider, leider...
Ich habe den Eintrag mit den Args auskommentiert. In der Firewall habe ich den Remotezugriff auf den Display manager und die Administration von remote zugelassen. nmap sagt mir jetzt:

Starting Nmap 4.00 ( http://www.insecure.org/nmap/ ) at 2006-11-29 21:06 CET
Interesting ports on 192.168.2.97:
(The 1664 ports scanned but not shown below are in state: closed)
PORT STATE SERVICE
111/tcp open rpcbind
631/tcp open ipp
3306/tcp open mysql
5801/tcp open vnc-http-1
5901/tcp open vnc-1
6001/tcp open X11:1
6543/tcp open mythtv
6544/tcp open mythtv

Aber leider bekomme ich auf dem Notebook immernoch kein Bild.

Hast Du noch eine Idee?

Edit: Auch mit unter Suse ausgeschalteter Firewall... nix...

Columbo0815
30.11.06, 07:26
Ja, habe noch eine Idee. Du siehst, dass Port 6001 offen ist und nicht wie gefordert 6000.

smartysmart34
30.11.06, 07:31
Nur: wie ändere ich das? Ich habe in Yast versucht über erweiterte Einstellungen einen Port mitzugeben. Der war nur hinterher wieder weg. Ich muß mal schauen, ob ich unter cygwin eine Option sehe, wie ich das ändern kann....

Gruß,
Martin

P.S.: Von Port 177 habe ich jetzt garnix gesehen. Der ist doch aber auch im Spiel, oder? Muß ich mir da noch Sorgen machen?

Columbo0815
30.11.06, 07:57
Der Port 177 muss am Client offen sein.

smartysmart34
30.11.06, 09:32
Hallo nochmal, ich habe nur eine Frage noch:

An der Zeile "6001/tcp open X11:1" wundert mich was...
<Spekulationsmodus>
Das X11:1 bezieht sich nciht zufällig auf die Display nummer? Und das hat nicht zufällig damit zu tun, daß ich bereits angemeldet war (lokal)? Weil dann wäre am Ende vielleicht die Portnummer vom jeweiligen Display abhängig und ich könnte ja nie genau wissen, welche Nummer ich remote angeben muß, da ich nicht weiß, ob lokal jemand angemeldet ist?
Und: bin ich dann am Ende auf zwei remote-Connections limitiert, weil es lokal auch nur zwei Schirme gibt (F7 und F8)?
</Spekulationsmodus>

Wäre schön, wenn Du mir da nochmal auf die Sprünge helfen könntest.
Optimal wäre natürlich, wenn ich einfach cygwin auf 6001 umbiege und dann alles klappt...

Danke und Gruß,
Martin

Edit:
Nachdem ich in der cygwin-Doku keinen Hinweis gefunden habe, wie der zu verwendende Port angegeben werden kann, möchte ich unter SUSE den X11-Port ändern. Dazu habe ich aber auch nix gefunden. Kannst Du mir da nochmal nen Schubbs geben?

smartysmart34
01.12.06, 08:14
Hallo nochmal,

GEHT!!!
Ich habe es nochmal nach folgender Anleitung durchgespielt:
http://www.unixboard.de/vb3/showthread.php?t=18102
Ich hatte den Fontserver vergessen und offensichtlich bin ich mit der Xaccess irgendwo fehlgeleitet worden. Die gibt es unter Suse nämlich nicht nur unter /etc... sondern auch unter /opt/kde3/...
Zusammen mit dem POrt 7100 in der Firewall ging es dann sofort!!!

Danke für die Hilfe und Gruß,
Martin

Columbo0815
01.12.06, 12:05
Wunderbar :)