Re: Cannot login via xdm after fresh install
On Sun, 17 Sep 2017 21:56:39 + Chavdar Ivanovwrote: > One small addition to the previous - after taking a checkpoint and > shutting the session manager out - which is just a logout - on the > next login I got xconsole running, but with a login prompt. Had to > set 'console' to 'off' and 'constty' to 'on' in /etc/ttys. >... Good to hear this is fixed in the next version, hopefully with the kinks you mention smoothed out. There are also other ways setting up X11 could be made a bit simpler besides enabling xdm. An immediate concern to anyone not American would be having the keyboard layout preference set in the installer to be passed to X11, by creating or modifying a xorg.conf file. Erkki
Re: Cannot login via xdm after fresh install
On Mon, 18 Sep 2017 08:48:16 +0100 Patrick Welchewrote: > On Sun, Sep 10, 2017 at 07:43:04PM +0300, Erkki Ruohtula wrote: > > I did a fresh installation with NetBSD-7.1-amd64.iso in VirtualBox > > 5.1.26, mostly using defaults. I did enable xdm in the installer. > > Everything appeared to go smoothly, and the system now starts nicely > > X11, and shows the xdm login screen. The problem is I cannot get > > past that. If I enter the username root and its correct > > password, I get a dialog box labeled "Session Menu", > > with text "chooseSessionListWidget" and buttons under it, > > of which most are grayed except "Default/Fail Safe" and "Cancel". > > Does adding your hostname to /etc/hosts 127.0.0.1, ::1 help? No, it makes no difference. Erkki
Re: Cannot login via xdm after fresh install
On Sun, Sep 10, 2017 at 07:43:04PM +0300, Erkki Ruohtula wrote: > I did a fresh installation with NetBSD-7.1-amd64.iso in VirtualBox > 5.1.26, mostly using defaults. I did enable xdm in the installer. > Everything appeared to go smoothly, and the system now starts nicely > X11, and shows the xdm login screen. The problem is I cannot get > past that. If I enter the username root and its correct > password, I get a dialog box labeled "Session Menu", > with text "chooseSessionListWidget" and buttons under it, > of which most are grayed except "Default/Fail Safe" and "Cancel". Does adding your hostname to /etc/hosts 127.0.0.1, ::1 help? Cheers, Patrick
Re: Cannot login via xdm after fresh install
One small addition to the previous - after taking a checkpoint and shutting the session manager out - which is just a logout - on the next login I got xconsole running, but with a login prompt. Had to set 'console' to 'off' and 'constty' to 'on' in /etc/ttys. Chavdar On Sun, 17 Sep 2017 at 22:48 Chavdar Ivanovwrote: > I have been bitten by this quite a few times before, so I started > preparing in advance a .xsession file. Looking at this thread, I decided to > check how things are now with -current and installed a fresh overnight > build under VirtualBox with full configuration during sysinstall, enabling > xdm and creating a new user. Everything worked as expected, the three > default processes were started properly, I could checkpoint a session etc. > So whatever the reason was with the earlier versions, with 8.99.2 it seems > just fine. > > The only thing which didn't work was first login with the created user - > it didn't get the password - but I was able to login as root - again with > xdm - and reset that password, after which the user login also worked as > expected. That could have been a pebcak, though. > > Chavdar > > > On Sun, 17 Sep 2017 at 20:57 Rhialto wrote: > >> On Sun 17 Sep 2017 at 22:43:38 +0300, Erkki Ruohtula wrote: >> > Tried it. It does not help. In any case xsm gets run in >> > the same enviroment as .xsession would be run, and the latter >> > has no trouble starting twm and xterm. >> >> A pity. >> >> > I wonder if everyone using X11 on NetBSD does it by setting >> > up .xsession before enabling xdm, so the default session >> > never got tested... >> >> That was indeed what I effectively did on my most recent install... just >> copied over my home directory. I think I did notice the same thing as >> you did, but I didn't spend any time investigating it. >> >> > Erkki >> -Olaf. >> -- >> ___ Olaf 'Rhialto' Seibert -- Wayland: Those who don't understand X >> \X/ rhialto/at/falu.nl -- are condemned to reinvent it. Poorly. >> >
Re: Cannot login via xdm after fresh install
I have been bitten by this quite a few times before, so I started preparing in advance a .xsession file. Looking at this thread, I decided to check how things are now with -current and installed a fresh overnight build under VirtualBox with full configuration during sysinstall, enabling xdm and creating a new user. Everything worked as expected, the three default processes were started properly, I could checkpoint a session etc. So whatever the reason was with the earlier versions, with 8.99.2 it seems just fine. The only thing which didn't work was first login with the created user - it didn't get the password - but I was able to login as root - again with xdm - and reset that password, after which the user login also worked as expected. That could have been a pebcak, though. Chavdar On Sun, 17 Sep 2017 at 20:57 Rhialtowrote: > On Sun 17 Sep 2017 at 22:43:38 +0300, Erkki Ruohtula wrote: > > Tried it. It does not help. In any case xsm gets run in > > the same enviroment as .xsession would be run, and the latter > > has no trouble starting twm and xterm. > > A pity. > > > I wonder if everyone using X11 on NetBSD does it by setting > > up .xsession before enabling xdm, so the default session > > never got tested... > > That was indeed what I effectively did on my most recent install... just > copied over my home directory. I think I did notice the same thing as > you did, but I didn't spend any time investigating it. > > > Erkki > -Olaf. > -- > ___ Olaf 'Rhialto' Seibert -- Wayland: Those who don't understand X > \X/ rhialto/at/falu.nl -- are condemned to reinvent it. Poorly. >
Re: Cannot login via xdm after fresh install
On Sun 17 Sep 2017 at 22:43:38 +0300, Erkki Ruohtula wrote: > Tried it. It does not help. In any case xsm gets run in > the same enviroment as .xsession would be run, and the latter > has no trouble starting twm and xterm. A pity. > I wonder if everyone using X11 on NetBSD does it by setting > up .xsession before enabling xdm, so the default session > never got tested... That was indeed what I effectively did on my most recent install... just copied over my home directory. I think I did notice the same thing as you did, but I didn't spend any time investigating it. > Erkki -Olaf. -- ___ Olaf 'Rhialto' Seibert -- Wayland: Those who don't understand X \X/ rhialto/at/falu.nl -- are condemned to reinvent it. Poorly. signature.asc Description: PGP signature
Re: Cannot login via xdm after fresh install
On Sun, 17 Sep 2017 20:24:41 +0200 Rhialtowrote: > On Sun 17 Sep 2017 at 18:37:45 +0300, Erkki Ruohtula wrote: > > twm > > smproxy > > xterm > > > > but apparently it fails to do so. (All these programs do exist > > in the installation). > > Maybe at the time that xsm tries to execute those programs, they are > not in $PATH? In that case, specifying full paths might help. Just a > guess... Tried it. It does not help. In any case xsm gets run in the same enviroment as .xsession would be run, and the latter has no trouble starting twm and xterm. I wonder if everyone using X11 on NetBSD does it by setting up .xsession before enabling xdm, so the default session never got tested... Erkki .
Re: Cannot login via xdm after fresh install
On Sun 17 Sep 2017 at 18:37:45 +0300, Erkki Ruohtula wrote: > twm > smproxy > xterm > > but apparently it fails to do so. (All these programs do exist > in the installation). Maybe at the time that xsm tries to execute those programs, they are not in $PATH? In that case, specifying full paths might help. Just a guess... -Olaf. -- ___ Olaf 'Rhialto' Seibert -- Wayland: Those who don't understand X \X/ rhialto/at/falu.nl -- are condemned to reinvent it. Poorly. signature.asc Description: PGP signature
Re: Cannot login via xdm after fresh install
On Sun, 10 Sep 2017 19:43:04 +0300 Erkki Ruohtulawrote: > I did a fresh installation with NetBSD-7.1-amd64.iso in VirtualBox > 5.1.26, mostly using defaults. I did enable xdm in the installer. > Everything appeared to go smoothly, and the system now starts nicely > X11, and shows the xdm login screen. The problem is I cannot get > past that. If I enter the username root and its correct > password, I get a dialog box labeled "Session Menu", > with text "chooseSessionListWidget" and buttons under it, > of which most are grayed except "Default/Fail Safe" and "Cancel". > > I thought "Default/Fail Safe" would be the obvious choice, but if > I hit it, I get a black screen, except for the console log window > in lower right-hand corner. X11 seems to be still running, but > it is impossible to do anything except reset the (virtual) machine. > Is the fail safe configuration missing? Should something > special be chosen in the installer? (in other X11 installations > I have seen it usually consist of starting twm and a xterm window). I did some digging by enabling ssh and logging in. Apparently the way NetBSD sets up xdm, it starts up /usr/X11R7/bin/xsm if the user's directory does not contain .xsession. In my case it was running: USER PID %CPU %MEM VSZ RSS TTY STAT STARTEDTIME COMMAND erkki 73 0.0 0.4 45440 4152 ? Is6:08PM0:00.04 /usr/X11R7/bin/xsm In the absence of per user configuration, xsm should start the programs listed in a default file /etc/X11/xsm/system.xsm which contains twm smproxy xterm but apparently it fails to do so. (All these programs do exist in the installation). The user's .xsession-errors contains only _IceTransmkdir: ERROR: euid != 0,directory /tmp/.ICE-unix will not be created. However, that directory did exist, and contains the subdirectory srwxrwxrwx 1 erkki wheel 0 Sep 17 18:08 /tmp/.ICE-unix/73 According to "top", xsm is in state "select", which I guess means it is stuck waiting on some descriptors. Next I tried if an X11 session can be obtained in the old way without xsm: I added a minimal .xsession with the lines twm & xterm and restarted the system. This worked as expected: I got a twm session. So xsm seems to have some bug, which has the effect that currently asking the installer to enable xdm results in a system where the user cannot log in at the console. Erkki
Cannot login via xdm after fresh install
Hi, I did a fresh installation with NetBSD-7.1-amd64.iso in VirtualBox 5.1.26, mostly using defaults. I did enable xdm in the installer. Everything appeared to go smoothly, and the system now starts nicely X11, and shows the xdm login screen. The problem is I cannot get past that. If I enter the username root and its correct password, I get a dialog box labeled "Session Menu", with text "chooseSessionListWidget" and buttons under it, of which most are grayed except "Default/Fail Safe" and "Cancel". I thought "Default/Fail Safe" would be the obvious choice, but if I hit it, I get a black screen, except for the console log window in lower right-hand corner. X11 seems to be still running, but it is impossible to do anything except reset the (virtual) machine. Is the fail safe configuration missing? Should something special be chosen in the installer? (in other X11 installations I have seen it usually consist of starting twm and a xterm window). Erkki .