w(1), who(1) and uptime(1) don't count the desktop user - Printable Version +- PINE64 (https://forum.pine64.org) +-- Forum: ROCKPRO64 (https://forum.pine64.org/forumdisplay.php?fid=98) +--- Forum: Linux on RockPro64 (https://forum.pine64.org/forumdisplay.php?fid=101) +--- Thread: w(1), who(1) and uptime(1) don't count the desktop user (/showthread.php?tid=6395) |
w(1), who(1) and uptime(1) don't count the desktop user - lucho - 08-13-2018 Unlike the amd64 Ubuntu, here w(1), who(1) and uptime(1) don't count the user if logged through LXDE. (If logged torough SSH, they do.) To test, log in through LXDE, open LXterminal and type "w", "who", or "uptime". You won't be shown as a logged in user. (In the amd64 Ubuntu, you will be.) I think that this is a bug, but don't know whether it's a kernel bug or not. RE: w(1), who(1) and uptime(1) don't count the desktop user - dukla2000 - 08-13-2018 If it is a bug I suggest LXDE. On openbox it knows about me (although I never used those commands before so have no idea how much sense they make - uptime is correct though.) Code: $ uname -a RE: w(1), who(1) and uptime(1) don't count the desktop user - lucho - 08-13-2018 Isn't Openbox the window manager of LXDE? My amd64 system that doesn't have the bug is also with LXDE, so if it's a bug in LXDE, it must be architecture-specific. RE: w(1), who(1) and uptime(1) don't count the desktop user - dukla2000 - 08-13-2018 Yup openbox is a window manager, but it will run quite happily without a desktop manager (e.g. lightdm) or a desktop environment (e.g. kde, gnome, lxde - whatever their correct category is.) Which is a lot "lighter" in terms of resources.(My basic install on top of minimal is apt-get install xorg openbox at which stage startx works.) RE: w(1), who(1) and uptime(1) don't count the desktop user - lucho - 08-15-2018 OK, but do you start "openbox" after you have logged in, or do you login after "openbox" has started? If you start "openbox" after you have logged in, then it has nothing to do with the issue. By the way, here's the tail of my "utmpdump /var/log/wtmp" dump: Code: [5] [00597] [tyS2] [ ] [ttyS2 ] [ ] [0.0.0.0 ] [2018-08-14T19:10:34,428420+0000] Unlike the name "lucho", the name "LOGIN" doesn't show any information about the user. P.S. The processes with numbers 597 and 605 in the above dump belong to "agetty(1)". Here's a part of the "ps ax" output: Code: 597 ttyS2 Ss+ 0:00 /sbin/agetty -o -p -- \u --keep-baud 115200,38400,9600 ttyS2 vt220 RE: w(1), who(1) and uptime(1) don't count the desktop user - dukla2000 - 08-15-2018 (08-15-2018, 04:33 AM)lucho Wrote: OK, but do you start "openbox" after you have logged in, or do you login after "openbox" has started? If you start "openbox" after you have logged in, then it has nothing to do with the issue.Yeah - I login, then start openbox. So ignore me |