Reputation
25,010
Next tag badge:
95/100 score
19/20 answers
Badges
3 37 88
Newest
 Good Answer
Impact
~2.5m people reached

1d
comment “Pipe” Wi-Fi signal through Ethernet cable
PS: it's easier to beg forgiveness than it is to get permission. Just do it.
Feb
11
comment Linux command clarification
@whatwhatwhat - some people are just in the habit of single-quoting every regular expression. Given that for some shells, $, *, parentheses, square brackets, | and ^ all have special meaning, it's probably just safer to single quote all regexps. I know that I do, even when the regexp doesn't contain any characters that have special meaning to shells.
Feb
8
comment Linux equivalent of WinRun4J
Since you're asking in a non-Windows forum, would it be possible to say what, precisely, WinRun4J does? I for one, am not that conversant with Windows, so "equivalent of WinRun4J" doesn't mean a lot, maybe like asking "what's the Windows equivalent of fork()?" in a Windows forum.
Feb
8
comment Can't connect to home WiFi - DHCP problem?
Tell us how wpa_supplicant gets started (like from systemd) and with what flags. Give the output of: ps a -e | grep wpa_supplicant
Feb
3
comment “link is not ready” error, vanishing network interfaces
Are you running wpa_supplicant? I've had a problem (Arch Linux) that looked a lot like that. wpa_supplicant -u, as started from systemd, would do almost exactly as you describe. Unfortunately, I haven't found a solution other than to not run wpa_supplicant -u, but rather to run it for each specific interface.
Feb
2
comment Troubleshooting new linux system keeps freezing
The times I've had problems that feel like yours, it's been either (a) bad memory stick or (b) video drivers. I have had memory sticks that passed memtest86, but would crash Linux within a few hours. The open source Nvidia drivers are supposed to be really good, aren't they? I also have a superstitious fear of cables. Are the cables all well-seated? Any ribbon cables? Those things go bad at inopportune times.
Jan
30
comment procmailrc and php
OK, pwd says that, but what does echo $HOME say? And I think the file has to be named .procmailrc for the procmail process to find it. procmail may run with a very small PATH - is php in a directory in $PATH? My .procmailrc file has 644 permissions, somethings things get picky about that (sshd, for instance).
Jan
28
comment Why can't my servers talk to each other over direct ethernet connection?
What BinaryZebra said! Also, what does ip route say on Server 1? You may need to put a static route on both of them, for each other's IP address.
Jan
26
comment How does a Segmentation Fault work under-the-hood?
@BradenBest - I did the same thing, my code is sloppier than your code. I got no message at all, and my even crappier shell doesn't print a thing. I used waitpid() on each fork/exec, and it returns a different value for processes that have a segmentation fault, than processes that exit with 0 status.
Jan
25
comment How does a Segmentation Fault work under-the-hood?
crsh is a great idea for this kind of experimentation. Thanks for letting us all know about it and the idea behind it.
Jan
22
comment Linux exit function
@gtalst12 - Only some of the above material traditionally counts as "internals" since the dynamic linking is considered a libc function. If you look at the Musl C library (musl-libc.org) it does dynamic linking somewhat differently, I believe. Since Linux and GNU libc are open source, there's less emphasis on "internals" and more on "interfaces" (or "APIs" if you will). The attitude seems to be that you can work it out on your own, if you dare to do something completely non-standard and non-portable. You have to glean info from blog posts, man pages and stackexchange.
Jan
20
comment Command line method to find repeat-word typos, with line numbers
@user454038 - looks like this pipeline works for your multi-line jefferson_type.txt example too.
Jan
7
comment My printer retains some memories from previous jobs' settings
I have a Canon Pixma 3250 or 3520. I curse the evil Canon Committee that thought 4 LEDs and 5 pushbuttons constitute a usable interface for something as complicated as a printer/copier/scanner that hooks up to wireless networks. We have Windows, Mac and Linux. Nothing works consistently.
Jan
6
comment while read line in shell script - how to stop the loop?
Notice that I specified /bin/bash as the shell: if you use bash, you should use [[ and ]]. If you use something else, or you want to be backward compatible with everything, use [ and ].
Dec
23
comment Why does mount happen over an existing directory?
As a historical note, before Windows and LInux essentially crushed all other OSes, there was a company called Apollo. They wrote a unix-alike (better design than Unix!) operating system. It created the directories on which NFS exports got mounted automatically. In fact, you couldn't mount on a pre-existing directory. HP bought Apollo, threw away the operating system, and used Apollo's 64-bit CPU as HP-PA. Apollo's system of remote procedure calls became OSF's DCE, which apparently lives on inside of Windows. Knowing is half the battle!
Dec
15
comment awk script to extract the argument of an option
@VinayThupili - so if works once you do echo $line, correct?
Dec
15
comment awk script to extract the argument of an option
@VinayThupili - You set a value of line1, but the example code has echo $line. You need to use consistent variable naming.
Dec
1
comment How do you call the “happy-dog” part of file “happy-dog.png”?
Note that for ODS-2, the on-disk filesystem layout used by the VMS operating system, the "extension" was actually a separate part of the inode-moral-equivalent ("file header", I think). I'm pretty sure that was the case for MS-DOS "FAT" filesystems, and I believe it's still the case for NTFS, which is a whole lot like ODS-2 on disk.
Nov
30
comment gcc: error trying to exec 'cc1': execvp: No such file or directory
Does gcc give that error when run outside of make? Can you run gcc on a simple C file with special flags, like this: gcc -v -v -v -o simple simple.c, and update your question with the results?
Nov
24
comment How to print from Arch Linux via Wi-Fi to Canon MG6450?
I have a cheaper Canon, an MG3250 or something like, and an Arch Linux laptop. Printing comes and goes, and CUPS is super finicky about low ink indicators. I'm awaiting a good answer to this one myself.