LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 12-05-2007, 07:06 PM   #1
CorruptiC
LQ Newbie
 
Registered: Sep 2006
Posts: 10

Rep: Reputation: 0
Installing from shell script


I just downloaded an installer of Jahshaka video editor and to my surprise its a 2kb shell script file. I have no clue on how to install it because I'm a little new to Linux.
 
Old 12-05-2007, 07:23 PM   #2
{BBI}Nexus{BBI}
Senior Member
 
Registered: Jan 2005
Location: Nottingham, UK
Distribution: Mageia 6, KDE Neon
Posts: 4,313

Rep: Reputation: 212Reputation: 212Reputation: 212
Quote:
Originally Posted by CorruptiC View Post
I just downloaded an installer of Jahshaka video editor and to my surprise its a 2kb shell script file. I have no clue on how to install it because I'm a little new to Linux.
What distro are you using?
From where did you get this shell script?
What is the name of the shell script?

Last edited by {BBI}Nexus{BBI}; 12-05-2007 at 07:24 PM.
 
Old 12-05-2007, 07:31 PM   #3
CorruptiC
LQ Newbie
 
Registered: Sep 2006
Posts: 10

Original Poster
Rep: Reputation: 0
I'm using Xubuntuu(for now)
I got the shell script from sourceforge as an install file.
Its called Jahshaka-dapper-x86.sh

Here's the script if that is on any help.

#!/usr/bin/env sh

function dapper_register( ) {
[ "`grep repo.jahshaka.org/ubuntu/dapper /etc/apt/sources.list`" = "" ] &&
echo deb http://repo.jahshaka.org/ubuntu/dapper/ binary-i386/ >> /etc/apt/sources.list
apt-get --quiet update 2>&1 > /dev/null
return $?
}

function dapper_simulate( ) {http://linuxcommand.org/writing_shell_scripts.php
apt-get --simulate install $* 2>&1
return $?
}

function dapper_install( ) {
apt-get --force-yes --yes install $*
return $?
}

function change_user( ) {
zenity --question --text "Welcome to the Jahshaka Ubuntu Installer.\n\nShould you wish to continue, I will need your password."
[ $? = 0 ] && packages=`chmod +x $1 && gksudo $1 install`
for i in $packages
do
(
echo [Desktop Entry]
echo Type=Application
echo Name=$i
echo TryExec=$i
echo Exec=$i
) > $HOME/Desktop/$i.desktop
done
}
http://linuxcommand.org/writing_shell_scripts.php
function install( ) {
info=`$register` && [ $? != 0 ] && zenity --error --text "$info" && exit

packages=`zenity --list --checklist --separator=" " --column "Download" --column "Package" $available`
[ "$packages" = "" ] && zenity --error --text "No packages selected." && exit

info=`$simulate $packages`
if [ $? = 0 ]
then
zenity --question --title "Jahshaka" --text "$info"
[ $? = 0 ] && ( $installs $packages | zenity --progress --pulsate ) &&
packages=`echo $packages | sed 's/openlibraries-media//'` &&
[ "$packages" != "" ] &&
zenity --question --text="Installation complete.\n\nDo you want me to create desktop icons for those applications?" &&
echo $packages
else
zenity --error --text "$info"
fi
}

if [ "$1" != "install" ]
then
( [ -f "/etc/issue" ] && uname -m | grep "i.86" && cat /etc/issue | grep "6\.06" ) > /dev/null
if [ $? == 0 ]
then change_user $0
else zenity --error --text "This script only applies to Ubuntu 6.06 x86 32 bit platforms."
fi
else
export available="TRUE jahshaka TRUE jahplayer TRUE jplayer FALSE openlibraries-media"
export register="dapper_register"
export simulate="dapper_simulate"
export installs="dapper_install"
install
fi
 
Old 12-05-2007, 07:38 PM   #4
{BBI}Nexus{BBI}
Senior Member
 
Registered: Jan 2005
Location: Nottingham, UK
Distribution: Mageia 6, KDE Neon
Posts: 4,313

Rep: Reputation: 212Reputation: 212Reputation: 212
Open a terminal window and type: bash ./jahshaka-dapper-x86.sh
 
Old 12-05-2007, 07:43 PM   #5
CorruptiC
LQ Newbie
 
Registered: Sep 2006
Posts: 10

Original Poster
Rep: Reputation: 0
Well it didnt work because I dont have Ubuntu 6.06. But thanks for the help now I know how to install from shell scripts!
 
  


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
I made a shortcut to a shell script and it is using default shell icon... shlinux Linux - Software 2 04-20-2006 06:29 AM
Alias or shell script to confirm 'exit' commands from a shell rose_bud4201 Programming 2 03-08-2006 02:34 PM
shell script problem, want to use shell script auto update IP~! singying304 Programming 4 11-29-2005 05:32 PM
Installing JBuilder, but get error regarding Shell Script Sir Nerdalot Linux - Software 1 07-12-2005 09:21 AM
installing shell script hoffman Linux - Newbie 14 11-15-2003 11:00 PM

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

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