Kodi Community Forum

Full Version: [RELEASE] Luemmel's DVD-Ripper (Script) for Linux, Mac, and Windows
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44
AuXBoX Wrote:I use it on live

I made up a bash script that adds sources and installs dependencies for me.


If you post the script here, I could integrate the script into the project.
Regards Hans
here it is

http://www.megaupload.com/?d=OM75LZFU

Its made for dvd-red-linux-0.6B.tar at the moment cause thats what i use but that can easily be changed.
Put dvd-red-linux-0.6B.tar and this script in the same folder then make sure you
sudo chmod 755 luemmelPreperation
sudo ./luemmelPreperation dvd-red-linux-0.6B.tar XBMC_USER_NAME
Actually I installed the Live-CD to harddisk, it was just that I never succeeded in setting up a ubuntu that boots as fast as the live distro on HD.

Can I install all the dependencies with this script? Thank you Hans for the ripper and thanks Auxbox for the additional script!
grouper Wrote:Actually I installed the Live-CD to harddisk, it was just that I never succeeded in setting up a ubuntu that boots as fast as the live distro on HD.

Can I install all the dependencies with this script? Thank you Hans for the ripper and thanks Auxbox for the additional script!

you can use this script to set up the dependencies.
let me know how you go. if you come across any problems let me know and i'll get it changed. I don't want to tred on linuxluemmel toes though, as long as he doesnt mind

i'm paying a programmer to help me with setting up xbmclive with this script amongst other things.

I was unable to get this script going until recently.


Special thanks to linuxluemmel for all the work you've done to get this excellent script happening.
This is exactly what a media center should have, something that can backup dvds or blu-ray (hopefully soon) u have, how else r u supposed to make full use of it without illegaly downloading.
AuXBoX Wrote:you can use this script to set up the dependencies.
let me know how you go. if you come across any problems let me know and i'll get it changed. I don't want to tred on linuxluemmel toes though, as long as he doesnt mind

i'm paying a programmer to help me with setting up xbmclive with this script amongst other things.

I was unable to get this script going until recently.


Special thanks to linuxluemmel for all the work you've done to get this excellent script happening.
This is exactly what a media center should have, something that can backup dvds or blu-ray (hopefully soon) u have, how else r u supposed to make full use of it without illegaly downloading.

With the permission from AuXBoX I would like to do the following ....

I make a Folder called setup inside the script.

Copy the file from AuxBox into the folder and rename it to livecd.sh

Copy parts from the script and create 2 seperate files ....

- install-dep.sh
- ssh-envir.sh

With install-dep.sh all needed software is automatic installled inlcuding all
directorys

with ssh-envir.sh all the configurations for ssh are made ....

Regards Hans


BTW ::: I do work on the Blue-Ray ripping part allready since 2 Weeks
Works!
Thank you so much! I seem to have mistyped the dvdtools somehow when aptgetting them (and maybe several other things as well...)
Cheers, Grouper
linuxluemmel Wrote:With the permission from AuXBoX I would like to do the following ....

I make a Folder called setup inside the script.

Copy the file from AuxBox into the folder and rename it to livecd.sh

Copy parts from the script and create 2 seperate files ....

- install-dep.sh
- ssh-envir.sh

With install-dep.sh all needed software is automatic installled inlcuding all
directorys

with ssh-envir.sh all the configurations for ssh are made ....

Regards Hans


BTW ::: I do work on the Blue-Ray ripping part allready since 2 Weeks

yeh go for it Hans
grouper Wrote:Works!
Thank you so much! I seem to have mistyped the dvdtools somehow when aptgetting them (and maybe several other things as well...)
Cheers, Grouper

Grouper you don't have to type the whole script in, once you execute the script it will do everything
Hello ... If someone could test this shell script and give feedback ... would be nice ...

