Login Script to automatically connect to your Asianet Dataline Internet connection
https://www.zyxware.com/sites/default/files/styles/user_image/public/pictures/zyxlogo.png?itok=NCFkMd_w
BY webmaster
11 years ago
Technical-Solution
15 comments comment

Asianet Dataline is an ISP in Kerala and they use a web browser based authentication system to log the user onto their network. One of their most popular plans the - Homenet 475 offers free unlimited downloads from 2AM to 8AM. Now if there was a way to turn on your system at 2AM, automatically login to Asianet and turn your download manager on and then shutdown at 8AM it would have been perfect. The only problem is that the http based authentication system makes it a bit unwieldy to automate. Well not really :-). We have created a bash script to automate this login process.

Features

- Automatically connect to Asianet Dataline without having to sign in via the browser.
- In startup and free mode the script will keep the connection alive.
- The script will automatically reconnect if connection breaks because of a power failure or a line problem.
- In free mode the script will call any related startup and shutdown scripts placed inside the ~/.auto-login/startup and ~/.auto-login/shutdown folders.

Setup Instructions

a) Copy script to your favorite scripts folder.
b) Edit script to update username and password with your Asianet login information.
c) Add script to your startup process. See different ways of using the script below to know more.
d) If you want to start and stop other applications at the time of starting the script then create a folder ~/.auto-login and inside that create sub-folders startup and shutdown. Place other scripts that have to be called during startup and shutdown of this script into the respective folders. Make sure that these scripts have their executable bit set.

Different ways of using the script

1) Add a shortcut to your task bar to launch the script with the parameter "auto". Use this shortcut to start the connection with one click and stop the connection with one click. Remember that the connection will time out if there is no activity. But that should not be a problem because you can connect again with a single click.
2) Add the script to your startup process with parameter "startup". This will keep the script running in the background and the script will keep the connection alive with keep-alive requests.
3) Add the script to your startup process with parameter "free". This will keep the script running in the background and the script will connect only during the free download hours and then it will keep the connection alive with keep-alive requests until the free time ends. When free time ends it will disconnect the connection. In this mode the script will also run any related startup and shutdown scripts placed inside the ~/.auto-login/startup and ~/.auto-login/shutdown folders.

The script is available at http://www.zyxware.com/software/utilities/asianet-auto-login.v.1.0.tar…
The latest source can be downloaded from http://github.com/anoopjohn/Asianet-Auto-Login-Script

If there are issues with the script please use the github issue queue at http://github.com/anoopjohn/Asianet-Auto-Login-Script/issues


RELATED ARTICLE

/themes/custom/zyxpro_light/images/placeholder.png
close

on 04th April 2007 / by webmaster
Linux is the epitome of the FLOSS model. Technical Solution Linux installation Dewey J. Corl (not verified) access_time 21 Sep 2021 - 03:00 Linux is not ready for the general public! (I am a Ubuntu user). For proof, 1. try to simply print labels on a Dymo label printer. It takes a LOT of work to get to the ease of label printing already available in Windows and Mac. 2. try syncing a modern Palm based PDA. Yes, jpilot and others will sync the main data, but pictures and midi files do not get transferred without a lot of extra setup. These are examples of applications that are not ready for the general public. Since an operating system only supports applications, Linux is not ready to be a common desktop for the general public. While we are waiting for the applications to catch up, keep up the good work!! Anoop John (not verified) access_time 21 Sep 2021 - 03:00 Dewey Yes you may be right. But these are not applications that a common man would use. A common man would use one of these applications - Internet browser, Chat Client, Email Client, Document Writer, Presentation Creator, Spreadsheet Editor, Movie Viewer, Music Player, CD/DVD Writer. Both examples you cited are more specific applications that only a small percentage of the whole population uses. It will take time before those hardware vendors identify the need from their perspective to address the Linux community. Krishnadas (not verified) access_time 21 Sep 2021 - 03:00 Dear Mr Anoop, Thank you very much for the free installation of LINUX done in my PC. I am getting immersed in the LINUX and seeing the versatility. To my surprise, I am able to read one of my old backup CD(wherein lot of my valuable file exist) done in DIRECT CD wizard (a custom cd writing software of Easy Cd creator in WIN98) which could not be read in XP. Installation of old version of easycd creator/direct cd program was not possible in XP. I thought that possible i lost all data. Very pleasant start! Srikanth N. S. (not verified) access_time 21 Sep 2021 - 03:00 Hi Anoop, My friend is thrilled with Ubuntu. One of his grouses with windows was that after OS installation, everything else is to be installed separately which is a real headache. WHereas if u install Linux, everything is installed as a package and he is thrilled to bits! Let linux installation spread in Trivandrum and your service in this direction is highly appreciated. Kepp up the good work Regards. PDA Freak (not verified) access_time 21 Sep 2021 - 03:00 Is it possible to install linux on a packardbell notebook ? webmaster access_time 21 Sep 2021 - 03:00 In reply to Is it possible to install by PDA Freak (not verified) Sir, It should be possible. Try installing and if it shows any issues please inform us. May be we could help you. Thank You Team Zyxware

