Month: September 2010

Download a file from a redirecting URL using terminal

Guess this is the first technical stuff that I’m gonna post.

May be this news might be a piece of junk to few tech geeks, but it was new when I came to know yesterday.

TASK: I have been given with a task of installing a bulky software of about 1.3GB in a remote cloud server . The only way I can access that server is via terminal. The setup resource is available in online at a place which has its link redirected to another page but pointing to an FTP file.

Instantly the following ways popped into my mind

  • One can download that bulky setup into my own PC and move it to remote cloud server using ‘scp’ command.
  • Why don’t we try using ‘wget’ command to retrieve files from the Web?

Let me try the second ones first. Obviously, implementing the former one is a bad idea, as it takes ages to download to my PC and do a copy to a remote server. Its something like thalaiya suthi mooka thoduradhu 😛

I tried using wget command followed by the remote file location URL

for eg.,

wget http://www.somesite.com/download/9281380d9494960bff64a64/

The download process has got completed in a fraction of a second, which is not the expected result. Of course this works perfect for ftp sites as this command has come handy many times. I found that it has simply downloaded the HTML file of the server that contains the file, but not the actual file itself.

I was literally longing for a Virtual GUI remote access to do that so, which is absolutely not possible due to access restriction and resource availability!

After a looong find and frustration, this popped into my mind.

Why should I want an entire Virtual GUI remote access for a simple access. All you need is a browser in a terminal, which satisties your need.

Is it possible to get the access of a browser via command?

Ans : Probably, No.

Oh, hey why don’t we search for a command line browser which browses pages via Terminal? If a command prompt can do anything, this should be included in that everything.

Let me search for it.

Wow there is a command line browser available in internet !

Let me try in right away.

Command to install based on the distro you are using

sudo apt-get install lynx

or

yum install lynx

Thus , I started reading its manual pages and started to browse few sites.

Browsing in Lynx consists of highlighting the chosen link using cursor keys, or having all links on a page numbered and entering the chosen link’s number. Despite its text-only nature and age, it can still be used to effectively browse much of the modern web, including performing interactive tasks such as editing Wikipedia.

Thus it has solved my long time task in minutes and it did a decent redirecting and thus downloaded that huge file in minutes directly onto the remote server and proceeded with installing it.

If you found any other ways to download a file (with URL redirection) using terminal, or if I am wrong in any ways, do leave a comment here. Awaiting for suggestions !

Instructions for Final year B.E. Students!

I’m writing this post for all  Final year students,

I hope that the following instructions would be useful for them to some extent

Serious part of your life starts from here . .. Be ready to strive hard to achieve your destination and thereby Success is all yours  . .
I feel that the following tips will be really helpful. It enriches you to be aware and be prepared to Survival of the fittest in the battle of JOB , indeed 🙂
I want you to improve your knowledge on various domains ….
The foll are some of my requests to make you aware of
  1. First of all, Set a goal and confine your area of interest  .. i.e., whether onto s/w side or on core side and start getting organised accordingly.
  2. Preparing a proper Resume is the Ultimate key to lure the hirer.. Hope you’d have got my mail consisting of a bunch of sample resumes! Don’t make your resume to exceed more than 3 pages, if so, then it is said as Curriculum Vitae, not a resume 🙂
  3. Explore what is into YOU and start to write something about you for hardly one page .. . I can bet you that you can’t even fill half the page 😛 …  No worries, Keep updating it whenever something strikes your mind about you and your uniqueness 🙂
    Most interestingly, it’s gonna be the root answer fot the most Typical HR question “Tell about Yourself”, which is undoubtedly a sure question, not only during interview process, but every time wherever you go !
  4. I request you ppl to start preparing for Aptitude and C* from now on . You will never find time to do a eleventh hour preparation before the day of Interview, as you will be intimated at the last moment about the Campus Interview..  we don’t want you to do the same mistake as we did!
  5. Register yourself in various job portals like (after preparing your Resume) like naukri.comtimesjobs.comshine.commonster.com, etc.
  6. Keep a track on the most active forum chetanasforum.com regarding jobs to have daily updates on walk ins and off campuses . . .wait till opportunity comes to your batch ..
  7. Post your updated resume onto all company websites which has a tab named “CAREERS” in it for sure. [Not now, start posting at the end of your 7th semester]
  8. Be Active by participate in Symposium events like Paper Presentation  at least once in your College days, No matter however you mess it up ! , The Ultimate goal of doing it is that you may get rid of stage fear and would be a nice experience to manage in the crowd 🙂
  9. Before everything, Make yourself Confident enough to be better in Communication Skills . . If not, start striving hard for making it out ! In fact, that’s the best way of luring (attracting) HR though you are weak enough in your technical part. . You may also join in http://labs.google.co.in/smschannels/subscribe/klncit_ece to get daily updates on a word everyday !
    Ignore this if you feel that its absurd.
  10. I request you to register in the mailing lists of your College Alumni Groups, so that you could keep a track on Alumini referrals which may come handy in near future.
  11. Apart from this, I can say that this is the best time for doing Certifications based on your interest… [not C or C++, but something different, like RHCE, SCSA, EMC Storage, CCNA, etc] . . because this is the only stuff which is gonna make you stand out from the crowd by differentiating you from others.
    Note: Please do consult with your relatives or friends of Seniors twice or thrice before taking a step ahead to join into any of those courses !
  12. Get a good score this semester, as this is the base for Cut-off for attending campus interviews.
  13. Be active in doing something, i.e., Updating your knowledge either passively by surfing internet or actively by participating in debates or meetings or by conducting events !

* – For students who wish to get into software field!

At last, Enjoy your final year to the core and meanwhile, think of your career too 🙂

Guess I have typed all that comes to my mind and I feel that this would be useful to you atleast to some extent . .
My best wishes for your success 🙂
May you shine well in this Tech savvy world !
DISCLAIMER: The above points are my personal view and it is up to the readers who wish to follow
FYI : I have posted this article here as well http://bit.ly/abwlKB