Installation Script

The place to discuss linux version of MakeMKV
Post Reply
Message
Author
jdbower
Posts: 27
Joined: Mon Dec 27, 2010 4:51 pm
Location: Massachusetts, USA
Contact:

Installation Script

#1 Post by jdbower » Sat Feb 05, 2011 4:42 pm

In case anyone's interested, I wrote a quick script to simplify the download and installation process of MakeMKV for you. All it does is make sure the dependencies are set, download the files to your /tmp/ directory, and then run the instructions in the official announcement. I've also put it in a PPA so all the dependencies can be taken care of for you. Program listing and PPA instructions are here:
https://www.ebower.com/docs/ubuntu-bluray/#MakeMKV

Note that I'm not distributing the MakeMKV binaries or source, just automating the download and build procedure. Still, if there's any concern from the devs just let me know and I'll take it down or modify it. While the script doesn't need to be run as root it does use sudo for necessary commands. Non-Debian distros probably won't like the use of the "apt-get" command, but I think otherwise it should work if you handle the dependencies yourself.

To upgrade to 1.6.4 just run makemkv-install 1.6.4

It's pretty dumb, it only checks for non-zero return codes and will exit out if it finds one. Let me know if you run into any issues.

hursto75
Posts: 10
Joined: Mon Feb 28, 2011 2:45 am

Re: Installation Script

#2 Post by hursto75 » Mon Feb 28, 2011 3:08 am

I set up a little how to for Fedora 14
http://crackednoodle.com/2011/01/blu-ra ... ux-how-to/

Thanks,
Brad

jdbower
Posts: 27
Joined: Mon Dec 27, 2010 4:51 pm
Location: Massachusetts, USA
Contact:

Re: Installation Script

#3 Post by jdbower » Mon Sep 26, 2011 9:31 pm

Not sure if anyone actually uses my script, but I had to reinstall MakeMKV on another PC so I updated the script to allow you to run makemkv-install latest and it will try to grab the latest version. You may need to do a sudo apt-get upgrade && sudo apt-get dist-upgrade since I added curl as a dependency.

I'm just impressed I haven't needed to change it up until now. :)

tabish121
Posts: 9
Joined: Sat May 15, 2010 11:43 pm

Re: Installation Script

#4 Post by tabish121 » Tue Sep 27, 2011 11:41 pm

jdbower wrote:Not sure if anyone actually uses my script, but I had to reinstall MakeMKV on another PC so I updated the script to allow you to run makemkv-install latest and it will try to grab the latest version. You may need to do a sudo apt-get upgrade && sudo apt-get dist-upgrade since I added curl as a dependency.

I'm just impressed I haven't needed to change it up until now. :)
Nice work, thanks for making this available.

shajil
Posts: 4
Joined: Wed Nov 23, 2011 7:15 am

Re: Installation Script

#5 Post by shajil » Fri Nov 25, 2011 5:29 am

I have to say that it was really a great initiative from your part to update the script which would now enable us to run the most recent makemkv-install. Thanks to this update, the latest version shall now automatically be downloaded. Anyway, thanks for informing to do the sudo apt upgrade.
“Read Today, Lead Tomorrow”

ogredeschnique
Posts: 3
Joined: Thu Apr 14, 2011 7:57 pm

Re: Installation Script

#6 Post by ogredeschnique » Sun Apr 08, 2012 2:50 am

Searched for a thread like this before posting in a new thread.

Here is an alternative script that performs all the same basic functions of the script in the OP but is much simpler.
Should continue to function indefinitely so long as the link to the release thread does not change. [or the file name syntax :-P]

I am using Gentoo, but this script should be ~somewhat~ distribution independent. Know YOUR distro. ;-)

Text of attached file below.

Code: Select all

#!/bin/bash

# Install required packages on Ubuntu
#sudo apt-get install build-essential libc6-dev libssl-dev libgl1-mesa-dev libqt4-dev

# Specify version current version manually
#v=1.7.3

echo Fetching version number. 
## Specify version number autoamtically with curl grep and cut
v=`curl -s "http://www.makemkv.com/forum2/viewtopic.php?f=3&t=224" | grep "title>www.makemkv.com" | cut -d" " -f7`