Comments


author-image

Thank you very much for this. Works great.

Btw I had to add a --no-check-certificate option in the following line for it get the login URL. :)

asianet_conn_url=`wget --quiet --no-check-certificate -O - www.zyxware.com|grep 'action='|sed 's/\(.*action="\)\(.*\)">/\2/g'`



author-image
JITHIN (not verified)
access_time 21 Sep 2021 - 04:46

In reply to by webmaster

Sir,
Where is this "Favorite Scripts Folder"
How Can I Copy A Script ie In Text Form To A Folde?
Is Favorite Script Folder an attachment Of Internet Explorer Browser ?
Please Tell Me About "START UP PROCESS"
Can You Plese Explain What Should I Do Step By Step Considering Me As A Beginer.


author-image
Jimmy (not verified)
access_time 21 Sep 2021 - 04:46

Hi,
I see the script. Can I use this script in Windows? If yes, please tell me the complete procedure to use this script in windows using the browser IE.

Thanks

Jimmy


author-image
Anonymous (not verified)
access_time 21 Sep 2021 - 04:46

Thank you very much for this. Works great.
But I cant logout after use


author-image
sanal (not verified)
access_time 21 Sep 2021 - 04:46

Please help me on how to do this for Windows 7.......


author-image
Suresh Kumar (not verified)
access_time 21 Sep 2021 - 04:46

Sir,
My net connection (CN27964) has been disrupted for the last TWO WEEKS. I have been complaining daily to the authorities but in vain. The phone charges (for complaining) alone equals my monthly rent for the Internet. Whom shall I contact to restore my Asianet net connection?

regards-Suresh Kumar, Kochi

Ph-9562263748


author-image

I've been using the login script for about a year now and it's working great. :)

I have a fully unattended system at home which would automatically login at 2 AM, start the downloads and then logout at 8 AM and is working fine. But I want to replace my current Intel Atom box with a Seagate Dockstar which doesn't have a RTC so it's difficult to make it login at the correct time, and I don't want it to accidently start downloading at the wrong time. ;)

I can see that your script logs in for about 5 minutes for the ntp to synchronise the time, but it doesn't really make sure that the time is updated (am I right? )

So will you please tell me how to make sure that the time is updated correctly and if and only then, run the startup scripts? I can configure ntpdate to run every 5 minutes but then for some reason if it fails to update the time and starts downloading, it will be a big problem.

Thanks once again. :)


author-image
Bhaskar 2k (not verified)
access_time 21 Sep 2021 - 04:46

Could you please Elaborate more in details?? Please let me know how to add the script to startup?


author-image
kirankumar (not verified)
access_time 21 Sep 2021 - 04:46

Hi Anoop,

I have beenusing the auto login script in my ubuntu machine for some time.

However recently since the asianet login site has gone through some change and the tool is no longer working...
The username password are correct.

Please help..

regards
Kiran


author-image
kirankumar (not verified)
access_time 21 Sep 2021 - 04:46

Hi Anoop,

I have beenusing the auto login script in my ubuntu machine for some time.

However recently since the asianet login site has gone through some change and the tool is no longer working...
The username password are correct.

Please help..

regards
Kiran


author-image
kirankumar (not verified)
access_time 21 Sep 2021 - 04:46

Hi Anoop,

I have beenusing the auto login script in my ubuntu machine for some time.

However recently since the asianet login site has gone through some change and the tool is no longer working...
The username password are correct.

Please help..

regards
Kiran


author-image
John Kennedy (not verified)
access_time 21 Sep 2021 - 04:46

I have an unlimited Asianet broadband , my home is wifi featured with a router , so i want this automatic login to be done directly through router so that i can directly connect to internet through my mobile without logging in every time through a browser


author-image
salam muhammad (not verified)
access_time 21 Sep 2021 - 04:46

nice perfomence of broadband


author-image
Clinoy Cleetus (not verified)
access_time 21 Sep 2021 - 04:46

Sir , I installed windows 10 , after that I can't connect to the internet.