416 reputation
1919
bio website webcrisps.wordpress.com
location
age
visits member for 3 years, 7 months
seen 21 hours ago

21h
comment What is the difference between a kibibyte, a kilobit, and a kilobyte?
@Synetech, i think you're wrong. When disk/storage manufacturers use GB, they're almost always correct. Any discrepancy tends to be on the part of the operating system, which uses GB (10^9) when it actually means GiB (2^30). So, a drive sold as 500GB is actually 500GB, but when you plug it in, and windows says it's "465 GB", WINDOWS IS WRONG.
23h
comment Can't burn 8.1G iso onto 8.4GB DVD - “Media does not have enough free space”
Great thanks, i thought that was the case. So the "problem" is that ls uses GiB (which it refers to as "G") with the -h option and the disk space is measured in GB. Cheers.
23h
comment Can't burn 8.1G iso onto 8.4GB DVD - “Media does not have enough free space”
@DanielRHicks i'm trying to write it, with hdiutil burn
1d
comment Can't burn 8.1G iso onto 8.4GB DVD - “Media does not have enough free space”
@and31415 i don't think so, as my question relates to the ls command.
May
12
comment Modern.ie Windows keep shutting down in VirtualBox
I agree that if people are just using them to test software then it seems pointless and annoying to make them keep shutting down. It just makes windows/IE testing even more of a b*llache.
Apr
1
comment Add silence to the end of an MP3
that's really cool - thanks Fabien!
Feb
28
comment Distinguishing between users connecting via ssh
Doh, i'm a fool - i forgot to restart sshd after making the config change. Done that and it's worked. Thanks!
Feb
28
comment Distinguishing between users connecting via ssh
I just edited (on the server) /etc/ssh/sshd_config and added PermitUserEnvironment yes, then tried again, and i'm still locked out.
Feb
28
comment Distinguishing between users connecting via ssh
whoops, just saw this bit: Environment processing is disabled by default
Feb
28
comment Distinguishing between users connecting via ssh
Btw, i kept another tab open on the server so i still have access even though i'm locked out in my test tab :)
Feb
28
comment Distinguishing between users connecting via ssh
ah, i beg your pardon. thanks. Ok, i moved it to the start, and now i can't login: i get Permission denied (publickey,keyboard-interactive).. I edited my local id_rsa.pub file to be the same as the authorized_keys entry on the server: both are environment="RAILS_USER_ID=1182" ssh-rsa <long string of chars> max@max-thinkpad-linux. Do i need to do something else when i update my key entry like this?
Feb
28
comment Distinguishing between users connecting via ssh
Ok - i can't get this to work so far. I added environment="RAILS_USER_ID=1182" to the end of my entry in .ssh/authorized_keys on the server. I then exited and connected again with ssh. I then did echo $RAILS_USER_ID and got nothing back. (I also tried adding it to my local rsa.pub key as well, no joy). Am i misunderstanding something?
Feb
28
comment Distinguishing between users connecting via ssh
Hi - we are both connecting as the deploy user, with ssh deploy@hostname.
Feb
28
comment Distinguishing between users connecting via ssh
aha - yes. the key that i already have in authorized keys looks like this: ssh-rsa <long string of chars> max@max-thinkpad-linux. (max@max-thinkpad-linux is my local username and local computer name, respectively). Can i read max@max-thinkpad-linux out of the environment? if not, then I can add an extra name-value pair to mine and my colleague's entries in authorized keys - off to try that now!
Feb
28
comment Distinguishing between users connecting via ssh
Makes sense (the ephemeral port number that is) - thanks for the info. The netstat approach does seem a bit yucky, yeah :)
Feb
28
comment Distinguishing between users connecting via ssh
ah - i think we just posted at the same time :) is the second number the "ephemeral port number" then?
Feb
28
comment Distinguishing between users connecting via ssh
Actually, do you know what the second number in SSH_CLIENT is? I get eg <ip address> 35568 22 - what's the 35568?
Feb
28
comment Distinguishing between users connecting via ssh
I'm not sure if that would work: we both connect from our office, so would have the same ip as far as the server is concerned. AFAIK ssh always uses port 22 doesn't it?
Feb
19
comment Xfce - Can't set primary monitor in xrandr
Thanks! I can't test Rony's answer now as i don't have the dual monitor setup at the moment (my question is from nearly two years ago :)) but it sounds like it's just a bug as you say.
Feb
14
comment Search zipped *and* non-zipped files in one hit
That's perfect - thanks!