SMTP Auth on Ubuntu with Postfix Problem

Problem: postfix/smtpd[12563]: warning: unknown[192.168.1.126]: SASL PLAIN authentication failed: authentication failure
Solution: Change the line that says

MECHANISMS="pam"

in /etc/default/saslauthd to

MECHANISMS="shadow"

Problem: postfix/smtpd[16619]: warning: SASL authentication failure: Password verification failed
Solution: Change /etc/init.d/saslauthd line from

PIDFILE=$RUN_DIR/saslauthd.pid

to

PIDFILE="/var/spool/postfix/var/run/${NAME}/saslauthd.pid"

and set ownership to group sasl then put ther user postfix in group sasl

Share and Enjoy:
  • Digg
  • del.icio.us
  • Slashdot
  • Facebook
  • Haohao
  • StumbleUpon
  • TwitThis

Tags: , ,

HOWTO: Log Apache to MySQL on Ubuntu 8.04 (Hardy Heron)

Installing the Software
Run the following commands in terminal:

sudo apt-get update
sudo apt-get install libapache2-mod-log-sql-mysql libapache2-mod-log-sql libapache2-mod-log-sql-ssl

Create DB & User
Run the following commands in MySQL:

CREATE DATABASE apachelogs;
GRANT INSERT,CREATE ON apachelogs.* 
  TO apachelogger@localhost 
  IDENTIFIED BY 'insert_passwd_here';
FLUSH PRIVILEGES;

Add Entry to apache2.conf
Add the following entry to apache2.conf before the VirtualHost settings (commonly before

Include /etc/apache2/sites-enabled/

):

LogSQLLoginInfo mysql://apachelogger:insert_passwd_here@localhost/apachelogs
LogSQLCreateTables on
LogSQLDBParam socketfile /var/run/mysqld/mysqld.sock
LogSQLTransferLogFormat AabfHhmRSsTUuvI

Modify Each Virtual Host
For each virtual host that you want to log to SQL, add the following line:

LogSQLTransferLogTable this_site_com

where access_log is replaced by any table name; to differentiate many different virtual host, you can use the name of each virtual host here by replacing each dot (‘.’) with underscore (‘_’)

Share and Enjoy:
  • Digg
  • del.icio.us
  • Slashdot
  • Facebook
  • Haohao
  • StumbleUpon
  • TwitThis

Tags: , , , , ,

Fixed: DVD Video Only Runs at Fullscreen

If you’re on Ubuntu 8.04 (Hardy Heron), the Multimedia Systems Selector is hidden. You will need to enable this first.

Enabling Multimedia System Selector

  1. Goto System -> Preferences -> Main Menu
  2. Browse to System -> Preferences section
  3. Check the box where it says “Multimedia System Selector”

Changing the Multimedia System Video Output

  1. Goto System -> Preferences -> Multimedia System Selector
  2. Goto Video Tab
  3. Change the Default Output Plugin to “X Window System (No Xv)”
  4. Click OK & Restart Movie Player

Changing the VLC Setting

  1. Goto Settings -> Preferences -> Video -> Output Modules
  2. Check the box that says “Advanced options” at the lower right corner
  3. Change the Video output module to “X11 video output”
  4. Click Save

UPDATE:
Changing the Xine Setting

  1. Right Click -> Settings -> Setup (or Alt+S)
  2. Change “Configuration experience level” to “Expert”
  3. Goto Video and change “Video driver to use” to “xshm”
  4. Click Apply, Close then restart Xine
Share and Enjoy:
  • Digg
  • del.icio.us
  • Slashdot
  • Facebook
  • Haohao
  • StumbleUpon
  • TwitThis

Tags: ,