mirror of
https://github.com/streamaserver/streama.git
synced 2026-04-25 18:45:59 +03:00
Page:
Local Streama Setup
Pages
Compiling the source code
Deploying SSL on Apache2 on Ubuntu (with letsEncrypt & Certbot)
Deploying SSL on Niginx on Debian or Ubuntu (with letsEncrypt & Certbot)
Email configuration
FAQs
Full streama setup on a clean Ubuntu18 with mysql, system.d & letsencrypt
Getting Started (Windows)
Getting started
Home
How to add your first Movie
How to report a bug
How to use Docker image
Installing as a service from Git on Ubuntu 16.04
Local Streama Setup
Managing h2 using dbconsole
Manually build Streama .war file
Nginx as a reverse proxy
Running Streama as a Linux service (with autostart) (Ubuntu 14 and below) using etc init.d
Running as a service (autostart) on Ubuntu 15 or higher
Set Up Streama for Development
Setup Streama on Centos 7
Setup Streama on Ubuntu 14.04
Streama regex Matcher for Batch File Adding
System Requirements
Translating the app
Tutorial for creating the SSL keystore file for a default Tomcat installation on Ubuntu using a free certificate from www.startssl.com
Upgrading Streama from a previous version
Video Codecs & Conversion
No results
6
Local Streama Setup
Antonia Engfors edited this page 2020-03-23 09:57:32 +01:00
Step 1 - JDK
- If you don't have it already, go ahead and download a copy of [JDK8 (Oracle)]
- install JDK as usual, make sure to let JDK add new variables to your system
- After install, open up your command line and make sure the following outputs look correct:
java -version- this should be something like 1.8.0_144echo $JAVA_HOME- this should be something like /Library/Java/JavaVirtualMachines/jdk1.8.0_144.jdk/Contents/Home or /usr/lib/jvm/java-8-oracle
Step 2 - Clone the git repo
- In your command line, or your favorite Git Application, clone this repo to your desired location.
git clone git@github.com:dularion/streama.git.- Note: This location will most likely differ from the Upload Directory of your video-files, so you don't have to keep that in mind while choosing the repo-location.
Step 3 - MySQL Database
- if you don't have a local installation of MySQL, install one. It could also be useful to have a way to browse your databases in a convenient way, for instance with phpMyAdmin. To get all in one, i recommend XAMPP
- once your MySQL is up and running, create a database called "streama". via command line, this would be
mysql> CREATE DATABASE streama; - the application assumes the following login-credentials for the database:
username root, no password. If you want to change this, find and edit the information in/grails-app/conf/DataSource.groovy.
Step 4 - Upload Directory
- Somewhere on your machine, create a directory where the application will store the uploaded video files. You can choose any directory.
Step 5 - Run the application
- open your command line tool
- navigate to the directory of the repo. for instance
cd /projects/streama - on Windows, run
grailsw.bat run-war - on a unix-system (Ubuntu, Mac, etc), run
./grailsw run-war - This command will download the local version of grails and run the app under http://localhost:8080
Step 6 - Base Settings
- the first thing you will see when opening the URL is a login screen. Use username
adminand passwordadminto log in. - You will then be redirected to the Settings page
- enter the Upload Directory that you created in step 4 & verify if the application has access by pressing the "verify" button
- enter your API-Key for theMovieDb.org & verify
If Everything worked out all right, you are now ready to use the application!
Troubleshooting
Upload Directory
- if the application cannot verify your Upload Directory, make sure you have the right permissions for the folder. If the app is running in a different user, make sure to add read/write permissions for the group or even all on the folder, through something like this
chmod g+rw your/directoryorchmod ga+rw your/directory
Startup problems
- if your application throws errors on startup and won't deploy, make sure that your
$JAVA_HOMEis set correctly. It needs to point to your installation of JDK not JRE, and it needs to be version 1.7.x, not 1.6.x or 1.8.x. - Make sure your MySQL is running and that the application can access it with the credentials above
Video Playback
- if your videos won't play, make sure that they are HTML5 compatible. I will add video-conversion soon, but right now there is no conversion, so you have to rely on what your browser can handle. A quick and easy test is to open a new empty browser-tab and drag&drop your video file in. If it shows up in a player, then it's a compatible format. If it downloads, it's incompatible. Also, of all browsers, Chrome supports most of the HTML5 formats as far as I know.