Digital Eliteboard

Registriere dich noch heute kostenloses um Mitglied zu werden! Sobald du angemeldet bist, kannst du auf unserer Seite aktiv teilnehmen, indem du deine eigenen Themen und Beiträge erstellst und dich über deinen eigenen Posteingang mit anderen Mitgliedern unterhalten kannst! Zudem bekommst du Zutritt zu Bereiche, welche für Gäste verwert bleiben

Support Videoaufzeichnungstool oder Suse toll auf Ubuntu ummodeln?

babylon05

Freak
Registriert
26. Dezember 2007
Beiträge
216
Punkte Reaktionen
9
Moinsen,

Vielleicht ist ja einer hier der sone Art Linux Guru ist :)

Habe eine Software die eigentlich fuer Suse gemacht worden ist,
Diese Software zeichnet den Datenstream einer Netzwerkkamera auf nach eingestellter Zeit vorgabe.
Jetzt bin ich nicht der Suse befrworter, sondern lieber Debian oder besser Ubuntu,
gibt ne moeglichkeit das auch auf Debian laufen su lassen? habe im installer.sh schon
#!/bin/sh in #!/bin/bash umbennant, sonst kam nur murks raus.

Leider bekomme ich es nicht installiert, weil angeblich irgenwelche libs fehlen, obwohl sie da sind.

Hier mal Code vom installer.sh

#!/bin/bash

id=`id | sed s/\(.*// | sed s/uid=//`

if [ "$id" != "0" ]; then
echo "start script as root " 1>&2
exit 1
fi

#enough space?
echo ""
echo -e "Welcome to SeeTec 5 Installation.\n\n"
echo -e "Before going ahead, please assure, that"
echo " - you have at least 1.5 GB free disk space (excluding image data)!"
echo -e "\n\nPress any key to continue."
read -n1

cat /proc/meminfo | grep MemTotal > /tmp/memTmp
MEMORY=`awk '{ print $2 }' /tmp/memTmp`

echo ""
if [ $MEMORY -lt 250000 ]
then
echo -e "Memory check....failed.\n\n"
echo "WARNING!"
echo "--------"
echo "You have not enough memory. 256 MB is the minimum requirement."
echo ""

rm /tmp/memTmp
exit 0
fi

if [ $MEMORY -lt 500000 ]
then
echo "WARNING!"
echo "--------"
echo "You have less than 512MB memory. We STRONGLY recommend to have at least 512 MB."
echo "Continue by pressing a key or exit pressing CTRL-C."
read -n1
else
echo "Memory check....ok."
fi

rm /tmp/memTmp

if [ -w /tmp -a -x /tmp ]; then
echo "/tmp check....ok."
else
echo -e "/tmp check....failed.\n\n"
echo "The /tmp directory must be writable/executable for temporary installation files."

exit 0
fi

# new installation or update?
# ---------------------------
echo -e "\nIs it a new installation or an update?"
echo -e "1 : New Installation or Reinstallation after uninstall.\n2 : Update Installation"
echo "Please insert number:"
read -n1 selection

if [ $selection != 1 -a $selection != 2 ]
then
echo "Wrong selection. Insert the number!"
exit 0
else
if [ $selection = 1 ]
then
# new installation
INSTALLATION=1
else

# update
INSTALLATION=2
fi
fi

echo -e "\n"

# where to install/update
# -----------------------
if [ $INSTALLATION = 1 ]
then
echo "Install to [default /opt/SeeTec]:"
else
echo "Update where [default /opt/SeeTec]:"
fi

read INSTALLDIR
if [ "$INSTALLDIR" = "" ];
then
INSTALLDIR="/opt/SeeTec"
fi

# doing a check, if the path contains spaces.
# -------------------------------------------
echo $INSTALLDIR > /tmp/tmpFile

convertedName=`sed -e 's/ //g' /tmp/tmpFile`

if [ "$convertedName" != "$INSTALLDIR" ];
then
echo "Sorry, no SPACES allowed in pathname. exiting."
rm /tmp/tmpFile
exit 1
fi
rm /tmp/tmpFile

# CHECK FOR LIGHT VERSION!

#if [ -e $INSTALLDIR/conf/SeeTec.lck ]
#then
# echo "Can't install a light version to the same directory as previous full version. Exiting..."
# exit 1
#fi

echo -e "Installing to: $INSTALLDIR\n"

