LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 10-11-2009, 01:08 AM   #1
NightSky
Member
 
Registered: Sep 2001
Location: Texas :(
Distribution: Slackware64-14.1
Posts: 874

Rep: Reputation: 51
First time using wget


I am going thru docs but somethings aren't alwasys clear and I don't want to spend a week learing to use this app to finish setting up my video card. Thanks

Found short tutorial said 1st create .wgetrc in /home/user/dir
Q is: Do i copy .wgetrc from /etc/wgetrc and put in my home dir?

Also said put my username passwrd.... I don't normally need that to go online. In any case that info wld be my ISP User Info right?
 
Old 10-11-2009, 01:40 AM   #2
lutusp
Member
 
Registered: Sep 2009
Distribution: Fedora
Posts: 835

Rep: Reputation: 102Reputation: 102
Quote:
Originally Posted by NightSky View Post
I am going thru docs but somethings aren't alwasys clear and I don't want to spend a week learing to use this app to finish setting up my video card. Thanks

Found short tutorial said 1st create .wgetrc in /home/user/dir
Q is: Do i copy .wgetrc from /etc/wgetrc and put in my home dir?

Also said put my username passwrd.... I don't normally need that to go online. In any case that info wld be my ISP User Info right?
Whatever instructions you are reading, they're all wrong. You should never have to reveal your personal password or other info to use wget.

Here is a typical wget invocation to download a file:

Code:
$ wget -c (url)
The (url) should be a full path to a desired file that you see while browsing. I normally find a file I want, right-click the link and select ":copy link location" in Firefox, then paste that link into a shell session next to the wget name. Like this:

Code:
$ wget -c [paste URL here]
It's really, really simple. You don't need a configuration file. You don't need to enter a password or any of that stuff you've been reading.

One of many advantages of wget is that, if a download is interrupted for any reason, you can just restart it with the same URL and it will resume the previous download, rather than starting over.
 
Old 10-11-2009, 09:48 AM   #3
Shadow_7
Senior Member
 
Registered: Feb 2003
Distribution: debian
Posts: 4,137
Blog Entries: 1

Rep: Reputation: 873Reputation: 873Reputation: 873Reputation: 873Reputation: 873Reputation: 873Reputation: 873
What are you trying to accomplish?

wget -c http://URL

wget -c -i file_of_URLs.txt

Works for me 95% of the time. If I need to leech the entire content of a site, that's another story. And not a very common occurance on my dialup connection. wget is very usefull, since I can continue after a dial out, or just stop the download while I use the limited bandwidth for other tasks. And some servers just like to reset every 15 seconds, leaving you with only a partial download if you don't use wget.
 
Old 10-11-2009, 09:52 AM   #4
AwesomeMachine
LQ Guru
 
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,513

Rep: Reputation: 1009Reputation: 1009Reputation: 1009Reputation: 1009Reputation: 1009Reputation: 1009Reputation: 1009Reputation: 1009
wget can use a configuration file, but it doesn't need one. I use wget like this:

wget<space>-r<space>--user-agent=<space>-k<space>-erobots=off l 1 http://<username>:<password>@domain.com

where -r is recursive, user-agent is browser type (I leave it blank), -k is convert links to local, -robots=off turns off observation of robots.txt and l is how many levels deep to recurse on the server. username and password are NOT your linux username and password. They are only used if you need to pass a username and password to the web site you are downloading from.

For instance, if you want to download tons of pictures from a pay site, you need to give your username and password for the pay site, or it won't allow wget access. If you put a url in a browser formatted with the username and password as above it will also work. The problem arises that the password is passed plain text.

wget also has options to use to supply username and password. I would just read the man page for wget, or use curl for fetching single files. wget builds an entire directory tree from the server. It's mainly for downloading multiple files. Curl works like:

curl <url> -O

will place the file in the working directory (where you launch curl from). Curl and wget are very similar.
 
Old 10-11-2009, 01:48 PM   #5
NightSky
Member
 
Registered: Sep 2001
Location: Texas :(
Distribution: Slackware64-14.1
Posts: 874

Original Poster
Rep: Reputation: 51
I just want to download geforce6600 GT drivers and icewm from slackbuild... before starting up any gui, so i can get a clean video driver install to us in xorg.conf

I wld use lynks but it took me forever just to figure out how t toggle the options menu. lol

Here are usage notes I was following:http://qcd.nersc.gov/utilities/wget_notes.html

Also here is the wget manual: http://qcd.nersc.gov/utilities/wget.html

thanks
 
Old 10-11-2009, 06:49 PM   #6
NightSky
Member
 
Registered: Sep 2001
Location: Texas :(
Distribution: Slackware64-14.1
Posts: 874

Original Poster
Rep: Reputation: 51
I got:
302 moved temporarily.
301 moved permanently
nvidia.com/content/404/nvidia.asp ??? Maybe because u have click download and then read and click I agree button to license?
Finally, curl worked but i had to su
and i had to get the ftp file name to the driver, then rmv ftp part and add www.
It took less than a minute. wld u beleive?
Thanks all

Last edited by NightSky; 10-11-2009 at 07:47 PM.
 
Old 10-11-2009, 07:17 PM   #7
lutusp
Member
 
Registered: Sep 2009
Distribution: Fedora
Posts: 835

Rep: Reputation: 102Reputation: 102
Quote:
Originally Posted by NightSky View Post
I just want to download geforce6600 GT drivers and icewm from slackbuild... before starting up any gui, so i can get a clean video driver install to us in xorg.conf

I wld use lynks but it took me forever just to figure out how t toggle the options menu. lol

Here are usage notes I was following:http://qcd.nersc.gov/utilities/wget_notes.html

Also here is the wget manual: http://qcd.nersc.gov/utilities/wget.html

thanks
You want a driver that exists specifically for your Linux distribution? Why don't you use your package manager? It's likely to be one of these:

Code:
# yum install (package name)
-- or --

Code:
# apt-get install (package name)
Using your package manager is a much better idea than trying to download and install a driver "by hand". One reason is the package manager automatically sorts out all the dependency issues.
 
Old 10-12-2009, 07:04 AM   #8
NightSky
Member
 
Registered: Sep 2001
Location: Texas :(
Distribution: Slackware64-14.1
Posts: 874

Original Poster
Rep: Reputation: 51
thanks, I am using slackware.

I'm just trying to download NVIDIA-Linux-x86-185.18.36-pkg1.run without using a gui...
I thought I had succeeded but when i did the sh drivernave I got a text file saying that basically describing a shell of the pkg. I am so fed up this is wasting too much time.

I don't know how u guys get a download from the nvidia.com site all i get is a text copy of the link. Or other junk. At one point it looked like i was downloading the entire site. Had to ctrl cancel out.
Where did all that stuff go? hope i am not filling up hdd with junk.
 
Old 10-12-2009, 09:21 AM   #9
Shadow_7
Senior Member
 
Registered: Feb 2003
Distribution: debian
Posts: 4,137
Blog Entries: 1

Rep: Reputation: 873Reputation: 873Reputation: 873Reputation: 873Reputation: 873Reputation: 873Reputation: 873
You should be able to use the vesa driver and use a gui. Not that you want to, but it should be an option. It might help keep life simple. Noting how wireless access at the rest stop requires a gui web browser to load the intro page before it forwards you on to the internet. At which point you can exit X and carry on at the cli.
 
Old 10-12-2009, 11:09 AM   #10
teckk
Senior Member
 
Registered: Oct 2004
Distribution: FreeBSD Arch
Posts: 3,563

Rep: Reputation: 1121Reputation: 1121Reputation: 1121Reputation: 1121Reputation: 1121Reputation: 1121Reputation: 1121Reputation: 1121Reputation: 1121
wget http://us.download.nvidia.com/XFree8...18.36-pkg2.run


http://www.nvidia.com/object/linux_d...185.18.36.html
http://www.google.com/search?q=NVIDI...ient=firefox-a

Last edited by teckk; 10-12-2009 at 11:15 AM.
 
Old 10-12-2009, 05:30 PM   #11
NightSky
Member
 
Registered: Sep 2001
Location: Texas :(
Distribution: Slackware64-14.1
Posts: 874

Original Poster
Rep: Reputation: 51
Thank you all for your effort, I feel really stupid. Just don't understand how downloading a stupid file cld be so hard. Something must be wrong it my setup. I am going to backup the wgetrc in /etc and copy the file to /home/user/... turnoff the passive ftp option. I may just windup making a cd copy from a different desktop.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
wget not working! but "man wget is" ??? wrapster Solaris / OpenSolaris 5 07-30-2008 03:00 AM
System time vs Hardware time and Daylight Savings Time Toadman Linux - General 6 03-17-2007 08:12 AM
System time vs Hardware time and Daylight Savings Time Toadman Linux - Networking 6 03-16-2007 07:14 PM
how to make wget user sytem time muxman Linux - Software 5 10-24-2006 01:15 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:26 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration