Modulo para grabaciones de Streaming en Wowza Streaming Engine

Installation


  1. Download wse-plugin-autorecord.zip.  
  2. Extract the contents from the downloaded (zipped) package, and then copy the lib/wse-plugin-autorecord.jar file from the package to the lib folder in your Wowza Streaming Engine installation ([install-dir]/lib).  
  3. Restart Wowza Streaming Engine.

Configuration


To enable this module, add the following module definition to your application configuration. See Configure modules for details.

NameDescriptionFully Qualified Class Name
ModuleAutoRecordAuto-record streams that are published to this application instance.com.wowza.wms.plugin.ModuleAutoRecord

Properties


After enabling the module, you can adjust the default settings by adding the following properties to your application. See Configure properties for details.

PathNameTypeValueNotes
/Root/Application/StreamRecorderstreamRecorderRecordAllStreamsBooleantrueStart a recorder for every stream that’s published to the application instance. This property can be overridden by the streamRecorderRecordType property. (default: true)
/Root/Application/StreamRecorderstreamRecorderAutoRecordDebugLogBooleantrueEnable debug logging for the module. Debug logging is also enabled for the main StreamRecorder debug logging (streamRecorderDebugEnable) or if logger debugging is enabled. (default: false)
/Root/Application/StreamRecorderstreamRecorderRecordTypeStringallowType of streams to record or how to interpret the streamRecorderStreamNames list. Valid values are:all – record all streams. Same as streamRecorderRecordAllStreamssource – record all source streamstranscoder – record all transcoder output streamsallow – record streams that match something the names listdeny – record streams that don’t match anything the names listnone – don’t automatically record any streams (default: all)
/Root/Application/StreamRecorderstreamRecorderStreamNamesStringmyStream|myOtherStreamPipe (|) or comma separated list of names to match. Can be a single wild card (*), complete names, regex match, wildcard prefix or wildcard suffix. (default: not set)
/Root/Application/StreamRecorderstreamRecorderStreamNamesDelimiterString~Delimiter chars used to separate the values in streamRecorderStreamNames property. (default: (\\||,) (regex for pipe or comma))

Usage


When the application is started, the module checks to see if the streamRecorderRecordAllStreams property is set to true (default) or if the streamRecorderRecordType property is set to all, and if so, it sets the Stream Recorder Manager to record all of the streams that are published to the application. Alternatively, streams are recorded based on the streamRecorderRecordType setting and if a match is found in the streamRecorderStreamNames list.

Each recorder that’s started uses the default StreamRecorder parameters that are configured for the application. These can be set using StreamRecorder properties. For more information, see Record live streams in Wowza Streaming Engine.

Codigo para Application.xml

            <StreamRecorder>
                    <Properties>
                            <Property>
                                    <Name>streamRecorderRecordAllStreams</Name>
                                    <Value>false</Value>
                                    <Type>Boolean</Type>
                            </Property>
                            <Property>
                                    <Name>streamRecorderRecordType</Name>
                                    <Value>allow</Value>
                                    <Type>String</Type>
                            </Property>
                            <Property>
                                    <Name>streamRecorderStreamNames</Name>
                                    <Value>STREAM NAME A GRABAR</Value>
                                    <Type>String</Type>
                            </Property>
                    </Properties>
            </StreamRecorder>

Eduma Learnpress CSS custom

Custom CSS Support

You want to hide/ display some things on the demo? It’s easy by using Custom CSS. (Add the Custom CSS to Appearance >> Customize >> General >> Custom CSS & JS >> Custom CSS)

1. Keep the menu sticky when scrolling the page:

#masthead.affix.menu-hidden {
-webkit-transform: inherit;
-moz-transform: inherit;
-ms-transform: inherit;
-o-transform: inherit;
}

2. Remove the overlay on top image for all pages:

.top_site_main>.overlay-top-header {
display: none;
}

3. Display WooCommerce cart icon in the header for all pages:

body:not(.woocommerce):not(.woocommerce-page) .widget_shopping_cart {
display: inline-block;
}

4. Display Footer Bottom on Homepage only:

body:not(.home) footer#colophon.has-footer-bottom {
margin-bottom: 0!important;
}

5. Remove Footer Bottom on Homepage only:

body.home footer#colophon.has-footer-bottom {
margin-bottom: 0;
}

6. Remove Course Features box:

#tab-overview .thim-course-info {
display: none;
}
#tab-overview .thim-course-content {
width: -webkit-calc(100% - 0px);
border-right: none;
}

7. Remove price of the courses + text “Free”:

.thim-course-megamenu .course-price .value, .thim-course-grid .course-item .thim-course-content .course-meta>div.course-price .value, body .learn-press .course-payment .course-price .value, .learn-press .thim-course-landing-button .course-price .value, .widget-area .thim-course-list-sidebar .course-price .value, .thim-course-list .course-item .thim-course-content .course-price .value {
display: none;
}

8. Remove text “Free”:

.thim-course-grid .course-item .thim-course-content .course-meta>div.course-price .value.free-course, .widget-area .thim-course-list-sidebar .course-price .value.free-course, .thim-course-list .course-item .thim-course-content .course-price .value.free-course, .thim-course-megamenu .course-price .value.free-course, body .learn-press .course-payment .course-price .value.free-course, .learn-press .thim-course-landing-button .course-price .value.free-course {
display: none;
}

9. Remove Take This Course button:

.learn-press .form-purchase-course .button-enroll-course {
display: none;
}

10. Remove Buy This Course button:

body .learn-press form.course-external-link, body .learn-press form.purchase-course .button-purchase-course {
display: none;
}

11. Remove related courses (You May Like section)

.thim-ralated-course {
display: none;
}

12. Remove related posts (You Also May link section):

.related-archive {
display: none;
}

13. Remove Author from course thumbnails: (http://prntscr.com/ilpxjj)

.thim-course-grid .course-item .thim-course-content .course-author {
display: none;
}

14. Remove enrolled student: (http://prntscr.com/ilqrv9)

.thim-course-grid .course-item .thim-course-content .course-meta .course-students, #tab-course-description .thim-course-info .students-feature, .thim-course-list .course-item .thim-course-content .course-meta .course-students {
display: none;
}

15. Set full width for Lesson content:

#body.course-item-popup #learn-press-content-item .content-item-wrap .comments-area, body.course-item-popup #learn-press-content-item .content-item-wrap .content-item-summary, body.course-item-popup #learn-press-content-item .content-item-wrap .course-item-nav, body.course-item-popup #learn-press-content-item .content-item-wrap .edit-course-item-link, body.course-item-popup #learn-press-content-item .content-item-wrap .learn-press-content-protected-message, body.course-item-popup #learn-press-content-item .content-item-wrap .message {
max-width: 1200px;
}

16. Change link color in the site content:

.site-main .entry-content a {
color: #000000;
}

17. Display Toolbar on mobile:

@media (max-width: 480px) {
#toolbar .thim-have-any-question {
display: block;
}
}

