Ist es möglich für MusicServer4lox auch die 32 bit Version zu verwenden.
Danke schon mal
#!/bin/bash paket=( apache2 libapache2-mod-php7.0 php7.0-curl php7.0-json php7.0-xml php7.0-dev php7.0-soap bc nmap ethtool git sudo squeezelite git make libasound2-dev libflac-dev libmad0-dev libvorbis-dev libfaad-dev libmpg123-dev liblircclient-dev libncurses5-dev patch alsa-base alsa-utils alsa-tools powertop htop build-essential caps libasound2-dev libasound2-plugins bs2b-ladspa swh-plugins libasound2-plugin-equal gcc libffi-dev python-dev openssl libssl-dev libcrypt-openssl-rsa-perl libio-socket-inet6-perl libwww-perl avahi-utils libio-socket-ssl-perl samba zip unzip ) ms_url_version="http://music-server.net/download/version" squp_url="http://github.com/ralph-irving/squeezelite/" squp_url_version="https://raw.githubusercontent.com/ralph-irving/squeezelite/master/squeezelite.h" lmsup_url="http://www.mysqueezebox.com/update/?version=7.9.0&revision=1&geturl=1&os=deb" lmsup_url_version="http://downloads.slimdevices.com/nightly/?ver=7.9" lmsup_temp="/tmp/lms.update" tmpdir="/tmp/musicserver" ip=$(ifconfig | head -n 2 | tail -n 1 | cut -d: -f2 | cut -d" " -f 1) sudo wget -t 5 -q -O /tmp/msinstall.version $ms_url_version ms_versonline=`cat /tmp/msinstall.version` cd / clear echo echo -e "\033[7mMusik-Server | INSTALL "$ms_versonline"\033[0m" echo "================================================================================" # System update echo echo -e "\033[7mMusik-Server | SYSTEM UPDATE \033[0m" echo "--------------------------------------------------------------------------------" echo "Softwareliste wird eingelesen..." sudo apt-get update echo "--------------------------------------------------------------------------------" echo "Softwareliste wird eingelesen..." sudo apt-get -y upgrade echo "--------------------------------------------------------------------------------" # Installierte Paket abfragen echo echo -e "\033[7mMusik-Server | INSTALL PAKET \033[0m" echo "--------------------------------------------------------------------------------" for i in "${paket[@]}"; do if dpkg-query -s $i 2>/dev/null | grep -q installed ; then echo -e "$i - \033[30m\033[42mist installiert \033[0m" else echo -e "$i - \033[30m\033[41mnicht installiert \033[0m" echo "$i wird installiert" sudo apt-get -y -qq install $i fi echo "--------------------------------------------------------------------------------" done # Dateien downloaden echo echo -e "\033[7mMusik-Server | COPY FROM MUSIC-SERVER.NET \033[0m" echo "--------------------------------------------------------------------------------" cd /tmp echo "Kopiere Dateien von music-server.net... nach /tmp" sudo rm -rf $tmpdir sudo rm -rf /tmp/install.zip sudo wget -q http://music-server.net/download/install.zip echo "--------------------------------------------------------------------------------" echo "entpacke Dateien nach "$tmpdir sudo unzip -q -d $tmpdir /tmp/install.zip echo "--------------------------------------------------------------------------------" sleep 2 # Dateien kopieren / Rechte anpassen echo echo -e "\033[7mMusik-Server | COPY & CHMOD \033[0m" echo "--------------------------------------------------------------------------------" echo "Kopiere Dateien..." echo ".../etc/..." sudo cp -r $tmpdir/etc/ / echo ".../opt/..." sudo cp -r $tmpdir/opt/ / echo ".../www/..." sudo cp -r $tmpdir/var/www/ /var/ echo "--------------------------------------------------------------------------------" echo "Rechte anpassen..." echo "für SCRIPT.." sudo chmod 0755 /opt/music_server/* echo "für CONFIG..." sudo chmod 0777 /opt/music_server/soundcard_cfg/ sudo chmod 0777 /opt/music_server/sq_cfg/ sudo chmod 0666 /opt/music_server/sq_cfg/*.* sudo chmod 0777 /opt/music_server/sq_cfg/event/ sudo chmod 0777 /opt/music_server/sq_cfg/eq/ sudo chmod 0777 /opt/music_server/sq_cfg/zones/ sudo chmod 0777 /opt/music_server/sq_cfg/zones_ext/ sudo chmod 0666 /opt/music_server/sq_cfg/event/*.* sudo chmod 0666 /opt/music_server/sq_cfg/zones/*.* sudo chmod 0666 /opt/music_server/soundcard_cfg/defaultcard/*.* sudo chmod 0666 /opt/music_server/soundcard_cfg/multicard/*.* sudo chmod 0777 /opt/music_server/soundcard_cfg/zones/ sudo chmod 0666 /opt/music_server/soundcard_cfg/*.* echo "für WWW..." sudo chmod 0777 /var/www/event/cts_tmp/ sudo chmod 0777 /var/www/event/tts_tmp/ sudo chmod 0777 /var/www/event/ringtones/ sudo chmod 0777 /var/www/event/ringtones/tts_signal/ sudo chmod 0666 /var/www/settings/network.conf sudo chmod 0666 /var/www/settings/soundcards.txt sudo chmod 0666 /opt/music_server/soundcard_cfg/event.cfg echo "für ALSA..." sudo chmod 0666 /etc/asound.conf echo "für NETWORK SETTING..." sudo chmod 0666 /etc/network/interfaces echo "--------------------------------------------------------------------------------" # Softlinks anlegen echo echo -e "\033[7mMusik-Server | SOFTLINKS \033[0m" echo "--------------------------------------------------------------------------------" echo "Soft-Links anlegen..." sudo ln -f /opt/music_server/sc /bin/sc sudo ln -f /opt/music_server/s /bin/s sudo ln -f /opt/music_server/mstools /bin/mstools echo "--------------------------------------------------------------------------------" #User music anlegen echo echo -e "\033[7mMusik-Server | USER CREATE \033[0m" echo "--------------------------------------------------------------------------------" if getent passwd music >/dev/null; then echo "Benutzer MUSIC vorhanden" else sudo adduser music sudo passwd music fi echo "--------------------------------------------------------------------------------" #Verzeichnisse anlegen echo echo -e "\033[7mMusik-Server | DIR CREATE \033[0m" echo "--------------------------------------------------------------------------------" cd /home/music if [ -d "/home/music/music_files" ]; then echo "Verezichnis music_files existiert bereits..." else echo "Verzeichnis music_files anlegen..." sudo mkdir music_files echo "Rechte an für das Verzeichnis an User:music übergeben..." sudo chown -c music /home/music/music_files sudo chmod 0777 /home/music/music_files fi if [ -d "/home/music/music_playlists" ]; then echo "Verezichnis music_playlists existiert bereits..." else echo "Verzeichnis music_playlists anlegen..." sudo mkdir music_playlists echo "Rechte an für das Verzeichnis an User:music übergeben..." sudo chown -c music /home/music/music_playlists sudo chmod 0777 /home/music/music_playlists fi if [ -d "/home/music/backup" ]; then echo "Verezichnis backup existiert bereits..." else echo "Verzeichnis backup anlegen..." sudo mkdir backup echo "Rechte an für das Verzeichnis an User:music übergeben..." sudo chown -c music /home/music/backup sudo chmod 0777 /home/music/backup fi echo "--------------------------------------------------------------------------------" # LMS installieren cd / echo echo -e "\033[7mMusik-Server | LOGITECHMEDIASERVER \033[0m" echo "--------------------------------------------------------------------------------" cd /tmp if [ -d "/tmp/lms_sources" ]; then sudo rm -rf /tmp/lms_sources fi versinstall=`dpkg -l | grep "logitechmediaserver" | awk '{print $3}'` wget -q -O $lmsup_temp $lmsup_url_version versonline=$(grep -A 1 "_i386.deb" $lmsup_temp | grep -v grep | cut -c 110- | cut -d"<" -f1 | cut -d"_" -f1 ) latest_lms=$(wget -q -O - "$lmsup_url") sudo mkdir -p /tmp/lms_sources cd /tmp/lms_sources wget $latest_lms lms_deb=${latest_lms##*/} sudo dpkg -i $lms_deb sudo update-rc.d -f logitechmediaserver disable sudo rm -rf /tmp/lms_sources/*.* sudo rm -rf /tmp/lms_sources sudo rm -rf /tmp/lms.update sudo rm -f /etc/init.d/logitechmediaserver echo "--------------------------------------------------------------------------------" # Squeezelite installieren echo echo -e "\033[7mMusik-Server | SQUEEZELITE \033[0m" echo "--------------------------------------------------------------------------------" dir="`mktemp --directory`" cd "$dir" wget -t 5 -q -O sqo.version $squp_url_version version_online=$(grep "#define VERSION" sqo.version | cut -c 19- | cut -d"\"" -f1 ) version_installed=`squeezelite -? | grep "Squeezelite v" | awk '{print $2}' | cut -d "v" -f2 | cut -d "," -f1` git clone $squp_url cd squeezelite CORES=$(grep ^processor /proc/cpuinfo | wc -l) sudo make -j$CORES sudo cp -f squeezelite /usr/bin/squeezelite-$version_online sudo ln -f /usr/bin/squeezelite-$version_online /usr/bin/squeezelite sudo rm -rf /tmp/*.* update-rc.d squeezelite disable echo "--------------------------------------------------------------------------------" # Vorbereitung für Plugins cd / echo echo -e "\033[7mMusik-Server | PREPARE \033[0m" echo "--------------------------------------------------------------------------------" echo "libnet installieren..." sudo wget http://music-server.net/download/install/libnet-sdp-perl_0.07-1_all.deb sudo dpkg -i libnet-sdp-perl_0.07-1_all.deb sudo rm -rf libnet-sdp-perl_0.07-1_all.deb echo "--------------------------------------------------------------------------------" echo "pip istallieren..." sudo wget https://bootstrap.pypa.io/get-pip.py sudo python get-pip.py sudo rm -rf get-pip.py sudo pip install -U pip echo "--------------------------------------------------------------------------------" inst_awscli=$(sudo pip show awscli | grep "Version" | wc -l) if [ $inst_awscli == 1 ]; then sudo pip install --upgrade awscli else sudo pip install awscli fi if ! [ -d ~/.aws ] ; then sudo mkdir -p ~/.aws sudo chmod 0755 ~/.aws fi echo "--------------------------------------------------------------------------------" #Aufräumen echo echo -e "\033[7mMusik-Server | CLEANUP \033[0m" echo "--------------------------------------------------------------------------------" echo "Verzeichnisse und Dateien löschen..." sudo rm -rf /var/www/html/*.* sudo rm -rf /var/www/html sudo rm -rf /tmp/install.zip sudo rm -rf /tmp/musicserver/*.* sudo rm -rf /tmp/musicserver/ echo "--------------------------------------------------------------------------------" #Apache Neustart echo echo -e "\033[7mMusik-Server | APACHE RESTART \033[0m" echo "--------------------------------------------------------------------------------" echo "Apache-Server neustarten" sudo service apache2 restart echo "--------------------------------------------------------------------------------" echo echo -e "\033[7mMusik-Server | CRON RESTART \033[0m" echo "--------------------------------------------------------------------------------" echo "Cron neustarten" sudo service cron restart echo "--------------------------------------------------------------------------------" #SET LMS echo "LMS_AUTOSTART=\"1\"" > /opt/music_server/sq_cfg/sq_lms.cfg echo "LMS_IP=\"$ip\"" >> /opt/music_server/sq_cfg/sq_lms.cfg echo "LMS_WEB_PORT=\"9000\"" >> /opt/music_server/sq_cfg/sq_lms.cfg echo "LMS_TELNET_PORT=\"9090\"" >> /opt/music_server/sq_cfg/sq_lms.cfg #kill Player Music-Server pid=$(ps -eo pid,command | grep Music-Server | grep -v grep | awk '{print $1}') kill $pid #Fertig echo echo -e "\033[7mMusik-Server | READY \033[0m" echo "--------------------------------------------------------------------------------" echo "FERTIG" echo "MUSIC-SERVER unter RECHNER-IP im Browser jetzt konfigurieren" echo "LMS unter "$ip":9000 im Browser jetzt konfigurieren" echo "--------------------------------------------------------------------------------" echo VERS="$ms_versonline" > /opt/music_server/sq_cfg/sq_version.cfg cd / rm -rf install.sh exit 0
Wir verarbeiten personenbezogene Daten über Nutzer unserer Website mithilfe von Cookies und anderen Technologien, um unsere Dienste bereitzustellen, Werbung zu personalisieren und Websiteaktivitäten zu analysieren. Wir können bestimmte Informationen über unsere Nutzer mit unseren Werbe- und Analysepartnern teilen. Weitere Einzelheiten finden Sie in unserer Datenschutzrichtlinie.
Wenn Sie unten auf "Einverstanden" klicken, stimmen Sie unserer Datenschutzrichtlinie und unseren Datenverarbeitungs- und Cookie-Praktiken wie dort beschrieben zu. Sie erkennen außerdem an, dass dieses Forum möglicherweise außerhalb Ihres Landes gehostet wird und Sie der Erhebung, Speicherung und Verarbeitung Ihrer Daten in dem Land, in dem dieses Forum gehostet wird, zustimmen.
Kommentar