[Solved]Cannot start X from main user
Tofloor
poster avatar
idbc
deepin
2016-11-07 04:34
Author
Edited by idbc at 2016-11-8 22:37

I have 2 users on machine. One is "test" (main) and other is "guest". I usually work from "test" user. The problem: When i log in as "test" user, Desktop does not start and only cursor is flashing. Then I switch with Alt+F2, log in and reboot machine. Now I log in as "guest" and desktop starts successful. Then I switch with Ctrl+Alt+F2 and log in as "test" user. Then I command
  1. startx
Copy the Code

System answer:
  1. xauth: timeout in locking authority file /home/test/.Xauthority
Copy the Code

Then black screen appears for 3-4 minutes. Then system answers:
  1. No protocol specified
  2. . .
  3. xinit: giving up
  4. xinit: unable to connect to X server: Resource temporarily unavailable
  5. >waiting for X server to shut down (II) Server terminated successfully (0). Closing log file.
  6. xinit: server error
  7. xauth: timeout in locking authority file /home/test/.Xauthority
Copy the Code



here is startx errors output:
  1. xauth:  timeout in locking authority file /home/test/.Xauthority
  2. xauth:  timeout in locking authority file /home/test/.Xauthority


  3. X.Org X Server 1.17.3
  4. Release Date: 2015-10-26
  5. X Protocol Version 11, Revision 0
  6. Build Operating System: Linux 3.16.0-4-amd64 x86_64 Debian
  7. Current Operating System: Linux test-pc 4.4.0-3-deepin-amd64 #1 SMP Deepin 4.4.28-1 (2016-10-29) x86_64
  8. Kernel command line: BOOT_IMAGE=/boot/vmlinuz-4.4.0-3-deepin-amd64 root=UUID=79c30b8f-3721-4bad-9900-507914cf08b2 ro splash quiet
  9. Build Date: 27 October 2015  11:41:02PM
  10. xorg-server 2:1.17.3-2 (http://www.debian.org/support)
  11. Current version of pixman: 0.33.6
  12.         Before reporting problems, check http://wiki.x.org
  13.         to make sure that you have the latest version.
  14. Markers: (--) probed, (**) from config file, (==) default setting,
  15.         (++) from command line, (!!) notice, (II) informational,
  16.         (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
  17. (==) Log file: "/var/log/Xorg.1.log", Time: Sun Nov  6 02:45:10 2016
  18. (==) Using config directory: "/etc/X11/xorg.conf.d"
  19. (==) Using system config directory "/usr/share/X11/xorg.conf.d"
  20. No protocol specified

  21. waiting for X server to begin accepting connections .
  22. No protocol specified
  23. ..
  24. --->.... message repeated
  25. ..
  26. No protocol specified
  27. ..
  28. xinit: giving up
  29. xinit: unable to connect to X server: Resource temporarily unavailable

  30. waiting for X server to shut down (II) Server terminated successfully (0). Closing log file.

  31. xinit: server error
  32. xauth:  timeout in locking authority file /home/test/.Xauthority
Copy the Code


If I log in as "test" and command
  1. sudo startx
Copy the Code

then Desktop starts but user is root.

Before the problem appears, I have tried to setup remote desktop with Raspberry pi. What I did do:
  1. ssh -X pi@192.168.0.100 <--- Worked
  2. sudo xinit -- :1 <--- Not worked, error appears
  3. sudo xinit /usr/bin/ssh -X pi@192.168.1.4 -f "startlxde" -- :1 <--- Not worked, error appears
Copy the Code

Also i have installed several applications such as Remmina, krdc, and vncserver.

I will be very grateful for resolving my problem.


Reply Favorite View the author
All Replies
idbc
deepin
2016-11-09 09:36
#1
Solution was simply:
removing .Xauthority
Reply View the author