( ! ) Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; GeSHi has a deprecated constructor in /home/www/twa/tcwebadmin/how-to-help/wp-content/plugins/wp-syntax/geshi/geshi.php on line 259
Call Stack
#TimeMemoryFunctionLocation
10.0003356968{main}( ).../index.php:0
20.0004359024require( '/home/www/twa/tcwebadmin/how-to-help/wp-blog-header.php' ).../index.php:17
30.0008374368require_once( '/home/www/twa/tcwebadmin/how-to-help/wp-load.php' ).../wp-blog-header.php:13
40.0011387720require_once( '/home/www/twa/tcwebadmin/how-to-help/wp-config.php' ).../wp-load.php:37
50.0026472464require_once( '/home/www/twa/tcwebadmin/how-to-help/wp-settings.php' ).../wp-config.php:100
60.163718377840do_action( ).../wp-settings.php:277
70.166618716960WP_Syntax( ).../plugin.php:525
80.166618716960WP_Syntax::getInstance( ).../wp-syntax.php:364
90.166618717000WP_Syntax->init( ).../wp-syntax.php:76
100.166818717672WP_Syntax::inludeDependencies( ).../wp-syntax.php:91
Linux How-To & Fixes

Installing ffmpeg on Ubuntu 12.04 and Ubuntu 13.10 (Tested)

0

This is from a Ubuntu 12.04 headless build of ffmpeg, also install and tested this using same guide on Ubuntu 13.10. Much of this is based off of ffmpeg build from ffmpeg.org.

sudo apt-get update
sudo apt-get -y install autoconf automake build-essential libass-dev libgpac-dev \
  libsdl1.2-dev libtheora-dev libtool libva-dev libvdpau-dev libvorbis-dev libx11-dev \
  libxext-dev libxfixes-dev pkg-config texi2html zlib1g-dev libfaac0 libfaac-dev
mkdir ~/ffmpeg_sources

yasm

The first step is to compile Yasm which is an assembler used by x264 and FFmpeg. Ubuntu 13.10, Ubuntu 13.04, and Mint 15 users can alternatively install the yasm package from the repository instead of compiling.

cd ~/ffmpeg_sources
wget http://www.tortall.net/projects/yasm/releases/yasm-1.2.0.tar.gz
tar xzvf yasm-1.2.0.tar.gz
cd yasm-1.2.0
./configure --prefix="$HOME/ffmpeg_build" --bindir="$HOME/bin"
make
make install
make distclean
export "PATH=$PATH:$HOME/bin"

x264

H.264 video enprer. See the x264 Encoding Guide for more information and usage examples.

cd ~/ffmpeg_sources
wget http://download.videolan.org/pub/x264/snapshots/last_x264.tar.bz2
tar xjvf last_x264.tar.bz2
cd x264-snapshot*
./configure --prefix="$HOME/ffmpeg_build" --bindir="$HOME/bin" --enable-static
make
make install
make distclean

debian installs:

fdk-aac and opus as of the current install Ubuntu 12.04 LTS there is no packages available, the easiest way (for me) was to just install the .deb packages below.

fdk-aac

Download the correct source for your distro here:
**note this is for AMD64 architecture.. please download the correct deb packages for your specific build
https://launchpad.net/ubuntu/+source/fdk-aac

cd ~/ffmpeg_sources
mkdir fdk-aac
cd fdk-aac
wget -O libfdk-aac0.deb https://launchpad.net/ubuntu/+archive/primary/+files/libfdk-aac0_0.1.1%2B20130514-2_amd64.deb
wget -O libfdk-aac-dev.deb https://launchpad.net/ubuntu/+archive/primary/+files/libfdk-aac-dev_0.1.1%2B20130514-2_amd64.deb
wget -O libfdk-aac0-dbg.deb https://launchpad.net/ubuntu/+archive/primary/+files/libfdk-aac0-dbg_0.1.1%2B20130514-2_amd64.deb
sudo dpkg -i libfdk-aac0.deb
sudo dpkg -i libfdk-aac-dev.deb
sudo dpkg -i libfdk-aac0-dbg.deb

opus

Download the correct source for your distro here:
**note this is for AMD64 architecture.. please download the correct deb packages for your specific build
https://launchpad.net/ubuntu/+source/opus

