LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Blogs > catkin
User Name
Password

Notices


Uncategorized Entries with no category
Old

Xapian omega: simple URLs for users (Apache)

Posted 04-11-2011 at 11:59 AM by catkin

Xapian's Omega component is primarily used as tool for building interactive text searching solutions but can be used directly.

When using it directly, a typical URL is http://<host_ID>/cgi-bin/omega. That results in omega running with its default CGI parameters. The default CGI parameters can be over-ridden by specifying them on the URL, for example http://<host_ID>/cgi-bin/omega?DB=<index_ID>&FMT=<template_ID>.

There are two problems...
LQ 5k Club
Posted in Uncategorized
Views 3675 Comments 0 catkin is offline
Old

rsync server boot/control script

Posted 12-25-2010 at 12:14 AM by catkin

Hello

I couldn't find one to suit anywhere so wrote this.

It is not really needed during shutdown because all it does is send SIGTERM to all the rsync server processes and the Linux shutdown process does that anyway. rsync server processes are well behaved and do terminate quickly in response to SIGTERM so there's no need to check that the processes have terminated and escalate to SIGKILL (which the Linux shutdown process does anyway).

It is hardly...
LQ 5k Club
Posted in Uncategorized
Views 1859 Comments 0 catkin is offline
Old

Terminal icon for root with hash in screen

Posted 12-22-2010 at 01:55 AM by catkin
Tags hash, icon, root, screen

In case anybody is looking for one (I was and could not find one anywhere), the attachments are terminal icons with a hash (#) character.

This is not my area of expertise so improvement suggestions are welcome. Is PNG the best format for icons? Is 48x48 a good size choice?

In case anyone is curious how it was made, Terminal.svg was copied and loaded in Gimp. Most of the shading was removed (plain black background is more distinct at small display sizes such as in...
Attached Images
File Type: png Terminal_hash 160x160.png (1.7 KB, 5 views)
File Type: png Terminal_hash_48x48.png (892 Bytes, 60 views)
LQ 5k Club
Posted in Uncategorized
Views 1740 Comments 0 catkin is offline
Old

Getting a timestamp string in a Windows cmd.exe variable

Posted 12-12-2010 at 12:31 PM by catkin

This technique was developed to generate a timestamp string for rsync's --backup-dir option but it could be generally useful.

The first issue is that the value of %DATE% depends on Windows' regional settings so is not portable. The same goes for the output format of cmd.exe's builtin command date. (one example of many discussions: this StackOverflow thread). There is no way to program around this in a .BAT or .CMD script. The chosen solution was to UnxUtils' date.exe which is a...
LQ 5k Club
Posted in Uncategorized
Views 6350 Comments 0 catkin is offline
Old

Thunar custom actions including "root terminal here" without gksudo

Posted 11-18-2010 at 10:54 AM by catkin
Updated 11-20-2010 at 01:36 AM by catkin (Changed title to mention gksudo)

Here's a way to implement Thunar custom actions using rxvt unicode (urxvt) but could be adapted to other terminal emulators. It has been used to provide:
  • Terminal here
  • root terminal here
  • vi
  • vi as root
Optionally it allows the custom action to set background colour and a fullscreen window.

Caveats: the mechanism is "proof of concept" and not widely tested at the time of posting. It is designed for use on a workstation with a single user.

The key to...
LQ 5k Club
Posted in Uncategorized
Views 2190 Comments 0 catkin is offline

  



All times are GMT -5. The time now is 12:22 AM.

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
Open Source Consulting | Domain Registration