posts | comments
14Jan

openvz on debian amd64

No comments

echo “deb http://download.openvz.org/debian-systs lenny openvz ” >> /etc/apt/sources.list

wget -q http://download.openvz.org/debian-systs/dso_archiv_signing_key.asc -O- | apt-key add - && apt-get update

apt-get install vzctl vzquota

edit /etc/sysctl.conf : set net.ipv4.ip_forward=1

ln -s /var/lib/vz /vz

apt-get install vzctl-ostmp-debian-5.0-amd64-minimal

apt-get install vzprocps

put into /etc/vz/vz.conf : IPTABLES=”ip_tables ipt_REJECT ipt_tos ipt_limit ipt_multiport iptable_filter iptable_mangle ipt_TCPMSS ipt_tcpmss ipt_ttl ipt_length ip_conntrack ip_conntrack_ftp ip_conntrack_irc ipt_LOG ipt_conntrack ipt_helper ipt_state iptable_nat ip_nat_ftp ip_nat_irc ipt_TOS”

Categories: bg-webs.com Clients
28Dec

grep - syntax and options reference quick guide

No comments

GREP::: quick syntax and options reference guide

grep basically searches.

shell> grep foo
file(s)

shell> grep foo
*

returns all the lines in file(s) that contain a string matching
the expression “foo” (which may be a regular expression).

Another way of using grep is to have it accept data through STDIN
and filter to STDOUT. For example,

shell> ls
|grep blah

lists all files in the current directory containing the string “blah”

Some common option:

-v - invert (print
all lines except those that contain the pattern).

-i - ignore case
of letters (small and capital treated as the same)

-l - (list) -
print a list of the file names where mathes found

-s - suppress error
messages about nonexistent or unreadable files.

-c   - print only a count of the lines that  contain
the pattern.

-n   - precede each line by its line number  in
the file (first line is 1).

-h   - prevents the name of the file containing  the
matching  line  from  being  appended to that line
(used when searching multiple files).

-w  - search for the expression as  a  word  as
if surrounded by \< and \>.

Read the rest of this entry »

11Nov

ssh port forward - quick howto syntax it

No comments

scenario 1 : attach remote private host on localhost and localport

/localhost -> sshserver -> sshserverlocalnet_host/

ssh user@sshserver  -L 1180:sshserverlocalnet_host:80

The sshserverlocalnet_host, port 80 will be attached on localhost and localport 1180

17Sep

FreeBSD portupgrade missing key: categories: Cannot read the portsdb! SOLUTION!!!

No comments

when the error is like this:

# portupgrade phpMyAdmin

[missing key: categories] [Updating the portsdb
in /usr/ports ... - 20687 port entries found .........1000.........2000.........3000.........4000.........5000.........6000.........7000.........8000.........9000.........10000.........11000.........12000.........13000.........14000.........15000.........16000.........17000.........18000.........19000.........20000...... ..... done]
missing key: categories: Cannot read the portsdb!
/usr/local/lib/ruby/site_ruby/1.8/portsdb.rb:567:in `open_db’: database file error (PortsDB::DBError)
from /usr/local/lib/ruby/site_ruby/1.8/portsdb.rb:736:in `port’
from /usr/local/lib/ruby/site_ruby/1.8/portsdb.rb:924:in `all_depends_list’
from /usr/local/lib/ruby/site_ruby/1.8/pkgdb.rb:915:in `tsort_build’
from /usr/local/lib/ruby/site_ruby/1.8/pkgdb.rb:907:in `each’
from /usr/local/lib/ruby/site_ruby/1.8/pkgdb.rb:907:in `tsort_build’
from /usr/local/lib/ruby/site_ruby/1.8/pkgdb.rb:929:in `sort_build’
from /usr/local/lib/ruby/site_ruby/1.8/pkgdb.rb:933:in `sort_build!’
from /usr/local/sbin/portupgrade:694:in `main’
from /usr/local/lib/ruby/1.8/optparse.rb:755:in `initialize’
from /usr/local/sbin/portupgrade:210:in `new’
from /usr/local/sbin/portupgrade:210:in `main’
from /usr/local/sbin/portupgrade:1981
Read the rest of this entry »

Categories: Problem Solutions
09Sep

Skype protocol, skype connect algorithm, authentication servers and ports

No comments

Original from WikiPedia

Here because I dont wonna a forget it.

Protocol

A Skype network is a peer-to-peer network with three main entities: supernodes, ordinary nodes and the login server. It is an overlay network: each client builds and refreshes a list of reachable nodes known as the host cache. The host cache contains IP address and port numbers of supernodes. Communication is encrypted using RC4; the method used does not provide any privacy but instead merely obfuscates the traffic.

So, abbreviatures for host cache is HC , Skype Client is SC and Skype Network is SN

Read the rest of this entry »

26Aug

Asterisk 1.4 tunning tips and shits

No comments