cd ~/ffmpeg_sources
mkdir opus
cd opus
wget -O libopus0.deb https://launchpad.net/ubuntu/+archive/primary/+files/libopus0_1.0.1-0ubuntu2_amd64.deb
wget -O libopus-dev.deb https://launchpad.net/ubuntu/+archive/primary/+files/libopus-dev_1.0.1-0ubuntu2_amd64.deb
wget -O libopus-dbg.deb https://launchpad.net/ubuntu/+archive/primary/+files/libopus-dbg_1.0.1-0ubuntu2_amd64.deb
sudo dpkg -i libopus0.deb
sudo dpkg -i libopus-dev.deb
sudo dpkg -i libopus-dbg.deb

libmp3lame

MP3 audio enprer.

Most users can install the repository package:

sudo apt-get install libmp3lame-dev

libvpx

VP8/VP9 video enprer and deprer. See the vpx (WebM) Encoding Guide for more information and usage examples.

cd ~/ffmpeg_sources
wget https://webm.googlecode.com/files/libvpx-v1.3.0.tar.bz2
tar xjvf libvpx-v1.3.0.tar.bz2
cd libvpx-v1.3.0
./configure --prefix="$HOME/ffmpeg_build" --disable-examples
make
make install
make clean

libxvid

xVid video enprer and deprer. Popular for streaming services for more information and usage examples.

cd ~/ffmpeg_sources
wget http://downloads.xvid.org/downloads/xvidcore-1.3.2.tar.gz
tar xzvf xvidcore-1.3.2.tar.gz
cd xvidcore
cd build/generic
./configure --prefix="$HOME/ffmpeg_build"
make
make install

ffmpeg

Finally compile and install ffmpeg.. note you will need to rebuild with the prec’s flags enabling it with every rebuild.

cd ~/ffmpeg_sources
wget http://ffmpeg.org/releases/ffmpeg-snapshot.tar.bz2
tar xjvf ffmpeg-snapshot.tar.bz2
cd ffmpeg
PKG_CONFIG_PATH="$HOME/ffmpeg_build/lib/pkgconfig"
export PKG_CONFIG_PATH
./configure --prefix="$HOME/ffmpeg_build" --extra-cflags="-I$HOME/ffmpeg_build/include" \
   --extra-ldflags="-L$HOME/ffmpeg_build/lib" --bindir="$HOME/bin" --extra-libs=-ldl --enable-gpl \
   --enable-libass --enable-libfdk-aac --enable-libmp3lame --enable-libopus --enable-libtheora \
   --enable-libvorbis --enable-libvpx --enable-libxvid --enable-libx264 --enable-nonfree
make
make install
make distclean
hash -r


qt-faststart

qt-faststart ships with FFMPEG. No seprate download is required for it. You can install this after ffmpeg is installed.

cd ~/ffmpeg_sources/ffmpeg/tools
make qt-faststart
cp qt-faststart /usr/local/bin
ldconfig
cd

Thanks to ffmpeg.org for some reference of this guide.

Windows 8 – Directv Player

0

Windows 8 Directv Player (Watch Movies Online) Issue

This is off-topic but I know people will run into this issue after calling Directv customer service they told me “We currently do not support Windows 8 Operating System…”

Issue is when installing the Directv Player *My version is Directv Player 6.1, There is a error “Adobe Flash for Internet explorer error” This is caused by current incompatibility by the built in ActiveX control within Internet explorer. Don’t bother Uninstalling Adobe Flash or Disabling the IE Flash Player ActiveX.

Solution:

You will need to use Windows 7 compatibility mode to install this. Download the Directv Player 6.1 found here.

Download then right-click and choose “Troubleshoot Compatibility” next choose “Troubleshoot Program” > Check box “The Program worked in earlier versions..” > “Choose Windows 7″ then Next” From there just use the regular install procedure and it should work fine.

Ubuntu – Add Mail Filtering Rules (Roundcube)

0

We will be adding mail filtering rules so “X” Message can be moved to “Y” Directory. Set by adding filters to emails FROM, TO, SUBJECT So on and so forth.

First we need to have Roundcube installed.. I am assuming you have already done that. I am using Ubuntu Server 12.04 with Dovecot and Postfix. Roundcube is a excellent AJAX based web mail server to install on your server system. There are unique plugins to Roundcube which will enable you to set this up very easily.

Roundcube as of version .3 supports managesieve which is far better than plain sieve or Squirrel Mail’s sieve.

I assume you have roundcube installed and working so lets get down to it.


