su -
cd /var
mkdir nih
chmod 775 nih
chown root:mip nih
exit
Now, as a normal user,
cd /var/nih
svn co http://svn/nih .
Also, Please add the below line in the /etc/profile
export SVN_EDITOR=/usr/bin/vim
Other useful svn commands
SVN checkin:
svn ci -m "updated file.c by satish"
SVN updation to recently version:
svn update
SVN checkout particular revision let's say 246
svn co -r 246 http://svn/nih .
Thursday, August 21, 2008
SNMP installation and how to verify
Ref . http://net-snmp.sourceforge.net/
essential-snmp-second-edition
Quick Start SNMP using NET-SNMP on Linux
This document helps you to quick start snmp using NET-SNMP
1) Download net snmp
2) untar the file using
# tar -xvf net-snmp-5.4.1.tar.gz
3) #cd
here
#cd net-snmp-5.4.1
4) configure and make the package with, read INSTALL and README file for more details
#./configure // you have options for configure, read INSTALL, README file
#make
#make install
5) configure your agent by changing /usr/local/share/snmp/snmpd.conf
( Plz. note that the path can be different, as configured by you)
6) Thats it, check your configuration by running snmp agent and manager by
#snmpd
#snmpget -v1 -Cf -c public localhost system.sysContact.0
( note : v1 for version 1, see man pages for ohter options)
essential-snmp-second-edition
Quick Start SNMP using NET-SNMP on Linux
This document helps you to quick start snmp using NET-SNMP
1) Download net snmp
2) untar the file using
# tar -xvf net-snmp-5.4.1.tar.gz
3) #cd
here
#cd net-snmp-5.4.1
4) configure and make the package with, read INSTALL and README file for more details
#./configure // you have options for configure, read INSTALL, README file
#make
#make install
5) configure your agent by changing /usr/local/share/snmp/snmpd.conf
( Plz. note that the path can be different, as configured by you)
6) Thats it, check your configuration by running snmp agent and manager by
#snmpd
#snmpget -v1 -Cf -c public localhost system.sysContact.0
( note : v1 for version 1, see man pages for ohter options)
Usage of Vi .exrc file
These useful commands are taken from various sources including net, books. Hopefully it will be useful:
(Note : ~/.exrc file : is the file for making permanent settings to your vi editor, if you place the following commands in this file, these commands will be available to all your vi sessions.)
Commands
1) :abb - for abbreviation
eg.
#:abb etl Elitecore Technologies Limited, Ahmedabad
so whenever u type etl and press enter, space or tab, "etl" will be replaced by "Elitecore Technologies Limited, Ahmedabad"
I use it to create template C and C++ programs, like
#:abb CPP #include^M using namespace std;^M int main()^M {^M return0;^M }
(here ^M is for new line, NOTE : make sure u dont type ^M, for ENTER u have to
a) ctrl+v
b) press ENTER
it will display like ^M as above but it means ENTER/new line)
So, now every time I need a C++ template, I just type CPP and press enter, space or TAB,
It gives me a nice C++ program template to work on.
You can use the same for similar purpose.
2) :map - is for mapping some command to some shortcut
eg
the vi command :set number is used to show numbers along the lines of the file, lets say we want to give it a short cut, say F2, meaning when we type F2, it should run the command :set number, To map this command to shortcut key, the vi setting will be
#:map #2 :set number^M
(Note : remember ^M comment in above command)
same for :set nonumber (lets say to F3)
#:map #3 :set nonumber^M
3) set tabstop=2
this is for TAB's setting, I want TAB to be equal to 2 spaces, so I set it to 2.
(Note : ~/.exrc file : is the file for making permanent settings to your vi editor, if you place the following commands in this file, these commands will be available to all your vi sessions.)
Commands
1) :abb - for abbreviation
eg.
#:abb etl Elitecore Technologies Limited, Ahmedabad
so whenever u type etl and press enter, space or tab, "etl" will be replaced by "Elitecore Technologies Limited, Ahmedabad"
I use it to create template C and C++ programs, like
#:abb CPP #include
(here ^M is for new line, NOTE : make sure u dont type ^M, for ENTER u have to
a) ctrl+v
b) press ENTER
it will display like ^M as above but it means ENTER/new line)
So, now every time I need a C++ template, I just type CPP and press enter, space or TAB,
It gives me a nice C++ program template to work on.
You can use the same for similar purpose.
2) :map - is for mapping some command to some shortcut
eg
the vi command :set number is used to show numbers along the lines of the file, lets say we want to give it a short cut, say F2, meaning when we type F2, it should run the command :set number, To map this command to shortcut key, the vi setting will be
#:map #2 :set number^M
(Note : remember ^M comment in above command)
same for :set nonumber (lets say to F3)
#:map #3 :set nonumber^M
3) set tabstop=2
this is for TAB's setting, I want TAB to be equal to 2 spaces, so I set it to 2.
Subscribe to:
Posts (Atom)
