├── ATTIC ├── enoch85-testing │ └── ubuntu │ │ ├── history.sh │ │ ├── test_connection.sh │ │ ├── set_trusted_domain.sh │ │ ├── setup_secure_permissions_owncloud.sh │ │ ├── set-interfaces.sh │ │ ├── welcome.sh │ │ ├── owncloud_update.sh │ │ ├── owncloud-self-signed-ssl.conf │ │ ├── Ubuntu14.04.sh │ │ └── startup-script.sh ├── kiwi │ ├── mkvmdk-kiwi.sh │ ├── HOWTO-cert.txt │ ├── vmdk-kiwi.patch │ └── eval-appliance-oc8ee.kiwi └── release-github-py.sh ├── images ├── Bildschirmfoto 2015-11-09 um 10.47.05.png ├── Bildschirmfoto 2015-11-09 um 10.48.40.png ├── Bildschirmfoto 2015-11-09 um 10.57.13.png ├── Bildschirmfoto 2015-11-09 um 10.59.04.png ├── Bildschirmfoto 2015-11-09 um 11.04.11.png ├── Bildschirmfoto 2015-11-09 um 11.09.50.png ├── Bildschirmfoto 2015-11-09 um 11.10.14.png ├── Bildschirmfoto 2015-11-09 um 11.12.47.png ├── Bildschirmfoto 2015-11-09 um 11.13.51.png ├── Bildschirmfoto 2015-11-09 um 11.25.21.png ├── Bildschirmfoto 2015-11-09 um 11.52.51.png ├── Bildschirmfoto 2015-11-09 um 12.01.29.png ├── Bildschirmfoto 2015-11-09 um 12.03.39.png ├── Bildschirmfoto 2015-11-09 um 12.04.08.png ├── Bildschirmfoto 2015-11-09 um 12.04.44.png ├── Bildschirmfoto 2015-11-09 um 12.05.27.png ├── Bildschirmfoto 2015-11-09 um 14.35.44.png ├── Bildschirmfoto 2015-11-09 um 14.35.51.png ├── Bildschirmfoto 2015-11-09 um 14.45.16.png ├── Bildschirmfoto 2015-11-09 um 14.57.29.png └── Bildschirmfoto 2015-11-09 um 14.59.00.png ├── issue_template.md ├── vagrant ├── oc9ce │ ├── wildcard-trusted-domains.config.php │ ├── pull_extra_apps.sh │ ├── set-trusted-domain.sh │ ├── release-dl-oo.sh │ ├── secure-permissions.sh │ ├── patchvmdk.sh │ ├── update-config.php │ ├── change_pass_admin.sh │ ├── release-github.sh │ ├── setup-when-admin.sh │ ├── self-signed-ssl.sh │ ├── install-additional-apps.sh │ ├── convert-from-ovf.sh │ ├── check-init.sh │ └── build-ubuntu-vm.sh └── run.sh ├── README.md └── owncloud_for_beginners.md /ATTIC/enoch85-testing/ubuntu/history.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | cat /dev/null > ~/.bash_history 4 | 5 | exit 0 6 | -------------------------------------------------------------------------------- /images/Bildschirmfoto 2015-11-09 um 10.47.05.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/owncloud-archive/vm/HEAD/images/Bildschirmfoto 2015-11-09 um 10.47.05.png -------------------------------------------------------------------------------- /images/Bildschirmfoto 2015-11-09 um 10.48.40.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/owncloud-archive/vm/HEAD/images/Bildschirmfoto 2015-11-09 um 10.48.40.png -------------------------------------------------------------------------------- /images/Bildschirmfoto 2015-11-09 um 10.57.13.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/owncloud-archive/vm/HEAD/images/Bildschirmfoto 2015-11-09 um 10.57.13.png -------------------------------------------------------------------------------- /images/Bildschirmfoto 2015-11-09 um 10.59.04.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/owncloud-archive/vm/HEAD/images/Bildschirmfoto 2015-11-09 um 10.59.04.png -------------------------------------------------------------------------------- /images/Bildschirmfoto 2015-11-09 um 11.04.11.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/owncloud-archive/vm/HEAD/images/Bildschirmfoto 2015-11-09 um 11.04.11.png -------------------------------------------------------------------------------- /images/Bildschirmfoto 2015-11-09 um 11.09.50.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/owncloud-archive/vm/HEAD/images/Bildschirmfoto 2015-11-09 um 11.09.50.png -------------------------------------------------------------------------------- /images/Bildschirmfoto 2015-11-09 um 11.10.14.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/owncloud-archive/vm/HEAD/images/Bildschirmfoto 2015-11-09 um 11.10.14.png -------------------------------------------------------------------------------- /images/Bildschirmfoto 2015-11-09 um 11.12.47.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/owncloud-archive/vm/HEAD/images/Bildschirmfoto 2015-11-09 um 11.12.47.png -------------------------------------------------------------------------------- /images/Bildschirmfoto 2015-11-09 um 11.13.51.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/owncloud-archive/vm/HEAD/images/Bildschirmfoto 2015-11-09 um 11.13.51.png -------------------------------------------------------------------------------- /images/Bildschirmfoto 2015-11-09 um 11.25.21.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/owncloud-archive/vm/HEAD/images/Bildschirmfoto 2015-11-09 um 11.25.21.png -------------------------------------------------------------------------------- /images/Bildschirmfoto 2015-11-09 um 11.52.51.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/owncloud-archive/vm/HEAD/images/Bildschirmfoto 2015-11-09 um 11.52.51.png -------------------------------------------------------------------------------- /images/Bildschirmfoto 2015-11-09 um 12.01.29.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/owncloud-archive/vm/HEAD/images/Bildschirmfoto 2015-11-09 um 12.01.29.png -------------------------------------------------------------------------------- /images/Bildschirmfoto 2015-11-09 um 12.03.39.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/owncloud-archive/vm/HEAD/images/Bildschirmfoto 2015-11-09 um 12.03.39.png -------------------------------------------------------------------------------- /images/Bildschirmfoto 2015-11-09 um 12.04.08.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/owncloud-archive/vm/HEAD/images/Bildschirmfoto 2015-11-09 um 12.04.08.png -------------------------------------------------------------------------------- /images/Bildschirmfoto 2015-11-09 um 12.04.44.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/owncloud-archive/vm/HEAD/images/Bildschirmfoto 2015-11-09 um 12.04.44.png -------------------------------------------------------------------------------- /images/Bildschirmfoto 2015-11-09 um 12.05.27.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/owncloud-archive/vm/HEAD/images/Bildschirmfoto 2015-11-09 um 12.05.27.png -------------------------------------------------------------------------------- /images/Bildschirmfoto 2015-11-09 um 14.35.44.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/owncloud-archive/vm/HEAD/images/Bildschirmfoto 2015-11-09 um 14.35.44.png -------------------------------------------------------------------------------- /images/Bildschirmfoto 2015-11-09 um 14.35.51.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/owncloud-archive/vm/HEAD/images/Bildschirmfoto 2015-11-09 um 14.35.51.png -------------------------------------------------------------------------------- /images/Bildschirmfoto 2015-11-09 um 14.45.16.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/owncloud-archive/vm/HEAD/images/Bildschirmfoto 2015-11-09 um 14.45.16.png -------------------------------------------------------------------------------- /images/Bildschirmfoto 2015-11-09 um 14.57.29.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/owncloud-archive/vm/HEAD/images/Bildschirmfoto 2015-11-09 um 14.57.29.png -------------------------------------------------------------------------------- /images/Bildschirmfoto 2015-11-09 um 14.59.00.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/owncloud-archive/vm/HEAD/images/Bildschirmfoto 2015-11-09 um 14.59.00.png -------------------------------------------------------------------------------- /issue_template.md: -------------------------------------------------------------------------------- 1 | ### Steps to reproduce 2 | 1. 3 | 2. 4 | 3. 5 | 6 | ### Expected behaviour 7 | Tell us what should happen 8 | 9 | ### Actual behaviour 10 | Tell us what happens instead 11 | 12 | ### System 13 | **Host** 14 | 15 | **VirtualBox version** 16 | 17 | **Vagrant version** 18 | -------------------------------------------------------------------------------- /vagrant/oc9ce/wildcard-trusted-domains.config.php: -------------------------------------------------------------------------------- 1 | array ( 'localhost', $_SERVER['HTTP_HOST'], ), ); 5 | } 6 | else 7 | { 8 | $CONFIG = array ( 'trusted_domains' => array ( 'localhost', ) ); 9 | } 10 | 11 | 12 | -------------------------------------------------------------------------------- /ATTIC/enoch85-testing/ubuntu/test_connection.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | WGET="/usr/bin/wget" 4 | 5 | $WGET -q --tries=20 --timeout=10 http://www.google.com -O /tmp/google.idx &> /dev/null 6 | if [ ! -s /tmp/google.idx ] 7 | then 8 | echo -e "\e[31mNot Connected!" 9 | else 10 | echo -e "\e[32mConnected! \o/" 11 | fi 12 | -------------------------------------------------------------------------------- /vagrant/oc9ce/pull_extra_apps.sh: -------------------------------------------------------------------------------- 1 | #! /bin/bash 2 | 3 | rm -rf apps 4 | test -z "$1" && exit 0 5 | 6 | app_urls=$(echo $1 | tr ',' ' ') 7 | mkdir apps 8 | cd apps 9 | for app_url in $app_urls; do 10 | wget $app_url -O /tmp/$$-app_tmp.zip || exit 1 11 | echo $app_url 12 | unzip /tmp/$$-app_tmp.zip 13 | rm -f /tmp/$$-app_tmp.zip 14 | done 15 | 16 | exit 0 17 | 18 | -------------------------------------------------------------------------------- /ATTIC/kiwi/mkvmdk-kiwi.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # 3 | # mkvmdk-kiwi.sh creates the vmdk variant from the main kiwi file. 4 | 5 | set -x 6 | chmod u+w *vmdk.kiwi 7 | cp eval-appliance-oc8ee.kiwi eval-appliance-oc8ee-vmdk.kiwi 8 | patch -p0 < vmdk-kiwi.patch 9 | chmod a-w *vmdk.kiwi 10 | 11 | d=/tmp/_changes_$$/ 12 | mkdir -p $d/root 13 | cp *.changes $d/root 14 | (cd $d; tar zcvf - root) > changelog.tar.gz 15 | rm -rf $d 16 | -------------------------------------------------------------------------------- /ATTIC/enoch85-testing/ubuntu/set_trusted_domain.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | IFACE="eth0" 4 | IFCONFIG="/sbin/ifconfig" 5 | ADDRESS=$($IFCONFIG $IFACE | awk -F'[: ]+' '/\/ {print $4; exit}') 6 | 7 | cat <> /var/www/owncloud/config/config.php 8 | 'trusted_domains' => 9 | array ( 10 | 0 => '$ADDRESS', 11 | ), 12 | 'overwrite.cli.url' => 'http://$ADDRESS/owncloud', 13 | ); 14 | TRUSTED 15 | 16 | exit 0 17 | -------------------------------------------------------------------------------- /vagrant/oc9ce/set-trusted-domain.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | IFACE="eth0" 3 | IFCONFIG="/sbin/ifconfig" 4 | ADDRESS=$($IFCONFIG $IFACE | awk -F'[: ]+' '/\/ {print $4; exit}') 5 | 6 | # only set trusted domian once 7 | # then delete this file in check.init.sh after the script is run to avoid new config every time the VM boots 8 | php /var/scripts/update-config.php $oc/config/config.php 'trusted_domains[]' localhost ${ADDRESS[@]} $(hostname) $(hostname --fqdn) 9 | php /var/scripts/update-config.php $oc/config/config.php overwrite.cli.url https://$ADDRESS/owncloud 10 | -------------------------------------------------------------------------------- /ATTIC/enoch85-testing/ubuntu/setup_secure_permissions_owncloud.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | ocpath='/var/www/owncloud' 3 | htuser='www-data' 4 | 5 | find ${ocpath}/ -type f -print0 | xargs -0 chmod 0640 6 | find ${ocpath}/ -type d -print0 | xargs -0 chmod 0750 7 | 8 | chown -R root:${htuser} ${ocpath}/ 9 | chown -R ${htuser}:${htuser} ${ocpath}/apps/ 10 | chown -R ${htuser}:${htuser} ${ocpath}/config/ 11 | chown -R ${htuser}:${htuser} ${ocpath}/data/ 12 | 13 | chown root:${htuser} ${ocpath}/.htaccess 14 | chown root:${htuser} ${ocpath}/data/.htaccess 15 | 16 | chmod 0644 ${ocpath}/.htaccess 17 | chmod 0644 ${ocpath}/data/.htaccess 18 | -------------------------------------------------------------------------------- /ATTIC/enoch85-testing/ubuntu/set-interfaces.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | IFACE="eth0" 3 | 4 | IFCONFIG="/sbin/ifconfig" 5 | IP="/sbin/ip" 6 | INTERFACES="/etc/network/interfaces" 7 | 8 | ADDRESS=$($IFCONFIG $IFACE | awk -F'[: ]+' '/\/ {print $4; exit}') 9 | NETMASK=$($IFCONFIG $IFACE | awk -F'[: ]+' '/\/ {print $8; exit}') 10 | GATEWAY=$($IP route | awk '/\/ {print $3; exit}') 11 | 12 | cat <<-IPCONFIG > "$INTERFACES" 13 | auto lo $IFACE 14 | 15 | iface lo inet loopback 16 | 17 | iface $IFACE inet static 18 | 19 | address $ADDRESS 20 | netmask $NETMASK 21 | gateway $GATEWAY 22 | 23 | # Exit and save: [CTRL+X] + [Y] + [ENTER] 24 | # Exit without saving: [CTRL+X] 25 | 26 | IPCONFIG 27 | 28 | exit 0 29 | -------------------------------------------------------------------------------- /vagrant/oc9ce/release-dl-oo.sh: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | # 3 | # release-dl-oo -- push released files into download.owncloud.org 4 | # (c) Copyright 2015 jw@owncloud.com 5 | # 6 | 7 | destdir=$1 8 | ## testing releases go here: 9 | # destdir=testing/vm 10 | ## production releases go here: 11 | if [ -z "$destdir" ]; then 12 | echo parameter destdir missing 13 | echo try $0 production/vm 14 | echo or $0 testing/vm 15 | exit 0 16 | fi 17 | 18 | uploadurl=upload@dl-oo.owncloud.org:w/$destdir 19 | downloadurl=download.owncloud.org/community/$destdir 20 | 21 | echo uploading to $uploadurl ... 22 | set -x 23 | sleep 3 24 | sleep 2 25 | sleep 1 26 | 27 | imgdir=$(dirname $0)/img 28 | for file in $imgdir/*.zip; do 29 | chmod 0644 $file 30 | rsync --progress --append-verify $file $uploadurl/ 31 | done 32 | 33 | echo Download URL: $downloadurl 34 | 35 | -------------------------------------------------------------------------------- /vagrant/run.sh: -------------------------------------------------------------------------------- 1 | # call this with a version number you want to build. 2 | # it will wait until that version number appears in the repo. 3 | # 4 | 5 | #### use this for testing: 6 | # override DOO_MIRRORS in build-ubuntu-vm.sh 7 | #export OC_REPO_URL=http://owncloud:*PASSWORD*@obs.int.owncloud.com:83/ 8 | 9 | ## can be a comma separated list... 10 | # export OC_APP_URLS=https://apps.owncloud.com/CONTENT/content-files/155100-appvncsafe.zip 11 | # export OC_NAME_SUFFIX=appvncsafe 12 | 13 | #### use this for production: 14 | DEBUG=false time sh oc9ce/build-ubuntu-vm.sh ce:9.1 $1 || exit 15 | #### use this, if you know what you are doing. 16 | #DEBUG=false time sh oc9ce/build-ubuntu-vm.sh ce:9.1:testing $1 || exit 17 | 18 | #### upload stuff. 19 | ## use this for testing 20 | # oc9ce/release-dl-oo.sh testing/vm 21 | ## use this for production 22 | oc9ce/release-dl-oo.sh production/vm 23 | 24 | echo "If this is an official release, update the version number in" 25 | echo "https://github.com/owncloud/owncloud.org/blob/master/strings.php" 26 | -------------------------------------------------------------------------------- /ATTIC/enoch85-testing/ubuntu/welcome.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | # 3 | clear 4 | echo "-------------------------------------------------------------------------" 5 | echo "| Thank you for downloading this ownCloud VM made by Tech and Me! |" 6 | echo "| |" 7 | echo "| To run the startup script, just type: sudo -i |" 8 | echo "| Password: owncloud (or the one you choose during install) |" 9 | echo "| |" 10 | echo "| You can also set the ownCloud update process as a cronjob. |" 11 | echo "| This is made thru the built in script in this VM that |" 12 | echo "| updates ownCloud, set secure permissions, and then |" 13 | echo "| logs the successful update in /var/log/cronjobs_success.log |" 14 | echo "| Here is a guide on how to set it up: |" 15 | echo "| https://www.techandme.se/set-automatic-owncloud-updates/ |" 16 | echo "| |" 17 | echo "| ####################### Tech and Me - 2015 #################### |" 18 | echo "-------------------------------------------------------------------------" 19 | 20 | exit 0 21 | -------------------------------------------------------------------------------- /ATTIC/kiwi/HOWTO-cert.txt: -------------------------------------------------------------------------------- 1 | make a new cert for the appliance 2 | --------------------------------- 3 | 4 | sudo /usr/bin/gensslcert -o 'ownCloud.com' -e 'jw@owncloud.com' -c DE -l Nuremberg -s Bavaria -n HOSTNAME.DOMAIN 5 | cd ...Tree/etc/apache2 6 | sudo cp /etc/apache2/ssl.key/{ca.key,README.KEY,server.key} ssl.key/ 7 | sudo cp /etc/apache2/ssl.csr/* ssl.csr/ 8 | sudo cp /etc/apache2/ssl.crt/* ssl.crt/ 9 | sudo chown testy ssl.*/* 10 | cp ssl.crt/ca.crt ../../srv/www/htdocs/CA.crt 11 | 12 | 13 | add a self sign cert 14 | -------------------- 15 | # Works with apache, but only if we use a fixed hostname. 16 | sudo /usr/bin/gensslcert -o 'ownCloud.com' -e 'jw@owncloud.com' -c DE -l Nuremberg -s Bavaria -n HOSTNAME.DOMAIN 17 | openssl x509 -noout -text -in /etc/apache2/ssl.crt/server.crt 18 | 19 | firefox 20 | -> Bearbeiten -> Einstellungen -> Erweitert -> Zertifikat Manager -> Server 21 | Zertifikatname -> owncloud.com 22 | delete all ... 23 | 24 | 25 | openssl s_client -connect localhost:443 -showcerts 26 | ... 27 | Verify return code: 21 (unable to verify the first certificate) 28 | ... 29 | -------------------------------------------------------------------------------- /vagrant/oc9ce/secure-permissions.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | ocpath='/var/www/owncloud' 3 | htuser='www-data' 4 | htgroup='www-data' 5 | rootuser='root' 6 | 7 | printf "Creating possible missing Directories\n" 8 | mkdir -p $ocpath/data 9 | mkdir -p $ocpath/assets 10 | 11 | printf "chmod Files and Directories\n" 12 | find ${ocpath}/ -type f -print0 | xargs -0 chmod 0640 13 | find ${ocpath}/ -type d -print0 | xargs -0 chmod 0750 14 | 15 | printf "chown Directories\n" 16 | chown -R ${rootuser}:${htgroup} ${ocpath}/ 17 | chown -R ${htuser}:${htgroup} ${ocpath}/apps/ 18 | chown -R ${htuser}:${htgroup} ${ocpath}/config/ 19 | chown -R ${htuser}:${htgroup} ${ocpath}/data/ 20 | chown -R ${htuser}:${htgroup} ${ocpath}/themes/ 21 | chown -R ${htuser}:${htgroup} ${ocpath}/assets/ 22 | 23 | chmod +x ${ocpath}/occ 24 | 25 | printf "chmod/chown .htaccess\n" 26 | if [ -f ${ocpath}/.htaccess ] 27 | then 28 | chmod 0644 ${ocpath}/.htaccess 29 | chown ${rootuser}:${htgroup} ${ocpath}/.htaccess 30 | fi 31 | if [ -f ${ocpath}/data/.htaccess ] 32 | then 33 | chmod 0644 ${ocpath}/data/.htaccess 34 | chown ${rootuser}:${htgroup} ${ocpath}/data/.htaccess 35 | fi 36 | -------------------------------------------------------------------------------- /vagrant/oc9ce/patchvmdk.sh: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | # 3 | # workaround for qemu-img convert to not handle VMDK-Format 03 4 | # 5 | # qemu-img: 'image' uses a vmdk feature which is not supported by this qemu version: VMDK version 3 6 | # 7 | # They claim to only support VMDK-Format 02, but patching the version is sufficient. 8 | # They don't know that they actually handle 03 too. 9 | # 10 | # Inspired by https://github.com/erik-smit/one-liners/blob/master/qemu-img.vmdk3.hack.sh 11 | # 12 | # (c) 2015 jw@owncloud.com 13 | 14 | file=$1 15 | vers=$2 16 | 17 | footer_off=$[$(wc -c < $file) - 0x400] 18 | magic=$(xxd -l 4 -s $footer_off -ps $file) 19 | 20 | ## sanity 21 | if [ "$magic" != "4b444d56" ]; then # letters KDMV 22 | echo "VMDK magic 4b444d56 not seen at offset $footer_off: found $magic instead." 23 | exit 0 24 | fi 25 | 26 | ## show wht we have. 27 | echo "VMDK version: $(xxd -l 1 -s $[$footer_off + 4] -ps $file)" 28 | 29 | test -z "$vers" && exit 0 30 | 31 | ## patch new number. 32 | printf "%08x:%s\n" $[$footer_off + 4] $vers | xxd -r - $file 33 | 34 | ## show success. 35 | echo "VMDK version: $(xxd -l 1 -s $[$footer_off + 4] -ps $file)" 36 | 37 | -------------------------------------------------------------------------------- /ATTIC/kiwi/vmdk-kiwi.patch: -------------------------------------------------------------------------------- 1 | Index: eval-appliance-oc8ee-vmdk.kiwi 2 | =================================================================== 3 | --- eval-appliance-oc8ee-vmdk.kiwi (revision 16) 4 | +++ eval-appliance-oc8ee-vmdk.kiwi (working copy) 5 | @@ -1,5 +1,5 @@ 6 | 7 | - 8 | + 9 | 10 | 11 | Jürgen Weigert 12 | @@ -9,7 +9,11 @@ 13 | 14 | 15 | 17 | + primary='true' format='vmdk' image='vmx'> 18 | + 19 | + 20 | + 21 | + 22 | 10 23 | 24 | 25 | -------------------------------------------------------------------------------- /vagrant/oc9ce/update-config.php: -------------------------------------------------------------------------------- 1 | #!/usr/bin/php 2 | 3) 29 | { 30 | # append [] to the key name, if you need to pass an array object. 31 | if (substr($argv[2], -2) === '[]') 32 | { 33 | $CONFIG[substr($argv[2],0,-2)] = array_slice($argv,3); 34 | } 35 | else 36 | { 37 | $CONFIG[$argv[2]] = $argv[3]; 38 | } 39 | } 40 | else 41 | { 42 | # exactly two parameter given -- means delete. 43 | unset($CONFIG[$argv[2]]); 44 | } 45 | 46 | $text = var_export($CONFIG, true); 47 | ## A warning is printed, if argv[1] is not writable. 48 | ## PHP does not issue proper errno or strerror() does it? 49 | file_put_contents($argv[1], " 51 | -------------------------------------------------------------------------------- /ATTIC/enoch85-testing/ubuntu/owncloud_update.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | # 3 | ## Tech and Me ## - 2015, https://www.techandme.se/ 4 | # 5 | 6 | # System Upgrade 7 | apt-get update 8 | aptitude full-upgrade -y 9 | sudo -u www-data php /var/www/owncloud/occ upgrade 10 | 11 | # Enable Apps 12 | sudo -u www-data php /var/www/owncloud/occ app:enable mail 13 | sudo -u www-data php /var/www/owncloud/occ app:enable calendar 14 | sudo -u www-data php /var/www/owncloud/occ app:enable contacts 15 | sudo -u www-data php /var/www/owncloud/occ app:enable documents 16 | sudo -u www-data php /var/www/owncloud/occ app:enable galleryplus 17 | sudo -u www-data php /var/www/owncloud/occ app:disable gallery 18 | sudo -u www-data php /var/www/owncloud/occ app:enable external 19 | 20 | # Increase max filesize (this expects that changes are made to php.ini already) 21 | FILENAME="# php_value upload_max_filesize 513M" 22 | 23 | if grep -Fxq "$FILENAME" /var/www/owncloud/.htaccess 24 | then 25 | exit 1 26 | else 27 | sed -i 's/php_value upload_max_filesize 513M/# php_value upload_max_filesize 513M/g' /var/www/owncloud/.htaccess 28 | sed -i 's/php_value post_max_size 513M/# php_value post_max_size 513M/g' /var/www/owncloud/.htaccess 29 | sed -i 's/php_value memory_limit 512M/# php_value memory_limit 512M/g' /var/www/owncloud/.htaccess 30 | fi 31 | 32 | 33 | # Set secure permissions to ownCloud 34 | bash /var/scripts/setup_secure_permissions_owncloud.sh 35 | 36 | # Cleanup unused packages 37 | apt-get autoremove -y 38 | apt-get autoclean 39 | 40 | # Write to log 41 | echo "OWNCLOUD UPDATE success-`date +"%Y%m%d"` " >> /var/log/cronjobs_success.log 42 | 43 | # Un-hash this if you want automatic reboots: 44 | # sudo reboot 45 | 46 | exit 0 47 | -------------------------------------------------------------------------------- /ATTIC/release-github-py.sh: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | # 3 | # release-github.sh -- push released files into github. 4 | # (c) copyright 2015 jw@owncloud.com 5 | # 6 | # see also: git clone git@github.com:j0057/github-release.git 7 | # see also: https://developer.github.com/v3/repos/releases/#create-a-release 8 | # see also: http://help.appveyor.com/discussions/kb/2-guide-how-to-release-automatically-your-artifact-to-github 9 | # 10 | # Requires: sudo pip install githubrelease 11 | # Requires: https://github.com/settings/tokens/new 12 | # -> name: githubrelease-script 13 | # -> scope: [x] repo, [x] public_repo 14 | # 15 | # CAUTION: Upload often fails with SSL errors, 404 errors, ... do not use. 16 | 17 | repo=owncloud/vm 18 | imgdir=$(dirname $0)/img 19 | for file in $imgdir/*.zip; do 20 | newtag=$(echo $file | sed -e 's@.*owncloud-@@' -e 's@\(2015[0-9]*\).*@\1@') 21 | done 22 | 23 | taglist=$(github-release $repo list | grep 'Tag name' | sed -e 's@.*: *@@') 24 | for oldtag in $taglist; do 25 | echo - known release tags: $oldtag 26 | test "$oldtag" == "v$newtag" && tag=$newtag 27 | done; 28 | 29 | if [ -n "$tag" ]; then 30 | echo adding to v$tag 31 | known_assets=$(github-release $repo info v$tag | grep 'Asset #' | grep ' name ') 32 | for file in $imgdir/*$tag*.zip; do 33 | if echo $known_assets | grep -q $(basename $file) ; then 34 | echo - $file already uploaded 35 | else 36 | echo uploading $file 37 | github-asset $repo upload v$tag $file 38 | ## https://github.com/j0057/github-release/issues/1 39 | # echo curl -XPOST -H "Authorization:token $TOK" -H "Content-Type:application/octet-stream" --data-binary @$file https://uploads.github.com/repos/$repo/releases/v$tag/assets?name=$(basename $file) 40 | echo - done 41 | fi 42 | done 43 | else 44 | echo creating new tag v$newtag 45 | github-release $repo create v$newtag 46 | echo FIXME: unfinsihed. 47 | fi 48 | -------------------------------------------------------------------------------- /vagrant/oc9ce/change_pass_admin.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | cred_file_dir=/var/scripts/www 4 | cred_file=$cred_file_dir/init-credentials.sh 5 | 6 | cat << EOF 7 | There are two different [admin] account settings. One in the Ubuntu system, one in ownCloud. 8 | For better security, you now have the option to change both passwords. 9 | First, change the Ubuntu password for [admin] 10 | EOF 11 | echo -n "Enter your new password for admin here:"; stty -echo; read passwd1; stty echo; echo 12 | echo -n "Enter password again: "; stty -echo; read passwd2; stty echo; echo 13 | echo 14 | if [[ "$passwd1" == "$passwd2" ]]; then 15 | echo -e "admin:$passwd1" | chpasswd 16 | echo -e "user=admin\npassword=$passwd1" > $cred_file 17 | echo -e "\e[32mPassword changed successfully!\e[0m" 18 | sleep 3 19 | clear 20 | else 21 | echo -e "\e[41mPassword not changed...\e[0m" 22 | sleep 3 23 | fi 24 | 25 | ##### Someone please expain to me what the code below is supposed to do. jw 2016-12-16 26 | ##### https://github.com/owncloud/enterprise/issues/1719 27 | exit 0 28 | 29 | if grep --quiet password=$passwd1 $cred_file; then 30 | sleep 1 31 | exit 0 32 | else 33 | 34 | echo -n "Enter your new password for admin here:"; stty -echo; read passwd2; stty echo; echo 35 | echo 36 | echo -e "Your new password is:\e[32m$passwd2\e[0m" 37 | echo 38 | fi 39 | function ask_yes_or_no() { 40 | read -p "$1 ([y]es or [N]o): " 41 | case $(echo $REPLY | tr '[A-Z]' '[a-z]') in 42 | y|yes) echo "yes" ;; 43 | *) echo "no" ;; 44 | esac 45 | } 46 | if [[ "yes" == $(ask_yes_or_no "Is this correct?") ]] 47 | then 48 | echo -e "admin:$passwd2" | chpasswd 49 | echo -e "user=admin\npassword=$passwd2" > $cred_file 50 | echo -e "\e[32mPassword changed successfully!\e[0m" 51 | sleep 3 52 | clear 53 | else 54 | echo -e "\e[41mPassword not changed...\e[0m\nYou can try to run this script later." 55 | sleep 3 56 | clear 57 | exit 1 58 | fi 59 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # NOTICE 2 | This code is outdated. Since 10.0.1 we build appliances with Univention https://www.univention.de/produkte/univention-app-center/app-katalog/owncloud/ 3 | 4 | # vm 5 | Scripts to build an ownCloud community production VM 6 | 7 | On a Linux and a Mac OSX System: 8 | Make sure you have Virtualbox and vagrant installed. 9 | Please note that currently 8/18/2015 on Mac OSX 10.10.4 or 10.10.5 System the only virtualbox build that seems to work 10 | is Virtualbox 4.3.26 you can find it here: https://www.virtualbox.org/wiki/Download_Old_Builds_4_3 11 | 12 | You can find VMware Player here: https://my.vmware.com/web/vmware/free#desktop_end_user_computing/vmware_workstation_player/12_0 13 | 14 | Download or clone vm github repository then: 15 | 16 |
17 | cd vagrant
18 | sh run.sh                    # default DEBUG versions, optimized build time (ca 10 Min, no zip)
19 | DEBUG=false sh run.sh        # production version, optimized compression (ca 20 Min build time)
20 | ls -l oc9ce/*owncloud-9*
21 | 
22 | After the build of the appliance you will find it in /path/to/the/cloned/github/vm/vagrant/oc9ce/img 23 | 24 | **VirtualBox** 25 |
26 | ->unzip xubuntu.....vdmk.zip
27 |  -> Double click on the .ovf file
28 |   -> Import
29 | Then open VirtualBox
30 |  -> Network
31 |   -> Bridged Network
32 | 
33 | **VMware** 34 |
35 | -> Double click on the .vmx file
36 | VMware
37 |  -> Network Adapter
38 |   -> Bridged Network
39 | 
40 | 41 | A plain Ubuntu console appears, showing you the IP-Address and initial credentials. 42 | * Follow the instructions on screen, or 43 | * direct your web browser to the IP-Address. There is also basic web-page there with instructions. 44 | 45 | On a Windows system make sure you have VirtualBox and vagrant installed.: 46 | Open Virtualbox 47 | 48 | Download or clone vm github repository then: 49 |
50 | #in the vm folder
51 | cd vagrant
52 | vagrant up
53 | 
54 | 55 | **It does not work to build the appliance with Windows 10 and VirtualBox, but there is no problem with running it on Windows 10 and VMware** 56 | 57 | The VM runs now in VirtualBox or VMware 58 | Go to Network settings and change from NAT to Bridged. 59 | Reboot. 60 | Have Fun 61 | 62 | -------------------------------------------------------------------------------- /ATTIC/enoch85-testing/ubuntu/owncloud-self-signed-ssl.conf: -------------------------------------------------------------------------------- 1 | 2 | Header add Strict-Transport-Security: "max-age=15768000;includeSubdomains" 3 | SSLEngine on 4 | 5 | ## MORE INFO CAN BE FOUND @ ## 6 | ## https://www.techandme.se/virtualhost-443/ ## 7 | 8 | 9 | # The ServerName directive sets the request scheme, hostname and port that 10 | # the server uses to identify itself. This is used when creating 11 | # redirection URLs. In the context of virtual hosts, the ServerName 12 | # specifies what hostname must appear in the request's Host: header to 13 | # match this virtual host. For the default virtual host (this file) this 14 | # value is not decisive as it is used as a last resort host regardless. 15 | # However, you must set it for any further virtual host explicitly. 16 | 17 | ### YOUR SERVER ADDRESS ### 18 | 19 | ### Please remove the '#' in front of each row ### 20 | 21 | # ServerAdmin admin@example.ddns.net 22 | # ServerName example.ddns.net 23 | # ServerAlias example.ddns.net 24 | 25 | ### SETTINGS ### 26 | 27 | DocumentRoot /var/www/owncloud 28 | 29 | Options Indexes FollowSymLinks 30 | AllowOverride All 31 | Require all granted 32 | 33 | 34 | ### LOCATION OF CERT FILES ### 35 | 36 | SSLCertificateFile /etc/ssl/certs/ssl-cert-snakeoil.pem 37 | SSLCertificateKeyFile /etc/ssl/private/ssl-cert-snakeoil.key 38 | 39 | # Available loglevels: trace8, ..., trace1, debug, info, notice, warn, 40 | # error, crit, alert, emerg. 41 | # It is also possible to configure the loglevel for particular 42 | # modules, e.g. 43 | #LogLevel info ssl:warn 44 | 45 | ErrorLog ${APACHE_LOG_DIR}/error.log 46 | CustomLog ${APACHE_LOG_DIR}/access.log combined 47 | 48 | # For most configuration files from conf-available/, which are 49 | # enabled or disabled at a global level, it is possible to 50 | # include a line for only one particular virtual host. For example the 51 | # following line enables the CGI configuration for this host only 52 | # after it has been globally disabled with "a2disconf". 53 | # Include conf-available/serve-cgi-bin.conf 54 | 55 | 56 | 57 | # vim: syntax=apache ts=4 sw=4 sts=4 sr noet 58 | -------------------------------------------------------------------------------- /ATTIC/enoch85-testing/ubuntu/Ubuntu14.04.sh: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | 3 | ocObsRepo=http://download.opensuse.org/repositories/isv:ownCloud:community:testing/xUbuntu_14.04 4 | ocPackage=$(echo $ocObsRepo | sed -e 's@:\([^/]\)@:/\1@') 5 | releaseKey=$ocObsRepo/Release.key 6 | ocVersion=Owncloud8.0.0-6 7 | imageVersion=xUbuntu14.04 8 | vmBoxName=ubuntu/trusty64 9 | vmBoxUrl=https://vagrantcloud.com/ubuntu/boxes/trusty64/versions/14.04/providers/virtualbox.box 10 | 11 | 12 | cat > Vagrantfile << EOF 13 | \$script = <