Open Roundcube configuration file config.inc.php either found in /etc/roundcube/plugins/managesieve or /var/lib/roundcube/plugins/managesieve — If the file doesn’t have any code in it we will need to copy your Dist example to it and overwrite the file. directory

sudo cp /var/lib/roundcube/plugins/managesieve/config.inc.php.dist /etc/roundcube/plugins/managesieve/config.inc.php

Optional: You may change the server port if needed by ISP. Found in your new copy of config.inc.php

sudo vim /etc/roundcube/plugins/managesieve/config.inc.php

Next we will need to edit the main Roundcube Config to allow ManageSieve

sudo vim /etc/roundcube/main.inc.php

Look For Line:

$rcmail_config['plugins'] = array('password');
**Note the ‘password’ part my not be there depending on RC Version, it will just allow users to change their RC password in the settings section.
Change to:

$rcmail_config['plugins'] = array('password','managesieve');

That’s it! You should be able to go into your Roundcube Config under Settings > Filters.

Adding Email Through Webmin and Postfix

0

Its Pretty Easy to Add New Email addresses. The way the Linux webserver works is it can deliver to a local user (mailbox with username and password) or forward to another email address.

Simply in webmin Create a new user for an email account.

System > Users and Groups > Create New User (bottom of list on right hand side)

Create User Webmin

Create a New User In Webmin


 

Then go to create the mapping see the list example

Servers > Postfix Mail Server > Virtual Domains > Add New Mapping

 

Postfix Edit Mapping

Setup Postfix Email Mapping

 

 

Setup a Mail user in Webmin (Dovecot & Postfix)

0

First off you need to setup Postfix and Dovecot, and optional Webmin (Used in this tutorial). Please refer to Ubuntu – Mailserver Setup first. Now you may also setup Webmin for Ubuntu/Debian downloaded here.

Now that you have the software configured and tested properly, we will now setup mailboxes and our new pop/imap & smtp server in our favorite email program.


I am using Ubuntu Server Edition 9.10. In this tutorial we will take the necessary steps to add a Linux user for a new Email Account and how to set it up using the Webmin Interface.

  1. Add a Webmin user. By going to System > Users and Groups. Then click create a new user at the bottom of the listing of users.
  2. Adding a new user in Webmin

    Make sure to use a password as shown and also to use a home directory as the mail folder will be used under the home directory for our user account.

    Click Save and move on to the next step.

  3. Now that you have the user and new password created, you are ready to setup the new user mailbox on the server. You now want to go over to Servers > Postfix Mail Server. Now in order to use your new user as an outgoing email you must next click on the icon labeled “Virtual Domains” then.. Next simply go to “Add New Mapping”.
  4. Add Postfix Email Account

    For "Name:" this is going to be our new Email Address. And "Maps to..." is the user account we just setup (this is going to be use for the mailbox).

    Note: To make a Catchall Account in the Name: just use the @domain-name.com as the first part and direct it to a user account as shown. This will direct all emails not already declared to this user mailbox.

    Click Save and move on to the next step.

  5. Now we are ready to setup our new account in our pop3 or imap email account in our favorite email program. (I am using Portable Thunderbird if you want to use the same).
  6. Thunderbird Add New Account

    Just Follow the steps with the information that we already setup for the User Account

  7. Now we want to change some settings after this so now go to Tools > Account Settings… > Server Settings and update with the same settings formats. Make sure you have STARTTLS and Normal Password selected.
    Thunderbird Settings > Server Settings

    Don't hit okay after the settings.. just go to the next step.

  8. Okay.. Now Finally go to Outgoing Server (SMTP) on the left hand side for the SMTP settings, then select your new server and click “Edit”. Here just do the same thing and make sure that you have “STARTTLS” and “Normal Password” selected again.
    Thunderbird SMTP Settings

    That is it. Just make sure you have the new relaying setup as seen here.


Additional Settings for Windows Live Mail and Outlook

Now there are a couple additional changes if you are choosing to use Windows Live mail or Outlook.

Now you need to the edit the /etc/dovecot/dovecot.conf file.

sudo vim /etc/dovecot/dovecot.conf

Change:

# uncomment this and change to no.
disable_plaintext_auth = no

Change :

pop3_uidl_format = %08Xu%08Xv

Restart Dovecot using the following command:

/etc/init.d/dovecot restart

Here is a screen shot of the Windows Live Mail / Outlook Settings.

Live Mail and Outlook Settings

This is using pop3 as the incoming mail server. But you may use imap if you like also.