IP Type Of Service settings:
——————————————-
sip.conf tos_sip cs3
sip.conf tos_audio ef
sip.conf tos_video af41
——————————————-
iax.conf tos ef
——————————————-
iaxprov.conf tos ef
===========================================

Categories: VoIP
25Aug

Asterisk SIP Response Codes

No comments

a list.
1xx: Provisional — request received, continuing to process the request;
Provisional responses, also known as informational responses, indicate that the server contacted is performing some further action and does not yet have a definitive response. A server sends a 1xx response if it expects to take more than 200 ms to obtain a final response. Note that 1xx responses are not transmitted reliably. They never cause the client to send an ACK. Provisional (1xx) responses MAY contain message bodies, including session descriptions.
2xx: Success — the action was successfully received, understood, and accepted;
3xx: Redirection — further action needs to be taken in order to complete the request;
4xx: Client Error — the request contains bad syntax or cannot be fulfilled at this server;
5xx: Server Error — the server failed to fulfill an apparently valid request;
6xx: Global Failure — the request cannot be fulfilled at any server.

Read the rest of this entry »

Categories: VoIP
25Aug

Nokia N95 connect SIP to asterisk

No comments

Fast and easy you can connect your Nokia N95 gsm to asterisk PBX.

( it’s work with almost all Nokia cell phones )

Go to Tools / Settings / Connection / SIP settings
Create new profile …
Profile name: stolitel
Enter name for your SIP profile.
Service Profile: IETF Default
Do Not change this.
Default Access Point: ( your WIFI AP name -> find it in Tools / Settings / Connections / Wireless LAN )
Choose the access point name.
Public User Name: 1000@sip.stolitel.net
Fill your username and @your registar server address.
Use Compression: No
Do Not Change this.
Registration: “Always on ”
Do Not Change this.
Use Security: No
Do Not Change this.
Proxy Server: none
Do Not Enter in this setting menu.

Registrar Server .-> Enter to edit this setting menu.

Registrar Server address: sip.stolitel.net
Enter your Server address.
Realm: asterisk
Do Not Change This unless there is realm: in server’s sip.conf
User Name: 1000
Enter your SIP username.
Password: password
Enter your SIP password.
Transport Type: UDP
Do not change or change it to UDP.
Port: 5060
Do not change OR enter your registar server SIP connection port.

Now your gsm phone is a gsm and VoIP phone in the same time.
When you want to call via VoIP , just enter the calling number, hit Options -> Internet Call

Categories: VoIP
24Aug

Asterisk on FreeBSD: install, configure and run. command line examples.

No comments

First we get and install the asterisk package file.

#cd /usr/porta/net/asterisk
#make install asterisk clean clean-depends

…………………………………………………………………………………..
INSTALLING…….( , If you exit with an error, just fix it and continue. )
………………………………………………………………………………..

and we love pkg worlds! :)

Categories: VoIP
11Aug

LibClamAV Error: Can’t load /var/db/clamav/main.cvd: MD5 verification error - SOLUTION!!!

No comments

The Problem:

ClamAV, refuse to start with error:

LibClamAV Warning: ***********************************************************
LibClamAV Warning: *** This version of the ClamAV engine is outdated. ***
LibClamAV Warning: *** DON’T PANIC! Read http://www.clamav.net/support/faq ***
LibClamAV Warning: ***********************************************************
LibClamAV Error: Can’t load /var/db/clamav/main.cvd: MD5 verification error
ERROR: MD5 verification error

Solution:

1. first do update on clamav package

smtp# portupgrade clamav
—> Upgrading ‘clamav-0.94.2′ to ‘clamav-0.95.2′ (security/clamav)
—> Building ‘/usr/ports/security/clamav’
===> Cleaning for clamav-0.95.2
===> Vulnerability check disabled, database not found
===> Found saved configuration for clamav-0.94.2
=> clamav-0.95.2.tar.gz doesn’t seem to exist in /usr/ports/distfiles/.
=> Attempting to fetch from http://superb-east.dl.sourceforge.net/sourceforge/clamav/.
fetch: http://superb-east.dl.sourceforge.net/sourceforge/clamav/clamav-0.95.2.tar.gz: Moved Temporarily
=> Attempting to fetch from http://nchc.dl.sourceforge.net/sourceforge/clamav/……..


Now when starting clamav it’s says:

LibClamAV Error: Can’t load /var/db/clamav/main.cvd: Can’t verify database integrity
ERROR: Can’t verify database integrity


2. second move main.cvd database from /var/db/clamav

smtp# mv main.cvd main.cvd.bak

and do new database update, so freshclam can create the right main.cvd

smtp# freshclam

Current working dir is /var/db/clamav
Max retries == 3
ClamAV update process started at Tue Aug 11 11:22:47 2009
Using IPv6 aware code
Querying current.cvd.clamav.net
TTL: 700
Software version from DNS: 0.95.2

THAT’S ALL!

smtp# /usr/local/etc/rc.d/clamav-clamd start
Starting clamav_clamd.

Categories: Problem Solutions