Skip to main content


Showing posts from September, 2011

Install and Configure Conky - a stats widget for your Ubuntu desktop

Install Conky
sudo apt-get install conky -y

Configure Conky config file

touch ~/.conkyrc
vi .conkyrc
#Add below to .conkyrc and tweak it where you want or can
background yes
use_xft yes
xftfont 123:size=8
xftalpha 0.1
update_interval 0.5
total_run_times 0
own_window yes
own_window_type normal
own_window_transparent yes
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
double_buffer yes
minimum_size 250 5
maximum_width 400
draw_shades no
draw_outline no
draw_borders no
draw_graph_borders no
default_color gray
default_shade_color red
default_outline_color green
alignment top_left
gap_x 10
gap_y 10
no_buffers no
uppercase no
cpu_avg_samples 2
net_avg_samples 1

Securing Ubuntu Linux server or workstation

Uncomplicated Firewall Install a very simple and uncomplicated forewall that is designed for Linux and works perfectly for Ubuntu. sudo apt-get install ufw gufw
UFW is command line but very simple tool to manage your firewall however you can also use GUFW in gui format or within X Windows for a user friendly graphical interface.
Block too many ssh or brute force attacks Install DenyHosts sudo apt-get install denyhosts Usually it protects your ssh services automatically and can send emails with reports however further configuration can be made in /etc/denyhosts.conf

Skype call forwarding or double gateway

If you wish Skype to receive a call or a SIP call received to be forwarded to Skype you should follow these instructions.
Prerequisites. You have SkypeIn set up in the same way as described here.You have Asterisk installed and configured to take or forward calls as per this blog.You have VNC Server configured to run as service as per this blog.
sudo adduser skypeout
sudo cp /home/skypein/.vnc/xstartup /home/skypeout/.vnc/xstartup sudo chown skypeout:skypeout /home/skypeout/.vnc/xstartup sudo cp -r /home/skypein/sip2sis /home/skypeout/ sudo chown -R skypeout:skypeout /home/skypeout/sip2sis
sudo su - skypeout vncserver :3
modify host_port for incoming SIP calls vi ~/sip2sis/siptosis.cfg #cfg:host_port=5070 cfg:host_port=5080
Change audio_port from 63200 to 63300 in  vi ~/sip2sis/siptosis.cfg #audio_port=63200


Change Skype Audio Base port in  vi ~/sip2sis/siptosis.cfg #skype_audioportbase=64432 skype_audioportbase=64442
Restart VNC Server and connect using VNC client vncviewer :3 Acce…

Asterisk installation and configuration on Linux Ubuntu

Install Asterisk sudo apt-get install asterisk Enter your country code when prompted for.
If you have to reconfigure it again removing asterisk without other dependencies will not get rid of config files and reinstall wil not create it so be careful and try uninstalling asterisk-config if required.
Port forwarding will be required from gateway to receive calls from Registrars.
sudo vi /etc/asterisk/users.conf
callerid=CIA FBI ATF <1-555-555-5555>
sudo vi /etc/asterisk/sip.conf
add under [general] just below follwoing default line ;register => register => sipid:sippassword@sipgate/sipid

;localnet= ; Zero conf local network
;       ; refreshed periodically
;        externrefresh=180               ; change the refresh interval

SkypeIn - Skype to SIP or SIP to Skype Gateway configuration using siptosis

This article will guide you through installation and configuration of SipToSis Skype gateway which will enable you to forward Skype calls to SIP URI or receive calls from SIP phones, clients or gateways to be dailled through Skype.
Create a user account for skypein sudo adduser skypein Select anything you wish for account details including password of your choice
Download SipToSis - Sip to Skype integration software Go to and download following " Sip to Skype integration software"
Download Jave JRE v6 or above Go to Select the latest JRE Download Select appropriate download such as "Linux x86 - Compressed Binary"
Go to from a Linux based browser and select Downloads which will take you to Select Linux (self-extracting file) filesize: 20.6 MB This will downloa…