Nie jesteś zalogowany.
Jeśli nie posiadasz konta, zarejestruj je już teraz! Pozwoli Ci ono w pełni korzystać z naszego serwisu. Spamerom dziękujemy!

Ogłoszenie

Prosimy o pomoc dla małej Julki — przekaż 1% podatku na Fundacji Dzieciom zdazyć z Pomocą.
Więcej informacji na dug.net.pl/pomagamy/.

#26  2017-07-02 16:20:28

  michalc1976 - Użytkownik

michalc1976
Użytkownik
Zarejestrowany: 2017-06-28

Re: Debian 9 i686 - brak ekranu logowania

[quote=yossarian]

Kod:

[+0.02s] DEBUG: DisplayServer x-2: Can't launch X server Xephyr, not found in path
[+0.02s] DEBUG: DisplayServer x-2: X server stopped

[/quote]
Lightdm próbuje odpalić Xephyr zamiast standardowego Xorga.
Dziwnie to wygląda. W jaki dokładnie sposób instalowałeś i konfigurowałeś system?
Masz /usr/bin/X i /usr/bin/Xorg?

Można by było ustawić za pomocą opcji:

# xserver-command = X server command to run (can also contain arguments e.g. X -special-option)[/quote]
Pokaż co masz w /etc/lightdm/lightdm.conf[/quote]
Mam stary laptop - Lenovo R60e, procesor Intel Core Duo T2300, 3GB RAM, SSD 120 GB. System instalowałem zwyczajnie - ściągnąłem ISO Debiana 9 poprzez torrent (https://cdimage.debian.org/debian-cd/current/i386/bt-dvd/), wypaliłem na DVD. Potem programem GParted 0.28.1-1.i686 zmniejszyłem partycję z Win 10 o około 43GB. Ustawiłem bootowanie z DVD i kilkałem "Continue" :-) Wybrałem język angielski i polską klawiaturę, ale to chyba nie problem? Gdy instalowałem system Debian 9 po raz drugi, w opcji środowisk graficznych do instalacji wybrałem pierwszą opcję ("Default Debian graphic environment"), "Xfce" oraz "standard system utils", ale to nic nie pomogło na okienko logowania. W trakcie drugiej instalacji na pendrive dodałem sterowniki od WiFi (iwlwifi-3945-1.ucode, iwlwifi-3945-2.ucode) dzięki czemu miałem poprawną godzinę w systemie :-)
Przedtem (na starym dysku HDD) miałem Windows XP i Debiana 8, którego instalowałem też z płyty DVD i nie było problemów. SSD chyba nie robi różnicy na minus?

Kod:

michalc@CinkPadR60e:~$ ls -l /usr/bin/X
lrwxrwxrwx 1 root root 4 Mar  3 15:41 /usr/bin/X -> Xorg
michalc@CinkPadR60e:~$ ls -l /usr/bin/Xorg 
-rwxr-xr-x 1 root root 274 Mar  3 15:41 /usr/bin/Xorg
michalc@CinkPadR60e:~$ cat /usr/bin/Xorg 
#!/bin/sh
#
# Execute Xorg.wrap if it exists otherwise execute Xorg directly.
# This allows distros to put the suid wrapper in a separate package.

basedir=/usr/lib/xorg
if [ -x "$basedir"/Xorg.wrap ]; then
    exec "$basedir"/Xorg.wrap "$@"
else
    exec "$basedir"/Xorg "$@"
fi

Kod:

cat /etc/lightdm/lightdm.conf
#
# General configuration
#
# start-default-seat = True to always start one seat if none are defined in the configuration
# greeter-user = User to run greeter as
# minimum-display-number = Minimum display number to use for X servers
# minimum-vt = First VT to run displays on
# lock-memory = True to prevent memory from being paged to disk
# user-authority-in-system-dir = True if session authority should be in the system location
# guest-account-script = Script to be run to setup guest account
# logind-check-graphical = True to on start seats that are marked as graphical by logind
# log-directory = Directory to log information to
# run-directory = Directory to put running state in
# cache-directory = Directory to cache to
# sessions-directory = Directory to find sessions
# remote-sessions-directory = Directory to find remote sessions
# greeters-directory = Directory to find greeters
# backup-logs = True to move add a .old suffix to old log files when opening new ones
#
[LightDM]
#start-default-seat=true
#greeter-user=lightdm
#minimum-display-number=0
#minimum-vt=7
#lock-memory=true
#user-authority-in-system-dir=false
#guest-account-script=guest-account
#logind-check-graphical=false
#log-directory=/var/log/lightdm
#run-directory=/var/run/lightdm
#cache-directory=/var/cache/lightdm
#sessions-directory=/usr/share/lightdm/sessions:/usr/share/xsessions:/usr/share/wayland-sessions
#remote-sessions-directory=/usr/share/lightdm/remote-sessions
#greeters-directory=/usr/share/lightdm/greeters:/usr/share/xgreeters
#backup-logs=true

#
# Seat configuration
#
# Seat configuration is matched against the seat name glob in the section, for example:
# [Seat:*] matches all seats and is applied first.
# [Seat:seat0] matches the seat named "seat0".
# [Seat:seat-thin-client*] matches all seats that have names that start with "seat-thin-client".
#
# type = Seat type (xlocal, xremote, unity)
# pam-service = PAM service to use for login
# pam-autologin-service = PAM service to use for autologin
# pam-greeter-service = PAM service to use for greeters
# xserver-command = X server command to run (can also contain arguments e.g. X -special-option)
# xmir-command = Xmir server command to run (can also contain arguments e.g. Xmir -special-option)
# xserver-config = Config file to pass to X server
# xserver-layout = Layout to pass to X server
# xserver-allow-tcp = True if TCP/IP connections are allowed to this X server
# xserver-share = True if the X server is shared for both greeter and session
# xserver-hostname = Hostname of X server (only for type=xremote)
# xserver-display-number = Display number of X server (only for type=xremote)
# xdmcp-manager = XDMCP manager to connect to (implies xserver-allow-tcp=true)
# xdmcp-port = XDMCP UDP/IP port to communicate on
# xdmcp-key = Authentication key to use for XDM-AUTHENTICATION-1 (stored in keys.conf)
# unity-compositor-command = Unity compositor command to run (can also contain arguments e.g. unity-system-compositor -special-option)
# unity-compositor-timeout = Number of seconds to wait for compositor to start
# greeter-session = Session to load for greeter
# greeter-hide-users = True to hide the user list
# greeter-allow-guest = True if the greeter should show a guest login option
# greeter-show-manual-login = True if the greeter should offer a manual login option
# greeter-show-remote-login = True if the greeter should offer a remote login option
# user-session = Session to load for users
# allow-user-switching = True if allowed to switch users
# allow-guest = True if guest login is allowed
# guest-session = Session to load for guests (overrides user-session)
# session-wrapper = Wrapper script to run session with
# greeter-wrapper = Wrapper script to run greeter with
# guest-wrapper = Wrapper script to run guest sessions with
# display-setup-script = Script to run when starting a greeter session (runs as root)
# display-stopped-script = Script to run after stopping the display server (runs as root)
# greeter-setup-script = Script to run when starting a greeter (runs as root)
# session-setup-script = Script to run when starting a user session (runs as root)
# session-cleanup-script = Script to run when quitting a user session (runs as root)
# autologin-guest = True to log in as guest by default
# autologin-user = User to log in with by default (overrides autologin-guest)
# autologin-user-timeout = Number of seconds to wait before loading default user
# autologin-session = Session to load for automatic login (overrides user-session)
# autologin-in-background = True if autologin session should not be immediately activated
# exit-on-failure = True if the daemon should exit if this seat fails
#
[Seat:*]
#type=xlocal
#pam-service=lightdm
#pam-autologin-service=lightdm-autologin
#pam-greeter-service=lightdm-greeter
#xserver-command=X
#xmir-command=Xmir
#xserver-config=
#xserver-layout=
#xserver-allow-tcp=false
#xserver-share=true
#xserver-hostname=
#xserver-display-number=
#xdmcp-manager=
#xdmcp-port=177
#xdmcp-key=
#unity-compositor-command=unity-system-compositor
#unity-compositor-timeout=60
#greeter-session=example-gtk-gnome
#greeter-hide-users=false
#greeter-allow-guest=true
#greeter-show-manual-login=false
#greeter-show-remote-login=true
#user-session=default
#allow-user-switching=true
#allow-guest=true
#guest-session=
#session-wrapper=lightdm-session
#greeter-wrapper=
#guest-wrapper=
#display-setup-script=
#display-stopped-script=
#greeter-setup-script=
#session-setup-script=
#session-cleanup-script=
#autologin-guest=false
#autologin-user=
#autologin-user-timeout=0
#autologin-in-background=false
#autologin-session=
#exit-on-failure=false

#
# XDMCP Server configuration
#
# enabled = True if XDMCP connections should be allowed
# port = UDP/IP port to listen for connections on
# listen-address = Host/address to listen for XDMCP connections (use all addresses if not present)
# key = Authentication key to use for XDM-AUTHENTICATION-1 or blank to not use authentication (stored in keys.conf)
# hostname = Hostname to report to XDMCP clients (defaults to system hostname if unset)
#
# The authentication key is a 56 bit DES key specified in hex as 0xnnnnnnnnnnnnnn.  Alternatively
# it can be a word and the first 7 characters are used as the key.
#
[XDMCPServer]
#enabled=false
#port=177
#listen-address=
#key=
#hostname=

#
# VNC Server configuration
#
# enabled = True if VNC connections should be allowed
# command = Command to run Xvnc server with
# port = TCP/IP port to listen for connections on
# listen-address = Host/address to listen for VNC connections (use all addresses if not present)
# width = Width of display to use
# height = Height of display to use
# depth = Color depth of display to use
#
[VNCServer]
#enabled=false
#command=Xvnc
#port=5900
#listen-address=
#width=1024
#height=768
#depth=8

Offline

 

#27  2017-07-02 16:45:36

  jawojx - Użytkownik

jawojx
Użytkownik
Zarejestrowany: 2012-10-11

Re: Debian 9 i686 - brak ekranu logowania

[b]Zapomniałem napisać że masz zatrzymać lightdm[/b] "DisplayServer x-2", ale dlaczego na trzecim się próbuje uruchomić.
Przed zatrzymaniem pokaż:

Kod:

ps -e | grep X

Zatrzymaj lightdm:

Kod:

# systemctl stop lightdm.service

I sprawdź czy xserver jest zatrzymany:

Kod:

ps -e | grep X

Potem:

Kod:

# lightdm --test-mode --debug

I pokaż:

Kod:

# cat /var/log/lightdm/lightdm.log

Jak uruchomisz przez startx to też pokaż:

Kod:

ps -e | grep X

Ostatnio edytowany przez jawojx (2017-07-02 16:46:23)

Offline

 

#28  2017-07-02 20:28:20

  michalc1976 - Użytkownik

michalc1976
Użytkownik
Zarejestrowany: 2017-06-28

Re: Debian 9 i686 - brak ekranu logowania

[quote=jawojx][b]Zapomniałem napisać że masz zatrzymać lightdm[/b] "DisplayServer x-2", ale dlaczego na trzecim się próbuje uruchomić.
Przed zatrzymaniem pokaż:

Kod:

ps -e | grep X

Zatrzymaj lightdm:

Kod:

# systemctl stop lightdm.service

I sprawdź czy xserver jest zatrzymany:

Kod:

ps -e | grep X

Potem:

Kod:

# lightdm --test-mode --debug

I pokaż:

Kod:

# cat /var/log/lightdm/lightdm.log

Jak uruchomisz przez startx to też pokaż:

Kod:

ps -e | grep X

[/quote]
Nie wiem czy dobrze zrozumiałem Twój post - wszystkie polecenia wklepywałem w konsoli tty1, bez wpisania komendy "startx".
Pierwszy ps

Kod:

  512 tty7     00:00:00 Xorg

Drugi ps (po stop lightdm.service)

Kod:

cat

Kod:

[+0.00s] DEBUG: Logging to /var/log/lightdm/lightdm.log
[+0.00s] DEBUG: Starting Light Display Manager 1.18.3, UID=0 PID=910
[+0.00s] DEBUG: Loading configuration dirs from /usr/share/lightdm/lightdm.conf.d
[+0.00s] DEBUG: Loading configuration from /usr/share/lightdm/lightdm.conf.d/01_debian.conf
[+0.00s] DEBUG: Loading configuration dirs from /usr/local/share/lightdm/lightdm.conf.d
[+0.00s] DEBUG: Loading configuration dirs from /etc/xdg/lightdm/lightdm.conf.d
[+0.00s] DEBUG: Loading configuration from /etc/lightdm/lightdm.conf
[+0.00s] DEBUG: Using D-Bus name org.freedesktop.DisplayManager
[+0.00s] DEBUG: Registered seat module xlocal
[+0.00s] DEBUG: Registered seat module xremote
[+0.00s] DEBUG: Registered seat module unity
[+0.01s] DEBUG: Monitoring logind for seats
[+0.01s] DEBUG: New seat added from logind: seat0
[+0.01s] DEBUG: Seat seat0: Loading properties from config section Seat:*
[+0.01s] DEBUG: Seat seat0: Starting
[+0.01s] DEBUG: Seat seat0: Creating greeter session
[+0.01s] DEBUG: Seat seat0: Creating display server of type x
[+0.02s] DEBUG: Using VT 7
[+0.02s] DEBUG: Seat seat0: Starting local X display on VT 7
[+0.02s] DEBUG: DisplayServer x-0: Logging to /var/log/lightdm/x-0.log
[+0.02s] DEBUG: DisplayServer x-0: Writing X server authority to /var/run/lightdm/root/:0
[+0.03s] DEBUG: DisplayServer x-0: Launching X Server
[+0.03s] DEBUG: Launching process 915: /usr/bin/X :0 -seat seat0 -auth /var/run/lightdm/root/:0 -nolisten tcp vt7 -novtswitch
[+0.03s] DEBUG: DisplayServer x-0: Waiting for ready signal from X server :0
[+0.03s] DEBUG: Acquired bus name org.freedesktop.DisplayManager
[+0.04s] DEBUG: Registering seat with bus path /org/freedesktop/DisplayManager/Seat0
[+0.04s] DEBUG: Loading users from org.freedesktop.Accounts
[+0.05s] DEBUG: User /org/freedesktop/Accounts/User1000 added
[+0.08s] DEBUG: Seat seat0 changes active session to c1
[+0.10s] CRITICAL: session_get_login1_session_id: assertion 'session != NULL' failed
[+0.74s] DEBUG: Got signal 10 from process 915
[+0.74s] DEBUG: DisplayServer x-0: Got signal from X server :0
[+0.74s] DEBUG: DisplayServer x-0: Connecting to XServer :0
[+0.74s] DEBUG: Seat seat0: Display server ready, starting session authentication
[+0.74s] DEBUG: Session pid=926: Started with service 'lightdm-greeter', username 'lightdm'
[+0.76s] DEBUG: Session pid=926: Authentication complete with return value 0: Success
[+0.76s] DEBUG: Seat seat0: Session authenticated, running command
[+0.76s] DEBUG: Session pid=926: Running command /usr/sbin/lightdm-gtk-greeter
[+0.76s] DEBUG: Creating shared data directory /var/lib/lightdm/data/lightdm
[+0.76s] DEBUG: Session pid=926: Logging to /var/log/lightdm/seat0-greeter.log
[+0.77s] DEBUG: Activating VT 7
[+0.84s] DEBUG: Greeter connected version=1.18.3 resettable=false
[+2.87s] DEBUG: Greeter start authentication
[+2.87s] DEBUG: Session pid=956: Started with service 'lightdm', username '(null)'
[+2.88s] DEBUG: Session pid=956: Got 1 message(s) from PAM
[+2.88s] DEBUG: Prompt greeter with 1 message(s)
[+10.07s] DEBUG: Seat seat0 changes active session to 2
[+36.01s] DEBUG: Seat seat0 changes active session to 
[+45.03s] DEBUG: Seat seat0 changes active session to 4

ps po startx

Kod:

 915 tty7     00:00:00 Xorg
 1039 tty2     00:00:06 Xorg

Musiałem uruchomić startx z konsoli tty2 bo na tty1 wisi mi zawartość loga.

Mam nadzieję że o to chodziło.

Offline

 

#29  2017-07-02 22:39:49

  jawojx - Użytkownik

jawojx
Użytkownik
Zarejestrowany: 2012-10-11

Re: Debian 9 i686 - brak ekranu logowania

Tak o to chodziło. Tylko czasu mało bo ja zaczynam urlop i nad ranem wyjeżdżam. Na wakacjach komputera dotykam tylko okazjonalnie, ale jak nikt ci nie pomoże to postaram się odpisywać tylko nie wiem z jaką częstotliwością to będzie.

Dlaczego masz dwie sesje graficzne uruchomione, ustaw domyślne.

Kod:

# systemctl isolate default.target

Możesz restartować lightdm.

Kod:

# systemctl restart lightdm.service

I sprawdzić czy jest jeden.

Kod:

ps -e | grep X

Zrestartuj komputer i pokaż swoje nie root-a

Kod:

cat ~/.xsession-errors

Offline

 

#30  2017-07-05 09:53:57

  michalc1976 - Użytkownik

michalc1976
Użytkownik
Zarejestrowany: 2017-06-28

Re: Debian 9 i686 - brak ekranu logowania

Już wiem na czym polega problem z brakiem ekranu logowania. Z uwagi na to że ekran mojego laptopa ma bardzo małą rozdzielczość (1024x768), mam podpięty przez D-Sub zewnętrzny monitor. Wczoraj coś mnie tknęło i odłączyłem zewnętrzny monitor i ekran logowania pojawił się bez zająknięcia.
Niestety nie wiem jak skonfigurować oba monitory, żeby ekran logowania pojawiał się na którymkolwiek z nich, a po zalogowaniu żeby był aktywny monitor zewnętrzny. Próbowałem wszystkich czterech opcji dostępnych w okienku które pojawia się po naciśnięciu Fn+F7 (zmiana monitora), ale to nic nie pomaga.

Offline

 

#31  2017-07-05 10:41:11

  arecki - Użytkownik

arecki
Użytkownik
Skąd: 44 Bronson Lane Hensonville
Zarejestrowany: 2016-03-03

Re: Debian 9 i686 - brak ekranu logowania

https://wiki.archlinux.org/index.php/xrandr#Configuration

Ostatnio edytowany przez arecki (2017-07-05 10:42:28)

Offline

 

#32  2017-07-06 10:37:18

  michalc1976 - Użytkownik

michalc1976
Użytkownik
Zarejestrowany: 2017-06-28

Re: Debian 9 i686 - brak ekranu logowania

Zmodyfikowałem skrypt z linku z instrukcją xrandr:

Kod:

#!/bin/bash
intern=LVDS1
extern=VGA1

if xrandr | grep "$extern disconnected"; then
    xrandr --output "$extern" --off --output "$intern" --auto
else
    xrandr --output "$intern" --off --output "$extern" --auto
fi

Sam skrypt, zapisany w pliku, działa ok. W które miejsce, w który plik muszę go wkleić aby uruchamiał się automatycznie?

Offline

 

#33  2017-07-06 12:46:59

  arecki - Użytkownik

arecki
Użytkownik
Skąd: 44 Bronson Lane Hensonville
Zarejestrowany: 2016-03-03

Re: Debian 9 i686 - brak ekranu logowania

Zakładając, że masz lightdm -> https://wiki.archlinux.org/index.php/LightDM#LightDM_displaying_in_wrong_monitor

Offline

 

Stopka forum

Powered by PunBB
© Copyright 2002–2005 Rickard Andersson
Nas ludzie lubią po prostu, a nie klikając w przyciski ;-)

