Using YUM with a proxy Fedora

Posted on September 27th, 2008

Finally i got a chance to use the awesome LAN at the college campus and it was a very good time to update the packages, but there was a problem it had a proxy, so i typed man yum and was pointed at man yum.conf and there it was a simple solution, all the you need to do is just edit the yum.conf file as root
type
su
enter your root password now type
nano /etc/yum.conf
here add a line
proxy = http://address:port
replace the above code with the address you need like 172.16.19.10 and port 80 in my case and all will work just fine
Enjoy!!!
Ankur Shrivastava

Ion Auto Login for Windows XP/ Vista

Posted on September 19th, 2008

Ion Auto Login ( IAL ) script written in python has been updated to a exe, that means it will run directly from your windows just by clicking ialv1.exe. To change the username and password delete the ial.info file, if you face any problem please comment on this post
download here size 2.3MB
Linux and Mac users can download this and execute it by typing python ialv1.py
Enjoy!!!!
PS - 1 known problem if no connection it there it goes into an infinite loop to come out press Ctrl + Pause or Ctrl + Break

UPDATE — the link now points to updates made by GenobZ ( Prakhar ) which makes it more efficient……… the old link is here

ION Auto Login Script in Python Version 1

Posted on September 17th, 2008

After yesterdays efforts i have now made a complete working Python IAL (ION Auto Login) script which can store your password and checks for login in every 1 Min and continues till you stop it, here is the Code


iimport urllib, urllib2, time, cPickle

class ialv1:
        interval = 0
        username = ""
        password = ""
        def __init__(self):
                try:
                        f = file('ial.info')
                        list = cPickle.load(f)
                        self.username, self.password = list
                        f.close()
                except:
                        print "Welcome to I-ON Auto login Script\nMade by Ankur Shrivastava\n"
                        self.username = raw_input("Enter Your Username: ")
                        self.password = raw_input("Enter Your Password: ")
                        list = [self.username,self.password]
                        f = file('ial.info','w')
                        cPickle.dump(list,f)
                        f.close()

        def check(self):
                data = {"loginID":self.username,"loginpassword":self.password,"flag":"0","popcheck":"0","submit":"Sign In"}
                value = urllib.urlencode(data)
                request = urllib2.Request("http://192.168.150.2:8080/clntAuth/clntAuth_main.jsp",value)
                bol =1
                while (bol ==1):
                        try:
                                open = urllib2.urlopen(request)
                                print "Logged In"
                                bol = 2
                        except:
                                print "Server Gone Crazy\ntrying again...."

if __name__ == "__main__":
        i = ialv1()
        while (1):
                i.check()
                time.sleep(60)

You can Download it here
I Love Python!!!!!!!

Ion Auto Login script in Python

Posted on September 16th, 2008

i was just thinking about making the very famous IAL script of DJ in python and here is it and its damn simple

import urllib, urllib2, time
username = "Your username"
password = "Your Password"
interval = 10
data = {"loginID":username,"loginpassword":password,"flag":"0","popcheck":"0","submit":"Sign In"}
value = urllib.urlencode(data)
request = urllib2.Request("http://192.168.150.2:8080/clntAuth/clntAuth_main.jsp",value)
print "Logging In\nMade by Ankur - http://ankurs.com"
while (1):
        open = urllib2.urlopen(request)
        responce = open.read()
        for i in range (1,interval):
                print (interval-i),"min Till Next Login"
                time.sleep(60)
        print "Logging In\nMade by Ankur - http://ankurs.com"

or downlaod
run it by typing python ial.py
it uses urllib, urllib2 and time which are the default module, you have to change the username and password to your username and password, changing the interval changes the time interval in which auto login takes place. enjoy!!
PS - current it does no check if your connection is active or not, will add that soon

Accessing any site blocked by sonic wall!!!

Posted on August 26th, 2008
Removed because of objection form ION

old text avaliable here

iPhone on Vodafone in India

Posted on August 20th, 2008

The price of 31k for iPhone in India has been confirmed i recieved the following mail

Hello Ankur,
Thank you for registering for your Apple iPhone 3GTM with us.
We are delighted to announce that the iPhone 3G will be available in India from August 22, 2008
It will be available in 8GB & 16GB models, priced at Rs 31,000 and Rs 36,100 respectively.
Be the first to get the iPhone
We have received a large number of registrations. As there are limited stocks, make sure that you get yours first, by paying an advance of Rs 10,000 to confirm your booking.
Where can you make this advance payment?
The iPhone 3G will be available at select Vodafone Stores. All you need to do is drop in at any select Vodafone Store between August 20 and 21 and make the advance payment by cash or credit card. Don´t forget to show the iPhone booking SMS, which you would have received from us, when you visit the Vodafone Store to pay the advance. To find a Vodafone Store near you, click here
Get an appointment now. No queues for you.
Once you pay the advance, we will immediately give you an appointment date and time, starting
August 22 when you can come and experience a full demonstration and collect your iPhone, all ready to use with your contacts and settings, by paying the balance amount.
Hurry! Limited stocks.
Remember, the sooner you confirm your booking, the earlier you´ll get your iPhone. We have limited stocks and it will be on first come, first serve basis.
Buy a Vodafone connection now!
As you are not a Vodafone customer, you will need a Vodafone connection for your iPhone 3G.
We recommend that when you come to confirm your booking, please do get yourself a Vodafone connection too. Remember to carry a passport sized picture, photo ID proof and address proof as these are required for activating your Vodafone SIM card.
Happy to help
If you have any queries, log on to www.vodafone.in/iphone or call us on 9886098860 and we´ll be happy to help.
Hurry and be one of the first to make the iPhone 3G your own.
Regards
C P Joshi
AVP - Customer Service

