335 reputation
1312
bio website keepskatinbro.com
location
age
visits member for 3 years, 1 month
seen Feb 13 at 13:48

Apr
8
awarded  Famous Question
Feb
12
comment How do I send HTML email using linux 'mail' command?
@user16144 No, but it's a nice alternative that the OP might like to consider.
Feb
12
comment How do I send HTML email using linux 'mail' command?
I have the mail command in Arch Linux provided by the s-nail package, and the -a option is entirely different.
Feb
9
comment Is there a way to turn on the function key indicator based on capslock status on Lenovo ThinkPad Yoga?
@slm That'd be awesome if I could do that. I probably won't do it until sometime after I'm graduate after this semester, in May.
Feb
1
comment Why does this ssh command not work? (cat ./file | ssh <user@host> “cat | sudo -t -t 'cat > /root/location/file'”)
Aaah, sweet! That makes sense, and it works here in Git-Bash for Windows (I feared scp might no be available, but it is). Based on your answer, I've also come up with an ssh-only version: cat ~/Desktop/blah.png | ssh trusktr@50.116.4.56 "cat > ~/blah"; ssh trusktr@50.116.4.56 "sudo mv ~/blah.png /path/to/blah.png".
Feb
1
accepted Why does this ssh command not work? (cat ./file | ssh <user@host> “cat | sudo -t -t 'cat > /root/location/file'”)
Jan
30
comment Why does this ssh command not work? (cat ./file | ssh <user@host> “cat | sudo -t -t 'cat > /root/location/file'”)
Oh, yeah, a one liner is what I meant. Could you give more details on how I'd change my command?
Jan
30
comment Multi-function CapsLock without X
Hey, look at this. Not the solution, but would help in understanding how it might be done: danielmiessler.com/blog/…
Jan
30
asked Is there a way to turn on the function key indicator based on capslock status on Lenovo ThinkPad Yoga?
Jan
29
comment Why does this ssh command not work? (cat ./file | ssh <user@host> “cat | sudo -t -t 'cat > /root/location/file'”)
Thanks for the input. I'm not entirely convinced there isn't a way to do it though.
Jan
29
comment Multi-function CapsLock without X
Perhaps @LeoNerd knows the answer to your question (stackoverflow.com/users/1069726/leonerd). If X can do it, then there must be a way to do it without modifying kernel code. You might also like to take a look at kmscon, a new terminal to replace the old default linux terminal. It is much nicer and supports nice things like 24-bit colors. Who knows, maybe it has a way to map keys? wiki.archlinux.org/index.php/KMSCON
Jan
28
revised Why does this ssh command not work? (cat ./file | ssh <user@host> “cat | sudo -t -t 'cat > /root/location/file'”)
added 43 characters in body
Jan
28
comment Why does this ssh command not work? (cat ./file | ssh <user@host> “cat | sudo -t -t 'cat > /root/location/file'”)
Does it "press enter" when a new line character is catted? How might I achieve what I'm trying to do in a single command?
Jan
26
comment Why does this ssh command not work? (cat ./file | ssh <user@host> “cat | sudo -t -t 'cat > /root/location/file'”)
Depends on the use case. I'm the only user, so it's more secure this way because an adversary now has to guess two passwords instead of just one.
Jan
25
comment Why does this ssh command not work? (cat ./file | ssh <user@host> “cat | sudo -t -t 'cat > /root/location/file'”)
Thanks. Yeah, I ended up doing the first option. My setup only caches during the session, so logging out destroys it. sudo can be configured to use the root password instead of the user's password by putting Defaults rootpw in /etc/sudoers.
Jan
25
revised Why does this ssh command not work? (cat ./file | ssh <user@host> “cat | sudo -t -t 'cat > /root/location/file'”)
edited body
Jan
25
asked Why does this ssh command not work? (cat ./file | ssh <user@host> “cat | sudo -t -t 'cat > /root/location/file'”)
Jan
19
comment How do you make a star symbol with the compose key in Linux?
Sweet. No Linux at the moment, so I'll try when I get a chance. Thanks!
Jan
4
comment How do I know that my CPU supports 64bit operating systems under Linux?
This is the ultra slow way, and not guaranteed to give you an answer.
Jan
4
comment How do I know that my CPU supports 64bit operating systems under Linux?
This answer is the best. It shows you an explicit "32-bit" or "64-bit". I don't see why people choose the other answer over this one. You don't even need to grep anything. Just doing lscpu is so simple. If they don't have the lscpu command then I could see why they voted for the other one.