0
votes
0
comments
1,275
views

Apache mod_watchdog is required

0 votes, 0.00 avg. rating (0% score)
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
983
views

Why does a yum package update replaces my yum-cron config files?

0 votes, 0.00 avg. rating (0% score)
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,241
views

How to can i log all commands typed in a Bash shell?

0 votes, 0.00 avg. rating (0% score)
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,324
views

VMware Raw Device Mapping for local storage

0 votes, 0.00 avg. rating (0% score)
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,844
views

Why use Chef/Puppet over shell scripts?

0 votes, 0.00 avg. rating (0% score)
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,494
views

Puppet agent can’t find server

0 votes, 0.00 avg. rating (0% score)
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,681
views

Mac OS X Terminal Colors

0 votes, 0.00 avg. rating (0% score)
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
39,911
views

regular expression to allow spaces between words

0 votes, 0.00 avg. rating (0% score)
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,150
views

grep files from list

0 votes, 0.00 avg. rating (0% score)
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,153
views

grep inside less?

0 votes, 0.00 avg. rating (0% score)
I’m currently sifting through a lot of unfamiliar logs looking for some issues. The first file I look at is Events.log, and I get at least three pages in less which appear to display the same event at different times – an event that appears to be fairly benign. I would like to filter this […]