Reputation
Top tag
Next privilege 200 Rep.
See reduced ads
Badges
8
Impact
~2k people reached

  • 0 posts edited
  • 0 helpful flags
  • 10 votes cast
Feb
18
comment apt-get fails: The method driver /usr/lib/apt/methods/https could not be found
Keep in mind that there's no integrity benefit to using HTTPS since packages have signatures that are verified anyway - which is probably even better since you're not trusting many independent CAs. THere ay be some privacy benefit. See also: unix.stackexchange.com/questions/90227/…
Feb
15
comment Which of /usr/bin/perl or /usr/local/bin/perl should be used?
This is the first time I've heard of the shebang referred to as a "hash-tag line"...
Jan
14
comment Create the same PNG with ImageMagick 2 times: Binaries differ
Another option would be to strip the timestamps after image creation, e.g. with pngcrush -rem time (added bonus of further reducing size if possible).
Sep
7
comment What is the fastest way to send massive amounts of data between two computers?
> Most 7200rpm HDDs will only get around 40MB/s. IME you're more likely to see over 100MB/s sequential with a modern drive (and this includes ~5k drives). Though, this might be an older disk.
Jul
28
awarded  Popular Question
Oct
22
comment How do I completely disable an account?
It would be great if you could also provide the method to reverse this operation. Looks like usermod --unlock --expiredate '' username will do it.
Oct
7
awarded  Teacher
Oct
7
comment /usr/bin/vim vs. /bin/vim
@peterph Done. Sorry about the delay getting around to it.
Oct
7
answered /usr/bin/vim vs. /bin/vim
Oct
6
awarded  Commentator
Oct
6
comment How to automatically mount remote directories on login / startup
We have some issues where this mount (from .bash_profile) will not work if the user logs in shortly after boot - the network (wifi) isn't up yet. A possible solution might be running a script on network up.
Oct
4
awarded  Autobiographer
Oct
2
comment /usr/bin/vim vs. /bin/vim
My bet would be on the sudo PATH preferring /bin over /usr/bin, or not even having /usr/bin in it. You can check with sudo env | grep PATH, if you have permission to run sudo env. Alternatively, if you can get into sudo /usr/bin/vim, you can run :echo $PATH from Vim.
Jun
29
comment why would curl and wget result in a 403 forbidden?
@starfry You need to tick Enable persistent logs on the settings tab of Firefox's dev tools to prevent it from clearing network logs on a redirect. Chrome has a similar option. Incidentally, "Copy as cURL" has been in Firefox Nightly/Aurora/Beta for a while now, and is due next major release (31.0).
Jun
29
comment why would curl and wget result in a 403 forbidden?
Incidentally, you can use the network tab of Firefox's dev tools to inspect sent and received cookies without any addons. Ditto for Chrome/Chromium.
Jun
4
comment Why does nginx starts process as root?
> This is one of the pros of using Linux for web servers as opposed to Windows. Sorry, but I don't buy that argument. Windows likewise allows service accounts with interactive logon disabled, and also supports ACLs. That said, there are other reasons Apache httpd and Nginx shouldn't be run on Windows (IIS is preferred) without extenuating circumstances, but that's beside the point here.
Apr
20
comment strange NTP traffic
It's possible that external access was allowed via UPnP rather than an explicit port forward. Unlikely, though.
Apr
6
comment What are the platforms that Linux is being used frequently on besides x86?
@trysis Don't forget all the servers that run Linux, the vast majority of which are on x86.
Mar
8
comment How are system commands like ls created?
For the identical test, you really should be using something like md5sum or sha1sum, not just checking file sizes and times.
Jan
22
comment How can I parallelise the upload of a directory by FTP?
The is one possible approach, but has the drawback of needing to authenticate once for every file - again, a lot of overhead made worse by high latency.