ubuntuusers.de

Große Nutzerumfrage 2019 - Zum Thema (Ende 31.07.2019)

Titel:
instal-nvn
Datum:
15. Oktober 2008 19:50
Aktionen:
Code:
 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
# wiki.ubuntuusers.de
# geschrieben von: DarkDevil
#!/bin/sh
INSTALL_PATH=/usr/local/games/nwn/
TMP_PATH=/tmp/nwn-temp/
CDROM=cdrom0
if [ `whoami` != "root" ]
then
   echo "Du must ROOT-Rechte haben. Bitte das Script mit ""sudo ./install.sh"" starten"
   exit 1
fi
apt-get install unshield
mkdir $INSTALL_PATH
mkdir $TMP_PATH
cd /media/$CDROM/
until [ -e data1.cab ]
do
   cd /media/
   eject $CDROM
   read -p "Bitte die DVD einlegen und Return drücken" junk
   mount -l | grep $CDROM > /dev/null
   while [ $? = 1 ]
   do
      sleep 5
      mount -l | grep $CDROM > /dev/null
   done
   cd $CDROM/
done
unshield x -g "App Executables" -d $TMP_PATH /media/cdrom0/data1.cab 
cp -r $TMP_PATH/App_Executables/* $INSTALL_PATH
rm -r $TMP_PATH/App_Executables/
cd $INSTALL_PATH
wget http://files.bioware.com/neverwinternights/updates/linux/nwclient129.tar.gz
md5sum nwclient129.tar.gz
tar -xvzf nwclient129.tar.gz
rm nwclient129.tar.gz
wget http://files.bioware.com/neverwinternights/updates/linux/168/German_linuxclient168_orig.tar.gz
md5sum German_linuxclient168_orig.tar.gz
tar -xvzf German_linuxclient168_orig.tar.gz
rm German_linuxclient168_orig.tar.gz
wget http://files.bioware.com/neverwinternights/updates/linux/168/German_linuxclient168_xp1.tar.gz
md5sum German_linuxclient168_xp1.tar.gz
tar -xvzf German_linuxclient168_xp1.tar.gz
rm German_linuxclient168_xp1.tar.gz
wget http://files.bioware.com/neverwinternights/updates/linux/168/German_linuxclient168_xp2.tar.gz
md5sum German_linuxclient168_xp2.tar.gz
tar -xvzf German_linuxclient168_xp2.tar.gz
rm German_linuxclient168_xp2.tar.gz
wget http://home.woh.rr.com/nwmovies/nwmovies/nwmovies-latest.tar.gz
md5sum nwmovies-latest.tar.gz
tar xfvzp nwmovies-latest.tar.gz
rm nwmovies-latest.tar.gz
sudo apt-get install build-essential libelfg0-dev libsdl1.2-dev libsdl-gfx1.2-4 libsdl-gfx1.2-dev libsdl-mixer1.2
./nwmovies_install.pl /usr/lib/libSDL-1.2.so.0
wget http://www.radgametools.com/down/Bink/BinkLinuxPlayer.zip
md5sum BinkLinuxPlayer.zip
unzip BinkLinuxPlayer.zip -x
chmod +x BinkPlayer
rm BinkLinuxPlayer.zip
find $INSTALL_PATH -print -exec chmod 755 '{}' \;
mkdir saves
chmod 777 nwn.ini
chmod 777 nwnplayer.ini
chmod 777 nwncdkey.ini
chmod 777 saves
chmod 777 localvault
chmod 777 tempclient
chmod 777 dmvault
chmod 777 /usr/local/games/nwn
sed '/nwmain/i\export SDL_AUDIODRIVER="esd"' nwn > temp
mv temp nwn
sed '/nwmain/i\export LD_PRELOAD=./nwmovies.so' nwn > temp
mv temp nwn
sed '/nwmain/i\cd '$INSTALL_PATH nwn > temp
mv temp nwn
ln -s $INSTALL_PATH/nwn /usr/bin/nwn
chmod 755 /usr/bin/nwn
./nwn
echo "NWN ist nun Installiert man kann es nun mit nwn aus der console starten"