You are not logged in.
Pages: 1
Hello!
While I am logged in my system and I execute 'uptime', I get the following message:
00:12:28 up 5:16, 0 users, load average: 0.04, 0.17, 0.14
The same happens running 'w' and 'who' is not showing any users.
I am using xmonad and urxvt.
If I switch to a tty and login from there, things run normal and my login is counted.
Can you help me troubleshoot this?
Last edited by aouaou (2009-12-15 22:31:13)
Offline
hmm im not a urxvt user, but you may want to check what are those programs checking.
are you running as the root user or what is your user ID ?
If people do not believe that mathematics is simple, it is only because they do not realize how complicated life is.
Simplicity is the ultimate sophistication.
Offline
How do you start X? Are you using a login manager or starting X from the terminal after logging in?
Offline
I have this symptom when I log in using a graphical login manager. If I switch to a tty and login I get 1 user logged in.
I think the question really is how does uptime, w and who check for users? Probably by the amount of tty logins.
Offline
┌─[lswest@lswest-netbook:~]-[9:08:37]
└─> uptime
09:08:39 up 1 day, 8:56, 1 user, load average: 0.28, 0.70, 0.54
I log in via GDM to an openbox session and use urxvt as well. I think I have xmonad installed, I can always check if the problem lies therein and post back later.
Also, I'm not logged into any tty screens.
Last edited by lswest (2009-12-15 08:10:29)
Lswest <- the first letter of my username is a lowercase "L".
"...the Linux philosophy is "laugh in the face of danger". Oops. Wrong one. "Do it yourself". That's it." - Linus Torvalds
Offline
noticed the same with sakura terminal, using slim to log in to openbox session.
12:12:03 up 4 days, 39 min, 0 users, load average: 0.03, 0.14, 0.23
Offline
noticed the same with sakura terminal, using slim to log in to openbox session.
12:12:03 up 4 days, 39 min, 0 users, load average: 0.03, 0.14, 0.23
In slim wiki:
Login information with SLiM
By default, SLiM fails to log logins to utmp and wtmp which causes who, last, etc. to misreport login information. To fix this edit your slim.conf as follows:sessionstart_cmd /usr/bin/sessreg -a -l $DISPLAY %user
sessionstop_cmd /usr/bin/sessreg -d -l $DISPLAY %user
Offline
$ uptime
13:45:19 up 2:08, 1 user, load average: 0.16, 0.12, 0.08
Logging in from the console here (X is started with startx automatically if I login from tty1).
I'm using xfce and thats what I get when using terminal or xterm.
R00KIE
Tm90aGluZyB0byBzZWUgaGVyZSwgbW92ZSBhbG9uZy4K
Offline
Seems like you use
x:5:once:/bin/su PREFERED_USER -l -c "/bin/bash --login -c /usr/bin/startx >/dev/null 2>&1"
in your /etc/inittab to start X ;-)
Last edited by Army (2009-12-15 15:00:01)
Offline
sessionstart_cmd /usr/bin/sessreg -a -l $DISPLAY %user
sessionstop_cmd /usr/bin/sessreg -d -l $DISPLAY %user
Thanks dobedo. Currently not much time to read stuff and this saved my time.
Offline
I would like to thank you all people for your response! The problem was, as dobedo mentioned, that SLiM does not properly register the session by default. I have been able to solve this by following the instructions!
Please mark this one SOLVED!
Offline
lol, edit OP lazy .
Setting Up a Scripting Environment | Proud donor to wikipedia - link
Offline
No idea I could change the title...
Offline
Pages: 1