Commit Graph

195 Commits

Author SHA1 Message Date
Lapotor 9160ffaf20 Delete requirements-ubuntu-xenial.apt 2017-04-09 21:43:02 +02:00
Lapotor 92eb3946ab Create requirements-ubuntu-xenial.apt
Made a list of pakages which arent't avaibled in Ubuntu 16.04
2017-04-09 20:48:36 +02:00
Lucas Bickel 19320e623c Install curl on all platforms
As per the https://github.com/LibreTime/libretime/issues/145#issuecomment-292744215 it looks like we always need to install this.
2017-04-09 12:48:04 +02:00
Lucas Bickel 7d1bc8730d Install python-rgain and mp3 deps 2017-04-01 00:10:25 +02:00
Lucas Bickel b267036483 Fix recording through ecasound
This is part 2 of fixing ecasound recordings from line-in. Part 1 restored the User-Interface, part 2 takes care of getting to the point where ecasound gets started, records something and uploads it through rest when done. Part 3 will take care of making sure that the recorded file is mapped to the show and not just stored as a new track.

I refactored api_clients to not use urllib2 for posting multipart data since I was loosing my sanity over it and requests seems to have a modern approach to doing this compared to what api_clients was previously doing.
2017-03-24 15:15:37 +01:00
Lucas Bickel 90ac159a52 Restart services always with systemd
This essentially results in the same behaviour legacy upstream was exploiting in upstart. Normally I would argue that depending on such a feature as part of an applications runtime feature-set is bad. This applies, but until we can get that sorted at another leevel this makes everything work as intendend when running tthrough systemd.
2017-03-18 12:28:17 +01:00
Lucas Bickel 7f8b73d9ae Add missing playout dependency 2017-03-13 20:56:59 +01:00
Lucas Bickel d2ffb6d91d Add missing packages 2017-03-13 14:10:03 +01:00
Lucas Bickel c29285ae48 Vagrant Debian support (and experimental CentOS)
This changes the Vagrant setup to support multiple installations as multiple
boxes. In addition to Ubuntu Vagrant can now be used to install on Debian
as well as on CentOS.

I took the chance to clean up the .deb install a bit and backported analyzer
and celery to SysV proper so it runs there. Some of the distro specfics were
moved to the install script from the python setup scripts to acheive this.

For the CentOS support I added a rather involved OS prepare script. In the
long term this will be added to the preparing-the-server docs we already have.

I had to switch the default port to http-alt (8080). On CentOS 9080 is registered
for ocsp and getting it to work for apache without hacking SELinux is hard. I
think 8080 is the RFC way to go anyhow. If anyone want to override this it
should be rather easy using the --web-port arg and by hacking Vagrantfile.

The PyOpenSSL code has been refactored for all the distros that the Vagrantfile
now supports.

As far as my checks go, I tried this code with all the distros, uploaded a track
and downloaded a unicode and a ssl podcast and was able to listen to them
in each case.

In the experimental CentOS case, the UI is not up to spec since services
need to get scheduled through systemctl and the status overview (ie. on the /?config page)
do not work properly. They need to be as follows:

```
sudo systemctl start airtime-playout
sudo systemctl start airtime-liquidsoap
sudo systemctl start airtime_analyzer.service
sudo systemctl start airtime-celery.service
```
2017-03-12 13:42:22 +01:00
Robb Ebright 880496c20f Merge branch 'install-fix-python-ssl-workaround' of https://github.com/Robbt/libretime into Robbt-install-fix-python-ssl-workaround 2017-03-11 09:56:46 -05:00
Robb Ebright 2ae2377ee2 Modified install script to install PyOpenSSL for Ubuntu 14.04 for airtime-celery SSL fix 2017-03-10 17:13:24 -05:00
Lucas Bickel bd2f96acf2 Switch LibreTime port to 9080 in vagrant
Also expose icecast and make the airtime port generally configurable from the installer.

To aid in debugging and support the -v (verbose) argument was added to the call.
2017-03-07 13:26:52 +01:00
Lucas Bickel 9735e4cfd7 Remove zf1 requires from installer
We use it from vendor/ so there is no need to install it any more.
2017-03-02 13:47:07 +01:00
Duncan Sommerville 9ba6ab3ef7 Add modrewrite conditions to apache 2.4 vhost template 2015-06-17 14:53:31 -04:00
Albert Santoni 674d748149 CC-6058: htaccess should be combined into apache site config 2015-06-16 11:32:09 -04:00
Albert Santoni 0eebd182dd Installer support for Ubuntu 15.04 2015-03-16 12:22:17 -04:00
Duncan Sommerville 3782817819 More install dependency fixes 2015-03-11 17:10:34 -04:00
Duncan Sommerville 3fba1b9636 Removed nonexistant packages 2015-03-11 14:40:19 -04:00
Albert Santoni 1a8883b91d Merge branch '2.5.x-installer' of github.com:sourcefabric/Airtime into 2.5.x-installer 2015-02-23 12:50:43 -05:00
Daniel James 071715415b Fix permissions on files for Debian/Ubuntu compliance 2015-02-23 17:41:56 +00:00
Albert Santoni bce2bb931b Added Debian Jessie support 2015-02-13 21:22:39 -05:00
Albert Santoni 13939a5129 Fix requirements for trusty 2015-02-13 16:32:01 -05:00
Albert Santoni bbcd4fbe2e Tons of bugfixes for the installer on Debian
* Still need to get pypo working with sysvinit
* Still need to fix this logger.cfg silliness with pypo and
  media_monitor
