<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Sqlite on iBlog Efstathios Iosifidis</title><link>https://iosifidis.github.io/categories/sqlite/</link><description>Recent content in Sqlite on iBlog Efstathios Iosifidis</description><generator>Hugo</generator><language>el</language><lastBuildDate>Sat, 20 Feb 2021 21:42:39 +0000</lastBuildDate><atom:link href="https://iosifidis.github.io/categories/sqlite/index.xml" rel="self" type="application/rss+xml"/><item><title>Install ownCloud 7 on Raspberry Pi (Arch Linux) using Lighttpd</title><link>https://iosifidis.github.io/2014/07/install-owncloud-7-on-raspberry-pi-arch.html/</link><pubDate>Tue, 29 Jul 2014 20:17:00 +0000</pubDate><guid>https://iosifidis.github.io/2014/07/install-owncloud-7-on-raspberry-pi-arch.html/</guid><description>&lt;p>&lt;a href="http://owncloud.org/" target="_blank" rel="noopener noreferrer">&lt;img src="https://iosifidis.github.io/images/nextcloud/owncloud-heart.png" alt="Install ownCloud 7 on Raspberry Pi (Arch Linux) using Lighttpd" loading="lazy" />
&lt;/a>
&lt;br>
&lt;a href="http://owncloud.org/seven/" target="_blank" rel="noopener noreferrer">ownCloud 7&lt;/a>
 was out on July 23rd 2014. I spent couple of days to test it and then blog about it. You already saw &lt;a href="https://iosifidis.github.io/2014/06/install-owncloud-on-raspberry-pi-arch.html">my previous posting&lt;/a>
 about installing ownCloud on Arch Linux Rasbperry Pi. I&amp;rsquo;ll use the same base and I&amp;rsquo;ll correct/add some more info. So this post might be long but analytic with lot of pictures!!!&lt;/p>
&lt;p>Here we&amp;rsquo;ll see the basic installation. My next posts will be about securing the ownCloud instance. For my project, I used a Raspberry Pi (Model B), a 8GB SD card. It&amp;rsquo;s connected with ethernet and the power plugs on my router (there&amp;rsquo;s a USB that can be used as SAMBA server or Print Server).&lt;/p>
&lt;p>&lt;img src="https://iosifidis.github.io/images/raspberry-pi/raspberry/PiCloud_router.jpg" alt="ownCloud Raspberry Pi box" loading="lazy" />
&lt;br>
I used Arch Linux as distro, because I wanted to have the latest packages.&lt;/p>
&lt;p>This tutorial has 3 sections:&lt;/p>
&lt;ul>
&lt;li>Tips to setup Raspberry Pi Arch Linux&lt;/li>
&lt;li>Setup Lighttpd and PHP&lt;/li>
&lt;li>Setup ownCloud&lt;/li>
&lt;/ul>
&lt;p>Before we start, download &lt;a href="http://downloads.raspberrypi.org/arch_latest" target="_blank" rel="noopener noreferrer">Arch Linux image for Raspberry Pi&lt;/a>
. Create the SD card (dd if=Arch&amp;hellip;..img of=/dev/sdX bs=1M;sync).&lt;/p>
&lt;p>1. Now boot your Raspberry pi and update everything:&lt;/p>
&lt;div class="highlight">&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-bash" data-lang="bash">&lt;span style="display:flex;">&lt;span>pacman -Syu
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;p>2. Mount the extra partition you made. How to do that?&lt;/p>
&lt;p>Find the name of the partition&lt;/p>
&lt;p>cat /proc/partitions&lt;/p></description></item><item><title>Install ownCloud on Raspberry Pi (Moebious) using Nginx</title><link>https://iosifidis.github.io/2014/06/owncloud-on-raspberry-pi-moebious-nginx.html/</link><pubDate>Tue, 17 Jun 2014 16:31:00 +0000</pubDate><guid>https://iosifidis.github.io/2014/06/owncloud-on-raspberry-pi-moebious-nginx.html/</guid><description>&lt;p>&lt;a href="http://owncloud.org/" target="_blank" rel="noopener noreferrer">&lt;img src="http://dl.dropbox.com/u/20413076/owncloud/raspberry/owncloud-logo.jpg" alt="" loading="lazy" />
&lt;/a>
 &lt;a href="http://www.raspberrypi.org/" target="_blank" rel="noopener noreferrer">&lt;img src="http://dl.dropbox.com/u/20413076/owncloud/raspberry/rpi.png" alt="Raspberry Pi logo" loading="lazy" />
