Posts Tagged ‘aptitude’

How to install opennms in Debian


Hi again

For installing the opennms in your Debian Server you should add the opennms repository in your aptitude configuration file.

vim /etc/apt/source.list

add the following lines in to you file.

deb stable main
deb-src stable main

then update your aptitude.

aptitude update

and after that you should install the opennms

aptitude install opennms postgresql-client-8.3

after that you shoud set password for you postgresql .therefore first login as root. and then

# su postgres
# psql -d template1

now press exit to come back in to you root profiles.

after that you should configure your database information for the opennms database connection configuration.

vim /usr/share/opennms/etc/opennms-datasources.xml

now change the user and password in following lines.

<?xml version=”1.0″ encoding=”UTF-8″?>
<datasource-configuration xmlns:this=””
xsi:schemaLocation=” “>
<jdbc-data-source name=”opennms”
password=”opennms” />

<jdbc-data-source name=”opennms-admin”
password=”yourpassword” />


now you can start the installation of the open/usr/share/opennms/bin/install -dis

/usr/share/opennms/bin/install -dis

Thats it. your opennms server now is intalled.

Note that during the installation of opennms will asks you to install the java. press yes to continue;

if you have any question do not hesitate to contact me. and I will appreciate you to send me by the mail :)


references :

How to Install PPTP Client on Linux


Hi again

when you use the debian server probably you need to connect a vpn server and somehow route your packets through them. therefore i decided to let you know how you can connect to a vpn server in command line interface.

first you should install the pptp-linux package in your Debian.

aptitude install pptp-linux

then you can add your user account in the file /etc/ppp/chap-secret in the following style.

$Domain\\$yourusername PPTP $Yourpassword

(if you havent any domain. dont worry just write your username.)

now you configured you username nad password for your connection. but which connection ?!  you should now add or create a new vpn client connection for your server.

Therefore go to the /etc/ppp/peers/ and create a new file with name of your connection. for instance :

vim /etc/ppp/peers/myfirstvpnconnection

ok now in the editor environment try to add the following parameters which i will tell you why we use each one.

pty “pptp $YouIPAddressOfServer –nolaunchpppd”
name $YourUSername
remotename PPTP
file /etc/ppp/options.pptp
ipparam vpn

now you should go to the /etc/ppp/options.pptp and then comment and uncomment some parameters

the following parameters should be comment are :


then you should add the following parameter in the file.


thats  it. simply you create new vpn connection in your debian. but the main thing is about  starting  the connection.

First check you connection by the following command which enables you to see what exactly happen and ensure you the connection will be established or not.

pon $connectionname debug dump logfd 2 nodetach

ok if the connection is done and you give the IP from the server,just press ctrl+c to disconnecting the connection (poff $ConnectionName is also used) and add it this connection into you interface file in order to make it available whenever the Debian boot.

go into the /etc/network/interfaces and then add these following commands.

auto tunnel

iface tunnel inet ppp

provider $YouVPNCOnnectionNAme (Which your created in /etc/ppp/peers)

thats it. your connection will be start whenever your debian starts :)

Note: if you decided to ensure whenever your connection disconnected, your connection try to reconnect just you should add the persist in your connection file.

so just type

echo “persist” >> /etc/ppp/peers/$YourVPNfile

if you have any further question dont hesitate to contact me:)


     Copyrighted Mehdi Behamin , All Rights Reserved
Blog has been visited 207167 times