At a Price of 31k and 36k i dont think there will be a large number of users going for i, here Vodafone seems to India what Rogers was to Canada, anyway one more reason for not going the i way!!!!!

Changing your mac address on Linux

Posted on August 15th, 2008

I have seen a lot of people saying that “you can never change your mac its in the hardware, you dont have access to it”, but well you can easily change you mac on Linux with a simple command Ifconfig. Which is mainly used to configure the kernel-resident network interfaces and it can help you change your mac first see your current mac type as root
ifconfig
here see your mac address in the following out put
wlan0 Link encap:Ethernet HWaddr 00:2B:B5:43:A5:12
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)

where wlan0 is the network interface and ” 00:2B:B5:43:A5:12 ” is your mac address, next you need to bring the network interface down by typing
ifconfig wlan0 down
here replace wlan0 with the network interface you are using, normally it is wlan0 for WiFi and eth0 for Ethernet, now its time to change your mac address, simply type
ifconfig wlan0 hw ether 00:2B:B5:43:A5:3D
here replace 00:2B:B5:43:A5:3D with the mac ID you want to use and then bring the network interface up
ifconfig wlan0 up
now again see the output of ” ifconfig ” to check that now you HWaddr has changed from 00:2B:B5:43:A5:12 to 00:2B:B5:43:A5:3D
enjoy!!!!
PS - MAC = Media Access Control

Accessing Internet Without use of mac address anywhere

Posted on July 30th, 2008

I have been noticing one thing from a long time that many internet providers ( like ION in manipal ) use mac addresses to limit other people from accessing their network but they dont actually have a proper knowledge of it, so here is the way to make any computer whose mac address in not there with the service provider to use the internet and you dont have to change any mac addresses or anything, well the steps are right below
1) Find any one using Internet on the particular ISP
2) See his connection details like his IP, Subnet, gateway ( or default route ), primary DNS, Secondery DNS
3) Now in your OS set a custom IP say you saw the persons IP as 10.49.3.23 so set your IP as say 10.49.4.203 and enter other details that you found like subnet as 255.255.0.0, gateway or default route as 10.49.0.1, primary DNS as 61.1.128.65 and secondary DNS as 218.248.47.30
4) now connect to the network and enjoy ( you might have to login and there are multiple logins allowed so you can use any of your friends username and password to login )
5) And you might want to check out this if you are on ION

Now to know how it works, if you want to know how it works then continue reading else there is no need to read further
By taking mac addresses they assign you IPs using DHCP based on the mac that they have so if you assign it yourself you have no need to use DHCP and everything works just fine
Enjoy!!!!

Note:- If you get IP conflict change your IP and try again

Dell XPS 1530

Posted on July 12th, 2008

Fedora 9 on Dell XPS M1530

Finally after waiting for a long time my Dell XPS 1530 arrived yesterday and it really rockss, i was supposed to get it on 3rd July but continuous delay were caused by curfew in Indore and some other factors.

The Config is
Processor : Intel C2D T8100 - 2.1GHz
RAM : 3GB 667MHz Dual Channel
Graphics Card : GeForce 8600GT 256 MB
Screen : 15.4" WXGA+ ( 1440x900 )
WiFI card : Intel 4965 802.11n
OS : Windows Vista Home Preminum ( removed after an hour )

It looks gr8 far better then what i previously owned, HP 6515b which was given by my college MIT, Manipal.
As soon as i received my Dell first think i did was to run Windows Performance Index and the score came out to be 5.0 with 5.0 being the lowest score because of my 3GB RAM!!!
Vista Index of 5.0 for my laptop
I tried some Windows Media Centre and then it was time to say vista good bye and say hello to Fedora 9, the install went without a hitch but when i booted i that my mouse was not working, a quick search on forums and i had the solution add i8042.nomux=1 as a kernel parameter and every thing was working, WiFi, LAN all worked out of the box, some yum install and my new notebook was ready to rock and roll

Dell XPS 1530 Vs HP 6515b
so here they are x144 and x121

PS - i will be heading back to manipal on 16th, waiting for a really rocking sem……….

iPhone3G or Openmoko Freerunner

Posted on June 29th, 2008

We all have been listening ( reading ) a lot about the new iPhone 3G and how it is different, better and well cheaper from the first generation iPhone and a question came to my mind with Airtel and Vodafone planning to launch iPhone what will happen to Openmoko how many people know about it and well its available in India at a price of around RS. 20,000 by IDA system its really a great Phone to own actually Openmoko Freerunner is the second phone which will run Openmoko software and is similar to the first Neo 1973 its specification are

* Processor -- Samsung S3C2442 500MHz
* RAM -- 128MB
* Flash -- 256MB
* Display -- 2.8-inch diagonal 640 x 480 VGA Color TFT LCD
* Graphics -- SMedia 3362-based 3D graphics acceleration
* Accelerometers -- 2 x 3D accelerometers
* Audio -- "high-quality" audio codec
* USB -- 1 x version 1.1, switchable between client and host modes
* Cellular -- 2.5G tri-band GPRS/GSM (900MHz or 850MHz, depending on region)
* WiFi -- 802.11b/g WiFi
* Bluetooth -- version 2.0
* GPS -- AGPS (assisted global positioning system) receiver

Which is really great Freerunner does not have 3G but well in India at present there is no 3G and i dont think it will be there anytime this year as frequency allocation has not taken place add to that only planning is going on which will take a lot of time so remove all the 3G factor from iPhone 3G …….
Another thing Openmoko Freerunner is a complete Open Source Phone you can download the whole source code and change it according to your wish and well about the applications there will be plenty of applications available for it at no cost
So while many of people around me will go for iPhone 3G ( without 3G ) i am going to FREE MY PHONE!!!!!!