Skip to content

Instantly share code, notes, and snippets.

@kylefox
Forked from jbergler/.gitignore
Created December 9, 2018 02:33

Revisions

  1. @jbergler jbergler revised this gist Aug 29, 2015. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions .gitignore
    Original file line number Diff line number Diff line change
    @@ -0,0 +1 @@
    .vagrant
  2. @jbergler jbergler revised this gist Aug 29, 2015. 1 changed file with 4 additions and 3 deletions.
    7 changes: 4 additions & 3 deletions README.md
    Original file line number Diff line number Diff line change
    @@ -1,10 +1,11 @@
    # Requirements

    1. Install [Vagrant](http://www.vagrantup.com/downloads)
    1. Clone this gist.
    1. Clone this gist, `git clone https://gist.github.com/a51db1442ca226cc5973.git acestream-via-vm`

    # Streaming

    1. In the cloned gist, `vagrant up`
    1. Open network stream in VLC, http://127.0.0.1:8000/pid/<acestream id>/stream.mp4
    1. `cd acestream-via-vm`
    1. Start the VM: `vagrant up`
    1. Open network stream in VLC, http://127.0.0.1:8000/pid/acestream id/stream.mp4
    1. When done, `vagrant halt`, alternatively if you want to clean up use `vagrant destroy`
  3. @jbergler jbergler created this gist Aug 29, 2015.
    10 changes: 10 additions & 0 deletions README.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,10 @@
    # Requirements

    1. Install [Vagrant](http://www.vagrantup.com/downloads)
    1. Clone this gist.

    # Streaming

    1. In the cloned gist, `vagrant up`
    1. Open network stream in VLC, http://127.0.0.1:8000/pid/<acestream id>/stream.mp4
    1. When done, `vagrant halt`, alternatively if you want to clean up use `vagrant destroy`
    21 changes: 21 additions & 0 deletions Vagrantfile
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,21 @@
    Vagrant.configure(2) do |config|
    config.vm.box = "ubuntu/trusty64"
    config.vm.network "forwarded_port", guest: 8000, host: 8000 # for aceproxy

    # Provisioned once on VM creation
    # Install acestream-engine and aceproxy
    config.vm.provision "shell", inline: <<-SHELL
    sudo sh -c 'echo "deb http://repo.acestream.org/ubuntu/ trusty main" >> /etc/apt/sources.list.d/acestream.list'
    sudo wget -O - http://repo.acestream.org/keys/acestream.public.key | sudo apt-key add -
    sudo apt-get update
    sudo apt-get install -y python-gevent python-psutil git acestream-engine
    git clone https://github.com/ValdikSS/aceproxy.git
    SHELL

    # Provisioned every startup
    # Start aceproxy and acestream-engine in screen sessions
    config.vm.provision "shell", run: "always", inline: <<-SHELL
    screen -S acestream -d -m acestreamengine --client-console
    screen -S aceproxy -d -m python aceproxy/acehttp.py
    SHELL
    end