2015-02-13 11:32:07 -05:00
Albert Santoni d46f4a52eb Installer tweaks and a pypo bugfix
* Moved all the remaining DEB requirements into the requirements files
* The installer should now be distro agnostic (unless you ask it to
  install third-party deps for you)
* Fixed pypo not being able to find replaygainupdater
* Tweaked a bunch of styling for the installer
2015-02-10 18:06:46 -05:00
Duncan Sommerville cd102b984b Remove UseCanonicalName and UseCanonicalPhysicalPort from apache vhost files for now as it can misdirect requests - see warning @ http://httpd.apache.org/docs/current/mod/core.html#usecanonicalname 2015-01-26 14:22:47 -05:00
Duncan Sommerville 7034c8e00d Initial fix for apache 2.4 vhost file 2015-01-20 17:31:59 -05:00
Duncan Sommerville 57e4ba5292 requirements.apt for Ubuntu Precise 2015-01-19 15:05:49 -05:00
Duncan Sommerville c5a60d2f09 Last updates before 2.5.2 RC, mainly small fixes for Ubuntu Precise 2015-01-19 15:05:13 -05:00
Duncan Sommerville 791466b023 Fixes for code review https://github.com/sourcefabric/Airtime/pull/84 2015-01-15 16:33:33 -05:00
Duncan Sommerville 5e22f929c7 Reverted commit mistakenly changing file modifiers to 755 2015-01-14 20:45:03 -05:00
Duncan Sommerville 380ec41201 Removed Skip this step buttons in web installer, removed opus plugins from requirements.apt files 2015-01-14 18:07:33 -05:00
Duncan Sommerville df2576e5a0 Updated installer to better accommodate running over existing installs 2015-01-14 16:11:49 -05:00
Duncan Sommerville 9f6bd33076 Fix returning stor directory from database in uninstall, work on getting lxc-bootstrap working with debian 2015-01-13 15:50:01 -05:00
Duncan Sommerville 3908e82667 Add apt.sourcefabric.org to apt sources.list, remove incorrect packages from debian requirements.apt 2015-01-13 15:14:56 -05:00
Duncan Sommerville e7490d6b2d Fixed lxc-bootstrap to make a shallow clone, updated uninstall script, added initial debian wheezy requirements file 2015-01-13 12:28:36 -05:00
Duncan Sommerville 674b8c69e4 Add very basic uninstall script, move install script to root directory 2015-01-12 16:13:39 -05:00
Duncan Sommerville 0fcac545e6 For now, just prompt users to start background services at the end of the install process 2015-01-12 10:53:31 -05:00
Duncan Sommerville bf1355a203 Yet another attempt to run upstart jobs as unprivileged user 2015-01-12 09:48:08 -05:00
Duncan Sommerville 24123ef45d Added setup config file for upstart session init 2015-01-09 11:21:44 -05:00
Duncan Sommerville 1ddda846d6 Updates to running background services as web user 2015-01-08 18:52:58 -05:00
Duncan Sommerville a9d3a8aefd Fixed bad reference path 2015-01-08 14:18:12 -05:00
Duncan Sommerville d81934e44c Fixed bad reference path and added a note to lxc-bootstrap about weird lxc caching issue 2015-01-08 14:06:28 -05:00
Duncan Sommerville e568013db6 More work on running services as web user 2015-01-08 13:21:08 -05:00
Duncan Sommerville ab35827439 Different approach for running airtime services as unprivileged user 2015-01-08 12:56:09 -05:00
Duncan Sommerville 4559e3e27d More work on running upstart services as non-privileged user 2015-01-08 10:48:54 -05:00
Duncan Sommerville d7dd381ec3 Added Upstart.conf file to give web user permission to run services 2015-01-08 10:07:22 -05:00
Duncan Sommerville a790527e67 More work on running upstart services as non-privileged user 2015-01-08 10:06:37 -05:00
Duncan Sommerville e6d8a6f25e Move upstart .conf files to directory accessible by non-privileged users 2015-01-07 16:04:48 -05:00
Albert Santoni ab96a48559 Use LXC distro templates instead of "download" template 2015-01-07 14:11:42 -05:00
Duncan Sommerville c66e6aa849 More work on getting services working with new installer 2015-01-07 10:01:32 -05:00
Duncan Sommerville f4c5cf1353 Added virtualenv back into install process 2015-01-05 16:41:03 -05:00
Duncan Sommerville 029d1b0624 Added virtualenv back into install process 2015-01-05 14:59:26 -05:00
Duncan Sommerville 5f137d99a3 Added virtualenv back into install process 2015-01-05 14:42:53 -05:00
Duncan Sommerville 97ef6a3150 Added services to pythonpath 2015-01-05 12:43:58 -05:00
Duncan Sommerville 34684c8275 Added services to pythonpath 2015-01-05 12:20:25 -05:00
Duncan Sommerville fc68dfa256 Fixed service execution calls 2015-01-05 11:16:58 -05:00
Duncan Sommerville 5cd15c1887 Add sudoers file to run upstart commands as web user 2015-01-05 10:49:25 -05:00
Duncan Sommerville ee96380a41 Test to start upstart jobs as web user 2015-01-05 10:16:44 -05:00
Duncan Sommerville f35fb4968c Test to start upstart jobs as web user 2015-01-05 09:47:06 -05:00
Duncan Sommerville 344e1aa194 Test to start upstart jobs as web user 2015-01-05 09:30:08 -05:00
Duncan Sommerville 6be35afab9 More work on media-monitor and pypo install process 2014-12-19 17:30:56 -05:00
Duncan Sommerville 54748b6275 More work on media-monitor and pypo install process 2014-12-19 17:16:50 -05:00
Duncan Sommerville a418889999 More work on media-monitor and pypo install process 2014-12-19 15:58:45 -05:00
Duncan Sommerville 78de813000 More work on media-monitor and pypo install process 2014-12-19 15:31:27 -05:00
Duncan Sommerville 8827acfe8e More work on media-monitor and pypo install process 2014-12-19 14:09:41 -05:00
Duncan Sommerville 659a7e8aa3 More work on media-monitor and pypo install process 2014-12-19 14:01:17 -05:00
Duncan Sommerville 75c2a4a18b More work on media-monitor and pypo install process 2014-12-19 13:49:33 -05:00
Duncan Sommerville ae6352a057 Initial work on switching media-monitor to use setuptools 2014-12-19 12:26:41 -05:00
Duncan Sommerville 32f40f3dc8 Updated configuration checklist to include running services 2014-12-19 11:44:23 -05:00
Duncan Sommerville 6bc3a1cfba More work on switching pypo to use setuptools, added lxc-bootstrap script for ease of testing across distros 2014-12-19 09:47:54 -05:00
Duncan Sommerville 29917ebf63 More work on switching pypo to use setuptools 2014-12-17 16:42:29 -05:00
Duncan Sommerville 97805ad271 Removed many unnecessary files and started changing pypo to use setuptools 2014-12-17 16:22:40 -05:00
Duncan Sommerville 144923c353 More fixes to accommodate running installer from inside an lxc container daemon 2014-12-17 11:15:36 -05:00
Duncan Sommerville d3fe20824e Fix to accommodate running installer from inside an lxc container daemon 2014-12-17 11:05:02 -05:00
Duncan Sommerville eefe8910cf More work on monitless installer 2014-12-16 21:27:37 -05:00
Duncan Sommerville ad4b61e89f More work on monitless installer 2014-12-16 19:05:17 -05:00
Duncan Sommerville 4043ebfd25 More work on monitless installer 2014-12-16 16:26:58 -05:00
Duncan Sommerville bfe9d4f2c5 More work on monitless installer 2014-12-16 16:00:23 -05:00
Duncan Sommerville 8a353f970c More work on monitless installer 2014-12-16 15:45:35 -05:00
Duncan Sommerville 8ec6eb0140 More work on monitless installer 2014-12-16 15:02:53 -05:00
Duncan Sommerville 4dfd49d12c Initial work on monitless installation 2014-12-16 12:24:41 -05:00
Duncan Sommerville baa6d89f93 More work on base install script 2014-12-15 09:54:15 -05:00
Duncan Sommerville 889112ca84 More work on base install script 2014-12-11 19:16:18 -05:00
Duncan Sommerville 369b18cb98 More work on base install script 2014-12-11 16:42:05 -05:00
Duncan Sommerville 065d8da4f4 More work on base install script 2014-12-11 15:55:16 -05:00
Duncan Sommerville 3966a7aa36 More work on base install script 2014-12-11 14:13:17 -05:00
Duncan Sommerville f80d74822d More work on base install script 2014-12-11 12:58:34 -05:00
Duncan Sommerville f5b4928538 More work on web installer 2014-12-09 17:48:16 -05:00
Duncan Sommerville 9fed113f74 More work on setup/installation process 2014-12-03 18:04:47 -05:00
Duncan Sommerville 4a1354c45f Work on new WordPress style install process 2014-11-27 18:47:05 -05:00
Duncan Sommerville 85d965055d More work on simple installer 2014-11-26 17:00:59 -05:00
Duncan Sommerville 51627e6270 More work on simple installer 2014-11-26 16:35:13 -05:00
Duncan Sommerville f9d52c6c00 Added Require all granted to apache-vhost 2014-11-26 11:38:53 -05:00
Duncan Sommerville f220594831 Fixes to basic installer 2014-11-26 11:08:17 -05:00
Duncan Sommerville 162005e225 Initial work on new installer 2014-11-26 10:35:54 -05:00