echo Operating on MakeMKV version $v. ; 
sleep 2

# Create path to build environment
mkdir -p /tmp/MakeMKV ; cd /tmp/MakeMKV

# Fetch both tarballs
wget http://www.makemkv.com/download/makemkv-{bin,oss}-${v}.tar.gz 

# Extract, Build and Install 
for dir in oss bin ;
	do cd /tmp/MakeMKV ; 
		tar xfz makemkv-${dir}-${v}.tar.gz ;
		cd /tmp/MakeMKV/makemkv-${dir}-${v} ;
		make -f makefile.linux && sudo make -f makefile.linux install ;
	done
Attachments
MakeMKV-installer.txt
Simple script to Download, Build, and Install MakeMKV.
(844 Bytes) Downloaded 788 times
Last edited by ogredeschnique on Sun Sep 09, 2012 8:17 pm, edited 1 time in total.

Beeblebear
Posts: 1
Joined: Sun Apr 15, 2012 4:53 am

Re: Installation Script

#7 Post by Beeblebear » Sun Apr 15, 2012 5:30 am

Very simple and elegant, ogredeschnique.
Thank you!

Thank you, also, jdbower. I will definitely link to you both when I am finally able to share my experiences in setting up my HTPC system.

jdbower
Posts: 27
Joined: Mon Dec 27, 2010 4:51 pm
Location: Massachusetts, USA
Contact:

Re: Installation Script

#8 Post by jdbower » Mon Jun 25, 2012 1:35 am

FYI, I've updated my script to support MakeMKV 1.7.5 (a new file naming convention and an extra dependency thrown in there). PPA users should be seeing the new version in a few hours (depending on when Launchpad says my script is worthy...), let me know if there are any issues. I'll try to update the documentation tomorrow, time permitting.

Faber
Posts: 24
Joined: Thu Oct 04, 2018 3:57 pm

Re: Installation Script

#9 Post by Faber » Thu Oct 20, 2022 5:10 pm

ogredeschnique wrote:
Sun Apr 08, 2012 2:50 am
Searched for a thread like this before posting in a new thread.

Here is an alternative script that performs all the same basic functions of the script in the OP but is much simpler.
Should continue to function indefinitely so long as the link to the release thread does not change. [or the file name syntax :-P]

I am using Gentoo, but this script should be ~somewhat~ distribution independent. Know YOUR distro. ;-)

Text of attached file below.

Code: Select all

#!/bin/bash

# Install required packages on Ubuntu
#sudo apt-get install build-essential libc6-dev libssl-dev libgl1-mesa-dev libqt4-dev

# Specify version current version manually
#v=1.7.3

echo Fetching version number. 
## Specify version number autoamtically with curl grep and cut
v=`curl -s "http://www.makemkv.com/forum2/viewtopic.php?f=3&t=224" | grep "title>www.makemkv.com" | cut -d" " -f7`

echo Operating on MakeMKV version $v. ; 
sleep 2

# Create path to build environment
mkdir -p /tmp/MakeMKV ; cd /tmp/MakeMKV

# Fetch both tarballs
wget http://www.makemkv.com/download/makemkv-{bin,oss}-${v}.tar.gz 

# Extract, Build and Install 
for dir in oss bin ;
	do cd /tmp/MakeMKV ; 
		tar xfz makemkv-${dir}-${v}.tar.gz ;
		cd /tmp/MakeMKV/makemkv-${dir}-${v} ;
		make -f makefile.linux && sudo make -f makefile.linux install ;
	done
Does this still work? Also, does it figure out the current version on its own or does it need help from the user?

Faber
Posts: 24
Joined: Thu Oct 04, 2018 3:57 pm

Re: Installation Script

#10 Post by Faber » Thu Oct 20, 2022 5:20 pm

jdbower wrote:
Mon Sep 26, 2011 9:31 pm
Not sure if anyone actually uses my script, but I had to reinstall MakeMKV on another PC so I updated the script to allow you to run makemkv-install latest and it will try to grab the latest version. You may need to do a sudo apt-get upgrade && sudo apt-get dist-upgrade since I added curl as a dependency.

I'm just impressed I haven't needed to change it up until now. :)
Would you please post the latest version of your script?

Post Reply