CHIP does OwnCloud - Now with PocketCHIP web-client [tutorial]


#1

Update 1: The installer is updated with AVAHI setup and HOSTNAME change option for easy access
Update 2: The installer is updated, so you now can change any HOSTNAME and not just “chip”. I also added end-script tutorial
Update 3: now with PocketCHIP web-client

Hello all.
After, what i found, to be two successful CHIP installer projects (Guacamole and CRM) I decided that it was time for one more.

THE CHIP DOES OWNCLOUD

Again i have done the hard work for you and created an installer that is as easy to use as the rest of them

The steps are super simple:

wget https://raw.githubusercontent.com/AllGray/OwnCloud/master/owncloud-chip-installer.sh
chmod +x owncloud-chip-installer.sh
sudo ./owncloud-chip-installer

When that installation is done, open up your favorite browser on your favorite Computer (on the same network as the CHIP) and go to http://HOSTNAME.local/owncloud if you have Bonjour installed on your Computer, or http://YOUR.CHIP.LOCAL.IP/owncloud if you don’t have Bonjour installed
If you want to set it up from a PocketCHIP then read on a little longer.

Here you will see a screen similar to this one:

Just put in what you want for Username and Password and keep the Database as SQLite

In the install script we just installed we created a datafolder in /media/ownclouddrive so type that in the Data Folder settings (This is also where you want to mount external storage)

After that you just press “Finish Setup” and you are good to go.

PocketCHIP WEB-Client

If you have a PocketCHIP and want a super lightweight Owncloud web-client then read on here:
You need to have @marshmallow’s PocketHOME installed.
From your PocketCHIPs terminal (or via SSH) type the following:

wget https://raw.githubusercontent.com/AllGray/OwnCloud/master/pocketchip_owncloud_client.sh
chmod +x pocketchip_owncloud_client.sh
./pocketchip_owncloud_client.sh

From here you just need to follow the installer, and boom. You are good to go.

You can read more about OwnCloud here https://owncloud.org/
You can sign up for the Chipster Slack Team Here If you want to discuss everything CHIP related.
You can follow my Github page Here, Expect some cool projects in the near future.

Good luck with the install, and please share your experience.

Thanks where thanks is due. @tehCoops was again a big help at getting everything running smoothly
Thanks to the whole Slack community for testing and keeping up with me whining when stuff isn’t working


Just to see what sticks
Can I serve a directory over NFS from my CHIP?
CHIPping up my iMac G3
What software is essential/popular for any pocketchip?
Bunch of bananas and other sh!t
#2

Interesting I have to look into this. Since I have a spare chip sitting around


#3

The whole process should not take more than 15 minutes, if that.
Please share your experience and let me know if there is anything you think i can do better.


#4

I’m rather new to these single board computer’s. I had my Chip laying around and figured this would be a good project. And thank you for making it easy. I did everything through SSH, but I keep getting this error when accessing my Chip.


#5

Oh man. Thank you for this error. I will update the installer right away.
To fix your problem go back into the terminal (via ssh) and type:
sudo apt install locales && sudo dpkg-reconfigure locales && sudo locale-gen

Report back to me, if that helped the problem


#6

What is the terminal command to start the server?

I rebooted my Chip installed the locales.

I’m updating the Chip.


#7

The server should start on boot.
You can restart it by typing systemctl restart apache2 if you want.
You can also just reboot the whole system by typing sudo shutdown -r now

It is always a good idea to run sudo apt update && sudo apt upgrade before you do any projects on your system


#8

It’s working now. Thank you!


#9

Great to hear that.
I hope you will enjoy it.


#10

The installer is updated with AVAHI setup and HOSTNAME change option for easy access.
The error @arekay experienced is also eliminated.


#11

It actually worked for me! When I tried to do it from scratch a while ago, it didn’t work. But I feel like this installer script was made for me. :two_hearts: AllGray, you always nail it. How does he do this!?


#12

Thank you @Jalonzpa.
I’m not going to lie. It was your complaining of it not working that made me make it.
I don’t really have any interest in owncloud myself so I’m glad it worked for you.


#13

The installer is updated so you now can change any HOSTNAME and not just "chip"
I also added an end-installer message.


#14

Nice. Support for MySQL/MariaDB is recommended in my testing because it is a lot faster. Even on low end hardware. Question: Why don’t you use Nextcloud? It is more actively developed and seems to have more features especially around security?


#15

In my testing MySQL was a great deal slower that SQLite.
I used Owncloud over Nextcloud because i had the idea that users where more familiar with Owncloud.
I understand now that Nextcloud would have been a better choice, and i will make the transition in the near future


#16

SQLite is a lot smaller than mysql/mariadb so probably a better choice given the memory constraints of the chip.

Given the choice between mysql and mariadb I would always choose mariadb, it is mysql with added features and patches.


#17

I have updated the guide with instructions on how to get a super lightweight PocketCHIP web-client installed.
I hope you enjoy.