Archive for the ‘Streaming’ Category

Lulzy Fraudulent RCMP Popup

I encountered this lulzy geo-targetted fraud popup on a video site today and felt it was worth sharing. Just like the Rob Ford scandal I’m always thrilled to see people taking an interest in Canada, even if it’s in a negative way.

fraud phishing popup

ALL YOUR FILES ARE ENCRYPTED.

The popup purports to be an RCMP notice that “Your browser has been locked. All activities of this computer have been recorded. All your files are encrypted.” then proceeds to spout a bunch of what I am assuming passes for legalese before being Google translated into English. At the bottom there are logos of real places you can buy Ukash in Canada, with the hope that the subtle mention CP on your PC will have you bolting out the door. h5841.com is, only too naturally, hosted in Ukraine.

A Tidy Little OpenRC (Gentoo) init Script for TeamSpeak3

I recently set up a TeamSpeak3 server for the YI Minecraft users. Due to a crazy high-load-but-low-CPU-utlization problem I have decided to ditch ts3 and try Mumble.

Before I remove it, here’s the qick and clean init script I made (assumes ts3 was installed to /opt/ts3/ and a non-privileged user called ts3 has been made):

#!/sbin/runscript
# Copyright (c) 2013 http://foxpa.ws
# All rights released

description="Runs TeamSpeak3 on Gentoo"

depend()
{
        need net
}

start()
{
        ebegin "Starting TeamSpeak3"
        start-stop-daemon --start --quiet --user=ts3 --background --chdir=/opt/ts3/ --exec "/opt/ts3/ts3server_startscript.sh" -- start
        eend ${?}
}

stop()
{
        ebegin "Stopping TeamSpeak3"
        cd /opt/ts3/
        start-stop-daemon --stop --quiet --exec "/opt/ts3/ts3server_startscript.sh" -- stop
        /opt/ts3/ts3server_startscript.sh stop &> /dev/null
        eend ${?}
}

Rotate Red5 Logs Without logrotate

If you are capturing log output from Red5 via stdout and stdin as I had configured in this init script you will not be able to use logrotate and reliably preserve data as the active files are not replaced until the daemon has been restarted, losing anything that happened between then and the last rotation. Logging this way also suffers from a lack of timestamping. Fortunately, red5 has the capacity to rotate log files itself. Disable logging from stdout/stdin and replace the following portion of /opt/red5/conf/logback.xml:

        <appender name="FILE" class="ch.qos.logback.core.FileAppender">
                <File>log/red5.log</File>
                <Append>false</Append>
                <encoder>
                        <pattern>%d{ISO8601} [%thread] %-5level %logger{35} - %msg%n</pattern>
                </encoder>
        </appender>
        <appender name="ERRORFILE" class="ch.qos.logback.core.FileAppender">
                <File>log/error.log</File>
                <Append>false</Append>
        <filter class="ch.qos.logback.classic.filter.ThresholdFilter">
                <level>WARN</level>
        </filter>
                <encoder>
                        <pattern>%d{ISO8601} [%thread] %-5level %logger{35} - %msg%n</pattern>
                </encoder>
        </appender>

with:

        <appender name="FILE" class="ch.qos.logback.core.rolling.RollingFileAppender">
            <File>/var/log/red5/red5.log</File>
          
            <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
              <FileNamePattern>log/red5.%d{yyyy-MM-dd}.log</FileNamePattern>
              <!-- keep 30 days worth of history -->
              <MaxHistory>30</MaxHistory>
            </rollingPolicy>

            <layout class="ch.qos.logback.classic.PatternLayout">
              <Pattern>%d{ISO8601} [%thread] %-5level %logger{35} - %msg%n</Pattern>
            </layout>
          </appender>
          <appender name="ERRORFILE" class="ch.qos.logback.core.rolling.RollingFileAppender">
            <File>/var/log/red5/error.log</File>

            <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
              <FileNamePattern>log/error.%d{yyyy-MM-dd}.log</FileNamePattern>
              <!-- keep 30 days worth of history -->
              <MaxHistory>30</MaxHistory>
            </rollingPolicy>
        <filter class="ch.qos.logback.classic.filter.ThresholdFilter">
                <level>WARN</level>
        </filter>
            <layout class="ch.qos.logback.classic.PatternLayout">
              <Pattern>%d{ISO8601} [%thread] %-5level %logger{35} - %msg%n</Pattern>
            </layout>
          </appender>

Thank you to the bigbluebutton staff.

Return top
foxpa.ws
Online Marketing Toplist
Internet
Technology Blogs - Blog Rankings

Internet Blogs - BlogCatalog Blog Directory

Bad Karma Networks

Please Donate!


Made in Canada  •  There's a fox in the Gibson!  •  2010-12