Author Archives: admin

Squid stats

How to check squid statistics on debian linux? install application squidclient apt-get install squidclient and then execute aplilaction: squidclient -p 3128 mgr:counters for all options execute: squidclient -p 3128 mgr:

Posted in Linux tips | Leave a comment

Apache self-signet certificate

Step 1: Generate a Private Key openssl genrsa -des3 -out server.key 1024 Step 2: Generate a CSR (Certificate Signing Request) openssl req -new -key server.key -out server.csr Step 3: Remove Passphrase from Key cp server.key server.key.org openssl rsa -in server.key.org … Continue reading

Posted in ISPConfig 3, Linux tips | Tagged , , | Leave a comment

extract DID from SIP header

Some providers put the DID in the TO: field. To extract DID form SIP header use new context: [from-pstn-toheader] exten => s,1,Goto(from-pstn,${CUT(CUT(SIP_HEADER(To),@,1),:,2)},1) and in incoming trunk set context=from-pstn-toheader

Posted in Asterisk, FreePBX | Tagged , , | Leave a comment

How to enable printing on AvantFAx

AvantFax has ability to automatically print received fax. first you have to edit config file to enable global printing edit includes/local_config.php file # pico includes/local_config.php and find line $PRINTFAXRCVD = false; false change to true and that is all.

Posted in AvantFax, HylaFAX, Linux tips | Leave a comment

lpr: cannot connect to X server

If you get following error on debian Lenny just do: apt-get install cupsys-bsd

Posted in Linux tips | Leave a comment

mydns – slave DNS server from master ISPConfig3 database

I wrote a litle bash script for mydns DNS server to act as slave DNS server. All records are transfered from master ISPConfig 3 Server. On second server install mydns server, and configure it for ISPConfig use. then edit file … Continue reading

Posted in ISPConfig 3, Linux tips | Tagged , , | 3 Comments

Update: ISPConfig3 Backup script – local server

This is updated backup script which can be run on ISPConfig3 server (locally) and copy files to already mounted drive. Original post_ http://blog.it-podrska.info/2009/08/backup-remote-linux-mysql-and-data/ Variables which are removed: sshuser=”remote_username_root” # remote ssh username sshhostname=”remote_hostname” # remote hostname sshport=”remote ssh port” # … Continue reading

Posted in Linux tips | Tagged , , , | 5 Comments

pure-FTP on openVZ on debian

Here is description how to compile pure ftp to run in openVZ server. First install needed packages and pure-ftpd-mysql: apt-get install pure-ftpd-mysql build-essential libpam0g-dev libmysqlclient15-dev Then download and compile new pure-fptd: cd /tmp wget http://download.pureftpd.org/pub/pure-ftpd/releases/pure-ftpd-1.0.22.tar.gz tar -xvzf pure-ftpd-1.0.22.tar.gz cd pure-ftpd-1.0.22 … Continue reading

Posted in Linux tips | Tagged , , | Leave a comment

ssh key authentication

How to generate SSH keys and implement for key authentication. login to local machine with user you will be using for connect to remote. 1. generate keys: ssh-keygen -t dsa 2. copy id_dsa.pub to remote machine to /tmp directory scp … Continue reading

Posted in Linux tips | Tagged , , | 2 Comments

Backup remote linux mysql and data

Whit little bash script you can backup remote linux server. I wrote this script for backup my web server powered by ISPconfig 3. Backup is started from local linux machine. For this script ssh key authentication must be set. This … Continue reading

Posted in ISPConfig 3, Linux tips | 21 Comments