« first day (1823 days earlier)      last day (3114 days later) » 

2:18 AM
             total       used       free     shared    buffers     cached
Mem:      24682316   24562476     119840     601604        712     658472
-/+ buffers/cache:   23903292     779024
 
 
11 hours later…
1:18 PM
Hi All,
@derobert
How are you
 
1:53 PM
@Gilles when is /etc/environment read? I am defining a variable there but can't seem to get it to work in either login or non-login shells.
 
@terdon sorry to jump in, but is this for AIX? If so, getty (console) or srcmstr (sshd) would have to be restarted
 
@JeffSchaller No, it's for Linux but it shouldn't make any difference. I'm wondering when that file is read, not how to read it. It's supposed to be read automatically, I thought by login shells, but doesn't seem to be.
 
@terdon according to serverfault.com/questions/375252/… it apparently comes in via pam, maybe pam_env.so ?
 
/etc/environment empty in redhat, contains PATH in ubuntu.
 
@JeffSchaller Hmm. The answer mentioning pam also states:
> All of this, of course, relies on whatever binary you're using (crond, login shells etc) are compiled against PAM.
Which would suggest login shells read it but mine don't. I'm not entirely sure what kind of pam setup I have though. I've never touched it, only whatever Debian set up.
@Archemar Empty in Debian as well but I'm wondering when it's read.
Jeff found a post that suggests it is only read by PAM which may very well be the case.
 
2:14 PM
see /etc/pam.d/login, how as for question in U&L, unless you modify it quiet often, there is no need to source it for EVERY terminal opened. (unless OP has an XY problem)
 
 
2 hours later…
3:49 PM
@terdon should be read on actual log in, possibly only on the console.
 
4:06 PM
% cat /etc/environment
#
# This file is parsed by pam_env module
#
# Syntax: simple "KEY=VAL" pairs on separate lines
#
on my system pam_env.so is brought in for session
 
@terdon By pam_env, so by the process that logs you in (login, sshd, xdm, …). It isn't read by a shell. If you want to test it, use something like ssh localhost.
 
@terdon my understanding of that (as @derobert notes) is that it is processed at initial login (console, X, ssh)
 
Anyone here using gscan2pdf? I've asked this before.
 
4:25 PM
about once a week for the last month :)
 
udev rules driving me nuts is a great question title. I think that's the whole point of udev rules.
 
4:46 PM
Thanks @Gilles @derobert @casey. ssh localhost did the trick.
 
5:22 PM
@casey gscan2pdf?
I don't remember you mentioning it before. I might have forgotten.
@derobert So what's the answer?
 
@FaheemMitha no, i was referencing the "I've asked this before" part
I've never used it
 
@casey Oh, that. If you say so. I don't keep track.
 
neither do I. I put it in the search box
 
The gscan2pdf author has been fairly helpful re bug fixing but doesn't seem inclined to actually answer questions.
@casey Ok.
 
Did SUBSYSTEMS=="usb-serial" work? Note those (usb-serial and serial number) are on different levels of the tree. — derobert 1 hour ago
I'm not sure if that'll work, surprising if OP didn't try it.
 
5:33 PM
@derobert Yes, I saw that. He's wondering why one worked and the other didn't. Which is a reasonable thing to wonder, I think.
 
@FaheemMitha Well, he tried SUBSYSTEMS=="usb" and SUBSYSTEM="usb-serial" ... for some reason changing two things instead of just one.
 
What is the difference between usb and usb-serial, anyway?
@derobert Yes, I noticed. Maybe the other combinations didn't work for him. Though he should have mentioned that, if not.
 
@derobert He proposed an edit on an answer from another account?
Couldn't it be a different person with a similar name?
 
@FaheemMitha yeah, but I'm 99% sure both accounts are him. One is an unregistered account.
 
5:40 PM
@derobert ok
 
Similar name, one unregistered, editing to respond to comments on a recent question... hard to believe they're different people.
 
@derobert Fair enough. Perhaps politely suggest he merge the accounts? Possibly some browser/cookie artifact.
 
@ElijahRockers Somehow you have managed to create a second account, which is why your edit is going through the review queue. (Ok, I shouldn't say "somehow", the site makes it unfortunately easy). unix.stackexchange.com/contact should be able to help you merge the two accounts. — derobert 5 mins ago
... already did.
 
@derobert ok
 
5:59 PM
@derobert his posts are fixed up now. I copied his repost into his original and showed him how to delete the repost...
 
@casey thank you
 
 
4 hours later…
10:18 PM
Could someone protect this? It's received quite a few rubbish answers. Thanks.
6
Q: Every package "has no installation candidate"

salman 299402While attempting to install openssh-server on Ubuntu 14.04 64-bit, I get the following error: Package openssh-server is not available but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source E: Package 'openss...

 
@FaheemMitha done
 
@derobert Thanks. How much rep is needed?
 
I think that's actually the first time I've gotten to use that feature.
On any SE site.
 
@derobert Sorry, I was being lazy.
@derobert Well, this seems like a reasonable application to me.
 
@FaheemMitha You don't have enough rep to do it
Oh, yeah, too lazy to check the help center
@FaheemMitha Yeah, that's what its for.
 
10:29 PM
@derobert I know. Short by 1.5k approximately.
 
I'm surprised the folks deleting the Sandesh answer didn't protect the question. Though I guess the review queue allows enough <20k rep folks to delete an answer, so maybe none of them could.
 
@derobert they could always ask here.
 
Indeed.
Or flag it and ask a mod to do it.
 
True.
 

« first day (1823 days earlier)      last day (3114 days later) »