echo SEETEC_HOME=$INSTALLDIR > /etc/seetec.conf
export SEETEC_HOME

# what should be installed?
# -------------------------

if [ $INSTALLATION = 1 ]
then
if [ -d $INSTALLDIR/j2re ]
then
echo -e "\nThere is already a SeeTec 5 system installed. Use update.\n"
exit 1
fi

echo "What should be installed?"
else
# does the update path even exist?
if [ ! -d $INSTALLDIR ]
then
echo "$INSTALLDIR isn't existing. No update possible."
exit 1
fi

echo "What schould be updated?"
fi

echo -e "1 : Complete Server\n2 : Only Coreservices\n3 : Only Camera Management and Multimedia Database"
echo "Please insert number:"
read -n1 selection

if [ $selection != 1 -a $selection != 2 -a $selection != 3 ]
then
echo "Wrong selection. Insert the number of the component!"
exit 1
fi

echo -e "\n"


# Check against 5.2 license key. Do it here before we start to configure the system.
if [ $selection = 1 -o $selection = 2 ]
then
if [ -e $INSTALLDIR/conf/SeeTec.key ]
then
if [ "`cat $INSTALLDIR/conf/SeeTec.key | grep '<v5_2>true</v5_2>'`" = "" ]; then
echo -e "A license key for version 5.0.x or 5.1.x has been found.\nPlease substitute the license key file 'SeeTec.key' before installation/update."
exit 1
fi
fi
fi

SID="SEETEC"
DBDIR="$INSTALLDIR/sapdb"

GROUP_NAME="seetec"
USER_NAME=$GROUP_NAME
USER_PASS=$GROUP_NAME

#Add user and group...both named seetec.
groupadd $GROUP_NAME 2> /dev/null
useradd -d /home/$USER_NAME -g $GROUP_NAME -m -p $USER_PASS $USER_NAME 2> /dev/null

INSTALLROOT=`pwd`

# Copying files to destination!
# when doing an update, the following instaructions just do nothing.
# -----------------------------
if [ ! -d $INSTALLDIR ]
then
mkdir $INSTALLDIR > /dev/null
fi

if [ ! -d $INSTALLDIR/log ]
then
mkdir $INSTALLDIR/log > /dev/null
fi

if [ ! -d $INSTALLDIR/conf ]
then
mkdir $INSTALLDIR/conf > /dev/null
fi

if [ ! -d $INSTALLDIR/Manual ]
then
mkdir $INSTALLDIR/Manual > /dev/null
fi

# if it is an update, shutdown everything.
# ----------------------------------------
if [ $INSTALLATION = 2 ]
then
/etc/init.d/seetec stop
$INSTALLDIR/sapdb/indep_prog/bin/x_server stop
fi


# stuff that in every installation is needed. needed on new and update.
cp -R j2re admin tools Manual $INSTALLDIR 2> /dev/null

chgrp -R $GROUP_NAME $INSTALLDIR/j2re $INSTALLDIR/admin $INSTALLDIR/tools
chown -R $USER_NAME $INSTALLDIR/j2re $INSTALLDIR/admin $INSTALLDIR/tools

chmod 755 -R $INSTALLDIR/j2re

# if existing, don't overwrite!
# cp -i --reply=no conf/SeeTec* $INSTALLDIR/conf
yes n | cp -i conf/SeeTec* $INSTALLDIR/conf ; echo \n

cp LiesMich.txt $INSTALLDIR/Manual

#install start scripts!
echo "Installing startup script..."
cp $INSTALLROOT/tools/Setup/seetec /etc/init.d
chmod 755 /etc/init.d/seetec
cd /etc/init.d
insserv seetec
ln -sf /etc/init.d/seetec /usr/sbin/rcseetec
cd $INSTALLROOT


# ok, the camera management should be installed.
if [ $selection = 1 -o $selection = 3 ]
then
echo "Copying files for the camera management..."
cp -R re $INSTALLDIR

if [ ! -d $INSTALLDIR/re/md/mds/data ]
then
mkdir $INSTALLDIR/re/md/mds/data > /dev/null
fi

# if existing, don't overwrite!
yes n | cp -i conf/mds.conf.xml $INSTALLDIR/conf ; echo \n
yes n | cp -i conf/cm.conf.xml $INSTALLDIR/conf ; echo \n

