Hi
Angeblich ist in Zeile 92 u 94 ein fehler :
./scrip.sh: line 92: unexpected EOF while looking for matching `"'
./scrip.sh: line 94: syntax error: unexpected end of file
ich seh da nix ?!?
Jemand eine Idee ?
Angeblich ist in Zeile 92 u 94 ein fehler :
./scrip.sh: line 92: unexpected EOF while looking for matching `"'
./scrip.sh: line 94: syntax error: unexpected end of file
ich seh da nix ?!?
Code:
#!/bin/bash
echo "####################################"
echo ""
echo " Select"
echo " [1] Install Apache + PHP + MySQL"
echo " [2] Install NXserver and User Remote"
echo " [3] Install GNOME "
echo " [4] Show System Informations"
echo " [5] Usefull Programm's"
echo " [6] Add APT-Mirror ?"
echo ""
echo "####################################"
read select
apt-get update
if [ "$select" = "1" ]
then
apt-get update
apt-get -y install apache2 php5 mysql-server
fi
if [ "$select" = "2" ]
then
echo "Model : i386 or AMD64 ?"
read $model
if [ "$model" = "i365" ]
then
cd /tmp
wget http://64.34.161.181/download/3.4.0/Linux/nxclient_3.4.0-5_i386.deb
wget http://64.34.161.181/download/3.4.0/Linux/nxnode_3.4.0-6_i386.deb
wget http://64.34.161.181/download/3.4.0/Linux/FE/nxserver_3.4.0-8_i386.deb
dpkg -i nxclient_3.4.0-5_i386.deb
apt-get -y -f install
dpkg -i nxclient_3.4.0-5_i386.deb
dpkg -i nxnode_3.4.0-6_i386.deb
dpkg -i nxserver_3.4.0-8_i386.deb
fi
if [ "$model" = "i365" ]
then
cd /tmp
wget http://64.34.161.181/download/3.4.0/Linux/nxclient_3.4.0-5_x86_64.deb
wget http://64.34.161.181/download/3.4.0/Linux/nxnode_3.4.0-6_x86_64.deb
wget http://64.34.161.181/download/3.4.0/Linux/FE/nxserver_3.4.0-8_x86_64.deb
dpkg -i nxclient_3.4.0-5_x86_64.deb
apt-get -f install
dpkg -i nxclient_3.4.0-5_x86_64.deb
dpkg -i nxnode_3.4.0-6_x86_64.deb
dpkg -i nxserver_3.4.0-8_x86_64.deb
fi
apt-get install xauth
echo "What name should the NX User have ?"
read $user
adduser $user
/usr/NX/bin/nxserver --keygen
cp /usr/NX/share/keys/default.id_dsa.key /home/$user/nx-key.key
echo "The SSH Key for Login is under /home/$user/nx-key.key
fi
if [ "$select" = "3" ]
then
apt-get install xserver-xorg gnome-core
fi
if [ "$select" = "4" ]
then
cat /proc/cpuinfo >> /tmp/cpuinfo | grep "model name" /tmp/cpuinfo
rm /tmp/cpuinfo
fi
if [ "$select" = "5" ]
then
apt-get install vlc kvm qemu virt-manager icedove iceweasel network-manager-gnome gimp openoffice.org pidgin blender filezilla sun-java6-jre wine
fi
if [ "$select" = "6" ]
then
mv /etc/apt/sources.list /etc/apt/sources.list.bk
touch /etc/apt/sources.list
echo "What IP have you APT-Mirror Server ?"
read $server
echo "deb http://$server/Mirror/ftp.de.debian.org/debian/ lenny main" >> /etc/apt/sources.list
echo "deb-src http://$server/Mirror/ftp.de.debian.org/debian/ lenny main" >> /etc/apt/sources.list
echo "deb http://$server/Mirror/security.debian.org/ lenny/updates main" >> /etc/apt/sources.list
echo "deb-src http://$server/Mirror/security.debian.org/ lenny/updates main" >> /etc/apt/sources.list
echo "deb http://$server/Mirror/volatile.debian.org/debian-volatile lenny/volatile main" >> /etc/apt/sources.list
echo "deb-src http://$server/Mirror/volatile.debian.org/debian-volatile lenny/volatile main" >> /etc/apt/sources.list
fi
Jemand eine Idee ?