Thanks and enjoy! If you have any questions feel free to post here or contact me through the site.

Mouse Synaptics fix – without hal – Fedora 13

0

Just updated on of my x-desktops to Fedora 13 up from 12.  Actually it isn’t a desktop at all, its one of my workhorse laptops.  One of the disappointing problems originally out-of-the-box with Fedora 12 Constantine – with XFCE Desktop was that you cannot use laptop touch-pad synaptics (i.e. the right scroll wheel – touch pad thing, and the click on the touch pad to act as a left mouse click) .

Setup Synaptics Without HAL (Fedora 13++)

Setup Synaptics With HAL (Fedora 11, 12)

Below is the setup for Fedora 13 without HAL

Without HAL – Fedora 13

As you may or may not already know, HAL has since been removed since the update of the latest version.  There is virtually no support or updates for the outdated hal system, so now we will setup the mouse synaptics with the new xorg.conf in the new xorg.conf.d directory.

Fedora Versions

  • Fedora 13
  • Fedora 14

You will Need

You will need basic knowledge of using su to become root, using an editor, and copying files.  Be aware these settings are very generic, but may be not available on your specific device so check each of the following before continuing:

  1. As always, have your system up to date with yum update
  2. Synaptics compatable touchpad (ALPS might work, your mileage may vary)
  3. xorg-x11-drv-synaptics is installed
  4. You have verified your system/touchpad will work with tap enabled (see the Troubleshooting section)

1.

su root

2.

vi /usr/share/X11/xorg.conf.d/50-synaptics.conf

Now your 50-synaptics.conf file should look like this:

Section "InputClass"
     Identifier "touchpad catchall"
     Driver "synaptics"
     MatchDevicePath "/dev/input/event*"
     Option "VertEdgeScroll" "TRUE"
     Option "TapButton1" "1"
EndSection

You should just be adding the two lines starting with Option, DO NOT MAKE ANY OTHER CHANGES!

3. Save and close

:wq

4.

reboot

Your new Mouse Synaptics should be working once again with Fedora 13+!

If for whatever reason you are using Fedora 13+ and it is still not working, make sure you have xorg-x11-drv-synaptics installed first, and check below to make sure you do not have a HAL setup for your version of Linux.


When getting this to work under Fedora 12 using ‘hal’ I did the following as I have included my old directions.

With HAL

Fedora Versions

  • Fedora 11
  • Fedora 12
You will need basic knowledge of using su to become root, using an editor, and copying files.  Be aware these settings are very generic, but may be not available on your specific device so check each of the following before continuing:

  1. As always, have your system up to date with yum update
  2. Synaptics compatable touchpad (ALPS might work, your mileage may vary)
  3. xorg-x11-drv-synaptics is installed
  4. You have verified your system/touchpad will work with tap enabled (see the Troubleshooting section)

The Setup

Below is information on the 3 Button Taps. Any other Synaptics configuration can be put in as well, and if any other common configuration changes to be made are identified they can be added to this guide.

  1. su root
  2. xorg-x11-drv-synaptics:
  3. yum install xorg-x11-drv-synaptics
  4. Copy the HAL configuration file to another directory so it’s used by HAL:
    cp /usr/share/hal/fdi/policy/20thirdparty/10-synaptics.fdi /etc/hal/fdi/policy/
  5. Edit the file:
    vi /etc/hal/fdi/policy/10-synaptics.fdi
  6. You want to have the config file (10-synaptics.fdi) look like this file.  DO NOT COPY.  The main change is adding the VertEdgeScroll and making sure the TapButton1 is in there too.  YOU MUST DELETE THE COMMENTED PORTION FOR IT TO WORK.
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <deviceinfo version="0.2">
      <device>
        <match key="info.capabilities" contains="input.touchpad">
                 <merge key="input.x11_options.TapButton1" type="string">1</merge>
                 <merge key="input.x11_options.TapButton2" type="string">3</merge>
                 <merge key="input.x11_options.TapButton3" type="string">2</merge>
                 <merge key="input.x11_options.VertEdgeScroll" type="string">1</merge>
            <merge key="input.x11_driver" type="string">synaptics</merge>
        </match>
      </device>
    </deviceinfo>
    
  7. :wq
  8. reboot

Welcome To TCWebAdmin’s Linux and Windows How-To and Help Section!

0

This blog is dedicated to helping assist in troubleshooting and assisting in Linux and Windows  Configurations, and mainly Server Administration.

Go to Top