18. Remove Events Participants (http://prntscr.com/l7fecq)

.tp-event-organizers {
display: none;
}

19. Remove the top image for all pages (http://prntscr.com/lqwpp0)

.top_site_main {
display: none;
}

How to Speed up WordPress with Redis Caching | Redis Optimizador

How to Speed up WordPress with Redis Caching

ANH TRANDECEMBER 28, 2018GUIDEHome / Blog / Guide / How to Speed up WordPress with Redis Caching

How to speed up WordPress using Redis cache is such a simple thing. Redis is an in-memory database which can be used as a data store or cache. Redis presents itself as an ideal solution to speeding up WordPress and any other software which supports Redis cache. In this article, we’re going to show you how to set up a WordPress caching with Redis on a Linux VPS.

How to Speed up WordPress with Redis Caching

1. Installing Redis on Linux VPS

We suppose that WordPress has been installed already on your system, so this step will be skipped.

It’s simple to install Redis. If you’re using a Ubuntu VPS, run this command to install Redis:

apt-get install redis-server

If you’re using a CentOS VPS, you can use the following command to install Redis:

yum install redis

Make sure you activated repo EPEL (Extra Packages for Enterprise Linux) on your server.

Start and activate Redis on system boot.

systemctl start redis.service
systemctl enable redis.service

2. Installing Redis PHP Extension on Linux VPS

In order to use Redis as an object cache for your WordPress site, you need to install Redis PHP extension. It will allow WordPress to contact the Redis key-value store.

Run this command on Ubuntu:

apt-get install php-redis

On CentOS, run the following command:

yum install php-pecl-redis

3. Installing Redis Caching Plugin in WordPress

Log in to your WordPress dashboard and navigate to Plugins → Add new. Search for Redis and install Redis Object Cache plugin from the list. When the installation finishes, navigate to Plugins and activate the Redis Object Cache.Redis Object Cache

Author(s): Till Krüss

Current Version: 1.4.3

Last Updated: May 7, 2019

redis-cache.1.4.3.zip92%Ratings50,000+InstallsWP 3.3+Requires

Then navigate to Settings → Redis and click on Enable Object Cache to enable the object caching in WordPress. The default configurations should work out of the box with the default Redis listening address being 127.0.0.1 and the default listening port being 6379.

4. Verify Redis Caching on WordPress

To check whether the WordPress caching works properly with Redis, you can connect to your server via SSH and run the following command:

redis-cli monitor

By using the Redis monitor, you will be likely to see all the requests processed by the Redis server which will enable you to understand what is happening to the database. The output should be similar to the following:

# redis-cli monitor
OK
1510415208.863435 [0 127.0.0.1:50076] "PING"
1510415208.865491 [0 127.0.0.1:50076] "GET" "wp_:default:is_blog_installed"
1510415208.870259 [0 127.0.0.1:50076] "GET" "wp_:options:notoptions"
1510415208.870433 [0 127.0.0.1:50076] "GET" "wp_:options:alloptions"
1510415208.871197 [0 127.0.0.1:50076] "GET" "wp_:site-options:1:notoptions"
1510415208.875126 [0 127.0.0.1:50076] "GET" "wp_:options:uninstall_plugins"
1510415208.882241 [0 127.0.0.1:50076] "GET" "wp_:wordfence:alloptions"
1510415208.913368 [0 127.0.0.1:50076] "GET" "wp_:site-options:1:notoptions"
1510415208.913547 [0 127.0.0.1:50076] "GET" "wp_:site-options:1:notoptions"
1510415208.916283 [0 127.0.0.1:50076] "GET" "wp_:site-options:1:notoptions"
1510415208.916434 [0 127.0.0.1:50076] "GET" "wp_:site-options:1:notoptions"
1510415208.947299 [0 127.0.0.1:50076] "GET" "wp_:site-options:1:notoptions"
1510415208.947480 [0 127.0.0.1:50076] "GET" "wp_:options:can_compress_scripts"
1510415208.947637 [0 127.0.0.1:50076] "GET" "wp_:site-options:1:notoptions"
1510415208.954565 [0 127.0.0.1:50076] "GET" "wp_:posts:last_changed"

That means Redis is working for your WordPress website. From now on, whenever you get option or post meta, WordPress will check from the Redis cache first. If it doesn’t find what it needs, then it will make a database call. So it reduces the load on your database quite a lot.

Cambio de password de Administrador por RDP de un Window Server 2012 RD

Changing a server’s root or Administrator password

How Do I change my server’s root and admin passwords?

Your server operating system will have a main user that has access to all administrative functions on the server. These passwords can be changed at any time. Depending on the operating system, the process is slightly different.

Step 1

Use Remote desktop to log into your server with the username of Administrator and your Administrator Operating System Password.

Image

Step 2

Once you are connected to your server and logged in as Administrator, click [Control]+[Alt]+[End] on your keyboard to open your security pop up box.

Step 3

Click the button marked Change Password.

Change Password

Step 4

Enter your current password, then enter and confirm your new password in the text boxes provided.

Click on the arrow button to confirm the change.

New Password

Step 5

API WordPress URL con Jetpack

Sitios en WordPress con Jetpack que estén dentro de un directorio se debe obtener los posts del API con la siguiente URL:

https://public-api.wordpress.com/rest/v1/sites/www.segui.gob.ar::sitio/posts/

donde /subdirectorio/post se reemplaza por ::subdirectorio/post

HOW TO INSTALL PURE-FTPD ON CENTOS 6.4 | Instalar Pure-FTP en Centos6

HOW TO INSTALL PURE-FTPD ON CENTOS 6.4

This article teaches you how to install free ftp server Pure-FTPd on CentOS 6 and how to configure and use it so you can access your server via ftp connection using your favorite ftp client (e.g:FileZilla). The main reason why I post this article is because a friend of mine asked me why couldn’t he access his server using FileZilla. The answer is simple, that’s because he didn’t install any ftp server on his VPS. FileZilla is an ftp server installed in client computer while the VPS is not accessible via FTP without any FTP server installed. Yet, CentOS is not coming with FTP server installed by default and even if by any chance you found it installed, you still have to configure it.

WHAT IS PURE-FTPD?

Pure-FTPd is a free (BSD), secure, production-quality and standard-conformant FTP server. It doesn’t provide useless bells and whistles, but focuses on efficiency and ease of use. It provides simple answers to common needs, plus unique useful features for personal users as well as hosting providers.

Why Pure-FTPd?

Because it is actively supported, and it was always designed with security in mind, and the code is always re-audited as new kind of vulnerabilities are discussed.

Are there any other alternatives?

Yes there are. Try Pro-FTPd and vsftpd (how to install vsftpd).

HOW TO INSTALL PURE-FTPD ON CENTOS 6?

The guide is below. But first, read some prerequisites:

WHAT YOU’LL NEED?

  1. A Linux server running CentOS 6. In this guide I use CentOS 6.4 x64 by DigitalOcean.
  2. You better firstly setup LAMP or LNMP on it.
  3. You’ll also need an FTP client like FileZilla installed on your computer. This is for testing purpose (and you’ll really need this once you build your site)
  4. A skill to use SSH and basic Unix commands (I’m sure you have this already).
  5. About 15 minutes of your time

A. INSTALLING PURE-FTPD SOFTWARE ON CENTOS SERVER

Step 1 – Login to your server and follow my previous guide about Basic setup for CentOS before you build a live web server. You may and may not follow that tutorial but if you followed, it will give you some basic security tweak to your server.

Before you proceed to the next steps, it is better to explain that all commands in this tutorial are written without the “sudo” prefix. However if you disabled root login and you logged in using another username with root privilege, you can add the “sudo” prefix all by your self. Alternatively you can simply type su, hit Enter and type in your password twice to switch login as root.

switch-root-login

You may also need to type this command to go to the root directory:

1
cd ~

Step 2 – Pure-FTPd is not available by default in CentOS and you have to grab it from another repository. You have to enable the RPMforge and EPEL repositories on our CentOS. So go ahead add the repo:

1
rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY*

then

1
rpm --import http://dag.wieers.com/rpm/packages/RPM-GPG-KEY.dag.txt

now..

1
2
3
cd /tmp
wget http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.2-2.el6.rf.x86_64.rpm
rpm -ivh rpmforge-release-0.5.2-2.el6.rf.x86_64.rpm

However If the above link doesn’t work anymore, you can find the current version of rpmforge-release here: http://packages.sw.be/rpmforge-release/.

This repo will also give you more benefit:

1
rpm --import https://fedoraproject.org/static/0608B895.txt

then

1
2
wget http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
rpm -ivh epel-release-6-8.noarch.rpm

next, update yum:

1
yum update

Each time yum asks you to confirm, simply type Y then hit Enter.

Step 3 – Now install Pure-FTPd via yum using this command:

1
yum install pure-ftpd

screenshot:

yum install pureftpd

B. CONFIGURING PURE-FTPD (POST INSTALL)

Step 1 – Go to Pure-FTPd config folder:

1
cd /etc/pure-ftpd/

Step 2 – Next, edit the config file "pure-ftpd.conf": (in this example I use Nano editor).

1
nano -w pure-ftpd.conf

Step 3 – Once Nano editor appears with pure-ftpd.conf file ready for editing, now make adjustment to several lines as below:

3.1. Look for #UnixAuthentication and uncomment that line (remove the # symbol):

unixauth

3.2. Then change No in VerboseLog to yes.

verboselog

3.3. Uncomment the PureDB line:

purdedb

3.4. Uncomment the CreateHomeDir line

createhomedir

Step 4 – Now create ftp user or aka virtual user used to login to your server. And the command syntax is:

1
pure-pw useradd ftpuser -u user -g group -d /var/www/domain.com/public_html

where:

  1. ftpuser is username you can use it to login to your server via ftp.
  2. user is a Unix user. If you didn’t created one yet, you can also use root.
  3. group is a Unix group. If you didn’t created one yet, you can also use root.
  4. /var/www/domain.com/public_html is default document root folder of your site. This is where the ftp user will have access to once logged in.

Obviously you have to change those parts to suite your own. In my example is:

1
pure-pw useradd servermom -u sawiyati -g sawiyati -d /var/www/servermom.com/public_html

Once hit Enter, you’ll then be asked to define new password for the user. Enter it twice for confirmation.

Step 5 – Finally, issue this command:

1
pure-pw mkdb

screenshot for step 4 and 5:

purepw

C. USING FTP TO ACCESS YOUR SERVER

Step 1 – Once you’ve done making some adjustments to pure-ftpd configuration, now you better firstly restart the ftp service:

1
service pure-ftpd restart

screenshot

restart ftp

Don’t panic if you see [FAILED] message in when the system tried to stop pure-ftpd. It happens because pure-ftpd service is not yet started. The point here is the [OK] message when starting.

Step 2 – Now open up your favorite ftp client like FileZilla then enter the detail:

  • Host : Enter your server’s IP or hostname (if you’ve added A record to it in your DNS).
  • Username : Use what you defined in step 4 section B above.
  • Password : Use what you defined in step 5 section B above.
  • Port : use Port 21

Once done hit the Connect button. screenshot:

using filezilla

Step 3 – You’ll finally see the “Status:Directory listing successful” message indicating you are now logged in.

filezilla ftp

That’s it. I’m sure you knew what you have to do from here. Enjoy..

OPTIONAL

Issue this command to make sure pure-ftpd service will be automatically started every time your server reboot:

1
chkconfig --levels 235 pure-ftpd on

Also, if you created other virtual users (and passwords) – see section B step 4 – make sure you issue this command:

1
pure-pw mkdb

You have to issue that command every time you add a virtual user.