Script to speed up mobile internet connexion in Linux
For people who use an USB stick or mobile phone to surf the internet on the go, it’s often reported that the connection is sloppy or unresponsive. Wireless features pings over 200 ms as it is, however, it’s not that what causes this ‘lag’.
For example, if you open an audio stream from the internet and then decide to browse some pages, you’ll notice that your connection behaves in a much more responsive manner.
One way to fix this issue is having a ‘ping’ command running in the background which probes a host (eg. Google.com) continuously. This keeps the connection ‘active’ as it always sends a few packets of data.
We’re going to be creating a script that will keep the connexion active.
To begin, get your favorite text editor and open up a random file in your system. I’m going to choose /opt/stayonline.sh for this tutorial.
$ sudo nano /opt/stayonline.sh
Copy/ past the following onto the file.
while  do
/bin/ping -c 3 -s 1 google.com
Save it and close. We now need to make this file executeable. Just run the following.
$ sudo chmod +x /opt/stayonline.sh
All we need to do now is set it up in such a way where it gets called every time a network connection is established.
That’s it. Now each time your connection is active, it’ll maintain a constant ping command with a remote host and hopefully, make your online experience more fluid and responsive.
Learn about high speed business DSL options that may be available.
Usefull links: lffl.org
Like us on Facebook
This week Top Posts
- How To Install Netflix In Ubuntu : Hi unixmen readers! How are you? In this article we will teach you how to install the desktop vers...3 comments |
- Top Things To Do After Installing Ubuntu 13.10 'Saucy Salamander' : Ubuntu 13.10 Saucy Salamander will be released on coming October 17th with many new salient featur...0 comments |
- How To Configure Linux Clients To Authenticate Using OpenLDAP : This is the continuation of our previous tutorial. In our previous tutorial we learned how to instal...2 comments |
- How To Upgrade From Ubuntu 13.04 Raring To Ubuntu 13.10 Saucy Salamander : Ubuntu 13.10 Saucy will be released on October 17th. Hope it will come with lot of improvements and ...0 comments |
- Install lamp with 1 command in Ubuntu 12.10, 13.04 Raring Ringtail & LinuxMint13 : Updated: 10/09/2012 :LAMP (Linux, Apache, MySQL and PHP) is an open source Web development platform ...0 comments |
- Install and Configure Samba share in Ubuntu 13.10 'Saucy Salamander' , 13.04| Howto : Updated 05-04-2013: One of the most asked features for Samba is a graphical user interface to help w...0 comments |
- How To Configure Linux Clients To Authenticate Using OpenLDAP
- How To Install Netflix In Ubuntu
- cowsay And fortune Combined Together
- How To Show Username On Panel In Ubuntu 13.04/13.10
- Setup DNS Server On openSUSE 13.1
- TeamViewer 9 Final Has Been Released!
- Twelve Vulnerabilities Have Been Fixed In Ubuntu 12.04, Time To Update
- OpenLDAP Installation and Configuration in Ubuntu 12.10/13.04/13.10 And Debian 6/7
- Configure Your Browser To Use Tor On Ubuntu/Debian/Linux Mint
- Setup A Full Featured ITIL Management System Using Integria IMS On CentOS 6
This work by unixmen.com is licensed under a Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License.
Copyright © 2008-2013 Unixmen.com .