Skip to main content

Posts

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 override_utf8_locale yes use_spacer right text_buffer_size 256 TEXT ${font openlogos:size=20} my ${font Arial:size=20}${color Tan1} Portal ${color Ivory} Server ${font openlogos:size=20} ${voffset -90} ${color DimGray} ${font} ${font Arial:bold:size=10}${color Tan1}SYSTE

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 audio_port=63300 Change Skype Audio Base port in  vi ~/sip2sis/siptosis.cfg #skype_audioportbase=64432

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 [1000] type=friend host=dynamic context=home secret=password callerid=CIA FBI ATF <1-555-555-5555> dtmfmode=rfc2833 nat=yes mailbox=200@home disallow=all allow=ulaw sudo vi /etc/asterisk/ sip.conf add under [general] just below follwoing default line ;register => 3456@mydomain:5082::@mysipprovider.com register => sipid:sippassword@sipgate/sipid ;localnet=169.254.0.0/255.255.0.0 ; Zero conf local network localnet=192.168.0.0/255.255.255.0 ;        externhost=foo.dyndns.net       ; refreshed periodically ;        externref

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 http://www.mhspot.com/sts/siptosis_download.php and download following "SipToSis_20110310.zip Sip to Skype integration software" Download Jave JRE v6 or above Go to http://www.oracle.com/technetwork/java/javase/downloads/index.html Select the latest JRE Download Select appropriate download such as "Linux x86 - Compressed Binary" Go to http://www.java.com from a Linux based browser and select Downloads which will take you to http://java.com/en/download/linux_manual.jsp?locale=en Select Linux (self-extracting file)