I am writing this post to let you know that I have moved this blog to new domain ahotech.com
I have moved all the previous posts there and from now on I will post regularly at ahotech.com
I hope to see you there.
Human Knowledge Belongs To The World…
Few days back I bought Reliance Netconnect Broadband+ Data-card( Huawei EC1262) and as usual it had support only for Windows and Mac. I asked the tech support and they clearly mentioned me that they dont support Linux. So now I was on my own. I looked over the Internet and found many tutorials to get it to work on Ubuntu. None of them worked for me perfectly. So I changed few things mentioned in those tutorials and got my datacard to work perfectly on Ubuntu 10.04 . Now I am going to list the steps that I followed to get my datacard to work on Ubuntu. So here I go:
1. First of all open up the terminal and run the following command
sudo apt-get update
2. Now we need to install wvdial so run the following command
sudo apt-get install wvdial
3. Now we need to install libusb-dev so run the following command
sudo apt-get install libusb-dev
4. Now we need to download usb-modeswitch and usb-modeswitch-data so go to the following links
5. Now extract both the files and and go to extracted directories on by one (first go to usb-modeswitch). and run the following command as root
sudo make install
6. Now run the following command
sudo gedit /etc/usb_modeswitch.conf
and it will open gedit and paste the following text in it and save the file
# Configuration for the usb-modeswitch package, a mode switching tool for # USB devices providing multiple states or modes # This file is evaluated by the wrapper script "usb_modeswitch" in /lib/udev # To enable an option, set it to "1", "yes" or "true" (case doesn't matter) # Everything else counts as "disable" # Disable automatic mode switching globally (e.g. to access the original # install storage) DisableSwitching=0 # Enable logging (results in a extensive report file in /var/log, named # "usb_modeswitch_" EnableLogging=1 # Huawei, newer modems DefaultVendor= 0x12d1 DefaultProduct=0x1446 TargetVendor= 0x12d1 TargetProduct=140b CheckSuccess=5
Now run the following command and it will again open gedit and paste the above text in it again and save it
sudo gedit /etc/usb-modeswitch.conf
7. Now run the following commands
sudo gedit /etc/wvdial.conf
it will again open gedit and you need to paste the following text in it.
[Dialer netconnect] New PPPD = yes Init1 = ATZ Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 Modem Type = USB Modem Baud = 460800 New PPPD = yes Modem = /dev/ttyUSB0 ISDN = 0 Username = 93******** Password = 93********* Phone = #777 Stupid Mode = 1 Auto DNS = 1 Check Def Route = 1
change the username and password with your 10 digit MDN number given on the box of datacard.
8. Now Save the file and reboot the computer. After reboot plugin your datacard and wait for 5 to 6 seconds . Now run the following command
sudo wvdial netconnect
you should see something like below after running the above command
--> Using interface ppp0 --> local IP address 184.108.40.206 --> remote IP address 220.127.116.11 --> primary DNS address 18.104.22.168 --> secondary DNS address 22.214.171.124
If you see this, that means you are connected to the internet. Now open the firefox and go to File menu and remove the offiline mode and enjoy. But if you dont see this then there is something wrong you are doing.
Original tutorial can be found here but it did not worked for me. So I suggest you that first you follow my tutorial and if it dont work for you only then follow the other tutorial.
P.S: If you dont understand instructions above then ask me for help in the comments. Remember there are no dumb questions. Good Luck.
Introduction (From Wikipedia) :
Alpine is a free software e-mail client developed at the University of Washington.Alpine 1.0 was publicly released on December 20, 2007.Alpine is a rewrite of the Pine Message System that adds support for Unicode and other features. Alpine is meant to be suitable for both inexperienced email users and the most demanding of power users. Alpine is developed at the University of Washington, as was Pine before it. Alpine can be learned by exploration and the use of context-sensitive help. The user interface can be customized.
Alpine shares a lot of common feature of console applications, like a rich set of shortcut keys, using keyboard instead of mouse to do all navigation and operation. In fact all operations in Alpine have corresponding shortcut keys.
Unlike other console applications targeting developers and experienced users, which often require users to edit a configuration file, Alpine allows the user to change most configuration options within the software. This makes alpine one of the most easy to learn console-based email clients.
Alpine supports IMAP, POP, SMTP and LDAP protocol natively. Although it does not support composing HTML email, it can display emails that only have HTML content as text.
Linus Torvalds, the primary force behind the development of Linux, has stated in an interview published by the Lifehacker weblog on 31 January 2008 that he uses Alpine as his email client.E-mail headers confirm this.
First of you have to download and install Alpine from here . If you are using debian or ubuntu simple type
sudo apt-get install alpine
and it will be automatically install for you .
Now open your terminal and type
and you will see a screen like the one below .
Now move your cursor up and down to the option S SETUP or simply press S from your keyboard and you will see a next screen like the one below
Now press L from your keyboard and go to the configuration screen like as shown in the next screen
Now press A and you will be presented with a screen like below
In the Nickname field put anything you want and in Server field put this
Replace “username” with your gmail username.
Now press Ctrl+X and you will be asked for your password (dont worry if not), just give your password and hit enter . In the next screen you will see the new list just created by you .
Now press left arrow and you will be back to the main screen . From here again press S and then press C and you will see a screen almost similar to one below
From the start of the screen go slowly down and you will see SMTP server field and Inbox Path field. Now put the following details in both the fields respectively ( press enter to add detail)
and then hit enter and give your password if you are asked for . Thats it now you must be able to read your emails and send emails from your Gmail account .
Now if you want that your password should be saved on your computer (dont worry its totally safe) , then open the terminal and if you are in your home directory then give the following command
How to read email
To read your email just type alpine in the terminal and from the menu select FOLDER LIST and there you will see the list created by you so select it and now you can read your emails .
If you have any problem , you can ask me for help through comments .
In this post I am going to explain about how to enable Grayscale Printing in Canon Pixma MP250 series printer . You can refer to my tutorial here in case you want to install the printer and scanner on Ubuntu and any other Linux distro .
To enable the Grayscale printing just follow the following steps .
1. Click System –> Administration –> Printing .
2. Now right click on your printer and select properties .
3. Now select Job Options
4 . Now scroll down to the bottom .
5. At the bottom you will see a text box . In that text box add “CNGrayscale” (without qoutes) and click on Add button .
6. Once you click add there will appear another text box right above the first text box . So in the second text box add “TRUE” and click on apply .
Thats all , now your printer will print in Grayscale mode . In case you want to print in color mode just change the TRUE to FALSE .
If there is something that you did not understand , you can ask me in the comments .
This is the list of some of the best Lightweight applications available in Linux . I hope you like it . Please give your feedback in comments .
Help me to improve this list by specifying if I missed something . Please give your feedback in comments . This list was orginally posted at Arch Linux . I have fixed the few links and I am sharing it here with you guys .