Reputation
1,727
Top tag
Next privilege 2,000 Rep.
Edit questions and answers
Badges
6 21 31
Impact
~263k people reached

Mar
29
comment Trouble installing Unity8-LXC on Mint
I can confirm the exact same problem on a stock Ubuntu 14.04, with installed Mate desktop. I guess maybe it is something there that requires libcgmanager0? I tried apt-cache rdepends libcgmanager0, but it didn't tell me much...
Mar
27
comment Piping into moreutils' ts with nanosecond precision?
That's nice - great there is a solution; cheers @Tagwint!
Mar
26
comment Bash one-liner to temporarily append path for chained commands without additional bash invocation?
Thanks for that @terdon - by temporary I meant for the duration of the (commands in the) one-liner only
Mar
26
comment Bash one-liner to temporarily append path for chained commands without additional bash invocation?
Oh, that's quite neat, @cuonglm - thanks!
Mar
11
comment nmcli no longer allow settings modification?
Hmm, when I try nmcli nm --help (version 0.9.8.8), it says it only supports COMMAND := { status | permissions | enable | sleep | wifi | wwan }
Dec
16
comment Text editor that allows for coloring of arbitrary text (and exporting thereof)?
Thanks for that, @Marco - haven't used vim much, as I find it a bit difficult (am a nano user in the terminal myself), but it's definitely worth a try, now that I have a reference to TOhtml; cheers!
Dec
16
comment Packaging a directory and its contents as a diff patch?
Thanks for that, @muru - good to have the snippet examples; cheers!
Dec
16
comment Packaging a directory and its contents as a diff patch?
Many thanks @StephenKitt - it works nicely, except my diff doesn't accept capital -R as argument, only miniscule -r; cheers!
Dec
11
comment grep two conditions, one negated, without a pipeline?
Many thanks @mikeserv and the comments - this works, just note that in my example, the entire line is highlighted, as this answer also warns about. Cheers!
Sep
27
comment What is the correct syntax to add CFLAGS and LDFLAGS to “configure”?
Thanks for the "but this may not work with all configure scripts" comment - I just ran into a case, where after several dependencies compiled with CFLAGS, the last dependency crashes when CFLAGS is specifies (and indeed, grep CFLAGS configure returns blank from that configure script).
Aug
8
comment Why is df missing 500MB of available space?
Thanks for that, @jimmij - indeed, sudo tune2fs -l /dev/sda5 | grep '[Bb]lock \(count\|size\)' gives me "Reserved block count: 128017" and "Block size: 4096", and 128017*4/1024 is indeed 500 MB, so this seems to solve the mystery. Cheers!
Aug
8
comment Why is df missing 500MB of available space?
Thanks @steve - same results...
Jun
21
comment Giving write permissions to www-data for a file within user's home with limited shell access?
Thanks @FaheemMitha - trying to set up HTTP access to bare git repos in my home directory there, which works fine, except for push, because in that case git-http-backend runs as www-data, and fails to update the bare repos; cheers!
Jun
21
comment Giving write permissions to www-data for a file within user's home with limited shell access?
Many thanks @meuh - indeed, that was it; edited your post with a snippet of server operations, hope it passes peer review; cheers!
Jun
5
comment Where are the default error/debug log files of smbclient located?
After trying this a bit,.seems -d does output to stdout, but I'm still unsure about where these logfiles are..
May
19
comment Saving a email as file in mutt?
also, this saves the attachments in the exported email file, as well.
May
19
comment Saving a email as file in mutt?
Just a note: if your email message contains attachments, then saving just the first entry from the attachments list will save the message - but without the attachments included inside.
Feb
23
comment Using process substitution to trick programs expecting files, with specific extensions as argument?
Many thanks for that @Gilles - I accepted this answer, because it answer the question generically. Unfortunately, I couldn't quite get scriptfs to work - here is a command log I saved at the time (AFAICR, stackexchange crashed that day :)) gist.github.com/anonymous/e9ee5e8c53d1b4c3c736 - so I ended up using a bash script approach which I posted below. Cheers!
Feb
5
comment “Last resort” Linux terminal command to reboot (over ssh) in case of a kernel bug?
Just a note: I just tested several times with sudo reboot -f from ssh (both typed manually and in a script), and realized late that actually there are several instances of reboot -f shown in ps axf with status D which is uninterruptible sleep (usually IO); probably the kernel bug freezes the reboot commands as well...
Feb
5
comment Running a “scheduled”/delayed script as sudo on server, via ssh - and right before ssh exit
Many thanks for that, @StephenKitt, that seems to work great! Just a note: if I forget to do say sudo ls before I execute the command, so that my password is asked for and temporarily remembered, then I might get [1]+ Stopped sudo bash /home/user/testsleep.sh from_end ; logout ; There are stopped jobs., so I had to do fg until I saw and answered the password prompt. Btw, in syslog I get mypc user: Pre sleep: root...but mypc logger: Post sleep: root... - any idea why "pre sleep" has user and "post sleep" has logger as username?