453 reputation
1417
bio website trusktr.io
location
age
visits member for 3 years, 6 months
seen Jul 17 at 2:26

trusktr.io


Jul
17
comment Terminal 256 colors don't work through Tmux
This doesn't work for me. Neither does using xterm instead of screen work.
Jun
25
comment What's the easiest way to resize an ext4 partition from the command line?
I haven't seen that specific one, but the gist of it is that you delete the partition then make a new one of the size you want. But what I'm inherently doing is not "deleting" anything, just resizing. The best answer to this question would likely be a way to "resize" a partition, not delete one and create a new one, and the resize2fs steps would be entirely unnecessary and happen in the background (because naturally and obviously the user also wants to use all the space in the partition so it shouldn't be an extra step).
May
16
comment How is a message queue implemented in the Linux kernel?
So does the message (type and text) get cloned/copied and then that copy gets put into the system's message queue?
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".
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
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
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
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.
Nov
12
comment Arch Linux GRUB install: “EFI variables are not supported on this system”
But what about on a system that doesn't support UEFI? How in the world do I install UEFI-capable GRUB on my USB stick to install Arch on a new UEFI computer if my working computer doesn't support UEFI? There's gotta be a way to do it!
Oct
17
comment Are there any linux terminals which can handle all key combinations?
Seems it's not possible with vte terminals yet (Gnome Terminal, Mate Terminal, Guake, etc) as far as I can tell.
Oct
13
comment Are there any linux terminals which can handle all key combinations?
In my terminal, backspace and ctrl+backspace both give ^?. Is there any possible way to distinguish between backspace and ctrl+backspace?