Mar 312011
 

I chose it because it seems to be more actively developed.

As explained on https://github.com/mxcl/homebrew/wiki/installation I installed Homebrew like this:

/usr/bin/ruby -e "$(/usr/bin/curl -fksSL https://raw.github.com/mxcl/homebrew/master/Library/Contributions/install_homebrew.rb)"

I had XCode already installed, but If you don’t, you have to install it before following the next steps (in order to have gcc etc. installed).

update 2012-03-24: Nowadays you don’t need to have XCode installed anymore. It’s enough to have the Command Line Tools package installed which you can download from the Apple developer network (free registration required /Apple Mac Dev Program required for pre-releases of the tools).

Mar 282011
 

To install git-vim run:

cd ~/Downloads
git clone https://github.com/myw/git-vim.git
cd git-vim
# by default, the Makefile is set up for Mac OS. If you use a different OS change it using:
cat Makefile | sed "s|#INSTALL=install|INSTALL=install|g" | grep -v ginstall > Makefile
# then install the plugin:
make install

This will copy the following files to ~/.vim:

  • plugin/git.vim
  • syntax/:
    • git-diff.vim
    • git-log.vim
    • git-status.vim
  • doc/git-vim.txt

Usage:
When you open vim in a directory containing a git repository, you can use the commands like as defined in the README such as :GitStatus, :GitDiff and many more. If you want to use the shorter forms you should set the mapleader in your ~/.vimrc:

Mar 272011
 

resources

VN:F [1.9.22_1171]
Rating: 0.0/10 (0 votes cast)
Mar 262011
 

Basic Installation

In this installation documentation I assume you already have apache2 as well as php5 installed.

First create an apache2 configuration file for cacti with vi /etc/apache2/sites-available/cacti and enter the setup similar to this:

NameVirtualHost *

<VirtualHost *>
    ServerAdmin admin@example.com
    ServerName  your.cacti.server
    DocumentRoot /var/www/cacti/
    <Directory /var/www/cacti/>
        Options Indexes Includes FollowSymLinks
        AllowOverride None
        ### either only allow specific IPs:
        #Order Deny,Allow
        #Deny from all
        #Allow from 127.0.0.1
        #Allow from ::1
        ### or all:
        order allow,deny
        allow from all
    </Directory>
    # The subdir cli does not require access over HTTP 
    <Directory /your/cacti/dir/cli>
        Order Deny,Allow
        Deny from All
        Allow from None
    </Directory>
</VirtualHost>

Next, get the cacti code and install it to /var/www/cacti:

Mar 262011
 

SMTP-Relay-Server = Mail-Relay-Server = Smarthost

ssmtp

A slim smtp forwarding tool can be installed via the package ssmtp (it provides /usr/sbin/sendmail):

# apt-get install ssmtp

The configuration file /etc/ssmtp/ssmtp.conf:

# The person who gets all mail for userids < 1000
# Make this empty to disable rewriting.
root=postmaster

# The place where the mail goes. The actual machine name is required no
# MX records are consulted. Commonly mailhosts are named mail.domain.com
mailhub=your.open.smtp.server
UseSTARTTLS=Yes

# Are users allowed to set their own From: address?
# YES - Allow the user to specify their own From: address
# NO - Use the system generated From: address
FromLineOverride=YES

exim4

Alternatively you can install exim4:

Mar 262011
 

I experienced a problem with my Apple Magic Mouse when I wanted to use it with my new MacBook Pro (early 2011, Core i5): The movements became “blurry”, jittery. I have an external display connected via Mini Displayport but this does not seem to affect the problem. But when I turned off Airport, the problem was gone.

So to solve the problem permanently, I reduced the power of my wifi router (located only inches away from my MBP) to 30 mW and set it the Bluetooth Coexistence Mode (both settings are available as I run an Asus wl 500g premium v1 with dd-wrt firmware). This solved the problems with the Magic Mouse.

Mar 242011
 

The hostname can be changed with scutil on Mac OS X. scutil provides a command line interface to the “dynamic store” data maintained by configd. [from the scutil manual].

To set a new hostname run:

sudo scutil --set HostName newhostname[.domain]
VN:F [1.9.22_1171]
Rating: 0.0/10 (0 votes cast)
Mar 152011
 

Possible Choices

VN:F [1.9.22_1171]
Rating: 0.0/10 (0 votes cast)