&lt;/a>
&lt;br>
You&amp;rsquo;ve probably read my post about &lt;a href="https://iosifidis.github.io/2014/06/install-owncloud-on-raspberry-pi-arch.html">Install ownCloud on Raspberry Pi (Arch Linux) using Lighttpd&lt;/a>
. You saw that I had problems with setting up nginx server. Check out a comparison &lt;a href="http://www.wikivs.com/wiki/lighttpd_vs_nginx" target="_blank" rel="noopener noreferrer">lighttpd vs nginx&lt;/a>
.&lt;/p>
&lt;p>This time I changede distro and try it again. My pick was &lt;a href="http://moebiuslinux.sourceforge.net/" target="_blank" rel="noopener noreferrer">Moebious&lt;/a>
. Reason I picked it was the fact that it&amp;rsquo;s minimalistic.&lt;/p>
&lt;p>This tutorial has 4 sections:&lt;/p>
&lt;ul>
&lt;li>Tips to setup moebious Raspberry Pi&lt;/li>
&lt;li>Setup Nginx and PHP&lt;/li>
&lt;li>Setup ownCloud&lt;/li>
&lt;li>Extra setup&lt;/li>
&lt;/ul>
&lt;p>You can download directly from &lt;a href="http://sourceforge.net/projects/moebiuslinux/files/raspberry.stable/" target="_blank" rel="noopener noreferrer">sourceforge&lt;/a>
. After you copy it (&lt;em>dd bs=1M if=moebius-*.img of=/dev/sd.device.name bs=1M;sync&lt;/em>), open gparted to create a new partition, the rest of the SD (ext4 partition). You can create it from moebious using the command &lt;strong>cfdisk /dev/mmcblk0&lt;/strong>.&lt;br>
You can also do it after the first login, it runs &lt;strong>moebious.config&lt;/strong>. Through that, you can resize the SD card. Unfortunately, it increase to maximum storage. &lt;em>In this tutorial, I used this option&lt;/em>.&lt;/p>
&lt;p>Remember the default user/pass are&lt;br>
USERNAME: root&lt;br>
PASSWORD: raspi&lt;/p></description></item><item><title>Install ownCloud on Raspberry Pi (Arch Linux) using Lighttpd</title><link>https://iosifidis.github.io/2014/06/install-owncloud-on-raspberry-pi-arch.html/</link><pubDate>Thu, 12 Jun 2014 13:14:00 +0000</pubDate><guid>https://iosifidis.github.io/2014/06/install-owncloud-on-raspberry-pi-arch.html/</guid><description>&lt;p>&lt;a href="http://owncloud.org/" target="_blank" rel="noopener noreferrer">&lt;img src="https://iosifidis.github.io/images/nextcloud/owncloud-heart.png" alt="Install ownCloud on Raspberry Pi (Arch Linux) using Lighttpd" loading="lazy" />
&lt;/a>
&lt;br>
First of all, you can see all my posts about &lt;a href="https://iosifidis.github.io/categories/owncloud/">ownCloud&lt;/a>
 and &lt;a href="https://iosifidis.github.io/categories/raspberry-pi/">Raspberry Pi&lt;/a>
