LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Blogs > catkin
User Name
Password

Notices



Uncategorized Entries with no category
Old

Apache configuration for Xapian Omega on Slackware 13.1

Posted 01-23-2012 at 11:09 AM by catkin

Here's an Apache configuration file for Xapian Omega on Slackware 13.1, to be saved as /etc/httpd/omega.conf

It was developed and tested on Slackware64 13.1 with Xapian Omega 1.2.8 installed by SlackBuild.
Code:
# Apache configuration file for Xapian Omega

<Directory /srv/httpd/htdocs/omega>
    Allow          from all
    DirectorySlash On
    Options        FollowSymlinks
    Order          Deny,Allow

    RewriteEngine
...
LQ 5k Club
Posted in Uncategorized
Views 1255 Comments 0 catkin is offline
Old

VBS for cwrsync - RSYNC_PASSWORD gotcha

Posted 12-23-2011 at 01:19 AM by catkin
Updated 12-23-2011 at 01:20 AM by catkin (Added comment moderation and email notification)

When running cwrsync as SYSTEM it difficult to satisfy rsync's requirement that the password file must be owned by root and readable only by root.

One solution is to set the RSYNC_PASSWORD environment variable.

When using Visual Basic Script to automate the cwrsync run, there's a "gotcha" -- RSYNC_PASSWORD must be a SYSTEM environment variable, not a USER environment variable.

Sample code:
Code:
objWshShell.Environment("SYSTEM").Item("RSYNC_PASSWORD")
...
LQ 5k Club
Posted in Uncategorized
Views 961 Comments 0 catkin is offline
Old

OTRS: importing an Outlook contacts format CSV to the Address Book

Posted 06-26-2011 at 11:24 AM by catkin

Hello

Here's a script and associated SQL to import data from an Outlook contacts format CSV file into OTRS' Address Book.

They were developed and tested using:
  • An Outlook contacts format CSV file generated by export from Google Mail.
  • gnu awk 3.1.8 on Slackware64 13.1.
  • OTRS 3.0.8 running on Debian Squeeze 64 bit using mysqld and mysql 5.1.49.
The awk script prints usage if run with the -h option.

A sample usage:
Code:
bin/Outlook_CSV_to_OTRS_CSV.awk
...
Attached Files
File Type: txt Outlook_CSV_to_OTRS_CSV.awk.txt (30.8 KB, 15 views)
LQ 5k Club
Posted in Uncategorized
Views 3124 Comments 0 catkin is offline
Old

Script to prepare a Thunderbird PAB export for gnokii to write to Nokia series 40

Posted 05-19-2011 at 04:47 AM by catkin
Updated 06-26-2011 at 10:40 AM by catkin (Version 0.2 of the script)

Hello

Here's a script to prepare a Thunderbird Address Book LDIF export for gnokii --writephonebook to write to a Nokia Series 40. The usage is something like:
Code:
cat /tmp/TB.PAB.ldif \
  | prepare_ldif_for_gnokii.awk \
  1>/tmp/ldif.prepared \
  2>/tmp/prepare_ldif_for_gnokii.log
cat /tmp/ldif.prepared \
  | gnokii --writephonebook --overwrite --memory-type ME --ldif \
  2>/tmp/gnokii.stderr
The script:
Code:
#!/usr/bin/awk
...
LQ 5k Club
Posted in Uncategorized
Views 1181 Comments 0 catkin is offline
Old

Fixing locale en_GB to give Monday as first day of the week

Posted 05-13-2011 at 07:54 AM by catkin
Updated 05-19-2011 at 04:30 AM by catkin (Was fixing the "ain't broke" and doing so badly)

Entry deleted -- it was fixing the "ain't broke" and doing so badly.
LQ 5k Club
Posted in Uncategorized
Views 619 Comments 0 catkin is offline

  



All times are GMT -5. The time now is 11:50 PM.

Main Menu
Advertisement

Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration