I've been trying to understand how to setup systems from
the ground up on Ubuntu. I just installed redis onto
the box and here's how I did it and some things to look
out for.
To install:
Open the postgresql.conf config file:
$> mate /usr/local/var/postgres/postgresql.conf
Uncomment the line with 'log_destination' and set it to 'syslog'
log_destination = 'syslog'
Open the syslog config:
| input { | |
| file { | |
| type => syslog | |
| path => "/var/log/messages" | |
| } | |
| } | |
| filter { | |
| grok { | |
| type => syslog |
| description "logstash collector server" | |
| start on runlevel [2345] | |
| stop on runlevel [06] | |
| # tell upstart we're creating a daemon | |
| # upstart manages PID creation for you. | |
| expect fork | |
| script |
To run this, you can try:
curl -ksO https://gist.githubusercontent.com/nicerobot/2697848/raw/uninstall-node.sh
chmod +x ./uninstall-node.sh
./uninstall-node.sh
rm uninstall-node.sh
| input { | |
| tcp { | |
| type => "syslog" | |
| port => 8514 | |
| } | |
| } | |
| filter { | |
| ## DISCARD IMPROPERLY FORMATTED MESSAGES |
The diff output is more specific:
[I]f a whole block of text is moved, then all of it, rather than just the beginning and end, is detected as changed.
>The algorithm described here avoids these difficulties. It detects differences that correspond very closely to our intuitive notion of difference.
| #!/bin/sh | |
| # Author: RA <ravageralpha@gmail.com> | |
| USAGE(){ | |
| echo "Usage:$(basename $0) [eng] files..." | |
| } | |
| [ $# -eq 0 ] && USAGE && exit 0 | |
| ERROR(){ |
| #!/bin/bash | |
| # | |
| # Install Postgres 9.2 on a clean Ubuntu 12.04 | |
| """ | |
| LC_ALL issue | |
| comment out the AcceptEnv LANG LC_* line in the remote /etc/ssh/sshd_config file. | |
| sudo apt-get install language-pack-en-base | |
| sudo dpkg-reconfigure locales | |
| comment out the SendEnv LANG LC_* line in the local /etc/ssh/ssh_config file. |