Posts by NeuronLC

    Thanks!
    That helped.

    Hello, I'm trying to install OMV additonally on a old Celvin Q800 / QNAP TS459Pro II for testing Zoneminder.
    I've created different Bootsticks with Etcher and DD and starting the Installation from those devices is no problem.
    My Target-Device is also a USB-Drive and I tried different ones (USB3 and 2 at USB2-Port)) but it all ends up with an error: Failed to create FIlesystem.


    Any idea?

    Hello, I want to change my Systemdisk from a 256GB SSD to a 32GB MSATA. Why? Because I only need about 15GB for my System and want to use the SSD for another Project.
    So I tried Clonezilla but Diskimage will not work as the Source-Disk is bigger than the Target-Disk and Partimage gives me an Operating-System-not-found-Error at Boot.
    What would be the best approach?

    This Guide is about install and configure Nextcloud and Let's encrypt in a virtual Ubuntu. I've put it together from several Guides I found.


    Based on Ubuntu Server 16.04 and Nextcloud 12.


    For the VM I used 2 Cores, 4GB RAM, 50GB VDisk and a bridged Network.



    1. Ubuntu-Server-Installation


    Standard with OpenSSH-Server


    when ready
    sudo apt-get update
    sudo apt-get upgrade


    Reboot



    2. Nextcloud-Installation and -configuration via ssh


    sudo snap install nextcloud


    sudo apt-get install apache2 mariadb-serverlibapache2-mod-php7.0
    sudo apt-get install php7.0-gd php7.0-jsonphp7.0-mysql php7.0-curl php7.0-mbstring
    sudo apt-get install php7.0-intl php7.0-mcryptphp-imagick php7.0-xml php7.0-zip


    wget https://download.nextcloud.com…/nextcloud-12.0.0.tar.bz2
    sudo tar -xjf nextcloud-12.0.0.tar.bz2


    sudo cp -r nextcloud /var/www



    Add this to sudo nano/etc/apache2/sites-available/nextcloud.conf


    Alias/nextcloud "/var/www/nextcloud/"


    <Directory/var/www/nextcloud/>
    Options+FollowSymlinks
    AllowOverrideAll
    SatisfyAny


    <IfModulemod_dav.c>
    Davoff
    </IfModule>


    SetEnvHOME /var/www/nextcloud
    SetEnvHTTP_HOME /var/www/nextcloud


    </Directory>



    Create Symlink


    sudo ln -s/etc/apache2/sites-available/nextcloud.conf/etc/apache2/sites-enabled/nextcloud.conf



    Additional Apache-Configuration


    sudo a2enmod rewrite
    sudo a2enmod headers
    sudo a2enmod env
    sudo a2enmod dir
    sudo a2enmod mime


    sudo service apache2 restart



    Activate SSL-Modul

    sudo a2enmod ssl
    sudo a2ensite default-ssl
    sudo service apache2 restart



    sudo chown -R www-data:www-data/var/www/nextcloud/




    3. Create MariaDB-Datenbase


    Change User@ and Password as needed


    sudo mysql-u root



    MariaDB>CREATE DATABASE nextcloud;
    MariaDB>GRANT ALL ON nextcloud.* to 'user'@'localhost'IDENTIFIED BY 'set_database_password';
    MariaDB>FLUSH PRIVILEGES;
    MariaDB>exit


    Reboot VM




    4. Complete Nextcloud-Installation


    By Browser http://localhost/nextcloud
    Create new User with Password
    Enter DB-User with Password and DB-Name
    Complete Installation



    5. Implement Let’s Encrypt-Certificate


    sudo apt-get update
    sudo apt-get install software-properties-common
    sudo add-apt-repository ppa:certbot/certbot
    sudo apt-get update
    sudo apt-get install python-certbot-apache


    Create your Certificate
    sudo certbot --apache



    Test the Automation


    sudo certbot renew --dry-run



    Create new Cronjob


    sudo crontab -e


    This would run at 07.15h. Change it to your needs.


    15 7 * * * /usr/bin/certbot renew –quiet




    6. Nextcloud-Tuning


    Move Data-Directory


    sudo service apache2 stop
    sudo mkdir /usr/nextcloud
    sudo mv /var/www/nextcloud/data /usr/nextcloud
    sudo chown www-data:www-data /usr/nextcloud


    Change Datapath to /usr/nextcloud in


    sudo nano /var/www/nextcloud/config/config.php



    sudo service apache2 start



    7. Enable HTTP Strict Transport Security


    Copy this at the end of /etc/apache2/apache2.conf


    <IfModule mod_headers.c>
    Header always set Strict-Transport-Security"max-age=15768000; includeSubDomains; preload"
    </IfModule>


    sudo service apache2 restart



    8. Memory Caching

    sudo apt-get install redis-server php-redis


    sudo service apache2 restart



    9. PHP Opcache

    Change these Parameters in sudo nano/etc/php/7.0/apache2/php.ini


    opcache.enable=1
    opcache.enable_cli=1
    opcache.memory_consumption=128
    opcache.interned_strings_buffer=8
    opcache.max_accelerated_files=10000
    opcache.save_comments=1
    opcache.revalidate_freq=1



    sudo service apache2 restart


    Done

    Hello,
    yesterday my OMV crashed and the System isn't booting because of a Problem with Grub (error file not found).
    I tried a lot of How-To's to get it fixed but without success.
    I think the CF-Card where I installed OMV on is dead.
    A few minutes before the crash I've run a backup with the System Backup Plugin.
    So now I want to restore this backup to a HDD (hopefully it finished before the crash).


    The question:
    How can I to that?

    Hello,
    I had to replace a broken HDD from Snapraid/AUFS-Pool, same Name as the broken one. After reboot I did #6 from this posting
    I checked and synced without errors.
    When I try create a new folder I get an error that I don't have the right to.
    I tried that also with a new user, with guests allowed and only in the SMB config but the only thing I can do is read.


    Any ideas?
    Thanks in advance.


    I did what you suggested, but I'm not able to upgrade because earlier today I

    Code
    rm /var/cache/apt/archives/*

    as davidh2k posted above.
    So now I get: Failed to fetch file:/var/cache/openmediavault/archives/6/Packages.gz File not found


    I think the best way is to kill this tousled system and do a fresh install.

    I've now updated to 1.0


    Code
    root@openmediavault:~# cat /etc/apt/sources.list
    deb cdrom:[Debian GNU/Linux 6.0.0 _Squeeze_ - Official Snapshot i386 LIVE/INSTALL Binary 20140520-19:39]/ wheezy main non-free


    [/code]

    Code
    root@openmediavault:~# cat /etc/apt/sources.list.d/*
    deb http://packages.omv-extras.org/debian/ kralizec main
    deb http://packages.openmediavault.org/public sardaukar main
    # deb http://downloads.sourceforge.net/project/openmediavault/packages sardaukar main
    ## Uncomment the following line to add software from the proposed repository.
    deb http://packages.openmediavault.org/public sardaukar-proposed main
    # deb http://downloads.sourceforge.net/project/openmediavault/packages sardaukar-proposed main
    deb file:/var/cache/openmediavault/archives /root@openmediavault:~#

    I don't think so. I just installed OMV one week ago from the sardaukar .iso and didn't install anything else.


    When I try to install via apt-get (I saw this post OMV1 Easy install of OMV Extras and tried to change it to sardaukar)
    I get an Error saying " Following packages have unfulfilled dependencies openmediavault-omvextrasorg : depends on lsb-release but is not installable
    E: damaged packages"
    (translated from german)