Quiz

 
 
Paul
Installing Question Types with wget vs. git
 

I am excited about installing some of the new question types that Tim recently posted.  However, the instructions and links are designed for git installation.

Is there a way to install on Ubuntu server that doesn't have git.  I want to use wget to download and then unzip in the proper location but the links all seem to be redirects to the actual zip files. 

Any tricks for installing without git and without GUI access on the server?

I install all my other contrib plugins with wget and then the address of the plugin.

I appreciate your help.  This is something I should know.  I've been managing moodle on this server for a couple years and can do many things but I have never installed a new question type.

 
Average of ratings: -
Picture of Andrew Nicols
Re: Installing Question Types with wget vs. git
Group DevelopersGroup Moodle HQGroup Particularly helpful MoodlersGroup Testers
Hi Paul,

It should be possible to use the github download URL with wget, but equally the git cli is only an apt-get install git away.

To use wget with github, you can just specify whether you want a zip or tar followed by the branch or tag, after the name of the repository. For example, to get a zipball of the master branch of the new OU opaque questiontype:
https://github.com/moodleou/moodle-qtype_opaque/zipball/master

And to get a tarball of the v2.0 tag:
https://github.com/moodleou/moodle-qtype_opaque/tarball/v2.0

Personally, we run *everything* in git in some fashion or another. For most of our production installs though, we have a moodle git repository with branches for each customer and build debian packages from that repository which we deploy to our packaging server and install that way.

Andrew
 
Average of ratings: -
Paul
Re: Installing Question Types with wget vs. git
 

Is there a danger I will mess up my current installs and my current modules and plugins if I apt-get and install git?  That has been my concern is that I have have a server that works quite well and I am leary about changing over to the git system.

That being said, updates are a bit of a pain, as I'm running it.  I have to keep all the steps of my script written out and follow them meticulously.

When I follow the steps in your post I seem to get a big file with gibberish in it, not a zip or a tar file. 

I tried

sudo wget https://github.com/moodleou/moodle-qtype_opaque/zipball/master

I get a file called "master" but it seems to be just gibberish.  Is there something I should put after the "master"?

 
Average of ratings: -
Paul
Re: Installing Question Types with wget vs. git
 

I think I see now that

sudo wget https://github.com/moodleou/moodle-qtype_opaque/zipball/master

does download a file called master.  It doesn't have a .zip as an extension but it does unzip with

sudo unzip master

Then I have to change the name of the new file created to the proper name  ddmarker opaque, etc, per the readme instructions.  The fact that I couldn't see the .zip extension threw me off.

 
Average of ratings: -
Picture of Mike Rehner
Re: Installing Question Types with wget vs. git
 
Average of ratings: -
Brian
Re: Installing Question Types with wget vs. git
Group Particularly helpful Moodlers

If you wget http://download.moodle.org/download.php/stable24/moodle-latest-24.tgz then unfortunately you download the wrong info - you need to wget the actual file, not the HTML that directs the web visitor to the download file.

If you want to wget then it's better to do:

sudo wget http://sourceforge.net/projects/moodle/files/Moodle/stable24/moodle-latest-24.tgz

 

 
Average of ratings: -