From 996d84e98b13284b641d3352fbc8549a4391c832 Mon Sep 17 00:00:00 2001 From: Manuel Schneider Date: Fri, 18 Oct 2013 11:36:55 +0200 Subject: [beamer] Changed build from prototype to qt binary --- remote/modules/beamer/beamer.build | 19 ++++++++++--------- remote/modules/beamer/beamer.conf | 6 +++++- remote/modules/beamer/beamer.conf.debian | 5 +++-- remote/modules/beamer/beamer.conf.opensuse | 6 ------ remote/modules/beamer/beamer.conf.scientific | 6 ------ remote/modules/beamer/beamer.conf.ubuntu | 5 +++-- 6 files changed, 21 insertions(+), 26 deletions(-) delete mode 100644 remote/modules/beamer/beamer.conf.opensuse delete mode 100644 remote/modules/beamer/beamer.conf.scientific (limited to 'remote') diff --git a/remote/modules/beamer/beamer.build b/remote/modules/beamer/beamer.build index bd189b66..49fcfe1d 100644 --- a/remote/modules/beamer/beamer.build +++ b/remote/modules/beamer/beamer.build @@ -1,17 +1,18 @@ +#!/bin/bash + fetch_source() { - : + git clone "${REQUIRED_GIT}" src } build() { - COPYLIST="list_dpkg_output" - [ -e "$COPYLIST" ] && rm "$COPYLIST" - - list_packet_files >> "$COPYLIST" - tarcopy "$(cat "$COPYLIST" | sort -u)" "${MODULE_BUILD_DIR}" + local SRCDIR="${MODULE_DIR}/src/" - return 0 + mkdir -p "$MODULE_BUILD_DIR/opt/openslx/bin" + cd "${MODULE_BUILD_DIR}/opt/openslx/bin" || perror "Could not cd!" + pinfo "Running qmake" + qmake-qt4 "$SRCDIR/src/beamergui.pro" -r -spec linux-g++ || perror "'qmake' failed." + pinfo "Running make" + make || perror "'make' failed." } - post_copy() { - : } diff --git a/remote/modules/beamer/beamer.conf b/remote/modules/beamer/beamer.conf index 16f54fcf..4d497389 100644 --- a/remote/modules/beamer/beamer.conf +++ b/remote/modules/beamer/beamer.conf @@ -1,3 +1,7 @@ +REQUIRED_GIT="git://git.openslx.org/openslx-ng/beamergui.git" REQUIRED_BINARIES=" - zenity + beamergui " +REQUIRED_SYSTEM_FILES=" +" + diff --git a/remote/modules/beamer/beamer.conf.debian b/remote/modules/beamer/beamer.conf.debian index 459dd079..525245fb 100644 --- a/remote/modules/beamer/beamer.conf.debian +++ b/remote/modules/beamer/beamer.conf.debian @@ -1,6 +1,7 @@ REQUIRED_INSTALLED_PACKAGES=" - zenity +libqt4-dev +libxrandr-dev " REQUIRED_CONTENT_PACKAGES=" - zenity +libxrandr2 " diff --git a/remote/modules/beamer/beamer.conf.opensuse b/remote/modules/beamer/beamer.conf.opensuse deleted file mode 100644 index 459dd079..00000000 --- a/remote/modules/beamer/beamer.conf.opensuse +++ /dev/null @@ -1,6 +0,0 @@ -REQUIRED_INSTALLED_PACKAGES=" - zenity -" -REQUIRED_CONTENT_PACKAGES=" - zenity -" diff --git a/remote/modules/beamer/beamer.conf.scientific b/remote/modules/beamer/beamer.conf.scientific deleted file mode 100644 index 459dd079..00000000 --- a/remote/modules/beamer/beamer.conf.scientific +++ /dev/null @@ -1,6 +0,0 @@ -REQUIRED_INSTALLED_PACKAGES=" - zenity -" -REQUIRED_CONTENT_PACKAGES=" - zenity -" diff --git a/remote/modules/beamer/beamer.conf.ubuntu b/remote/modules/beamer/beamer.conf.ubuntu index 459dd079..525245fb 100644 --- a/remote/modules/beamer/beamer.conf.ubuntu +++ b/remote/modules/beamer/beamer.conf.ubuntu @@ -1,6 +1,7 @@ REQUIRED_INSTALLED_PACKAGES=" - zenity +libqt4-dev +libxrandr-dev " REQUIRED_CONTENT_PACKAGES=" - zenity +libxrandr2 " -- cgit v1.2.3-55-g7522 From e870ff0ebdff769278ba4db259f3493908b323f6 Mon Sep 17 00:00:00 2001 From: Manuel Schneider Date: Fri, 18 Oct 2013 11:40:51 +0200 Subject: [beamergui] Renamed module. --- remote/modules/beamer/TODO | 2 - remote/modules/beamer/beamer.build | 18 - remote/modules/beamer/beamer.conf | 7 - remote/modules/beamer/beamer.conf.debian | 7 - remote/modules/beamer/beamer.conf.ubuntu | 7 - .../data/opt/openslx/bin/screenRecognizer.sh | 418 --------------------- remote/modules/beamergui/TODO | 2 + remote/modules/beamergui/beamergui.build | 18 + remote/modules/beamergui/beamergui.conf | 7 + remote/modules/beamergui/beamergui.conf.debian | 7 + remote/modules/beamergui/beamergui.conf.ubuntu | 7 + .../data/opt/openslx/bin/screenRecognizer.sh | 418 +++++++++++++++++++++ 12 files changed, 459 insertions(+), 459 deletions(-) delete mode 100644 remote/modules/beamer/TODO delete mode 100644 remote/modules/beamer/beamer.build delete mode 100644 remote/modules/beamer/beamer.conf delete mode 100644 remote/modules/beamer/beamer.conf.debian delete mode 100644 remote/modules/beamer/beamer.conf.ubuntu delete mode 100755 remote/modules/beamer/data/opt/openslx/bin/screenRecognizer.sh create mode 100644 remote/modules/beamergui/TODO create mode 100644 remote/modules/beamergui/beamergui.build create mode 100644 remote/modules/beamergui/beamergui.conf create mode 100644 remote/modules/beamergui/beamergui.conf.debian create mode 100644 remote/modules/beamergui/beamergui.conf.ubuntu create mode 100755 remote/modules/beamergui/data/opt/openslx/bin/screenRecognizer.sh (limited to 'remote') diff --git a/remote/modules/beamer/TODO b/remote/modules/beamer/TODO deleted file mode 100644 index 651759eb..00000000 --- a/remote/modules/beamer/TODO +++ /dev/null @@ -1,2 +0,0 @@ -Zenity durch eigen QT app ersetzen - diff --git a/remote/modules/beamer/beamer.build b/remote/modules/beamer/beamer.build deleted file mode 100644 index 49fcfe1d..00000000 --- a/remote/modules/beamer/beamer.build +++ /dev/null @@ -1,18 +0,0 @@ -#!/bin/bash - -fetch_source() { - git clone "${REQUIRED_GIT}" src -} - -build() { - local SRCDIR="${MODULE_DIR}/src/" - - mkdir -p "$MODULE_BUILD_DIR/opt/openslx/bin" - cd "${MODULE_BUILD_DIR}/opt/openslx/bin" || perror "Could not cd!" - pinfo "Running qmake" - qmake-qt4 "$SRCDIR/src/beamergui.pro" -r -spec linux-g++ || perror "'qmake' failed." - pinfo "Running make" - make || perror "'make' failed." -} -post_copy() { -} diff --git a/remote/modules/beamer/beamer.conf b/remote/modules/beamer/beamer.conf deleted file mode 100644 index 4d497389..00000000 --- a/remote/modules/beamer/beamer.conf +++ /dev/null @@ -1,7 +0,0 @@ -REQUIRED_GIT="git://git.openslx.org/openslx-ng/beamergui.git" -REQUIRED_BINARIES=" - beamergui -" -REQUIRED_SYSTEM_FILES=" -" - diff --git a/remote/modules/beamer/beamer.conf.debian b/remote/modules/beamer/beamer.conf.debian deleted file mode 100644 index 525245fb..00000000 --- a/remote/modules/beamer/beamer.conf.debian +++ /dev/null @@ -1,7 +0,0 @@ -REQUIRED_INSTALLED_PACKAGES=" -libqt4-dev -libxrandr-dev -" -REQUIRED_CONTENT_PACKAGES=" -libxrandr2 -" diff --git a/remote/modules/beamer/beamer.conf.ubuntu b/remote/modules/beamer/beamer.conf.ubuntu deleted file mode 100644 index 525245fb..00000000 --- a/remote/modules/beamer/beamer.conf.ubuntu +++ /dev/null @@ -1,7 +0,0 @@ -REQUIRED_INSTALLED_PACKAGES=" -libqt4-dev -libxrandr-dev -" -REQUIRED_CONTENT_PACKAGES=" -libxrandr2 -" diff --git a/remote/modules/beamer/data/opt/openslx/bin/screenRecognizer.sh b/remote/modules/beamer/data/opt/openslx/bin/screenRecognizer.sh deleted file mode 100755 index feabe7ee..00000000 --- a/remote/modules/beamer/data/opt/openslx/bin/screenRecognizer.sh +++ /dev/null @@ -1,418 +0,0 @@ -#! /bin/bash - -RES1610=(1920x1200 1680x1050 1440x900 1280x800 ) -RES169=(1920x1080 1600x900 1280x720 ) -RES54=(1280x1024 ) -RES43=(1280x960 1152x864 1024x768 ) -ALLRES=( ${RES1610[@]} ${RES169[@]} ${RES54[@]} ${RES43[@]} ) - -echo -e "\e[32mSupported resolutions\e[0m" -for i in ${ALLRES[@]} -do - echo -n "$i - " - echo "scale=2; $i" | tr "x" "/" | bc -l -done - -# Get initial data -XRANDR=$( xrandr ) -XRANDRV=$( xrandr --verbose ) - -# Get the connected outputs -declare -a OUTPUTNAMES -while read line; do - OUTPUTNAMES+=("$(echo "$line" | grep -o "^\S*" )") -done < <( echo "$XRANDR" | grep -i " connected" ) -echo -e "Connected outputs: \e[32m${OUTPUTNAMES[@]}\e[0m" - - -if [ ${#OUTPUTNAMES[@]} -eq 1 ]; then - - - # In case of one connected output - xrandr --auto - exit - - -elif [ ${#OUTPUTNAMES[@]} -eq 2 ]; then - - - # In case of two connected outputs - # If one of the two connected outputs is a beamer, based on the assumption - # that a beamer can not output a reasonable dimension. - if ! ( echo "$XRANDR" | egrep "^${OUTPUTNAMES[0]}.*[[:digit:]]{2,}mm x [[:digit:]]{2,}mm" > /dev/null \ - && echo "$XRANDR" | egrep "^${OUTPUTNAMES[1]}.*[[:digit:]]{2,}mm x [[:digit:]]{2,}mm" > /dev/null ); then - - - # If one scree is a beamer. First check which one is the BEAMER - if [[ -z "$(echo "$XRANDR" | egrep "^${OUTPUTNAMES[0]}.*[[:digit:]]{2,}mm x [[:digit:]]{2,}mm")" ]] - then BEAMER=0; else BEAMER=1; fi - echo -ne "${OUTPUTNAMES[$BEAMER]} is a beamer. " - - - # Get the supported modes of the outputs - # Get resolutions of output #0 - for RES in $( echo "$XRANDR" | grep -Pzo \ - "(?s)^${OUTPUTNAMES[0]} connected\N*\n(\t+\N*\n)*(\ +\N*\n)*" \ - | egrep -o "\ \ [[:digit:]]+x[[:digit:]]+" ); do - OUTPUT0+=("$RES"); - done - echo -e "\e[31mOUTPUT0:\e[0m" - for i in ${OUTPUT0[@]}; do echo "$i";done - - # Get resolutions of output #1 - for RES in $( echo "$XRANDR" | grep -Pzo \ - "(?s)^${OUTPUTNAMES[1]} connected\N*\n(\t+\N*\n)*(\ +\N*\n)*" \ - | egrep -o "\ \ [[:digit:]]+x[[:digit:]]+" ); do - OUTPUT1+=("$RES"); - done - echo -e "\e[31mOUTPUT1:\e[0m" - for i in ${OUTPUT1[@]}; do echo "$i";done - - - # Find out, if the beamer transmits reliable EDID data. The data in xrandr - # should be reliable if the EDID is present. - if echo "$XRANDRV" | grep -Pzo \ - "^${OUTPUTNAMES[$BEAMER]}\N*\n((\ |\t)+\N*\n)+" \ - | grep EDID > /dev/null ; then - - - echo "EDID present" - - # If the beamer transmits reliable EDID data, get the perfect match - # Presumed the preferred resolution is the native one, get both native - # resolutions - BEAMERPREF=$(echo "$XRANDRV" \ - | grep -Pzo "^${OUTPUTNAMES[$BEAMER]}\N*\n((\ |\t)+\N*\n)+" \ - | grep preferred | awk '{print $1}') - echo -e "\e[32mBEAMERPREF\e[0m=$BEAMERPREF" - MONITORPREF=$(echo "$XRANDRV" \ - | grep -Pzo "^${OUTPUTNAMES[$((1-$BEAMER))]}\N*\n((\ |\t)+\N*\n)+" \ - | grep preferred | awk '{print $1}') - echo -e "\e[32mMONITORPREF\e[0m=$MONITORPREF" - - # Compute the optimal resolution for presentations - # which is min( 1280, M.X, B.X ) - OPTIMALRESX=$(( ${MONITORPREF%x*} <= ${BEAMERPREF%x*} ? \ - ${MONITORPREF%x*} : ${BEAMERPREF%x*} )) - OPTIMALRESX=$(( $OPTIMALRESX <= 1280 ? $OPTIMALRESX : 1280 )) - AR=$(echo "$BEAMERPREF" | tr "x" "/" | bc -l) # "scale=2; 5/4" - OPTIMALRESY=$(echo "scale=0; $OPTIMALRESX / $(echo "$AR" | bc -l)" | bc -l) - OPTIMALRES="$OPTIMALRESX"x"$OPTIMALRESY" - echo -e "\e[32mOPTIMALRESX\e[0m=$OPTIMALRESX" - echo -e "\e[32mOPTIMALRESY\e[0m=$OPTIMALRESY" - echo -e "\e[32mOPTIMALRES\e[0m=$OPTIMALRES" - echo -e "\e[32mAR\e[0m=$AR" - - # Generate a list of common resolutions (Greedy fun) - for RES1 in ${OUTPUT0[@]}; do - for RES2 in ${OUTPUT1[@]}; do - if [ $RES1 = $RES2 ]; then - COMMONMATCHES+=("$RES1") - fi - done - done - echo -e "\e[31mCOMMONMATCHES:\e[0m" - for i in "${COMMONMATCHES[@]}" - do echo "$i - $( echo "scale=2; $i" | tr "x" "/" | bc -l)" - done - - # Compute the additional resolutions - for i in ${ALLRES[@]}; do - if (( $( echo "$i == $AR" | tr "x" "/" | bc -l ) )); then - if echo ${COMMONMATCHES[@]} | grep "$i" > /dev/null; then - if [ "$OPTIMALRES" = "$i" ]; then continue; fi - ADDITIONALRES+=("$i") - else - xrandr \ - --addmode ${OUTPUTNAMES[$((1-$BEAMER))]} "$i" \ - --addmode ${OUTPUTNAMES[$BEAMER]} "$i" \ - && ADDITIONALRES+=("$i") - fi - fi - done - echo -e "\e[31mADDITIONALRES:\e[0m" - for i in "${ADDITIONALRES[@]}" - do echo "$i - $( echo "scale=2; ${i% *}" | tr "x" "/" | bc -l)" - done - - # Apply the optimal resolution - xrandr \ - --addmode ${OUTPUTNAMES[$((1-$BEAMER))]} $OPTIMALRES \ - --addmode ${OUTPUTNAMES[$BEAMER]} $OPTIMALRES; - xrandr \ - --output ${OUTPUTNAMES[$((1-$BEAMER))]} --mode $OPTIMALRES \ - --primary \ - --output ${OUTPUTNAMES[$BEAMER]} --mode $OPTIMALRES \ - --same-as ${OUTPUTNAMES[$((1-$BEAMER))]} - - # Ask for a resolution - CHOSENRES=$( zenity --list \ - --title="Resolution Chooser" \ - --ok-label="Apply" \ - --cancel-label="Cancel" \ - --text "Choose a resolution\nor press cancel." \ - --width=300 --height=400 \ - --column="Resolution" "$OPTIMALRES (optimal)" "${ADDITIONALRES[@]}" \ - --print-column=1 \ - --hide-header ) || exit - echo "Chosen resolution $CHOSENRES" - - - - # Apply resolution - xrandr \ - --output ${OUTPUTNAMES[0]} --mode ${CHOSENRES%% *} \ - --output ${OUTPUTNAMES[1]} --mode ${CHOSENRES%% *} \ - --same-as ${OUTPUTNAMES[0]} - - - # If beamer DOES NOT transmit reliable EDID data - else - - echo "EDID is not present" - - # Compute the additional resolutions - for i in ${ALLRES[@]}; do - if ! xrandr \ - --addmode ${OUTPUTNAMES[$((1-$BEAMER))]} "$i" \ - --addmode ${OUTPUTNAMES[$BEAMER]} "$i"; then - if xrandr --newmode \ - "$i" $( cvt $(echo "$i" | tr "x" " " ) \ - | grep Modeline | cut -d " " -f3-); then - if ! xrandr --dryrun \ - --addmode ${OUTPUTNAMES[$((1-$BEAMER))]} "$i" \ - --addmode ${OUTPUTNAMES[$BEAMER]} "$i"; then - continue; - fi - else - continue - fi - fi - AR=$(echo "scale=2; $i" | tr "x" "/" | bc -l ) - case $AR in - "1.60") - ADDITIONALRES+=("$i (16:10)") - ;; - "1.77") - ADDITIONALRES+=("$i (16:9)") - ;; - "1.25") - ADDITIONALRES+=("$i (5:4)") - ;; - "1.33") - ADDITIONALRES+=("$i (4:3)") - ;; - *) - esac - done - echo -e "\e[31mADDITIONALRES:\e[0m" - for i in "${ADDITIONALRES[@]}" - do echo "$i - $( echo "scale=2; ${i% *}" | tr "x" "/" | bc -l)" - done - - TEXT="The connected beamer did not transmit reliable configuration\n" \ - TEXT+="data. To avoid clipping or streching, it is recommended to\n" \ - TEXT+="choose a resolution equal to the aspect ratio of the native\n" \ - TEXT+="resolution of the beamer." \ - - # Ask for a resolution - CHOSENRES=$( zenity --list \ - --title="Resolution Chooser" \ - --ok-label="Apply" \ - --cancel-label="Cancel" \ - --text "$TEXT" \ - --width=300 --height=400 \ - --column="Resolution" "${ADDITIONALRES[@]}" \ - --print-column=1 \ - --hide-header ) || exit - echo "Chosen resolution ${CHOSENRES%% *}" - - # Apply resolution - xrandr \ - --addmode ${OUTPUTNAMES[0]} ${CHOSENRES%% *} \ - --addmode ${OUTPUTNAMES[1]} ${CHOSENRES%% *}; - xrandr \ - --output ${OUTPUTNAMES[$((1-$BEAMER))]} --mode ${CHOSENRES%% *} \ - --primary \ - --output ${OUTPUTNAMES[$BEAMER]} --mode ${CHOSENRES%% *} \ - --same-as ${OUTPUTNAMES[$((1-$BEAMER))]} - - fi - else - - - # If neiter of the outputs is a beamer (likely dualscreen - # setup) just apply preferred settings - echo "no beamer" - xrandr \ - --output ${OUTPUTNAMES[0]} --preferred \ - --output ${OUTPUTNAMES[1]} --preferred \ - --right-of ${OUTPUTNAMES[0]} - - - fi - -else - # If there are more than 3 outputs - # its up to the user. Quit. - exit; -fi - - - - # OLD APPROACH - # Find out, if the beamer transmits reliable EDID data. - # For the first assumption the beamer transmits reliable data, if in - # Xorg.log '*EDID for output $BEAMER*' is succeded by '*Manufacturer*' - # and '*Year*'. - # BEAMERELIABILITY=1 - # while read line - # do - # if echo $line | grep "EDID for output ${OUTPUTNAMES[$BEAMER]}" > /dev/null - # then - # read line - # if echo $line | grep "Manufacturer" > /dev/null - # then - # BEAMERELIABILITY=0 - # break - # fi - # fi - # done < "/var/log/Xorg.0.log" - - - - - - -# # if one of the outputs is a beamer, offer a choice -# declare -a OUTPUT1 -# declare -a OUTPUT2 -# - -# # Make sure the desired resolutions are existent -# # FULLHD -# #for in -# -# -# ####################################DEBUG################################### -# echo ${NATIVEMATCHES[@]} -# echo -e "\e[31m--------------------------------\e[0m" -# ############################################################################ -# -# # Add some experimental standard resolutions, which the outputs should be -# # able to display via interpolation. -# declare -a EXPERIMENTALMATCHES=("1920x1080 (16:9)" "1366x768 (16:9)" "1280x960 (4:3)" "1280x720 (16:9)") -# -# ## Form an interactive dialog to suit the users preferred resolution -# #zenity --question \ -# # --timeout=10 \ -# # --text="Do you want to change the resolution?" \ -# # --ok-label "Yes" \ -# # --cancel-label "No" -# -#OfferChoice() -#{ -# false; while [ "$?" != 0 ] #bash do{...}while(...) imitation -# do -# -# -# CHOSENRES=$( zenity --list \ -# --title="Resolution Chooser" \ -# --ok-label="Apply" \ -# --cancel-label="Cancel" \ -# --text "Choose a resolution\nor press cancel." \ -# --width=300 --height=400 \ -# --column="Resolution" 1920x1080 1366x768 1280x720 1024x768 \ -# --print-column=1 \ -# --hide-header ) -# -# ####################################DEBUG################################# -# echo "Chosen resolution $CHOSENRES" -# echo -e "\e[31m--------------------------------\e[0m" -# ########################################################################## -# -# if [ $? != 0 ] -# then -# break -# fi -# -# xrandr \ -# --output ${OUTPUTNAMES[0]} --mode ${CHOSENRES%% *} \ -# --output ${OUTPUTNAMES[1]} --mode ${CHOSENRES%% *} \ -# --same-as ${OUTPUTNAMES[0]} -# -# # in case the mode is unknown -# if [ $? != 0 ] -# then -# xrandr \ -# --addmode ${OUTPUTNAMES[0]} ${CHOSENRES%% *} \ -# --addmode ${OUTPUTNAMES[1]} ${CHOSENRES%% *} -# xrandr \ -# --output ${OUTPUTNAMES[0]} --mode ${CHOSENRES%% *} --primary \ -# --output ${OUTPUTNAMES[1]} --mode ${CHOSENRES%% *} --same-as ${OUTPUTNAMES[0]} -# -# #CVT="$(cvt $(echo ${CHOSENRES%% *} | cut -d " " -f1 | tr "x" " ") | grep Modeline)" -# #MODENAME=echo $CVT | cut -d " " -f2) -# #MODELINE=echo $CVT | cut -d " " -f3-) -# fi -# -# zenity --question \ -# --text="Do you want to stay with this resolution?" \ -# --ok-label "Yes" \ -# --cancel-label "No" -# -# # In case of timeout -# #if [ $? -eq 5]; then ;fi -# -# done -#} -# # If the beamer fits in the monitor, teach the monitor the preferred -# # mode of the beamer -# xrandr --addmode ${OUTPUTNAMES[$((1-$BEAMER))]} $BEAMERPREF -# xrandr --output ${OUTPUTNAMES[$((1-$BEAMER))]} \ -# --mode $BEAMERPREF \ -# --primary \ -# --output ${OUTPUTNAMES[$BEAMER]} \ -# --mode $BEAMERPREF \ -# --same-as ${OUTPUTNAMES[$((1-$BEAMER))]} -# echo -e "\e[32mPERFECTMATCH\e[0m=$BEAMERPREF" -# -# # If the monitor fits in the beamer, teach the beamer the preferred -# # mode of the monitor -# xrandr --addmode ${OUTPUTNAMES[$BEAMER]} $MONITORPREF -# xrandr --output ${OUTPUTNAMES[$((1-$BEAMER))]} \ -# --mode $MONITORPREF \ -# --primary \ -# --output ${OUTPUTNAMES[$BEAMER]} \ -# --mode $MONITORPREF \ -# --same-as ${OUTPUTNAMES[$((1-$BEAMER))]} -# -# -# -# -# -# Offer a mode selection -# 1920x1080, 1366x768, 1280x800 and 1024x800 have to be available. -# Check if the TFT supports the resolution -# if echo "$XRANDRV" \ -# | grep -Pzo "^${OUTPUTNAMES[$((1-$BEAMER))]}\N*\n((\ |\t)+\N*\n)+" \ -# | grep $MODE > /dev/null -# then -# -# # If so, just assign the beamers preferred resolution to the TFT -# xrandr \ -# --output ${OUTPUTNAMES[0]} --mode $MODE \ -# --output ${OUTPUTNAMES[1]} --mode $MODE \ -# --same-as ${OUTPUTNAMES[0]} -# else -# -# # If not, teach the TFT the mode -# xrandr \ -# --addmode ${OUTPUTNAMES[$((1-$BEAMER))]} $MODE -# --output ${OUTPUTNAMES[0]} --mode $MODE \ -# --output ${OUTPUTNAMES[1]} --mode $MODE \ -# --same-as ${OUTPUTNAMES[0]} -# fi -# -# #OfferChoice -# #echo "Offered choice" diff --git a/remote/modules/beamergui/TODO b/remote/modules/beamergui/TODO new file mode 100644 index 00000000..651759eb --- /dev/null +++ b/remote/modules/beamergui/TODO @@ -0,0 +1,2 @@ +Zenity durch eigen QT app ersetzen + diff --git a/remote/modules/beamergui/beamergui.build b/remote/modules/beamergui/beamergui.build new file mode 100644 index 00000000..49fcfe1d --- /dev/null +++ b/remote/modules/beamergui/beamergui.build @@ -0,0 +1,18 @@ +#!/bin/bash + +fetch_source() { + git clone "${REQUIRED_GIT}" src +} + +build() { + local SRCDIR="${MODULE_DIR}/src/" + + mkdir -p "$MODULE_BUILD_DIR/opt/openslx/bin" + cd "${MODULE_BUILD_DIR}/opt/openslx/bin" || perror "Could not cd!" + pinfo "Running qmake" + qmake-qt4 "$SRCDIR/src/beamergui.pro" -r -spec linux-g++ || perror "'qmake' failed." + pinfo "Running make" + make || perror "'make' failed." +} +post_copy() { +} diff --git a/remote/modules/beamergui/beamergui.conf b/remote/modules/beamergui/beamergui.conf new file mode 100644 index 00000000..4d497389 --- /dev/null +++ b/remote/modules/beamergui/beamergui.conf @@ -0,0 +1,7 @@ +REQUIRED_GIT="git://git.openslx.org/openslx-ng/beamergui.git" +REQUIRED_BINARIES=" + beamergui +" +REQUIRED_SYSTEM_FILES=" +" + diff --git a/remote/modules/beamergui/beamergui.conf.debian b/remote/modules/beamergui/beamergui.conf.debian new file mode 100644 index 00000000..525245fb --- /dev/null +++ b/remote/modules/beamergui/beamergui.conf.debian @@ -0,0 +1,7 @@ +REQUIRED_INSTALLED_PACKAGES=" +libqt4-dev +libxrandr-dev +" +REQUIRED_CONTENT_PACKAGES=" +libxrandr2 +" diff --git a/remote/modules/beamergui/beamergui.conf.ubuntu b/remote/modules/beamergui/beamergui.conf.ubuntu new file mode 100644 index 00000000..525245fb --- /dev/null +++ b/remote/modules/beamergui/beamergui.conf.ubuntu @@ -0,0 +1,7 @@ +REQUIRED_INSTALLED_PACKAGES=" +libqt4-dev +libxrandr-dev +" +REQUIRED_CONTENT_PACKAGES=" +libxrandr2 +" diff --git a/remote/modules/beamergui/data/opt/openslx/bin/screenRecognizer.sh b/remote/modules/beamergui/data/opt/openslx/bin/screenRecognizer.sh new file mode 100755 index 00000000..feabe7ee --- /dev/null +++ b/remote/modules/beamergui/data/opt/openslx/bin/screenRecognizer.sh @@ -0,0 +1,418 @@ +#! /bin/bash + +RES1610=(1920x1200 1680x1050 1440x900 1280x800 ) +RES169=(1920x1080 1600x900 1280x720 ) +RES54=(1280x1024 ) +RES43=(1280x960 1152x864 1024x768 ) +ALLRES=( ${RES1610[@]} ${RES169[@]} ${RES54[@]} ${RES43[@]} ) + +echo -e "\e[32mSupported resolutions\e[0m" +for i in ${ALLRES[@]} +do + echo -n "$i - " + echo "scale=2; $i" | tr "x" "/" | bc -l +done + +# Get initial data +XRANDR=$( xrandr ) +XRANDRV=$( xrandr --verbose ) + +# Get the connected outputs +declare -a OUTPUTNAMES +while read line; do + OUTPUTNAMES+=("$(echo "$line" | grep -o "^\S*" )") +done < <( echo "$XRANDR" | grep -i " connected" ) +echo -e "Connected outputs: \e[32m${OUTPUTNAMES[@]}\e[0m" + + +if [ ${#OUTPUTNAMES[@]} -eq 1 ]; then + + + # In case of one connected output + xrandr --auto + exit + + +elif [ ${#OUTPUTNAMES[@]} -eq 2 ]; then + + + # In case of two connected outputs + # If one of the two connected outputs is a beamer, based on the assumption + # that a beamer can not output a reasonable dimension. + if ! ( echo "$XRANDR" | egrep "^${OUTPUTNAMES[0]}.*[[:digit:]]{2,}mm x [[:digit:]]{2,}mm" > /dev/null \ + && echo "$XRANDR" | egrep "^${OUTPUTNAMES[1]}.*[[:digit:]]{2,}mm x [[:digit:]]{2,}mm" > /dev/null ); then + + + # If one scree is a beamer. First check which one is the BEAMER + if [[ -z "$(echo "$XRANDR" | egrep "^${OUTPUTNAMES[0]}.*[[:digit:]]{2,}mm x [[:digit:]]{2,}mm")" ]] + then BEAMER=0; else BEAMER=1; fi + echo -ne "${OUTPUTNAMES[$BEAMER]} is a beamer. " + + + # Get the supported modes of the outputs + # Get resolutions of output #0 + for RES in $( echo "$XRANDR" | grep -Pzo \ + "(?s)^${OUTPUTNAMES[0]} connected\N*\n(\t+\N*\n)*(\ +\N*\n)*" \ + | egrep -o "\ \ [[:digit:]]+x[[:digit:]]+" ); do + OUTPUT0+=("$RES"); + done + echo -e "\e[31mOUTPUT0:\e[0m" + for i in ${OUTPUT0[@]}; do echo "$i";done + + # Get resolutions of output #1 + for RES in $( echo "$XRANDR" | grep -Pzo \ + "(?s)^${OUTPUTNAMES[1]} connected\N*\n(\t+\N*\n)*(\ +\N*\n)*" \ + | egrep -o "\ \ [[:digit:]]+x[[:digit:]]+" ); do + OUTPUT1+=("$RES"); + done + echo -e "\e[31mOUTPUT1:\e[0m" + for i in ${OUTPUT1[@]}; do echo "$i";done + + + # Find out, if the beamer transmits reliable EDID data. The data in xrandr + # should be reliable if the EDID is present. + if echo "$XRANDRV" | grep -Pzo \ + "^${OUTPUTNAMES[$BEAMER]}\N*\n((\ |\t)+\N*\n)+" \ + | grep EDID > /dev/null ; then + + + echo "EDID present" + + # If the beamer transmits reliable EDID data, get the perfect match + # Presumed the preferred resolution is the native one, get both native + # resolutions + BEAMERPREF=$(echo "$XRANDRV" \ + | grep -Pzo "^${OUTPUTNAMES[$BEAMER]}\N*\n((\ |\t)+\N*\n)+" \ + | grep preferred | awk '{print $1}') + echo -e "\e[32mBEAMERPREF\e[0m=$BEAMERPREF" + MONITORPREF=$(echo "$XRANDRV" \ + | grep -Pzo "^${OUTPUTNAMES[$((1-$BEAMER))]}\N*\n((\ |\t)+\N*\n)+" \ + | grep preferred | awk '{print $1}') + echo -e "\e[32mMONITORPREF\e[0m=$MONITORPREF" + + # Compute the optimal resolution for presentations + # which is min( 1280, M.X, B.X ) + OPTIMALRESX=$(( ${MONITORPREF%x*} <= ${BEAMERPREF%x*} ? \ + ${MONITORPREF%x*} : ${BEAMERPREF%x*} )) + OPTIMALRESX=$(( $OPTIMALRESX <= 1280 ? $OPTIMALRESX : 1280 )) + AR=$(echo "$BEAMERPREF" | tr "x" "/" | bc -l) # "scale=2; 5/4" + OPTIMALRESY=$(echo "scale=0; $OPTIMALRESX / $(echo "$AR" | bc -l)" | bc -l) + OPTIMALRES="$OPTIMALRESX"x"$OPTIMALRESY" + echo -e "\e[32mOPTIMALRESX\e[0m=$OPTIMALRESX" + echo -e "\e[32mOPTIMALRESY\e[0m=$OPTIMALRESY" + echo -e "\e[32mOPTIMALRES\e[0m=$OPTIMALRES" + echo -e "\e[32mAR\e[0m=$AR" + + # Generate a list of common resolutions (Greedy fun) + for RES1 in ${OUTPUT0[@]}; do + for RES2 in ${OUTPUT1[@]}; do + if [ $RES1 = $RES2 ]; then + COMMONMATCHES+=("$RES1") + fi + done + done + echo -e "\e[31mCOMMONMATCHES:\e[0m" + for i in "${COMMONMATCHES[@]}" + do echo "$i - $( echo "scale=2; $i" | tr "x" "/" | bc -l)" + done + + # Compute the additional resolutions + for i in ${ALLRES[@]}; do + if (( $( echo "$i == $AR" | tr "x" "/" | bc -l ) )); then + if echo ${COMMONMATCHES[@]} | grep "$i" > /dev/null; then + if [ "$OPTIMALRES" = "$i" ]; then continue; fi + ADDITIONALRES+=("$i") + else + xrandr \ + --addmode ${OUTPUTNAMES[$((1-$BEAMER))]} "$i" \ + --addmode ${OUTPUTNAMES[$BEAMER]} "$i" \ + && ADDITIONALRES+=("$i") + fi + fi + done + echo -e "\e[31mADDITIONALRES:\e[0m" + for i in "${ADDITIONALRES[@]}" + do echo "$i - $( echo "scale=2; ${i% *}" | tr "x" "/" | bc -l)" + done + + # Apply the optimal resolution + xrandr \ + --addmode ${OUTPUTNAMES[$((1-$BEAMER))]} $OPTIMALRES \ + --addmode ${OUTPUTNAMES[$BEAMER]} $OPTIMALRES; + xrandr \ + --output ${OUTPUTNAMES[$((1-$BEAMER))]} --mode $OPTIMALRES \ + --primary \ + --output ${OUTPUTNAMES[$BEAMER]} --mode $OPTIMALRES \ + --same-as ${OUTPUTNAMES[$((1-$BEAMER))]} + + # Ask for a resolution + CHOSENRES=$( zenity --list \ + --title="Resolution Chooser" \ + --ok-label="Apply" \ + --cancel-label="Cancel" \ + --text "Choose a resolution\nor press cancel." \ + --width=300 --height=400 \ + --column="Resolution" "$OPTIMALRES (optimal)" "${ADDITIONALRES[@]}" \ + --print-column=1 \ + --hide-header ) || exit + echo "Chosen resolution $CHOSENRES" + + + + # Apply resolution + xrandr \ + --output ${OUTPUTNAMES[0]} --mode ${CHOSENRES%% *} \ + --output ${OUTPUTNAMES[1]} --mode ${CHOSENRES%% *} \ + --same-as ${OUTPUTNAMES[0]} + + + # If beamer DOES NOT transmit reliable EDID data + else + + echo "EDID is not present" + + # Compute the additional resolutions + for i in ${ALLRES[@]}; do + if ! xrandr \ + --addmode ${OUTPUTNAMES[$((1-$BEAMER))]} "$i" \ + --addmode ${OUTPUTNAMES[$BEAMER]} "$i"; then + if xrandr --newmode \ + "$i" $( cvt $(echo "$i" | tr "x" " " ) \ + | grep Modeline | cut -d " " -f3-); then + if ! xrandr --dryrun \ + --addmode ${OUTPUTNAMES[$((1-$BEAMER))]} "$i" \ + --addmode ${OUTPUTNAMES[$BEAMER]} "$i"; then + continue; + fi + else + continue + fi + fi + AR=$(echo "scale=2; $i" | tr "x" "/" | bc -l ) + case $AR in + "1.60") + ADDITIONALRES+=("$i (16:10)") + ;; + "1.77") + ADDITIONALRES+=("$i (16:9)") + ;; + "1.25") + ADDITIONALRES+=("$i (5:4)") + ;; + "1.33") + ADDITIONALRES+=("$i (4:3)") + ;; + *) + esac + done + echo -e "\e[31mADDITIONALRES:\e[0m" + for i in "${ADDITIONALRES[@]}" + do echo "$i - $( echo "scale=2; ${i% *}" | tr "x" "/" | bc -l)" + done + + TEXT="The connected beamer did not transmit reliable configuration\n" \ + TEXT+="data. To avoid clipping or streching, it is recommended to\n" \ + TEXT+="choose a resolution equal to the aspect ratio of the native\n" \ + TEXT+="resolution of the beamer." \ + + # Ask for a resolution + CHOSENRES=$( zenity --list \ + --title="Resolution Chooser" \ + --ok-label="Apply" \ + --cancel-label="Cancel" \ + --text "$TEXT" \ + --width=300 --height=400 \ + --column="Resolution" "${ADDITIONALRES[@]}" \ + --print-column=1 \ + --hide-header ) || exit + echo "Chosen resolution ${CHOSENRES%% *}" + + # Apply resolution + xrandr \ + --addmode ${OUTPUTNAMES[0]} ${CHOSENRES%% *} \ + --addmode ${OUTPUTNAMES[1]} ${CHOSENRES%% *}; + xrandr \ + --output ${OUTPUTNAMES[$((1-$BEAMER))]} --mode ${CHOSENRES%% *} \ + --primary \ + --output ${OUTPUTNAMES[$BEAMER]} --mode ${CHOSENRES%% *} \ + --same-as ${OUTPUTNAMES[$((1-$BEAMER))]} + + fi + else + + + # If neiter of the outputs is a beamer (likely dualscreen + # setup) just apply preferred settings + echo "no beamer" + xrandr \ + --output ${OUTPUTNAMES[0]} --preferred \ + --output ${OUTPUTNAMES[1]} --preferred \ + --right-of ${OUTPUTNAMES[0]} + + + fi + +else + # If there are more than 3 outputs + # its up to the user. Quit. + exit; +fi + + + + # OLD APPROACH + # Find out, if the beamer transmits reliable EDID data. + # For the first assumption the beamer transmits reliable data, if in + # Xorg.log '*EDID for output $BEAMER*' is succeded by '*Manufacturer*' + # and '*Year*'. + # BEAMERELIABILITY=1 + # while read line + # do + # if echo $line | grep "EDID for output ${OUTPUTNAMES[$BEAMER]}" > /dev/null + # then + # read line + # if echo $line | grep "Manufacturer" > /dev/null + # then + # BEAMERELIABILITY=0 + # break + # fi + # fi + # done < "/var/log/Xorg.0.log" + + + + + + +# # if one of the outputs is a beamer, offer a choice +# declare -a OUTPUT1 +# declare -a OUTPUT2 +# + +# # Make sure the desired resolutions are existent +# # FULLHD +# #for in +# +# +# ####################################DEBUG################################### +# echo ${NATIVEMATCHES[@]} +# echo -e "\e[31m--------------------------------\e[0m" +# ############################################################################ +# +# # Add some experimental standard resolutions, which the outputs should be +# # able to display via interpolation. +# declare -a EXPERIMENTALMATCHES=("1920x1080 (16:9)" "1366x768 (16:9)" "1280x960 (4:3)" "1280x720 (16:9)") +# +# ## Form an interactive dialog to suit the users preferred resolution +# #zenity --question \ +# # --timeout=10 \ +# # --text="Do you want to change the resolution?" \ +# # --ok-label "Yes" \ +# # --cancel-label "No" +# +#OfferChoice() +#{ +# false; while [ "$?" != 0 ] #bash do{...}while(...) imitation +# do +# +# +# CHOSENRES=$( zenity --list \ +# --title="Resolution Chooser" \ +# --ok-label="Apply" \ +# --cancel-label="Cancel" \ +# --text "Choose a resolution\nor press cancel." \ +# --width=300 --height=400 \ +# --column="Resolution" 1920x1080 1366x768 1280x720 1024x768 \ +# --print-column=1 \ +# --hide-header ) +# +# ####################################DEBUG################################# +# echo "Chosen resolution $CHOSENRES" +# echo -e "\e[31m--------------------------------\e[0m" +# ########################################################################## +# +# if [ $? != 0 ] +# then +# break +# fi +# +# xrandr \ +# --output ${OUTPUTNAMES[0]} --mode ${CHOSENRES%% *} \ +# --output ${OUTPUTNAMES[1]} --mode ${CHOSENRES%% *} \ +# --same-as ${OUTPUTNAMES[0]} +# +# # in case the mode is unknown +# if [ $? != 0 ] +# then +# xrandr \ +# --addmode ${OUTPUTNAMES[0]} ${CHOSENRES%% *} \ +# --addmode ${OUTPUTNAMES[1]} ${CHOSENRES%% *} +# xrandr \ +# --output ${OUTPUTNAMES[0]} --mode ${CHOSENRES%% *} --primary \ +# --output ${OUTPUTNAMES[1]} --mode ${CHOSENRES%% *} --same-as ${OUTPUTNAMES[0]} +# +# #CVT="$(cvt $(echo ${CHOSENRES%% *} | cut -d " " -f1 | tr "x" " ") | grep Modeline)" +# #MODENAME=echo $CVT | cut -d " " -f2) +# #MODELINE=echo $CVT | cut -d " " -f3-) +# fi +# +# zenity --question \ +# --text="Do you want to stay with this resolution?" \ +# --ok-label "Yes" \ +# --cancel-label "No" +# +# # In case of timeout +# #if [ $? -eq 5]; then ;fi +# +# done +#} +# # If the beamer fits in the monitor, teach the monitor the preferred +# # mode of the beamer +# xrandr --addmode ${OUTPUTNAMES[$((1-$BEAMER))]} $BEAMERPREF +# xrandr --output ${OUTPUTNAMES[$((1-$BEAMER))]} \ +# --mode $BEAMERPREF \ +# --primary \ +# --output ${OUTPUTNAMES[$BEAMER]} \ +# --mode $BEAMERPREF \ +# --same-as ${OUTPUTNAMES[$((1-$BEAMER))]} +# echo -e "\e[32mPERFECTMATCH\e[0m=$BEAMERPREF" +# +# # If the monitor fits in the beamer, teach the beamer the preferred +# # mode of the monitor +# xrandr --addmode ${OUTPUTNAMES[$BEAMER]} $MONITORPREF +# xrandr --output ${OUTPUTNAMES[$((1-$BEAMER))]} \ +# --mode $MONITORPREF \ +# --primary \ +# --output ${OUTPUTNAMES[$BEAMER]} \ +# --mode $MONITORPREF \ +# --same-as ${OUTPUTNAMES[$((1-$BEAMER))]} +# +# +# +# +# +# Offer a mode selection +# 1920x1080, 1366x768, 1280x800 and 1024x800 have to be available. +# Check if the TFT supports the resolution +# if echo "$XRANDRV" \ +# | grep -Pzo "^${OUTPUTNAMES[$((1-$BEAMER))]}\N*\n((\ |\t)+\N*\n)+" \ +# | grep $MODE > /dev/null +# then +# +# # If so, just assign the beamers preferred resolution to the TFT +# xrandr \ +# --output ${OUTPUTNAMES[0]} --mode $MODE \ +# --output ${OUTPUTNAMES[1]} --mode $MODE \ +# --same-as ${OUTPUTNAMES[0]} +# else +# +# # If not, teach the TFT the mode +# xrandr \ +# --addmode ${OUTPUTNAMES[$((1-$BEAMER))]} $MODE +# --output ${OUTPUTNAMES[0]} --mode $MODE \ +# --output ${OUTPUTNAMES[1]} --mode $MODE \ +# --same-as ${OUTPUTNAMES[0]} +# fi +# +# #OfferChoice +# #echo "Offered choice" -- cgit v1.2.3-55-g7522 From ca9f59f63a12895dca9c537f68448ae0c89f03fd Mon Sep 17 00:00:00 2001 From: Manuel Schneider Date: Fri, 18 Oct 2013 11:48:46 +0200 Subject: [beamergui] Changed qtmake-qt4 to qmake --- remote/modules/beamergui/beamergui.build | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'remote') diff --git a/remote/modules/beamergui/beamergui.build b/remote/modules/beamergui/beamergui.build index 49fcfe1d..e27cf0b3 100644 --- a/remote/modules/beamergui/beamergui.build +++ b/remote/modules/beamergui/beamergui.build @@ -10,9 +10,10 @@ build() { mkdir -p "$MODULE_BUILD_DIR/opt/openslx/bin" cd "${MODULE_BUILD_DIR}/opt/openslx/bin" || perror "Could not cd!" pinfo "Running qmake" - qmake-qt4 "$SRCDIR/src/beamergui.pro" -r -spec linux-g++ || perror "'qmake' failed." + qmake "$SRCDIR/src/beamergui.pro" -r -spec linux-g++ || perror "'qmake' failed." pinfo "Running make" make || perror "'make' failed." } post_copy() { + : } -- cgit v1.2.3-55-g7522 From 8eb339d29def19da2426740fea7d3e4da6be02dc Mon Sep 17 00:00:00 2001 From: Manuel Schneider Date: Fri, 18 Oct 2013 11:50:42 +0200 Subject: [beamergui] Fixed link to beamergui module --- remote/targets/stage32/beamer | 1 - remote/targets/stage32/beamergui | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) delete mode 120000 remote/targets/stage32/beamer create mode 120000 remote/targets/stage32/beamergui (limited to 'remote') diff --git a/remote/targets/stage32/beamer b/remote/targets/stage32/beamer deleted file mode 120000 index 0fbeaeca..00000000 --- a/remote/targets/stage32/beamer +++ /dev/null @@ -1 +0,0 @@ -../../modules/beamer/ \ No newline at end of file diff --git a/remote/targets/stage32/beamergui b/remote/targets/stage32/beamergui new file mode 120000 index 00000000..5e863316 --- /dev/null +++ b/remote/targets/stage32/beamergui @@ -0,0 +1 @@ +../../modules/beamergui \ No newline at end of file -- cgit v1.2.3-55-g7522 From 00414cbbf3934cb0fa40bcaf6ac25fe67d2e86c9 Mon Sep 17 00:00:00 2001 From: Manuel Schneider Date: Fri, 18 Oct 2013 16:27:44 +0200 Subject: [cups] Kill LPD when run_virt finishes --- .../modules/vmchooser/data/opt/openslx/scripts/vmchooser-run_virt | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'remote') diff --git a/remote/modules/vmchooser/data/opt/openslx/scripts/vmchooser-run_virt b/remote/modules/vmchooser/data/opt/openslx/scripts/vmchooser-run_virt index 261ef8f5..81f8c2e1 100755 --- a/remote/modules/vmchooser/data/opt/openslx/scripts/vmchooser-run_virt +++ b/remote/modules/vmchooser/data/opt/openslx/scripts/vmchooser-run_virt @@ -428,6 +428,7 @@ if [ "$vtflag" = "1" -a -n "$kvm_module" ]; then modprobe "$kvm_module" fi + # # # # # # Start printer daemon # # # # # # # USER="$(whoami)" SPOOLDIR="/var/spool" @@ -438,6 +439,9 @@ busybox tcpsvd -E 0.0.0.0 5515 \ busybox lpd "$SPOOLDIR" \ sh -c "printergui $USER $SPOOOLDIR/$QUEUE/\$DATAFILE" & +# PID to kill the process +PID_LPD="$!" + # Copy guest configuration (with added information) config.xml to be accessed # via virtual floppy @@ -527,5 +531,9 @@ if [ -n "${POSTRUN}" ]; then eval ${POSTRUN} >/dev/null 2>&1 fi +# Kill LPD +kill $PID_LPD + + cleanexit 0 exit 0 -- cgit v1.2.3-55-g7522 From 380cd0245c9120d44c162cf666f223513fd5045f Mon Sep 17 00:00:00 2001 From: Manuel Schneider Date: Fri, 18 Oct 2013 16:34:30 +0200 Subject: [beamergui] removed libxrandr2 in config --- remote/modules/beamergui/beamergui.conf | 4 +++- remote/modules/beamergui/beamergui.conf.debian | 3 ++- remote/modules/beamergui/beamergui.conf.ubuntu | 3 ++- 3 files changed, 7 insertions(+), 3 deletions(-) (limited to 'remote') diff --git a/remote/modules/beamergui/beamergui.conf b/remote/modules/beamergui/beamergui.conf index 4d497389..da786271 100644 --- a/remote/modules/beamergui/beamergui.conf +++ b/remote/modules/beamergui/beamergui.conf @@ -2,6 +2,8 @@ REQUIRED_GIT="git://git.openslx.org/openslx-ng/beamergui.git" REQUIRED_BINARIES=" beamergui " +REQUIRED_LIBRARIES=" +" REQUIRED_SYSTEM_FILES=" " - +# TODO add libraries diff --git a/remote/modules/beamergui/beamergui.conf.debian b/remote/modules/beamergui/beamergui.conf.debian index 525245fb..ea4cd194 100644 --- a/remote/modules/beamergui/beamergui.conf.debian +++ b/remote/modules/beamergui/beamergui.conf.debian @@ -3,5 +3,6 @@ libqt4-dev libxrandr-dev " REQUIRED_CONTENT_PACKAGES=" -libxrandr2 +libqt4-dev +libxrandr-dev " diff --git a/remote/modules/beamergui/beamergui.conf.ubuntu b/remote/modules/beamergui/beamergui.conf.ubuntu index 525245fb..ea4cd194 100644 --- a/remote/modules/beamergui/beamergui.conf.ubuntu +++ b/remote/modules/beamergui/beamergui.conf.ubuntu @@ -3,5 +3,6 @@ libqt4-dev libxrandr-dev " REQUIRED_CONTENT_PACKAGES=" -libxrandr2 +libqt4-dev +libxrandr-dev " -- cgit v1.2.3-55-g7522 From 3456c9ba1c9b6f2b47cf6de26d14af57f3b593b4 Mon Sep 17 00:00:00 2001 From: Manuel Schneider Date: Fri, 18 Oct 2013 17:19:38 +0200 Subject: [printer] Fixed horrible typo --- remote/modules/vmchooser/data/opt/openslx/scripts/vmchooser-run_virt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'remote') diff --git a/remote/modules/vmchooser/data/opt/openslx/scripts/vmchooser-run_virt b/remote/modules/vmchooser/data/opt/openslx/scripts/vmchooser-run_virt index 81f8c2e1..4a0ba8c6 100755 --- a/remote/modules/vmchooser/data/opt/openslx/scripts/vmchooser-run_virt +++ b/remote/modules/vmchooser/data/opt/openslx/scripts/vmchooser-run_virt @@ -437,7 +437,7 @@ QUEUE="STANDARD" # Start the lpdaemon listening on the given port busybox tcpsvd -E 0.0.0.0 5515 \ busybox lpd "$SPOOLDIR" \ - sh -c "printergui $USER $SPOOOLDIR/$QUEUE/\$DATAFILE" & + sh -c "printergui $USER $SPOOLDIR/$QUEUE/\$DATAFILE" & # PID to kill the process PID_LPD="$!" -- cgit v1.2.3-55-g7522