.&lt;/p>
&lt;p>For my project, I used a Raspberry Pi (Model B), a 8GB SD card. It&amp;rsquo;s connected with ethernet and the power plugs on my router (there&amp;rsquo;s a USB that can be used as SAMBA server or Print Server).&lt;/p>
&lt;p>I used Arch Linux as distro, because I wanted to have the latest packages. ownCloud is only a &lt;em>pacman&lt;/em> away. NOT. I &lt;a href="https://bbs.archlinux.org/viewtopic.php?id=176382" target="_blank" rel="noopener noreferrer">found there&amp;rsquo;s an error&lt;/a>
. More or less here it is:&lt;/p>
&lt;p>This update changed the config directory from&lt;br>
&lt;em>/usr/share/webapps/owncloud/config&lt;/em> to &lt;em>/etc/webapps/owncloud/config&lt;/em> ,&lt;br>
and created the following symlink:&lt;br>
&lt;em>/usr/share/webapps/owncloud/config &amp;ndash; &amp;gt; /etc/webapps/owncloud/config&lt;/em>&lt;/p>
&lt;p>I copied my config.php configuration file to /etc/webapps/owncloud/config/config.php, and double checked ownerships and permissions:&lt;br>
&lt;em>/etc/webapps/owncloud/config&lt;/em> has &lt;strong>775&lt;/strong> permissions and is owned by &lt;em>http.http&lt;/em>.&lt;br>
&lt;em>/etc/webapps/owncloud/config/config.php&lt;/em> has &lt;strong>660&lt;/strong> permissions and is owned by &lt;em>http.http&lt;/em>.&lt;br>
Even though the http server has write permissions, each time I tried to open owncloud in my browser, it just shows the error message: &amp;ldquo;Can&amp;rsquo;t write into config directory &amp;lsquo;config&amp;rsquo;. This can usually be fixed by giving the webserver write access to the config directory.&amp;rdquo;. I have even tried setting 777 permissions to the config directory and config.php file without luck.&lt;/p>
&lt;p>I have &lt;strong>worked around&lt;/strong> the problem by deleting the &lt;em>/usr/share/webapps/owncloud/config&lt;/em> symlink, and replacing it by a &amp;ldquo;config&amp;rdquo; directory with the config file, but this will cause problems the next time I update owncloud, so I would like to know how to properly fix this.&lt;/p>
&lt;p>So the only thing I &lt;strong>didn&amp;rsquo;t do&lt;/strong> , is the &lt;em>pacman -S owncloud&lt;/em>&lt;/p>
&lt;p>I also tried to install nginx. Although I found many tutorials how to do it, but it didn&amp;rsquo;t work my systemd entry. Maybe I&amp;rsquo;m doing something wrong. I might test it next time. So next server in a row was Lighttpd. I read &lt;a href="http://www.wikivs.com/wiki/lighttpd_vs_nginx" target="_blank" rel="noopener noreferrer">lighttpd vs nginx&lt;/a>
 and a test of &lt;a href="http://www.whisperdale.net/11-nginx-vs-cherokee-vs-apache-vs-lighttpd.html" target="_blank" rel="noopener noreferrer">Nginx, Cherokee and Lighttpd&lt;/a>
.&lt;/p>
&lt;p>This tutorial has 3 sections:&lt;/p>
&lt;ul>
&lt;li>Tips to setup Raspberry Pi Arch Linux&lt;/li>
&lt;li>Setup Lighttpd and PHP&lt;/li>
&lt;li>Setup ownCloud&lt;/li>
&lt;/ul>
&lt;p>Before we start, download &lt;a href="http://downloads.raspberrypi.org/arch_latest" target="_blank" rel="noopener noreferrer">Arch Linux image for Raspberry Pi&lt;/a>
. After I copy it (dd if=Arch&amp;hellip;..img of=/dev/sdX bs=1M;sync), I opened gparted to create a new partition, the rest of the SD (ext4 partition). This can be done with fdisk but you save some time.&lt;/p>
&lt;p>1. Now boot your Raspberry pi and update everything:&lt;/p>
&lt;div class="highlight">&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-bash" data-lang="bash">&lt;span style="display:flex;">&lt;span>pacman -Syu
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;p>2. Mount the extra partition you made. How to do that?&lt;/p>
&lt;p>Find the name of the partition&lt;/p>
&lt;p>cat /proc/partitions&lt;/p></description></item></channel></rss>