install motioneyeos on raspberrypi [debian / ubuntu]

based on:
https://github.com/ccrisan/motioneyeos/wiki/FAQ
https://www.youtube.com/watch?v=G7DwPzSbLlc

get motioneye:
install unpack:
sudo apt install unp

get motioneye for rpi:
cd ~/Downloads
wget https://github.com/ccrisan/motioneyeos/releases/download/20161212/motioneyeos-raspberrypi-20161212.img.gz
unp motioneyeos-raspberrypi*.gz
rm motioneyeos-raspberrypi*.gz

or get motioneye for rpi2:
cd ~/Downloads
wget https://github.com/ccrisan/motioneyeos/releases/download/20161212/motioneyeos-raspberrypi2-20161212.img.gz
unp motioneyeos-raspberrypi*.gz
rm motioneyeos-raspberrypi*.gz

or get motioneye for rpi3:
cd ~/Downloads
wget https://github.com/ccrisan/motioneyeos/releases/download/20161212/motioneyeos-raspberrypi3-20161212.img.gz
unp motioneyeos-raspberrypi*.gz
rm motioneyeos-raspberrypi*.gz

burn in onto sd card from linux (debian / ubuntu): Continue reading

install nextcloud (owncloud fork) on raspberry pi [raspberrypi2]

updated for 11.0.1

when i took the ready made sd-card from this tutorial for the pi2 and inserted it into a rpi1B (512mb ram) it worked,
but nextcloud was operating slower and it had problems to upload a 250MB file
you can see how much ram you have with running:
free -m

based on:
https://www.canox.net/2016/06/die-eigene-cloud-mit-dem-raspberry-pi-und-nextcloud/
http://zwyuan.github.io/2016/02/02/how-to-set-up-owncloud-on-ubuntu-14.04-lts-server-part-ii/
https://debian-administration.org/article/662/Enabling_HTTP_Strict_Transport_Security_on_debian_servers

https://www.thomas-krenn.com/de/wiki/Absicherung_eines_Debian_Servers
https://blog.jj-it-services.de/apache-web-server-absichern/
https://www.psw-group.de/blog/fruehjahrsputz-apache2-aufraeumen-performance-tunen-absichern/2092
http://freiesoftwareog.org/downloads/OwnCloudAufRaspberryPi.pdf

1) download, write image
2) enable ssh,change password, resize, update, upgrade image
2.3) optional install byobu and liquidprompt (easier to manage the terminal)
3) install nextcloud
4) install no-ip
5) port forwarding in your router
6) install letsencrypt
7) configure apache2
8) setting strong directory permissions
9) do backgroundjobs with cron instead of AJAX
10) install your nextcloud clients on your devices (smartphone, pc)
11) security
—11.0) upgrade nextcloud when a new release arrives
—11.1) check your ssl connection
—11.2) enable fail2ban for logins
—11.3) install ufw (uncomplicated firewall)
—11.4) manually check log files
—11.5) run update && upgrade on a regular basis
12) daily backup nextcloud(rsync data and config directorys to usb-stick)
13) upgrade
—13.a) upgrade manually(if a new version is avaliable, for example from 11.0.1 to 11.0.2)
—13.b) upgrade web based(if a new version is avaliable, for example from 10.0.1 to 10.0.2)
14) nextcloud’s command line
15) other stuff

Continue reading

opensimulator server on rpi2 [raspberrypi]

This tutorial is outdated. i made a new tutorial for rpi2 for diva distro 0.8.2.1 or for opensim 0.9 rc2:
https://fredfire1.wordpress.com/2017/01/23/diva-distro-opensimulator-on-rpi2-raspberrypi/

if you have a pi1B maybe try this old tutorial instead:
https://fredfire1.wordpress.com/2014/07/20/opensim-raspberrypi/

============================================
what i did to create the preconfigured image:

a)from the tutorial below i did steps 0-8 and steps 16*) and 17*)
b)shrunk the image to 2.5 GB (based on https://fredfire1.wordpress.com/2014/07/01/shrunk-image-raspberry-piubuntu/)
c)zipped it to 1GB
d)uploaded it to dropbox

what you have to do to use my preconfigured image:

a) download the image, unzip it and burn it on a sd-card of at least 4 GB space
b) login and change the password for user pi with: passwd
c) change the ip address to yours
it is explained in step 7) in the tutorial below
(i recommend to use “only in your local network” so you have not to worry about security problems)
d) run sudo raspi-config and expand to full sd card, then reboot
e)now you are able to start opensim with:
cd ~/opensim-0.8.2.0/bin
mono OpenSim.exe

f)if your sim is running you can login with firestorm explained in step 9) in the tutorial

dropbox link to the image:
https://www.dropbox.com/s/x64bn0dzbqv0j8j/jessie-lite-opensim-image-7-4-2016.img.zip

used passwords in the preconfigured image:
—————
ssh login:
user=pi
password=raspberry

mysql:
user=root
password=pi
username=opensimuser
password=opensimpass

OpenSim information:
Region Name=opensimpi
Estate name=testersim
username – FirstName=Test
username – LastName=User
password=Test
============================================

This tutorial was updated on 4. july 2016

this tutorial is for the raspberrypi2:
https://www.amazon.de/Raspberry-Pi-quad-core-Cortex-A7-compatibility/dp/B00T2U7R7I/

based on:
http://www.s-config.com/opensimraspberry-pi-rasbian-hard-float-works/
https://fredfire1.wordpress.com/2014/07/20/opensim-raspberrypi/

http://opensimulator.org/wiki/0.8.1_Release

0) get latest pi-light image and burn it on sd-card
1) install software
2) setup mysql-database
3) get latest mono version
4) download and setup opensim
5) create your own libode.so and place it in the correct folder
6) create your own libopenjpeg.so and place it in the correct folder
7) setup your ip-adress of your pi
8) manually start opensim and setup
9) if your sim is running login with firestorm

next steps are optional:
10*) if the address of your server changes
11*) scripts to handle opensim
12*) security- install and setup uncomplicated firewall (ufw)
13*) usefull opensim commands
14*) backup and import inventory
15*) backup and import region
16*) clean old sourcefiles and no more used programs
17*) shred logs
18*) create and delete NPCs
19*) try Godmode

Continue reading

raspberrypi gpio names (printout version) works for Pi 2, A+, B+ [raspberrypi]

r2 gpio_paper11-small

simply download the .pdf file r2 gpio_paper and print it with your printer.

then cut it out and make little holes with a pin on the black dots where the gpio should come through.

done 🙂

if you like to learn more about the pins (don’t know what model it works with):
http://pinout.xyz/