Tuesday, February 06, 2007

Get Linux Information

sysctl - configure kernel parameters at runtime
-a Display all values currently available.
-A Display all values currently available in table form.

getconf - get configuration values

help: help [-s] [pattern ...]
Display helpful information about builtin commands. If PATTERN is
specified, gives detailed help on all commands matching PATTERN,
otherwise a list of the builtins is printed. The -s option
restricts the output for each builtin command matching PATTERN to
a short usage synopsis.

# ulimit
unlimited

# umask
0022

Monday, February 05, 2007

Koha on Fedora Core 6

Koha-2.2.7 works on LAMP, but we have to do some manual modification on a recent Linux distribution.

Firstly, you have to install enough Perl modules in terms of installation manual. On Fedora Core 6, you have to install some modules, such as ZOOM, Data::Random, etc., from the CPAN source code.

Secondly, you have to create some tables by yourself which are defined in koha.mysql, because they would not be created during the installation process, such as Koha.items, Koha.systempreference, etc. Especially you have to modify the create script of Koha.issues, because it uses a MySQL 5.0 reserved word "return" (it is not a reserved word in MySQL 4.1 and previous versions). According to , "reserved words are permitted as identifiers if you quote them". "MySQL allows some keywords to be used as unquoted identifiers because many people previously used them. Examples are those in the following list: ACTION BIT DATE ENUM NO TEXT TIME TIMESTAMP", so you only need to quote the `return`, and leave the "timestamp" unquoted.

Friday, February 02, 2007

A Typo In SSHD Man Page

OPENSSH 4.3p2 in Fedora Core 6 said:
AUTHORIZED_KEYS FILE FORMAT
~/.ssh/authorized_keys is the default file that lists the public keys that are permitted for RSA authentication in pro-tocol version 1 and for public key authentication (PubkeyAuthentication) in protocol version 2. AuthorizedKeysFile may be used to specify an alternative file.

However I found it does work with ~/.ssh/authorized_keys2 when you don't setup "AuthorizedKeysFile" in /etc/ssh/sshd_config.