Tuesday, 30 October 2012

Using 2G/3G modem in ubuntu,Linux mint



Sakis3g is a great tool to help u to connect to internet.It recognizes almost all types of  2G/3G modems.


1) Download latest version of sakis3g.gz from its official website- www.sakis3g.org

2) Install sakis3g.gz
     a) open terminal, change current directory to that directory where the sakis3g.gz is

     b) In terminal, type-
         gunzip sakis3g.gz

     c) After that, type-
         sudo chmod +x sakis3g

     d) After that, type-
          ./sakis3g --interactive

 It will install sakis3g script and start the GUI window of sakis3g

 3) Connect modem
     a) Click on First option- Connect with 3G

     b) Select usb device

     c) Select your modem from the list appears.

     d) After that it will automatic configure the modem, and then it will ask about APN-
         Enter the APN provided by your operator in the box.

     e) It will ask about username-
          Enter the username provided by your operator.
          Click OK

      Note:If no username or password required then use something u like.Some username/password
              should be given otherwise it will exit.

      f) It will ask about password.
           Enter the password provided by operator.
           Click OK


      g) If all the things are going well, then it will success message as "connected".
            Click OK to return to MAIN MENU.
       Now You are connected to internet.
 4) You can create a shortcut of sakis3g to your desktop using the menu if u want.

 5) sakis3g configuration file -
       No need to enter APN, username and password every time you connect.

       For this we have to create a file named 'sakis3g.conf' file in /etc directory and then add these lines to it-
       APN="CUSTOM_APN" 
      CUSTOM_APN="custom.apn.name" 
      APN_USER="username"     
      APN_PASS="password"

Note:The exact location or the path to sakis3g.conf is /etc/sakis3g.conf
I am giving an example here for the provider BSNL, Change as necessary for your provider
custom.apn.name => bsnlnet
username=>user
password=>pass
so the lines become
 APN="CUSTOM_APN" 
 CUSTOM_APN="bsnlnet" 
 APN_USER="user"     
  APN_PASS="pass"

If you didn't make this file then it will ask for APN, username and password each time you connect, that's all.It is not necessary/mandatory to make this file for sakis3g to work.

 

Saturday, 26 November 2011

Installing VirtualBox dependencies in ubuntu, linux mint


Download the .deb package from virtual box website.
Before installing .deb package solve the following dependencies

sudo apt-get install bcc iasl xsltproc xalan libxalan110-dev uuid-dev zlib1g-dev
libidl-dev libsdl1.2-dev libxcursor-dev libqt3-headers libqt3-mt-dev libasound2-dev
libstdc++6 build-essential

Now install the virtual box .deb package, installing a .deb package i shown you
earlier in my posts.Also you can use software center to install after solving these
dependencies.

Installing tor in ubuntu


Tor is an anonymous proxy service.To know more,log on to https://www.torproject.org/
First open up the terminal.
sudo gedit /etc/apt/sources.list
The sources.list file opens, now add the following line in that,
deb http://deb.torproject.org/torproject.org lucid main
Now save it and exit.
Now in the terminal
gpg --keyserver keys.gnupg.net --recv 886DDD89

gpg --export A3C4F0F979CAA22CDBA8F512EE8CBC9E886DDD89 | sudo apt-key add -

sudo apt-get update

sudo apt-get install tor privoxy
After installation,in the terminal open config file by typing in terminal
sudo gedit /etc/privoxy/config
Add the following line to the file opened
forward-socks5 / 127.0.0.1:9050 .
Yes there is a dot after a space in the line above.
Now restart the services by
sudo /etc/init.d/tor restart
sudo /etc/init.d/privoxy restart
Now tor is installed,now install 'tor button' in your browser to enable
tor in your browser.
 




Tuesday, 22 November 2011

Changing DNS server permanently in ubuntu


You might have searched in google a lot to know how to change the DNS
server permanently in ubuntu.OK lets do it.
First open up the terminal by pressing ctrl+alt+T or from menu.
now type the following.
sudo gedit /etc/dhcp/dhclient.conf
or find dhclient.conf in dhcp3 folder.
Now look for the line starting with prepend and change that line
#prepend domain-name-servers 127.0.0.1; to the following below
prepend domain-name-servers 8.8.8.8;
Here i used google DNS, you can use others also,add more than one by
separating it with a comma.





Wednesday, 2 November 2011