# overwrite the log4j-files.
cp conf/mds.log4j.xml conf/cm.log4j.xml $INSTALLDIR/conf

chgrp -R $GROUP_NAME $INSTALLDIR/re
chown -R $USER_NAME $INSTALLDIR/re

# don't do a start of cm, if only those will be installed, cause the don't know yet
# where EntMgr is. Use AdminTool before.
fi


# ok, the core services should be installed....including sapdb.
if [ $selection = 1 -o $selection = 2 ]
then
echo "Copying files for the core services..."
cp -R alarm auth ent evt $INSTALLDIR

# if existing, don't overwrite!
yes n | cp -i conf/ent.conf.xml $INSTALLDIR/conf ; echo \n

# overwrite the log4j-files.
cp conf/ent.log4j.xml conf/evt.log4j.xml conf/auth.log4j.xml conf/alarm.log4j.xml $INSTALLDIR/conf

chgrp -R $GROUP_NAME $INSTALLDIR/alarm $INSTALLDIR/auth $INSTALLDIR/evt $INSTALLDIR/ent
chown -R $USER_NAME $INSTALLDIR/alarm $INSTALLDIR/auth $INSTALLDIR/evt $INSTALLDIR/ent

echo -e "\nWhat kernel version is installed? Greater or equal then 2.6.x?"
echo -ne "('uname -sr' says: `uname -sr`)\n\n"
echo -e "1 : Yes, greater or equal.\n2 : No.\n3 : I don't know."
echo "Please insert number:"
read -n1 selection

if [ $selection != 1 -a $selection != 2 -a $selection != 3 ]
then
echo "Wrong selection. Insert the number.!"
exit 1
fi

if [ $selection = 1 ]
then
export LD_ASSUME_KERNEL=2.2.5

# adjust the startup script.
sed -e 's/#export LD_ASSUME_KERNEL/export LD_ASSUME_KERNEL/g' -e 'w /etc/init.d/seetec_new' /etc/init.d/seetec > /dev/null
mv /etc/init.d/seetec_new /etc/init.d/seetec
chmod 755 /etc/init.d/seetec
fi

if [ $selection = 3 ]
then
echo "Check version number with uname -all and start again."
exit 0
fi


# only touch database, if it is NOT an update!
if [ $INSTALLATION = 1 ]
then
# Install DB
# ----------

echo -e "\nInstalling DB..."

chmod 755 -R sapdeploy

sapdeploy/SDBINST -b -profile Server -package "Base" -indep_prog $INSTALLDIR/sapdb/indep_prog -indep_data $INSTALLDIR/sapdb/indep_data -o $USER_NAME -g $GROUP_NAME
sapdeploy/SDBINST -b -profile Server -package "Server Utilities" -indep_prog $INSTALLDIR/sapdb/indep_prog -o $USER_NAME -g $GROUP_NAME
sapdeploy/SDBINST -b -profile Server -package "JDBC" -o $USER_NAME -g $GROUP_NAME
sapdeploy/SDBINST -b -profile Server -package "Database Kernel" -depend $INSTALLDIR/sapdb/depend -o $USER_NAME -g $GROUP_NAME

PATH=$INSTALLDIR/sapdb/indep_prog/bin:$PATH
export PATH

# Setup DB
# ----------

x_server start >/dev/null 2>&1

#stop and drop probably existing demo database
dbmcli -d $SID -u dbm,dbm db_offline >/dev/null 2>&1
dbmcli -d $SID -u dbm,dbm db_drop >/dev/null 2>&1

# create new database
echo "create database $SID..."
_o=`$DBDIR/indep_prog/bin/dbmcli -s -R $DBDIR/depend db_create $SID dbm,seetecdbm 2>&1`
_test=`echo $_o | grep OK`
if [ "$_test" = "" ]; then
echo "create $SID failed: $_o" 1>&2
# exit 1
fi

if [ ! -d $DBDIR/backup ]
then
mkdir -p $DBDIR/backup > /dev/null
fi


