Reputation
20,523
Top tag
Next privilege 25,000 Rep.
Access to site analytics
Badges
12 73 104
Impact
~2.0m people reached

Jun
23
comment How can I spy on X client messages?
A [client message][1] seems to be a type of event. The freedesktop [system tray spec][2] specifically talks about an "x client message". In any case, I have the correct window, but xev is not giving my any information about what program is sending what event to that window, but its status is definitely being updated by something. [1]: tronche.com/gui/x/xlib/events/client-communication/… [2]: standards.freedesktop.org/systemtray-spec/…
Jun
20
comment How does one change the delay that occurs after entering an incorrect password?
Instead of a new module (suggested in my previous comment), I used pam_unix with the nodelay option and pam_tally2 with deny=5 unlock_time=15; this allows for 5 immediate retries, but denies access (even with a successful password) for 15 seconds. I still intend to try writing the described model, but now it's a back-burner project, because this would not be suitable if your primary access to the system is network-based since it makes a DOS attack trivial.
Jun
19
comment Rake - “bundle exec” - how can I avoid `bundle exec` with my `rake spec`
Check out the Ruby Version Manager. rvm.io
Jun
17
comment Error while cross compiling using crosstool-ng. How to debug?
What did you do to prompt this message? Was it make install by any chance?
Jun
17
comment What package managers do popular Unix Distributions Use?
See the Rosetta Stone for Unix bhami.com/rosetta.html and the Pacman Rosetta stone: wiki.archlinux.org/index.php/Pacman_Rosetta
Jun
17
comment What package managers do popular Unix Distributions Use?
A tar.gz file is not necessarily source code; it can contain binaries, and it's definitely not an ASCII file: it's a gzip-compressed archive.
Jun
16
comment How does one change the delay that occurs after entering an incorrect password?
This has been interesting; maybe I'll write a module that allows N tries with no delay followed by any number of tries with a long delay.
Jun
16
comment How does one change the delay that occurs after entering an incorrect password?
Adding the nodelay option to pam_unix.so and adding a new entry with pam_faildelay.so delay=$some_number lets me set whatever I want. Thanks!
Jun
16
comment How does one change the delay that occurs after entering an incorrect password?
There is no mention of delay anywhere in /etc/pam.d/*. The closest thing I see is pam_tally.so which allows locking after some number of attempts. But I do have n /etc/login.defs, which might be what I need.
Jun
2
comment Battery not detected on my embedded device on reboot
This could be either hardware or software, but I'd bet the software is not giving enough time for the hardware to initialize.
Jun
2
comment Battery not detected on my embedded device on reboot
How do you know the battery isn't detected if it fails to boot?
May
27
comment How can I change the battery icon in the systray?
I already tried changing the theme - the icon isn't coming from the theme. I added that info to the question.
May
18
comment Argument list too long for ls
@Coren @Mikel - not everybody has GNU's find. The find on OS X and on busybox-based systems, and I would guess any BSD-based system shows the filename with a newline in it, which would mess with the count.
May
18
comment Argument list too long for ls
I modified it slightly to work in the case when there are filenames with newlines in them. You might also want to add a -maxdepth 1 if you are not intending to count files in subdirectories.
May
17
comment How do I install a device driver provided as a .bin file?
Where did you get this driver?
Apr
26
comment Using awk to process ls output with spaces in filenames/paths
@smokinguns See '-exec printf {}...' in the second example.
Apr
18
comment To display the selected part in line of text file
It depends on why 3071 is special. Is it because of its position, or because it is exactly the value 3071, or because of what comes before or after it, etc?
Apr
17
comment command OR script to detect vpn connection status
You can ping your VPN gateway. So, if your gateway on the VPN is 172.16.1.1, the exit status of ping -c 1 -W 10 172.16.1.1 will tell you if you're connected.
Apr
12
comment sourcing a file inside a script
I just tried it; it works for me the way you were expecting. Are you sure your sourced script is setting LD_LIBRARY_PATH? You can add a line at the very end (or anywhere the script might exit) that echos it to a different temp file.
Mar
11
comment Mouse clicks stop working after random time, using Awesome WM + Gnome
I have experienced this same behavior in the past, so I don't think it's anything special about any your hardware. I did not have Gnome at the time. I currently have two systems with Awesome, and neither are showing that behavior.