Alliance Broadband a known ISP having web based authentication and sharing IP Connector tool for window users only, made my life difficult. It was mandatory to start X and then a browser to complete the authentication even I wanted to just upgrade the box. And that challenge is nicely handled by Linux itself. Read the rest of this entry
X broken as drmSetMaster failed
That was a bad evening, I upgraded my debian box and X failed to start throwing below errors.
6017.269] (EE) modeset(0): drmSetMaster failed: Permission denied [ 6017.269] (EE) Fatal server error: [ 6017.269] (EE) AddScreen/ScreenInit failed for driver 0
Blank Screen of VNC
Recently I found already running VNC landed with blank screen out of the moon. Debugging revealed after uninstalling some packages related with Window/Desktop managers, existing xstartup of VNC failed to call Desktop manager. Experienced frequently with Gnome. My VNC again came back to life with below xstartup which instructs VNC to call DM explicitly. Read the rest of this entry
Secured email hosting by SPF, DKIM, DMRAC record
If you manage your own DNS & Mail Server , you need to arrange a shield to fight against spamming , phishing and sender address forgeries. We can configure few TXT records in DNS zone that helps upto a great level to maintain a secured email hosting. Read the rest of this entry
Decrypt BitLocker encrypted drive through Linux
Once I had a situation, my work laptop (based on M$ win7 as per choice of organisation) entered into most infamous “Blue screen of Death”. The hard disk was BitLocker encrypted and the data on it was very important for me due to its research value. Do you know how Linux helped me to recover my data ?
Linux script to connect/disconnect wishnet
ISP like wishnet provides a web interface to the customers for activating/deactivating the internet connection. Hence to be connected with internet, user needs desktop/window-manager and browser. Frustrated ? Linux has the commands to rescue you. Read the rest of this entry
Wifi Access Point and Station on same chip – share internet too
Users of cable-net like 24online need authentication to activate internet connection. If the connection is attached with wifi router, user has to authenticate via wifi in station mode. If internet is required on mobile at the same time, an access point is also required.
Linux can configure both wifi station and access point on the same chip (if supported), so users can get internet on laptop and on mobile devices simultaneously. This post is based on debain, though the same approach is valid for other distro. It is assumed the wifi station is already configured and internet is available through that station. Read the rest of this entry
Setup free enterprise grade email hosting for business
So you have a domain and want free Industry standard Email hosting
Well, you are not alone 🙂 Many small business/startup needs such email system from day one. Even users having personal domain also want their own email hosting. Recently I have checked some Free email hosting providers and finally stuck with Zoho. Let me inform you, this post is neither a comparison between free email hosting providers nor an effort to promote Zoho, but a post about how to successfully setup an enterprise grade FREE email hosting on Zoho. Read the rest of this entry
Single click deployment by jenkins
Scenario
Code is available at local git server. That same server is also hosting multiple tomcat. Jenkins build should pull the git to collect code, prepare mysql DB, execute ant target, finally place the resultant war file at particular webapps folder. Apart from all these build specific tasks, jenkins should shutdown the associated tomcat before ant task and start it again after placing the war file in webapps
Jenkins installation
On debian, add the official jenkins repo and add signature .
wget -q -O - https://jenkins-ci.org/debian/jenkins-ci.org.key | sudo apt-key add - echo "deb http://pkg.jenkins-ci.org/debian binary/" > /etc/apt/sources.list.d/jenkins.list apt-get update
Setup local domains for intranet
Recently there was a requirement to configure local domains like simpsoft.local, jenkins.simpsoft.local etc.. for the development team. While this could be achieved simply by declaring IP-domain mapping at host machine (/etc/hosts), is not a good solution for a large web development team. dnsmasq is a little gem in Linux perfectly fits in this situation.
dnsmasq a local DNS server with forwarding to upstream DNS
dnsmasq accepts DNS queries and either answers them from a small, local, cache or forwards them to a real, recursive, DNS server. dnsmasq is DHCP + local DNS with forwarding of all query types to upstream DNS + DNS caching + TFTP server. Being easy to configure it also has reputation for its light weight foot print. As a DHCP is already running in my envioronment, I only need its DNS capabilities. On a debian box install the server as root
apt-get install dnsmasq
Server’s static I.P. is 192.168.1.10 Read the rest of this entry