[ Generated in 0.016 seconds, 20 queries executed ]

Informacje debugowania

Time (s) Query
0.00014 SET CHARSET latin2
0.00006 SET NAMES latin2
0.00073 SELECT u.*, g.*, o.logged FROM punbb_users AS u INNER JOIN punbb_groups AS g ON u.group_id=g.g_id LEFT JOIN punbb_online AS o ON o.ident='44.200.122.214' WHERE u.id=1
0.00099 UPDATE punbb_online SET logged=1728988772 WHERE ident='44.200.122.214'
0.00024 SELECT * FROM punbb_online WHERE logged<1728988472
0.00057 DELETE FROM punbb_online WHERE ident='185.191.171.8'
0.00052 DELETE FROM punbb_online WHERE ident='213.180.203.76'
0.00112 DELETE FROM punbb_online WHERE ident='52.167.144.161'
0.00051 DELETE FROM punbb_online WHERE ident='54.36.148.210'
0.00050 DELETE FROM punbb_online WHERE ident='54.36.148.252'
0.00060 DELETE FROM punbb_online WHERE ident='54.36.149.36'
0.00065 DELETE FROM punbb_online WHERE ident='54.36.149.81'
0.00049 DELETE FROM punbb_online WHERE ident='54.36.149.99'
0.00050 DELETE FROM punbb_online WHERE ident='85.208.96.205'
0.00049 SELECT topic_id FROM punbb_posts WHERE id=312095
0.00007 SELECT id FROM punbb_posts WHERE topic_id=29695 ORDER BY posted
0.00027 SELECT t.subject, t.closed, t.num_replies, t.sticky, f.id AS forum_id, f.forum_name, f.moderators, fp.post_replies, 0 FROM punbb_topics AS t INNER JOIN punbb_forums AS f ON f.id=t.forum_id LEFT JOIN punbb_forum_perms AS fp ON (fp.forum_id=f.id AND fp.group_id=3) WHERE (fp.read_forum IS NULL OR fp.read_forum=1) AND t.id=29695 AND t.moved_to IS NULL
0.00018 SELECT search_for, replace_with FROM punbb_censoring
0.00474 SELECT u.email, u.title, u.url, u.location, u.use_avatar, u.signature, u.email_setting, u.num_posts, u.registered, u.admin_note, p.id, p.poster AS username, p.poster_id, p.poster_ip, p.poster_email, p.message, p.hide_smilies, p.posted, p.edited, p.edited_by, g.g_id, g.g_user_title, o.user_id AS is_online FROM punbb_posts AS p INNER JOIN punbb_users AS u ON u.id=p.poster_id INNER JOIN punbb_groups AS g ON g.g_id=u.group_id LEFT JOIN punbb_online AS o ON (o.user_id=u.id AND o.user_id!=1 AND o.idle=0) WHERE p.topic_id=29695 ORDER BY p.id LIMIT 25,25
0.00068 UPDATE punbb_topics SET num_views=num_views+1 WHERE id=29695
Total query time: 0.01405 s