Monday, 20 June 2011

svn over ssh tunnel



 

 

 

 

 

 

 

 

 

It is very often required that you need to commit/update to the svn repository which is only indirectly accessible through a gateway (user can ssh to gateway and gateway can ssh to internal svn server)

Suppose you have a working copy (locally on your machine)  setup with the real svn url (eg : svn+ssh://svn.example.com)

- Make ssh connection with local port forwarding to the gateway server
# sudo ssh gateway.example.com -L 22:svn.example.com:22

Change the repository url to localhost, since the local host connection forward to remote svn server through the gateway.
#cd <local_svn_path>

# svn switch --relocate svn+ssh://svn.example.com/trunk svn+ssh://localhost/trunk

Now you should be able to update, commit, etc to/from your repository.

You can switch it back to the original url when you have direct access to repository.

./arun

 

Tuesday, 14 June 2011

Install directadmin on Debian 6

Install the basic debian server without any server components

Install the dependency packages:
# sudo apt-get install gcc g++ make flex bison openssl libssl-dev perl perl-base perl-modules libperl-dev libaio1 libaio-dev bind9

Purchase and register the server ip at directadmin.com

Once the license is activated, login to the server:
$ wget http://www.directadmin.com/setup.sh

$ chmod 755 setup.sh

# sudo ./setup.sh

// enter the client id, license id, FQDN etc, and follow the instructions.

Once the installation completed the direct admin interface will be accessible at https://< server_ip >: 2222/

./arun
 

 

Racktable, Apache+LDAP authentication

Login to the Rack tables as admin:

Add the following line under configuration--> permission
allow {$tab_default}

* This is for read only account, assign extra permissions if required

Configure Apache + LDAP
< Directory /var/www/racktables >
Options +Indexes FollowSymLinks MultiViews
DirectoryIndex index.php
AuthName "Rack Tables"
AuthType Basic
AuthBasicProvider ldap
AuthzLDAPAuthoritative on
AuthLDAPURL "ldaps://ldaphost.com/dc=company,dc=com?uid?sub?(objectClass=< depends_on_ldap >)"




# Bind if required
AuthLDAPBindDN "uid=userid,ou=people,dc=company,dc=com"
AuthLDAPBindPassword "xxxxxx"
AuthLDAPGroupAttribute uniqueMember
AuthLDAPGroupAttributeIsDN on
require ldap-group cn=group_name,dc=company,dc=com
require ldap-attribute cn=group-name-allowed
< /Directory >

* Most of LDAP configs based on your setup

Configure Rack Tables:

Edit the inc/secret.php

Set :
$user_auth_src = 'httpd';
$require_local_account = FALSE;

NOTE: to get the logout working properly make sure the Apache AuthName matches with the one configured for Rack tables authentication.

Referene : http://sourceforge.net/apps/mediawiki/racktables/index.php?title=RackTablesAdminGuide

Reference

./arun

Monday, 6 June 2011

Rsnapshot Lchown

# rsnapshot du localhost
require Lchown
Lchown module not found

Install the Lchown module:
# wget http://www.rsnapshot.org/downloads/extras/Lchown-1.00.tar.gz

# tar xvzf Lchown-1.00.tar.gz

# cd Lchown-1.00

# perl Makefile.PL
Checking if your kit is complete...
Looks good

# make install

# rsnapshot du localhost
require Lchown
Lchown module loaded successfully

You can also try installing the module from Perl CPAN
# perl -MCPAN -e 'install qw(Lchown)'

./arun

Sunday, 5 June 2011

My Favourite MAC OS X applications

Text Editor
vi

Text Edit

Smultron: http://www.peterborgapps.com/smultron/

Komodo Edit: http://www.activestate.com/komodo-edit

Voice/Video Calls
Skype : http://skype.com

Google talk (browser plugin): : http://www.google.com/chat/video

G+ hangout

Web Browser
Firefox: http://www.mozilla.com/en-US/firefox/fx/

Chrome: http://www.google.com/chrome

Twitter Client
A Plus: http://www.aplus-app.com/

IM
Adium: http://adium.im/



Office Documents
Libre office: http://www.libreoffice.org/

Video Player
VLC: http://www.videolan.org/vlc/

Miro: http://www.getmiro.com/ ( an excellent stream and bit torrent client as well)

VOIP
Express Talk(free edition) : http://www.nch.com.au/talk/talkmaci.zip

Virtulization
VMware Fusion : http://www.vmware.com/products/fusion/overview.html

Sun Virtual Box (free): http://www.virtualbox.org/

Parellels: http://www.parallels.com/

PDF viewer
Adobe Reader: http://get.adobe.com/reader/

Audio Editing
Audacity: http://audacity.sourceforge.net/

Disk burning
Burn: http://burn-osx.sourceforge.net/

Disk Image backup
Carbon copy cloner: http://www.bombich.com/

VNC client
Chicken of the VNC: http://sourceforge.net/projects/cotvnc/

IPSEC VPN
Cisco Any connect

Subversion
Command line as always

Cornerstone, good if you require an interface: http://www.zennaware.com/cornerstone/index.php

Image Manipulation
GIMP: http://www.gimp.org/

Picasa: http://picasa.google.com/mac/

Xee: http://wakaba.c3.cx/s/apps/xee

Password Management
KeePassX: http://www.keepassx.org/

GPG Key Chain
MAC GPG: http://macgpg.sourceforge.net/

Terminal
iTerm: http://iterm.sourceforge.net/

The default terminal is really nice in Lion

Mail
Thunderbird: http://www.mozillamessaging.com/en-US/thunderbird/

Diagram
OmniGraffle: http://www.omnigroup.com/products/omnigraffle/

Packet Analysis
wireshark: http://www.wireshark.org/

./arun