6,152 reputation
817
bio website taz.net.au/blog
location Australia
age 47
visits member for 3 years, 2 months
seen Dec 17 '13 at 2:57

Craig Sanders

http://taz.net.au/~cas/


Sep
5
comment Ubuntu 10.04 LAMP Virtual Host seems to ignore active sites
the second warning means that you have a NameVirtualHosts *:80 but you don't have any <VirtualHost *:80> vhosts - you probably forgot to change it at the same time. do that and reload apache again.
Sep
5
comment Very slow KVM in Ubuntu 12.04
not really, they're windows drivers. not my area of expertise. i'd guess you install them in the usual way that windows drivers are installed. i did install them a few times on some windows VMs a year or two ago. IIRC it was something clumsy like mount the CD image and hunt for the installer program in one of the subdirectories and click on it.
Sep
5
comment Why isn't cron running automatically?
yep, either that or JZ should add it to the user's own crontab. and for completeness, crontab files in /etc/cron.d/ have the same format as /etc/crontab.
Sep
5
answered Ubuntu 10.04 LAMP Virtual Host seems to ignore active sites
Sep
4
revised How to make diff print a full file diff when a file does not exist?
added 54 characters in body
Sep
4
comment How to make diff print a full file diff when a file does not exist?
the man page for GNU diff 3.2 says only: -N, --new-file treat absent files as empty
Sep
4
awarded  Cleanup
Sep
4
revised How to make diff print a full file diff when a file does not exist?
added 54 characters in body
Sep
4
revised How to make diff print a full file diff when a file does not exist?
rolled back to a previous revision
Sep
4
comment How to make diff print a full file diff when a file does not exist?
thanks for the accept but i think Mat's answer is better. diff -N seems to do exactly what you want without stuffing around with tempfiles or /dev/null, and it gives you the recursive two-directory diff that i edited out of my answer because it doesn't work properly without -N
Sep
4
revised How to make diff print a full file diff when a file does not exist?
deleted 148 characters in body
Sep
4
answered How to make diff print a full file diff when a file does not exist?
Sep
4
answered Very slow KVM in Ubuntu 12.04
Sep
3
comment Debian-based distros that have a regular release cycle
+1 for pinning explanation.
Sep
3
comment How to rename files using sed?
btw, if you liked my original answer and it worked for you, then please Accept it - there should be a tick under the up and down vote buttons.
Sep
3
answered How to rename files using sed?
Sep
3
comment Shell variables not working?
@Chris, there's no need to be scared of spaces in filenames, but there are plenty of reasons to be annoyed by them.
Sep
2
comment How to move file based on file name expression using shell script?
also, -r in GNU sed is an odd quirk. IMO, it should be -E to match the same option in GNU grep....but changing it now would break too many existing scripts that use -r.
Sep
2
comment How to move file based on file name expression using shell script?
-r in GNU sed and apparently -E in Mac's sed both tell sed to use extended regular expressions. The main difference between extended and basic regexps is that the some of the syntactically significant characters in regexp (){}+|?* are treated as literal strings in basic and have to be backslash-escaped to have their special meaning. In extended regexps, the situation is reversed and they have to be escaped to be treated as literal strings. I generally prefer to use extended because with less backslashes, the regexp is IMO more readable and less cryptic.
Sep
1
comment Linux CentOS 5 SSH User Permission Denied
actually, ignore what i said about your login scripts, it sounds like it's a permissions problem with /dev/null. make sure perms are 666. lmgtfy.com/?q=%22bash%3A+%2Fdev%2Fnull%3A+Permission+denied%22