pastebin - collaborative debugging

pastebin is a collaborative debugging tool allowing you to share and modify code snippets while chatting on IRC, IM or a message board.

This site is developed to XHTML and CSS2 W3C standards. If you see this paragraph, your browser does not support those standards and you need to upgrade. Visit WaSP for a variety of options.

Bash pastebin - collaborative debugging tool View Help


Posted by fluetke on Sat 11 Apr 14:25
report abuse | download | new post

  1. #!/bin/bash
  2. #Hier gehören die eigenen Pfade rein
  3. DRQUEUE_MASTER=127.0.0.1 #URL/IP des Masters
  4. DRQUEUE_INSTALL_PATH=/opt #Installationspfad für drqueue
  5. DRQUEUE_DATA_PATH=/mnt/drqueue #Pfad für die gerenderten Daten(wird per Samba an alle Rechner verteilt)
  6. DRQVERSION=0.64.3 #Zu installierende drqueue-Version
  7. INSTALL_TYPE=MASTER #Typ der Installation (MASTER oder SLAVE)
  8. USERNAME=test #Username für SMB-Mount
  9. PASSWORD=test #Passwort für SMB-Mount
  10.  
  11. #Benötigte Abhängigkeiten installieren:
  12. apt-get -y install scons libgtk2.0-dev g++ gcc python samba smbfs tcsh
  13.  
  14. #Erstmal besorgen wir uns ne funktionsfähige Version
  15. #von drqueue und packen sie aus
  16. cd /usr/src
  17.    wget http://drqueue.org/files/drqueue.$DRQVERSION.tgz
  18.    tar -xzvf drqueue.$DRQVERSION.tgz
  19.  
  20. cd drqueue-$DRQVERSION
  21.    scons PREFIX=$DRQUEUE_INSTALL_PATH install #Dr.Queue installieren
  22.    scons PREFIX=$DRQUEUE_INSTALL_PATH install #Installation wiederholen nach Abbruch
  23.    DRQUEUE_INSTALL_PATH=$DRQUEUE_INSTALL_PATH/drqueue
  24.  
  25. cd $DRQUEUE_INSTALL_PATH
  26.    echo "Bitte ändern Sie im Folgenden die Pfade entsprechend ihrer Konfiguration ab."
  27.    echo -e "\n#Customized Configuration\nlogs=$DRQUEUE_DATA_PATH/logs\ntmp=$DRQUEUE_DATA_PATH/tmp\ndb=$DRQUEUE_INSTALL_PATH/db\nbin=$DRQUEUE_INSTALL_PATH/bin\netc=$DRQUEUE_INSTALL_PATH/etc" >> etc/master.conf
  28.    echo -e "\n#Customized Configuration\nlogs=$DRQUEUE_DATA_PATH/logs\ntmp=$DRQUEUE_DATA_PATH/tmp" >> etc/slave.conf
  29.    echo -e "\n#Customized Configuration\nlogs=$DRQUEUE_DATA_PATH/logs\ntmp=$DRQUEUE_DATA_PATH/tmp\ndb=$DRQUEUE_INSTALL_PATH/db" >> etc/drqman.conf
  30.    
  31.    mkdir $DRQUEUE_DATA_PATH
  32.    chmod a+rwx $DRQUEUE_DATA_PATH
  33.    #Erstellen der Shared Directory auf dem Server,
  34.    #nur wenn Installation auf dem Server läuft.
  35.    if [ "$INSTALL_TYPE" == "MASTER" ] ; then
  36.         cd $DRQUEUE_DATA_PATH
  37.            mkdir etc tmp logs db
  38.            chmod a+rwx etc tmp logs db
  39.         #Gemeinsamen Ordner mit Samba erstellen
  40.         cd /etc/samba
  41.            echo -e "[drqueue]\npath = $DRQUEUE_DATA_PATH\nwritable = yes\npublic = yes\ncomment = dr_queue\navailable = yes\nbrowseable = yes\nguest ok = yes\nforce user = root\ncreate mask = 0777\ndirectory mask = 0777" >> smb.conf
  42.    elif [ "$INSTALL_TYPE" == "SLAVE" ] ; then
  43.         echo "//$DRQUEUE_MASTER/drqueue $DRQUEUE_DATA_PATH smbfs guest,dmask=0777 0 0" >> /etc/fstab
  44.         mount -a
  45.    fi
  46.  
  47.    #Wir wollen das die Variablen beim Einloggen erstellt werden,
  48.    #also rein damit in die .bashrc(für dediziert Slaves/Master ist ein anderes vorgehen erforderlich)
  49.    echo "#Pfade für DRQUEUE" >> $HOME/.bashrc
  50.    echo "export DRQUEUE_DB=$DRQUEUE_DATA_PATH/db" >> $HOME/.bashrc
  51.    echo "export DRQUEUE_LOGS=$DRQUEUE_DATA_PATH/logs" >> $HOME/.bashrc
  52.    echo "export DRQUEUE_ETC=$DRQUEUE_INSTALL_PATH/etc" >> $HOME/.bashrc
  53.    echo "export DRQUEUE_ROOT=$DRQUEUE_INSTALL_PATH" >> $HOME/.bashrc
  54.    echo "export DRQUEUE_TMP=$DRQUEUE_DATA_PATH/tmp" >> $HOME/.bashrc
  55.    echo "export DRQUEUE_MASTER=$DRQUEUE_MASTER" >> $HOME/.bashrc
  56.    echo "export PATH=$PATH:$DRQUEUE_INSTALL_PATH/bin" >> $HOME/.bashrc
  57.  
  58. echo "Installation abgeschlossen, dieser Rechner ist ein $INSTALL_TYPE"

Submit a correction or amendment below (click here to make a fresh posting)
After submitting an amendment, you'll be able to view the differences between the old and new posts easily.

Syntax highlighting:

To highlight particular lines, prefix each line with @@


Remember me so that I can delete my post