Code:
#!/bin/bash
###########################################################
# scriptname : livecd.sh                                  #
###########################################################
#                                                         #
# RELEASE 0.6B luemmels-dvd-ripper                        #
#                                                         #
# This script is part of luemmels-dvd-ripper script for   #
# xbmc and is licenced under the gpl-licence              #
#                                                         #
# http://code.google.com/p/luemmels-dvd-ripper            #
#                                                         #
###########################################################
#                                                         #
# author     : hans weber and AuXBoX from xbmc-forum      #
#                                                         #
# parameters : none                                       #
#                                                         #                                                        
# description :                                           #
# - prepares a xbmc live-cd to run the red-pill           #
# - installs all needed software                          #
# - configures the ssh-system                             #
# - create all directorys                                 #
###########################################################

# Define the counting commands we expect inside the script

EXPECTED_ARGS=0

# Error-codes

E_BADARGS=1
E_TOOLNOTF=2
E_NOROOT=3
E_SSHKEY=4

if [ $# -ne $EXPECTED_ARGS ] ; then
  echo "Usage: livecd.sh"
  echo "                                      "  
  echo "                                      "
  echo "livecd.sh was called with arguments"  
  echo "livecd.sh needs no parameter but must be running as root"                        
  exit $E_BADARGS
fi


# Define the commands we will be using inside the script ...

REQUIRED_TOOLS=`cat << EOF
echo
apt-get
EOF`

# Check if all commands are found on your system ...

for REQUIRED_TOOL in ${REQUIRED_TOOLS}
do
   which ${REQUIRED_TOOL} >/dev/null 2>&1    
   if [ $? -eq 1 ]; then
        echo "ERROR! \"${REQUIRED_TOOL}\" is missing. ${0} requires it to operate."  
        echo "       Please install \"${REQUIRED_TOOL}\"."  
        
   fi        
done


# Who is running this script ?  

if [ "$UID" -ne 0 ] ; then
   echo "you must be root to run this script !"
   echo "sudo ./livecd.sh"
   exit $E_NOROOT
fi

# Check to see if dvdripper-log directory exists ...
    
if [ ! -e ~/dvdripper ] ; then
   mkdir ~/dvdripper
fi


# Check to see if the ripp-directory exists

if [ ! -e /dvdrip ] ; then
   mkdir /dvdrip
   chmod -R 777 /dvdrip
   ln -s /dvdrip /home/xbmc/dvdripper  
fi

# Update-Source list

if [ ! -e /etc/apt/sources.list.d/medibuntu.list ] ; then
   sudo wget http://www.medibuntu.org/sources.list.d/$(lsb_release -cs).list \
   --output-document=/etc/apt/sources.list.d/medibuntu.list && sudo apt-get -q update && \
   sudo apt-get --yes -q --allow-unauthenticated install medibuntu-keyring && sudo apt-get -q update
fi


apt-get install mencoder

# dd
    
apt-get install netcat
apt-get install original-awk
apt-get install dvdauthor
apt-get install mkisofs

# growisofs

apt-get install dvd+rw-tools
apt-get install lsdvd

# volname

apt-get install submux-dvd
apt-get install subtitleripper
apt-get install transcode
apt-get install mjpegtools
apt-get install libdvdcss2
apt-get install openssh-server
apt-get install openssh-client

# Transcode to DIVX and H264

apt-get install liba52-0.7.4
apt-get install libfaac0
apt-get install libmp3lame0
apt-get install libmp4v2-0
apt-get install libogg0
apt-get install libsamplerate0
apt-get install libx264-65
apt-get install libxvidcore4


echo "Important-Note : "
echo "When asked for password leave it empty"
ssh-keygen -t rsa

RETVAL=$?
if [ $RETVAL -eq 0 ] ; then
   echo "Important-Note : "
   echo "When asked for password enter password for xbmc"
   ssh-copy-id -i ~/.ssh/id_rsa.pub xbmc@localhost
   exit 0
fi

# Ok we have error with the creation of the key
echo "creation of the ssh-key failed ..."
exit $E_SSHKEY
i'm building a couple of xbmc media centers today i'll try for you
Hans can i just grab that text in from windows and use notepad++ to save it cause i keep getting this which is normally because its been edited in windows

root@XBMCLive:/home/xbmc# ./livecd.sh
bash: ./livecd.sh: /bin/bash^M: bad interpreter: No such file or directory

or

xbmc@XBMCLive:~$ sudo ./livecd.sh
sudo: unable to execute ./livecd.sh: No such file or directory

are you able to give me a link to download it
AuXBoX Wrote:Hans can i just grab that text in from windows and use notepad++ to save it cause i keep getting this which is normally because its been edited in windows

root@XBMCLive:/home/xbmc# ./livecd.sh
bash: ./livecd.sh: /bin/bash^M: bad interpreter: No such file or directory

or

xbmc@XBMCLive:~$ sudo ./livecd.sh
sudo: unable to execute ./livecd.sh: No such file or directory

are you able to give me a link to download it

I made something ..

open a terminal and type the command

wget http://luemmels-dvd-ripper.googlecode.co.../livecd.sh
chmod +x 777 livecd.sh

It should work

run it with sudo ./livecd.sh

Hans
linuxluemmel Wrote:I made something ..

open a terminal and type the command

wget http://luemmels-dvd-ripper.googlecode.co.../livecd.sh
chmod +x 777 livecd.sh

It should work

run it with sudo ./livecd.sh

Hans

i get this

xbmc@XBMCLive:~$ wget http://luemmels-dvd-ripper.googlecode.co.../livecd.sh
--2010-01-29 23:04:54-- http://luemmels-dvd-ripper.googlecode.com/files/livecd. sh
Resolving luemmels-dvd-ripper.googlecode.com... 72.14.203.82
Connecting to luemmels-dvd-ripper.googlecode.com|72.14.203.82|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 4385 (4.3K) [application/x-shellscript]
Saving to: `livecd.sh'

100%[======================================>] 4,385 22.5K/s in 0.2s

2010-01-29 23:04:55 (22.5 KB/s) - `livecd.sh' saved [4385/4385]

xbmc@XBMCLive:~$ chmod +x 777 livecd.sh
chmod: cannot access `777': No such file or directory

or when i sudo chmod +x 777 i get this

xbmc@XBMCLive:~$ sudo chmod +x 777 livecd.sh
chmod: cannot access `777': No such file or directory

i can just sudo chmod 777 livecd.sh
or
sudo chmod +x livecd.sh
and they are allowed

but still same problems

or as root

root@XBMCLive:/home/xbmc# ./livecd.sh
bash: ./livecd.sh: /bin/bash^M: bad interpreter: No such file or directory


Can someone else try this aswell to make sure its just not me
AuXBoX Wrote:i get this

xbmc@XBMCLive:~$ wget http://luemmels-dvd-ripper.googlecode.co.../livecd.sh
--2010-01-29 23:04:54-- http://luemmels-dvd-ripper.googlecode.com/files/livecd. sh
Resolving luemmels-dvd-ripper.googlecode.com... 72.14.203.82
Connecting to luemmels-dvd-ripper.googlecode.com|72.14.203.82|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 4385 (4.3K) [application/x-shellscript]
Saving to: `livecd.sh'

100%[======================================>] 4,385 22.5K/s in 0.2s

2010-01-29 23:04:55 (22.5 KB/s) - `livecd.sh' saved [4385/4385]

xbmc@XBMCLive:~$ chmod +x 777 livecd.sh
chmod: cannot access `777': No such file or directory

or when i sudo chmod +x 777 i get this

xbmc@XBMCLive:~$ sudo chmod +x 777 livecd.sh
chmod: cannot access `777': No such file or directory

i can just sudo chmod 777 livecd.sh
or
sudo chmod +x livecd.sh
and they are allowed

but still same problems

or as root

root@XBMCLive:/home/xbmc# ./livecd.sh
bash: ./livecd.sh: /bin/bash^M: bad interpreter: No such file or directory


Can someone else try this aswell to make sure its just not me

Sorry my fault :

chmod 777 livecd.sh

Regards
Hans
@Auxbox: I mistyped it during my tries before the script, the script was no problem! Thank you a lot!
Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44