# setup database parameters
echo "set parameters for $SID..."
_o=`cat <<EOF | dbmcli -d $SID -u dbm,seetecdbm 2>&1
param_rmfile
param_startsession
param_init OLTP
param_put CAT_CACHE_SUPPLY 300
param_put CACHE_SIZE 3000
param_put MAXDATADEVSPACES 5
param_put MAXUSERTASKS 75
param_put _UNICODE YES
param_put _PACKET_SIZE 131072
param_checkall
param_commitsession
param_addvolume 1 DATA $DBDIR/DISKD0001 F 64000
param_addvolume 1 LOG $DBDIR/DISKL001 F 5120
quit
EOF`
_test=`echo $_o | grep ERR`
if [ "$_test" != "" ]; then
echo "set parameters failed: $_o" 1>&2
exit 1
fi

if [ -e $DBDIR/volume.inf ] && [ -e $DBDIR/SeeTec.zip ]
then
#the first volume I already have, so start with number 2!
n=2

#read every single line of the volume.inf and then create a volume!
cat $DBDIR/volume.inf | while read fn; do
dbmcli -d $SID -u dbm,seetecdbm param_addvolume $n DATA $DBDIR$fn
let n++
done

else
echo "No old data found!"
fi


echo "set backup parameters..."
_o=`cat <<EOF | dbmcli -d $SID -u dbm,seetecdbm 2>&1
medium_put data $DBDIR/backup/datasave FILE DATA 0 8 YES
medium_put auto $DBDIR/backup/autosave FILE AUTO
quit
EOF`
_test=`echo $_o | grep ERR`
if [ "$_test" != "" ]; then
echo "set backup parameters failed: $_o" 1>&2
exit 1
fi

# initialize database files
echo "initialize $SID..."
_o=`cat <<EOF | dbmcli -d $SID -u dbm,seetecdbm 2>&1
db_admin
util_connect
util_execute init config
util_execute SET LOG AUTO OVERWRITE ON
util_activate dba,dba
util_release
db_cold
quit
EOF`
_test=`echo $_o | grep ERR`
if [ "$_test" != "" ]; then
echo "initializing $SID failed: $_o" 1>&2
exit 1
fi

if [ -e $DBDIR/volume.inf ] && [ -e $DBDIR/SeeTec.zip ]
then
echo "Restoring old database."
unzip -o $DBDIR/SeeTec.zip -d $DBDIR

rm $DBDIR/SeeTec.zip
else
echo "Setting up initial database."
unzip -o $INSTALLROOT/sapdeploy/SeeTec.zip -d $DBDIR
touch $DBDIR/volume.inf
chgrp $GROUP_NAME $DBDIR/volume.inf
chown $USER_NAME $DBDIR/volume.inf

fi

# startup database
echo "start $SID..."
_o=`dbmcli -d $SID -u dbm,seetecdbm db_online 2>&1`
_test=`echo $_o | grep OK`
if [ "$_test" = "" ]; then
echo "start $SID failed: $_o" 1>&2
exit 1
fi


# load database system tables
echo "load system tables..."

_o=`dbmcli -d $SID -u dbm,seetecdbm load_systab -u dba,seetecdba -ud domain 2>&1`
_test=`echo $_o | grep OK`
if [ "$_test" = "" ]; then
echo "load system tables failed: $_o" 1>&2
exit 1
fi
else
echo -e "\n\nKeep the DB unchanged cause it is an update.\n"
fi

/etc/init.d/seetec start
fi

exit 0
 

BeAvIsBeE

Newbie
Registriert
4. August 2009
Beiträge
15
Punkte Reaktionen
2
AW: Videoaufzeichnungstool oder Suse toll auf Ubuntu ummodeln?

wegen was für libs meckert er denn?
werden die libs einzeln genannt? Paketname? oder wird direkt der Pfad irgendwo ausgegeben, wo die Libs vermutet werden? Wird eine benötigte Versions-Nummer mit angegeben?

vielleicht liegen die entsprechenden libs bei SuSE wo anders als bei Debian/Ubuntu - hier könnte man ja einfach SymLinks anlegen, um die gewünschte Struktur hinzubekommen.

Die Frage ist halt, ob auch eine bestimmte Version erforderlich ist, die vielleicht unter Debian nicht verfügbar ist...

Also selbst, wenn die Installation dann mal irgendwann geklappt hat, ist es noch nicht sicher, ob das Programm wirklich fehlerfrei arbeitet... aber einen Versuch ist es ja wert :)

vielleicht kannst du auch sagen, um was für eine Kamera genau es sich handelt - vielleicht lässt sich darüber auch ein HowTo finden, wo entsprechende Kamera mit alternativem Programm zu deinem SeeTec verwendet wurde...
 
Oben