Attention: All pages of this wiki depend on the pages that come before it, in order as they are listed on the Main Page. Please check for Dependencies.
Please also look at What You Need to Know Before Using This Wiki

Install OpenBroadcaster

From COCNM
Jump to: navigation, search

System Prep

  • apt-get install python python-gst0.10 python-gobject gstreamer0.10-plugins-base gstreamer0.10-plugins-good gstreamer0.10-plugins-bad gstreamer0.10-plugins-ugly apg php5-gd mysql-server php5-mysql apache2 php5-curl php5-imagick vorbis-tools festival libavcodec-extra-53 libavdevice-extra-53 libavfilter-extra-2 libavformat-extra-53 libavutil-extra-51 libpostproc-extra-52 libswscale-extra-2 libav-tools gstreamer0.10-ffmpeg

Obtain and Unpack OpenBroadcaster

Run the Installer Script (You type the parts in bold)

  • bash ./ob.installer.sh
  • Welcome to the OpenBroadcaster installation script.
  • I will assist with the installation OpenBroadcaster by asking you questions about your system and then creating an appropriate database and file structure for you.
  • Please enter appropriate values for your system. Press Enter to accept the default values displayed in [square brackets]. Default values should be sane for a Debian system.
  • First, I need to know about where your files and directories will live and how to set permissions on them
  • Please enter the path to store web based files (DocumentRoot): [/var/www/openbroadcaster]/var/www/media.computerisms.com/www
  • Please enter the path to store your media files: [/media/openbroadcaster]/var/www/media.computerisms.com/media
  • Please enter the WebServer username: [www-data]ob
  • Please enter a non-root user to own the openbroadcaster installation: [www-data]ob
  • Next, I would like to know about your MySQL database:
  • Would you like me to create your database for you (requires you enter your root mysql user/pass): [y]/n<ENTER>
  • Please provide a MySQL user with permission to create databases: [root] <ENTER>
  • Please enter a password for the MySQL user just entered (Passwords will not display):Bobs(abacus)2
  • Please enter the name of your OpenBroadcaster Database: [openbroadcaster]<ENTER>
  • Please provide a user to access the OpenBroadcaster Database: [obdbuser]<ENTER>
  • Please provide a password for the MySQL user just entered: [press enter to generate a random pass]<ENTER>
  • Please enter the MySQL host: [localhost]<ENTER>
  • If you need a table prefix for your MySQL database, enter it here:<ENTER>
  • And now, I wish to know how you intend to access your OpenBroadcaster interface:
  • If you need a prefix for your CSS, enter it here:<ENTER>
  • Please enter the FQDN of the site's URL: [openbroadcaster.example.com]media.computerisms.com
  • Please enter the IP of the server hosting openbroadcaster : [192.168.25.10]192.168.26.10
  • Please provide a password for the OpenBroadcaster Admin user (Passwords will not display):BobsMessenger
  • If you wish, provide salt for OpenBroadcaster user password: [Press Enter to generate random salt]<ENTER>
  • Now, I am going to ask some things about how to configure your OpenBroadcaster Installation:
  • Please provide a From email address for OB system mail: [noreply@example.com]media.server@computerisms.com
  • Please provide a Sender Name for OB system mail: [OpenBroadcaster v0.4]Computerisms Media Server
  • Thank You. I will now install OpenBroadcaster...
  • Database created and populated...
  • Media directory created and ready to use...
  • Site files are in place...
  • constants file created and populated...
  • Assuming your DNS is configured, you should be able adjust ob.apache.conf to your system
  • and copy it to the appropriate spot for your machine, restart apache, and browse to
  • http://ob.computerisms.com to access your system. Login in with username admin and the password you
  • set for the OpenBroadcaster Admin user. Enjoy.

Reset Permissions

  • chmod 2750 /var/www/media.computerisms.com/
  • chown ob:ob /var/www/media.computerisms.com/
  • find /var/www/media.computerisms.com/ -type d -exec chmod 2770 {} \;
  • find /var/www/media.computerisms.com/ -type f -exec chmod 0660 {} \;
  • chmod 0770 /var/www/media.computerisms.com/tools/*.py

Configure Apache

  • Note. In your cwd is an apache config file you can use as a base to start
  • vi /etc/apache2/sites-available/media.computerisms.com.conf
  • mkdir /var/log/apache2/media.computerisms.com
  • chown root:adm /var/log/apache2/media.computerisms.com/
  • a2ensite media.computerisms.com.conf
  • /etc/init.d/apache2 restart
  • samba-tool dns add houselian computerisms.com media A 192.168.26.10
  • samba-tool dns add houselian computerisms.com dslobby A 192.168.26.25

Configure OpenBroadcaster Server

  • Navigate to https://media.computerisms.com and sign in with user admin pass BobsMessenger
  • Navigate to admin=>modules, click the three install links
  • Navigate to admin=> device settings=>New Device=>Set Name as Digital Signage=>Enter Pasword as W0rd0fB0b=>set timezone=>Save Device
  • naviagate to help=>run tutorial (might take a minute to show up)=>At the end, schedule a show that won't start for a little while
  • Navigate back to admin=>device settings=>expand=>clikc on playlists tab=>drag a playlist to Default Playlist

Install OpenBroadcaster Remote

  • Find latest downloads here: http://openbroadcaster.com/downloads/</b>
  • Do this in a root terminal on dslobby.computerisms.com:
  • apt-get install ntp python python-argparse python-pycurl python-openssl python-apsw python-gobject python-gst0.10 python-gtk2 python-magic gstreamer0.10-plugins-base gstreamer0.10-plugins-good gstreamer0.10-plugins-bad gstreamer0.10-plugins-ugly ubuntu-restricted-addons ubuntu-restricted-extras
  • scp root@192.168.26.10:/var/CA/computerisms.com/CA/Computerisms.Certificate.Authority /usr/local/share/ca-certificates/Computerisms.Certificate.Authority.crt
  • update-ca-certificates
  • crontab -e
    • 00 23 * * * kill `ps -aef |grep python |grep obremote | awk '{print $2}'`
  • Drop root
  • Use a browser to get http://openbroadcaster.com/downloads/openbroadcaster-remote-4.0.0.zip and unpack it somewhere, like the desktop
  • Use nautilus to open this url ssh://192.168.26.10/var/CA/computerisms.com/dslobby.computerisms.com and copy dslobby.computerisms.com.crt to the Desktop
  • /home/god/Desktop/openbroadcaster-remote-4.0.0/obremote_loop

Configure OpenBroadcaster Remote

  • A window should open on the desktop
  • Click on Settings=>http admin tab=>enable http(s) admin=>set username to admin=>set password as BobsMessenger
  • Click OK=>Close=>Quit
  • Use a browser on adminlian to navigate to https://dslobby.computerisms.com:23233 and sign in with admin/BobsMessenger
  • Under Basic tab, set Device Password to TheW0rd0fB0b and Sync URL to https://media.computerisms.com/remote.php and click Save=>Wait till you see green bar with "Settings saved"=>click Quit/Restart
  • after the remote restarts, ensure your scheduled show shows up.
  • SuperKey(windows key=>type startup applications=>click startup applications
  • Navigate to System Settings=>Users=>Unlock==>set Automatic Login to on=>Lock=>close window
  • Click Add=>Set Name as OBRemote=>set command as /home/god/Desktop/openbroadcaster-remote-4.0.0/obremote_loop -f=>set comment as OBRemote=>Add=>Close
  • Reboot and make sure OBRemote starts