Date: Thu, 8 Oct 2020 09:29:37 +0200 From: andrew glaeser <bugs@irregulaire.info> To: x11@FreeBSD.org Subject: Xserver still running as root? Xephyr package available, but does not work for me Message-ID: <20201008092937.64511540@a68n.lokal>
index | next in thread | raw e-mail
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 > #AllowAgentForwarding yes > #AllowTcpForwarding yes > #GatewayPorts no > X11Forwarding yes > X11DisplayOffset 10 > X11UseLocalhost yes > #PermitTTY yes > #PrintMotd yes > #PrintLastLog yes > #TCPKeepAlive yes > #PermitUserEnvironment no > #Compression delayed > #ClientAliveInterval 0 > #ClientAliveCountMax 3 > #UseDNS yes > #PidFile /var/run/sshd.pid > #MaxStartups 10:30:100 > #PermitTunnel no > #ChrootDirectory none > #UseBlacklist no > #VersionAddendum FreeBSD-20180909 > > # no default banner path > #Banner none > > # override default of no subsystems > Subsystem sftp /usr/libexec/sftp-server > > # Example of overriding settings on a per-user basis > #Match User anoncvs > # X11Forwarding no > # AllowTcpForwarding no > # PermitTTY no > # ForceCommand cvs server > "/etc/ssh/sshd_config" 121 lines, 3345 characters > root@bsdpcb:~ # service sshd restart > Performing sanity check on sshd configuration. > Stopping sshd. > Waiting for PIDS: 9849. > Performing sanity check on sshd configuration. > Starting sshd. > root@bsdpcb:~ # locate Xephyr > /usr/local/bin/Xephyr > /usr/local/man/man1/Xephyr.1.gz > root@bsdpcb:~ # Xephyr -ac -screen 12880x800 -br -reset > (EE) > Fatal server error: > (EE) Server is already active for display 0 > If this server is no longer running, remove /tmp/.X0-lock > and start again. > (EE) > root@bsdpcb:~ # ls /tmp > .ICE-unix dbus-Ya4DxpXb > .X0-lock dbus-m6xEFnbkxj > .X11-unix dbus-slm9Qe6FO3 > .XIM-unix dbus-v9uO3qMj > .font-unix efreetd_bsdpcb_5qGHCs.log > dbus-1HeFVk6H efreetd_bsdpcb_BMwLkU.log > dbus-Jx16H1JC pulse-jXSdOHbOuEZq > dbus-NniZoWsgkA ssh-MHDVk4vj3V > dbus-ViTIu5Sj ssh-aNe3G9lciu > root@bsdpcb:~ # rm /tmp/.X0-lock > root@bsdpcb:~ # Xephyr -ac -screen 12880x800 -br -reset > > Xephyr cannot open host display. Is DISPLAY set? > root@bsdpcb:~ # startx -- /usr/local/bin/Xephyr :1 > xauth: file /root/.serverauth.71270 does not exist > > > Xephyr cannot open host display. Is DISPLAY set? > q > ^Cxinit: giving up > xinit: unable to connect to X server: Connection refused > xinit: unexpected signal 2 > root@bsdpcb:~ # DISPLAY=:1 xterm > DISPLAY=:1: Command not found. > root@bsdpcb:~ # exit > logout > Connection to bsdpcb closed. > andrew@a68n:~$ ssh andrew@bsdpcb > Last login: Thu Oct 8 06:40:37 2020 from 192.168.0.58 > FreeBSD 12.1-RELEASE-p8 GENERIC > > Welcome to FreeBSD! > > Release Notes, Errata: https://www.FreeBSD.org/releases/ > Security Advisories: https://www.FreeBSD.org/security/ > FreeBSD Handbook: https://www.FreeBSD.org/handbook/ > FreeBSD FAQ: https://www.FreeBSD.org/faq/ > Questions List: > https://lists.FreeBSD.org/mailman/listinfo/freebsd-questions/ FreeBSD > Forums: https://forums.FreeBSD.org/ > > Documents installed with the system are in the /usr/local/share/doc/freebsd/ > directory, or can be installed later with: pkg install en-freebsd-doc > For other languages, replace "en" with a language code like de or fr. > > Show the version of FreeBSD installed: freebsd-version ; uname -a > Please include that output and any error messages when posting questions. > Introduction to manual pages: man man > FreeBSD directory layout: man hier > > Edit /etc/motd to change this login announcement. > To see the last 10 lines of a long file, use "tail filename". To see the > first 10 lines, use "head filename". To see new lines as they're appended > to a file, use "tail -f filename". > -- Dru <genesis@istar.ca> > [andrew@bsdpcb ~]$ DISPLAY=:1 xterm > xterm: Xt error: Can't open display: :1 > [andrew@bsdpcb ~]$ Xephyr -ac -screen 1280x800 -br -reset :1 > (EE) > Fatal server error: > (EE) Could not create server lock file: /tmp/.X1-lock > (EE) > [andrew@bsdpcb ~]$ ls /tmp > dbus-1HeFVk6H dbus-v9uO3qMj > dbus-Jx16H1JC efreetd_bsdpcb_5qGHCs.log > dbus-NniZoWsgkA efreetd_bsdpcb_BMwLkU.log > dbus-ViTIu5Sj pulse-jXSdOHbOuEZq > dbus-Ya4DxpXb ssh-YYvovAAJqx > dbus-m6xEFnbkxj ssh-aNe3G9lciu > dbus-slm9Qe6FO3 > [andrew@bsdpcb ~]$ sudo Xephyr -ac -screen 1280x800 -br -reset :1 > Password: > X11 connection rejected because of wrong authentication. > > Xephyr cannot open host display. Is DISPLAY set? > [andrew@bsdpcb ~]$ sudo Xephyr :1 -ac -screen 1280x800 & > [1] 78786 > [andrew@bsdpcb ~]$ X11 connection rejected because of wrong authentication. > > Xephyr cannot open host display. Is DISPLAY set? > > [1]+ Exit 1 sudo Xephyr :1 -ac -screen 1280x800 > [andrew@bsdpcb ~]$ export DISPLAY=:1 > [andrew@bsdpcb ~]$ sudo Xephyr :1 -ac -screen 1280x800 & > [1] 79342 > [andrew@bsdpcb ~]$ > Xephyr cannot open host display. Is DISPLAY set? > > [1]+ Exit 1 sudo Xephyr :1 -ac -screen 1280x800 > [andrew@bsdpcb ~]$ pkg serch xserver > pkg: unknown command: serch > > For more information on available commands and options see 'pkg help'. > [andrew@bsdpcb ~]$ pkg search xserver > [andrew@bsdpcb ~]$ pkg search xephyr > xephyr-1.20.8_4,1 X server from X.Org based on kdrive > [andrew@bsdpcb ~]$ setenv DISPLAY :1.0 > -bash: setenv: command not found > [andrew@bsdpcb ~]$ sudo setenv DISPLAY :1.0 > sudo: setenv: command not found > [andrew@bsdpcb ~]$ I know, guys this is not looking good, it was not any fun either, fact is that linux howtos usually do not work for FreeBSD, it was the case for GDM/XDMCP and also for Xephyr. All I can do is basic X11-forwarding over SSH with these options: > > X11Forwarding yes > > X11DisplayOffset 10 > > X11UseLocalhost yes It means single applications are possible, but not a whole desktop-session over SSH: [client side:] > andrew@a68n:~$ ssh -X andrew@bsdpcb > Last login: Thu Oct 8 06:37:43 2020 from 192.168.0.58 > FreeBSD 12.1-RELEASE-p8 GENERIC > > Welcome to FreeBSD! > > Release Notes, Errata: https://www.FreeBSD.org/releases/ > Security Advisories: https://www.FreeBSD.org/security/ > FreeBSD Handbook: https://www.FreeBSD.org/handbook/ > FreeBSD FAQ: https://www.FreeBSD.org/faq/ > Questions List: > https://lists.FreeBSD.org/mailman/listinfo/freebsd-questions/ FreeBSD Forums: https://forums.FreeBSD.org/ > > Documents installed with the system are in the /usr/local/share/doc/freebsd/ > directory, or can be installed later with: pkg install en-freebsd-doc > For other languages, replace "en" with a language code like de or fr. > > Show the version of FreeBSD installed: freebsd-version ; uname -a > Please include that output and any error messages when posting questions. > Introduction to manual pages: man man > FreeBSD directory layout: man hier > > Edit /etc/motd to change this login announcement. > You can often get answers to your questions about FreeBSD by searching in > the FreeBSD mailing list archives at > > http://freebsd.markmail.org > [andrew@bsdpcb ~]$ enlightenment_start > E - PID=62669, valgrind=0 > ESTART: 0.00000 [0.00000] - Begin Startup > ESTART: 0.00023 [0.00023] - Signal Trap > ESTART: 0.00028 [0.00004] - Signal Trap Done > ESTART: 0.00046 [0.00018] - Eina Init > ESTART: 0.00196 [0.00151] - Eina Init Done > ESTART: 0.00201 [0.00005] - Determine Prefix > ESTART: 0.00216 [0.00015] - Determine Prefix Done > ESTART: 0.00220 [0.00004] - Environment Variables > ESTART: 0.00227 [0.00007] - Environment Variables Done > ESTART: 0.00228 [0.00001] - Parse Arguments > ESTART: 0.00229 [0.00001] - Parse Arguments Done > ESTART: 0.00230 [0.00001] - Eet Init > ESTART: 0.00236 [0.00006] - Eet Init Done > ESTART: 0.00237 [0.00001] - Ecore Init > ESTART: 0.01239 [0.01001] - Ecore Init Done > ESTART: 0.01244 [0.00005] - EFX Init > ESTART: 0.01245 [0.00001] - EFX Init Done > ESTART: 0.01246 [0.00001] - EIO Init > ESTART: 0.10070 [0.08824] - EIO Init Done > ESTART: 0.10072 [0.00002] - Ecore Event Handlers > ESTART: 0.10073 [0.00000] - Ecore Event Handlers Done > ESTART: 0.10073 [0.00000] - Ecore_File Init > ESTART: 0.10074 [0.00001] - Ecore_File Init Done > ESTART: 0.10074 [0.00000] - Ecore_Con Init > ESTART: 0.10074 [0.00001] - Ecore_Con Init Done > ESTART: 0.10075 [0.00000] - Ecore_Ipc Init > ESTART: 0.10075 [0.00000] - Ecore_Ipc Init Done > ESTART: 0.10100 [0.00025] - Ecore_Evas Init > ESTART: 0.10141 [0.00042] - Ecore_Evas Init Done > ESTART: 0.10142 [0.00001] - Elementary Init > ESTART: 0.15163 [0.05021] - Elementary Init Done > ESTART: 0.15165 [0.00002] - Emotion Init > ESTART: 0.15179 [0.00014] - Emotion Init Done > ESTART: 0.15180 [0.00001] - Ecore_Evas Engine Check > ESTART: 0.15180 [0.00001] - Ecore_Evas Engine Check Done > ESTART: 0.15181 [0.00000] - E Intl Init > ESTART: 0.15183 [0.00002] - E Intl Init Done > ESTART: 0.15183 [0.00000] - E_Alert Init > ESTART: 0.15183 [0.00000] - E_Alert Init Done > ESTART: 0.15184 [0.00000] - E Directories Init > ESTART: 0.15198 [0.00014] - E Directories Init Done > ESTART: 0.15198 [0.00001] - E_Filereg Init > ESTART: 0.15199 [0.00000] - E_Filereg Init Done > ESTART: 0.15199 [0.00000] - E_Config Init > ESTART: 0.15367 [0.00168] - E_Config Init Done > ESTART: 0.15368 [0.00001] - E_Env Init > ESTART: 0.15368 [0.00000] - E_Env Init Done > ESTART: 0.15369 [0.00001] - E Paths Init > ESTART: 0.15372 [0.00003] - E Paths Init Done > ESTART: 0.15373 [0.00001] - E_Ipc Init > ESTART: 0.15481 [0.00108] - E_Ipc Init Done > ESTART: 0.15481 [0.00001] - E_Font Init > ESTART: 0.15482 [0.00000] - E_Font Init Done > ESTART: 0.15482 [0.00000] - E_Font Apply > ESTART: 0.15483 [0.00001] - E_Font Apply Done > ESTART: 0.15483 [0.00000] - E_Theme Init > ESTART: 0.15484 [0.00002] - E_Theme Init Done > ESTART: 0.15485 [0.00000] - E_Moveresize Init > ESTART: 0.15485 [0.00001] - E_Moveresize Init Done > ESTART: 0.15486 [0.00001] - E_Msgbus Init > ESTART: 0.15570 [0.00084] - E_Msgbus Init Done > ESTART: 0.15571 [0.00001] - Efreet Init > ESTART: 0.15571 [0.00001] - Efreet Init Done > ESTART: 0.15572 [0.00001] - E_Intl Post Init > ESTART: 0.15871 [0.00299] - E_Intl Post Init Done > ESTART: 0.15872 [0.00001] - E_Configure Init > ESTART: 0.15909 [0.00037] - E_Configure Init Done > ESTART: 0.15910 [0.00001] - E_Actions Init > ESTART: 0.15937 [0.00027] - E_Actions Init Done > ESTART: 0.15949 [0.00011] - E_Powersave Init > ESTART: 0.15949 [0.00001] - E_Powersave Init Done > ESTART: 0.15950 [0.00001] - Screens Init > ESTART: 0.15950 [0.00000] - screens: client > ESTART: 0.15951 [0.00001] - E_Screensaver Init > ESTART: 0.15951 [0.00000] - screens: client volume > ESTART: 0.15952 [0.00000] - screens: win > ESTART: 0.15952 [0.00001] - Compositor Init > RRR: ................. info get! > RRR: .... out HDMI-0 > RRR: ...... lid_closed = 0 (0 && 0) > RRR: ...... connected 1 > RRR: ...... modes 0x803b2f7c0 > RRR: 'HDMI-0' 0 0 1920x1080 > RRR: .... out HDMI-1 > RRR: ...... lid_closed = 0 (0 && 0) > RRR: ...... connected 0 > RRR: ...... modes 0x0 > RRR: .... out VGA-0 > RRR: ...... lid_closed = 0 (0 && 0) > RRR: ...... connected 0 > RRR: ...... modes 0x0 > RRR:-------------------------------- 2 > RRR: 'HDMI-0': 0 0 1920x1080 > RRR: result max: 1920x1080 > RRR: loaded existing config > RRR: check lid for HDMI-0... > -------------------------------------------------- > RRR: out > id=HDMI-0/00ffffffffffff004c2d300b000000002c17010380301b780aee91a3544c99260f5054bdef80714f81c0810081809500a9c0b3000101023a801871382d40582c450075f23100001e662156aa51001e30468f330075f23100001e000000fd00184b0f5117000a202020202020000000fc0053414d53554e470a20202020200175020325f14d901f04130514031220212207162309070783010000e2000f67030c001000b82d011d80d0721c1620102c258075f23100009e011d8018711c1620582c250075f23100009e011d00bc52d01e20b828554075f23100001e011d007251d01e206e28550075f23100001e8c0ad090204031200c40550075f23100001e76: connected=1 RRR: check lid for HDMI-0... > RRR: store scale mul 0.00000 > RRR: out id=HDMI-1/: connected=0 > RRR: out id=VGA-0/: connected=0 > -------------------------------------------------- > xinerama screen 0 0 1920x1080 > xinerama setup............... 1 0x0 > <<<< Enlightenment Error >>>> > Enlightenment cannot create a compositor. > > E: Begin Shutdown Procedure! > ERR<63315>:e src/bin/e_msgbus.c:84 _e_msgbus_request_name_cb() Could not > request bus name ## Copy & Paste the below (until EOF) into a terminal, then hit Enter > > eina_btlog << EOF > EOF > > [andrew@bsdpcb ~]$ startx > xauth: file /home/andrew/.serverauth.64059 does not exist > > /usr/local/bin/X: Only console users are allowed to run the X server > > xinit: giving up > xinit: unable to connect to X server: Connection refused > xinit: server error > [andrew@bsdpcb ~]$ -----BEGIN PGP SIGNATURE----- iF0EARECAB0WIQTF9uNaslvnJpWt8kXn6sEfJS3nCwUCX36/4QAKCRDn6sEfJS3n C8BIAJ40F1Zb+jrQFHG4DRpVZ4rNbJV5RwCfb0f0YCWbAUa9oxZ0Lkq4kO2dI30= =NU/9 -----END PGP SIGNATURE-----help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20201008092937.64511540>
