LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-19-2012, 05:51 PM   #1
Jobin1
LQ Newbie
 
Registered: Jun 2012
Posts: 5

Rep: Reputation: Disabled
Using wget command to remotely download MATLAB to Linux machine


I am a big newbie here (this is my first day with Linux) and I am trying to remotely download MATLAB to a server for work. I have already paid for matlab, and recieved an email with a link prompting me to "download now". I tried using wget and the url of the download link, but I believe that I am having trouble because the download link requires a password and username from my purchase. I cannot just click the link and go through the download process because I need to download MATLAB to a separate server, not my computer. Where should I go from here? Is there a way in Terminal to step through the username / password prompts for this download?
 
Old 06-19-2012, 06:01 PM   #2
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,359

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
I'd use a browser to download visually for entering the user/passwd credentials, then copy it to wherever.
You'll need some Linux guides
http://rute.2038bug.com/index.html.gz

It's also going to help us if you tell us your Linux distribution+version for the target server and also your desktop if relevant.
This cmd line cmd should help
Code:
cat /etc/*release*
 
Old 06-19-2012, 06:34 PM   #3
Jobin1
LQ Newbie
 
Registered: Jun 2012
Posts: 5

Original Poster
Rep: Reputation: Disabled
I think the distribution and version is Debian 5.0.6 (if I'm looking at the right thing)
 
Old 06-19-2012, 06:40 PM   #4
schneidz
LQ Guru
 
Registered: May 2005
Location: boston, usa
Distribution: fedora-35
Posts: 5,313

Rep: Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918
not sure how matworks website is setup but wget has a --user and --password options.

also this example is on the wget man page:
Code:
# Log in to the server.  This can be done only once.
wget --save-cookies cookies.txt \
     --post-data 'user=foo&password=bar' \
     http://server.com/auth.php

# Now grab the page or pages we care about.
wget --load-cookies cookies.txt \
     -p http://server.com/interesting/article.php

Last edited by schneidz; 06-19-2012 at 06:48 PM.
 
Old 06-19-2012, 07:14 PM   #5
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,573

Rep: Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142
I would just download it using the browser and then scp it to the machine you actually want to use it on.
 
1 members found this post helpful.
Old 06-20-2012, 01:27 PM   #6
Jobin1
LQ Newbie
 
Registered: Jun 2012
Posts: 5

Original Poster
Rep: Reputation: Disabled
Great scp worked perfectly. thanks!
 
Old 06-20-2012, 01:31 PM   #7
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
Just because no one else mentioned it: Debian 5 is unsupported since February and will not get any security fixes. It is recommended to upgrade to Debian 6.
 
1 members found this post helpful.
  


Reply



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
Using wget or curl command to download from dynamic urls pratap.iisc Linux - Desktop 2 07-26-2009 10:55 PM
download only zip files using wget command Fond_of_Opensource Linux - Newbie 1 08-09-2006 03:47 AM
How to download web pages from a website using wget command Fond_of_Opensource Linux - Newbie 5 07-05-2006 09:50 AM
how to shutdown,restart and log off windows machine remotely through a linux machine deepak rawat Fedora 1 05-23-2006 01:25 AM
is there any linux command to download files from any ftp site remotely midnitc Linux - General 3 10-31-2003 08:05 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:03 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