0
votes
0
comments
1,341
views
Apache mod_watchdog is required
Some of you may take the lazy way of updating your linux systems by using yum-cron. yum-cron will perform auto-updates on your system when patches are made available. With some configuration, you can have this program only send you and email alert. For those of you running an apache http server and have auto-updates configured. you probable […]0
votes
0
comments
1,043
views
Why does a yum package update replaces my yum-cron config files?
Usually, when applying package updates via yum update, rpm is ‘intelligent’ enough to respect my changes to configuration files under /etc. (It basically looks at the mtime, compares it and depending on the outcome replaces the file with the new version, or just puts the new version beside it.) But with one of the last […]0
votes
0
comments
2,364
views
How to can i log all commands typed in a Bash shell?
Our small company runs an Ubuntu Server 11.10, to which a couple of people have SSH access. The actual terminals are sometimes used, too. How can we locally log all Bash commands run, along with user and time stamp? We can assume that no-one is nefarious and actively trying to avoid the logging, but we’d […]0
votes
0
comments
1,382
views
VMware Raw Device Mapping for local storage
Here is an excellent write up on mapping a RAW device to a VM within ESX/Vsphere. What I was trying to do was map a local drive that had NTFS partitions on it to a Windows 8 VM. Going thru the “Edit Settings” menu for the VM showed “RAW Device Mappings” grayed out on the […]0
votes
0
comments
1,904
views
Why use Chef/Puppet over shell scripts?
New to Puppet and Chef tools. Seems like the job that they are doing can be done with shell scripting. Maybe it was done in shell scripts until these came along. I would agree they are more readable. But, are there any other advantages over shell scripts besides just being readable? Totor A domain-specific language […]0
votes
0
comments
1,569
views
Puppet agent can’t find server
I’m new to puppet, but picking it up quickly. Today, I’m running into an issue when trying to run the following: It would appear the agent doesn’t know what server to connect to. I could just specify --server on the command line, but that will be of no use to me when this runs as […]0
votes
0
comments
5,748
views
Mac OS X Terminal Colors
I’m new to Mac having just got one after working with Ubuntu Linux for some time. Among the many things I’m trying to figure out is absence of colors in my the terminal window – like the ones that are shown (on linux) when you run ‘ls -la’ or ‘git status’… I just can’t figure […]0
votes
0
comments
40,293
views
regular expression to allow spaces between words
I want a regular expression that prevents symbols and only allows letters and numbers. This regex works great but it doesn’t allow for spaces between words. ^[a-zA-Z0-9_]*$ For example, when using this regular expression “HelloWorld” is fine but “Hello World” does not match. How can I tweak it to allow spaces?0
votes
0
comments
1,197
views
grep files from list
I am trying to run grep against a list of a few hundred files: $ head -n 3 <(cat files.txt) admin.php ajax/accept.php ajax/add_note.php However, even though I am grepping for a string that I know is found in the files, the following does not search the files: $ grep -i 'foo' <(cat files.txt) $ grep […]0
votes
0
comments
1,189
views