<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="FeedCreator 1.8" -->
<?xml-stylesheet href="https://old.andunix.net/lib/exe/css.php?s=feed" type="text/css"?>
<rdf:RDF
    xmlns="http://purl.org/rss/1.0/"
    xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
    xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
    xmlns:dc="http://purl.org/dc/elements/1.1/">
    <channel rdf:about="https://old.andunix.net/feed.php">
        <title>andunix.net</title>
        <description></description>
        <link>https://old.andunix.net/</link>
        <image rdf:resource="https://old.andunix.net/_media/favicon.ico" />
       <dc:date>2026-06-03T20:30:42+00:00</dc:date>
        <items>
            <rdf:Seq>
                <rdf:li rdf:resource="https://old.andunix.net/info/cryptography/openssl/generate_key"/>
                <rdf:li rdf:resource="https://old.andunix.net/info/cryptography/openssl/compare_key_with_certificate"/>
                <rdf:li rdf:resource="https://old.andunix.net/z/travian/travian_map_download_script"/>
                <rdf:li rdf:resource="https://old.andunix.net/z/relax/api/base/base-repo-get-value"/>
                <rdf:li rdf:resource="https://old.andunix.net/info/cryptography/openssl/convert_key"/>
                <rdf:li rdf:resource="https://old.andunix.net/blog/2009/dice_roller"/>
                <rdf:li rdf:resource="https://old.andunix.net/info/ssh"/>
                <rdf:li rdf:resource="https://old.andunix.net/info/cryptography/openssl/debug_server_certificate_from_client"/>
                <rdf:li rdf:resource="https://old.andunix.net/tag/key"/>
                <rdf:li rdf:resource="https://old.andunix.net/info/virtualbox/cli"/>
                <rdf:li rdf:resource="https://old.andunix.net/blog/2010/memory_usage_solaris_container_zone"/>
                <rdf:li rdf:resource="https://old.andunix.net/z/relax/api/base/base-exec-user"/>
                <rdf:li rdf:resource="https://old.andunix.net/info/cryptography/openssl/print_key"/>
                <rdf:li rdf:resource="https://old.andunix.net/z/relax/api/base/base-ssh-login"/>
                <rdf:li rdf:resource="https://old.andunix.net/z/relax/api/base/base-ssh-umount"/>
                <rdf:li rdf:resource="https://old.andunix.net/z/relax/api/host/host-user-tab"/>
                <rdf:li rdf:resource="https://old.andunix.net/z/relax/api/base/base-repo-get-service"/>
                <rdf:li rdf:resource="https://old.andunix.net/info/sysadmin/ssh"/>
                <rdf:li rdf:resource="https://old.andunix.net/z/relax/api/base/base-ssh-mount"/>
                <rdf:li rdf:resource="https://old.andunix.net/info/cryptography/openssl/print_certificate"/>
                <rdf:li rdf:resource="https://old.andunix.net/z/relax/api/host/host-user-list"/>
                <rdf:li rdf:resource="https://old.andunix.net/z/relax/api/base/base-exec-superuser"/>
            </rdf:Seq>
        </items>
    </channel>
    <image rdf:about="https://old.andunix.net/_media/favicon.ico">
        <title>andunix.net</title>
        <link>https://old.andunix.net/</link>
        <url>https://old.andunix.net/_media/favicon.ico</url>
    </image>
    <item rdf:about="https://old.andunix.net/info/cryptography/openssl/generate_key">
        <dc:format>text/html</dc:format>
        <dc:date>2014-11-20T08:13:01+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>Generate a Test Key</title>
        <link>https://old.andunix.net/info/cryptography/openssl/generate_key</link>
        <description>Generate a Test Key
openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout testkey.key -out testkey.crt
Informations about the used arguments from the OpenSSL man page:

	*  req: PKCS#10 certificate request and certificate generating utility.
	*  -x509: this option outputs a self signed certificate instead of a certificate request. This is typically used to generate a test certificate or a self signed root CA. The extensions added to the certificate (if any) are specified in the configurati…</description>
    </item>
    <item rdf:about="https://old.andunix.net/info/cryptography/openssl/compare_key_with_certificate">
        <dc:format>text/html</dc:format>
        <dc:date>2013-02-18T14:26:27+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>Compare a Key with its Certificate</title>
        <link>https://old.andunix.net/info/cryptography/openssl/compare_key_with_certificate</link>
        <description>Compare a Key with its Certificate

Credit for this example goes to “Verifying that a Private Key Matches a Certificate” from the University of Wisconsin Knowledgebase.

To see if a key server.key belongs to the certificate server.crt, they need to have the same “modulus” and “exponent”.
openssl x509 -noout -text -in server.crt
openssl rsa -noout -text -in server.key</description>
    </item>
    <item rdf:about="https://old.andunix.net/z/travian/travian_map_download_script">
        <dc:format>text/html</dc:format>
        <dc:date>2013-02-04T22:18:02+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>Travian Map Download Script</title>
        <link>https://old.andunix.net/z/travian/travian_map_download_script</link>
        <description>Travian Map Download Script

This is my script(s) which I use to downoad the map.sql from Travian and import it to the database.

config.inc


#
# database
DB_USER=&quot;travian&quot; # set this to your database user
DB_PASS=&quot;travian&quot; # set this to your database password
DB_INST=&quot;travian&quot; # set this to your database instance
#
# directories
MAP_DIR=${HOME}/opt/travian
DUMP_DIR=/srv/glassfish/domains/domain1/docroot/sql
#
# executables
MYSQL=&quot;/srv/mysql/bin/mysql --default-character-set=utf8 -u${DB_USER} -…</description>
    </item>
    <item rdf:about="https://old.andunix.net/z/relax/api/base/base-repo-get-value">
        <dc:format>text/html</dc:format>
        <dc:date>2013-02-04T22:17:32+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>base-repo-get-value</title>
        <link>https://old.andunix.net/z/relax/api/base/base-repo-get-value</link>
        <description>base-repo-get-value

Loads a service configuration from the repository and outputs a single value (for the given key) to STDOUT.

Usage
base-repo-get-value SERVICE KEY
	*  SERVICE: A key of a service definition in the repository.
	*  KEY: The key for the value in the service definition to output.</description>
    </item>
    <item rdf:about="https://old.andunix.net/info/cryptography/openssl/convert_key">
        <dc:format>text/html</dc:format>
        <dc:date>2019-01-17T19:19:12+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>Convert a Key</title>
        <link>https://old.andunix.net/info/cryptography/openssl/convert_key</link>
        <description>Convert a Key

Convert P12 to Java Keystore
keytool -importkeystore -srckeystore testkey.p12 -srcstoretype pkcs12 -srcalias 1 -destkeystore testkey.jks -deststoretype jks -destalias testkey
You can add -deststorepass PASSWORD to set the password on the command line.
If you don't, keytool will ask you for a password.</description>
    </item>
    <item rdf:about="https://old.andunix.net/blog/2009/dice_roller">
        <dc:format>text/html</dc:format>
        <dc:date>2009-02-18T19:25:00+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>Dice Roller</title>
        <link>https://old.andunix.net/blog/2009/dice_roller</link>
        <description>Dice Roller

I programmend a small dice roller in javascript. You enter the number of dice, sides and the offset and press the button “roll”. The script shows the individual dice and the resulting sum. For convenience, there is a second form where you can just enter the number of dice and press the butten for the type of dice. At the bottom, there are some links of six- and eightsided dice, which are often needed in roleplaying games. You can also create bookmarks for dice, e.g.</description>
    </item>
    <item rdf:about="https://old.andunix.net/info/ssh">
        <dc:format>text/html</dc:format>
        <dc:date>2013-02-14T13:15:34+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>SSH</title>
        <link>https://old.andunix.net/info/ssh</link>
        <description>SSH

Export public key from secret key

The public key andunix.pub which belongs to the secret key andunix is extracted.
ssh-keygen -y -f andunix &gt; andunix.pub
security cryptography ssh sysadmin</description>
    </item>
    <item rdf:about="https://old.andunix.net/info/cryptography/openssl/debug_server_certificate_from_client">
        <dc:format>text/html</dc:format>
        <dc:date>2014-04-28T08:07:54+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>Debug Server Certificate from Client</title>
        <link>https://old.andunix.net/info/cryptography/openssl/debug_server_certificate_from_client</link>
        <description>Debug Server Certificate from Client

Credit for this example goes to “ Checking A Remote Certificate Chain With OpenSSL” from langui.sh.
openssl s_client -showcerts -connect www.andunix.net:443
Informations about the used arguments from the OpenSSL man page:

	*  s_client: SSL/TLS client program
	*  -showcerts: display the whole server certificate chain: normally only the server certificate itself is displayed.</description>
    </item>
    <item rdf:about="https://old.andunix.net/tag/key">
        <dc:format>text/html</dc:format>
        <dc:date>2014-01-27T14:49:51+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>key</title>
        <link>https://old.andunix.net/tag/key</link>
        <description>key

Pages

Bookmarks</description>
    </item>
    <item rdf:about="https://old.andunix.net/info/virtualbox/cli">
        <dc:format>text/html</dc:format>
        <dc:date>2014-02-22T13:16:38+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>VBoxManage (The VirtualBox CLI)</title>
        <link>https://old.andunix.net/info/virtualbox/cli</link>
        <description>VBoxManage (The VirtualBox CLI)

This is a online reference of the output of VBoxManage without options.


Oracle VM VirtualBox Command Line Management Interface Version 4.2.16
(C) 2005-2013 Oracle Corporation
All rights reserved.


Usage:
VBoxManage [&lt;general option&gt;] &lt;command&gt;</description>
    </item>
    <item rdf:about="https://old.andunix.net/blog/2010/memory_usage_solaris_container_zone">
        <dc:format>text/html</dc:format>
        <dc:date>2010-04-21T08:17:00+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>Memory Usage of a Solaris Container (Zone)</title>
        <link>https://old.andunix.net/blog/2010/memory_usage_solaris_container_zone</link>
        <description>Memory Usage of a Solaris Container (Zone)

Last week one of my servers ran out of RAM and Swap. Shame on me for not monitoring that, but it's now.

As the server is running several zones, my first question was: Which zone is eating up my RAM? So, here are the commands I used.</description>
    </item>
    <item rdf:about="https://old.andunix.net/z/relax/api/base/base-exec-user">
        <dc:format>text/html</dc:format>
        <dc:date>2013-02-04T22:17:31+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>base-exec-user</title>
        <link>https://old.andunix.net/z/relax/api/base/base-exec-user</link>
        <description>base-exec-user

Executes a command as a given user.
Command is executed using ssh if the user is not on localhost.

Usage
base-exec-user USER COMMAND
	*  USER: A key of an user definition in the repository. From this, the following properties are used:</description>
    </item>
    <item rdf:about="https://old.andunix.net/info/cryptography/openssl/print_key">
        <dc:format>text/html</dc:format>
        <dc:date>2015-01-29T09:15:22+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>Print Information about a Key</title>
        <link>https://old.andunix.net/info/cryptography/openssl/print_key</link>
        <description>Print Information about a Key
openssl x509 -inform DER -in testkey.cer -noout -text
Informations about the used arguments from the OpenSSL man page:

	*  x509: Certificate display and signing utility.
	*  -inform DER: This specifies the input format normally the command will expect an X509 certificate but this can change if other options such as -req are present. The DER format is the DER encoding of the certificate and PEM is the base64 encoding of the DER encoding with header and footer lines …</description>
    </item>
    <item rdf:about="https://old.andunix.net/z/relax/api/base/base-ssh-login">
        <dc:format>text/html</dc:format>
        <dc:date>2013-02-04T22:17:32+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>base-ssh-login</title>
        <link>https://old.andunix.net/z/relax/api/base/base-ssh-login</link>
        <description>base-ssh-login

Logs into a remote host using ssh.
This can be used to open a remote sesssion, but ususally it's used by other methods (especially base-exec-user) to remotely execute a command.

Usage
base-ssh-login SERVICE [ COMMAND ]
	*  SERVICE: a key of an user or host definition in the repository. From this, the following properties are used:</description>
    </item>
    <item rdf:about="https://old.andunix.net/z/relax/api/base/base-ssh-umount">
        <dc:format>text/html</dc:format>
        <dc:date>2013-02-04T22:17:32+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>base-ssh-umount</title>
        <link>https://old.andunix.net/z/relax/api/base/base-ssh-umount</link>
        <description>base-ssh-umount

Unmounts a remote share which had been mounted using sshfs/fuse (sftp).

Usage
base-ssh-mount SERVICE
	*  SERVICE: A key of a service definition in the repository.

Returns

No output.</description>
    </item>
    <item rdf:about="https://old.andunix.net/z/relax/api/host/host-user-tab">
        <dc:format>text/html</dc:format>
        <dc:date>2013-02-04T22:17:33+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>host-user-tab</title>
        <link>https://old.andunix.net/z/relax/api/host/host-user-tab</link>
        <description>host-user-tab

Lists the users on a given host as a colon separated table.

Usage
host-user-tab HOST
	*  HOST: a key of a host service definition in the repository.

Returns

Returns the contents of the /etc/passwd file.</description>
    </item>
    <item rdf:about="https://old.andunix.net/z/relax/api/base/base-repo-get-service">
        <dc:format>text/html</dc:format>
        <dc:date>2013-02-04T22:17:32+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>base-repo-get-service</title>
        <link>https://old.andunix.net/z/relax/api/base/base-repo-get-service</link>
        <description>base-repo-get-service

Loads a service configuration from the repository and outputs it to STDOUT.

Usage
base-repo-get-service SERVICE
	*  SERVICE: a key of a service definition in the repository.

Returns

Returns the service definition.
This is usually evaluated in a shell script by the</description>
    </item>
    <item rdf:about="https://old.andunix.net/info/sysadmin/ssh">
        <dc:format>text/html</dc:format>
        <dc:date>2015-11-30T12:09:18+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>SSH</title>
        <link>https://old.andunix.net/info/sysadmin/ssh</link>
        <description>SSH

SSH with Public Key Authentication only

/etc/ssh/sshd_config

Make sure that your SSH config file (sshd_config) contains these settings:


PubkeyAuthentication yes
PasswordAuthentication no


If you changed the config, make sure to restart sshd to activate ist:</description>
    </item>
    <item rdf:about="https://old.andunix.net/z/relax/api/base/base-ssh-mount">
        <dc:format>text/html</dc:format>
        <dc:date>2013-02-04T22:17:32+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>base-ssh-mount</title>
        <link>https://old.andunix.net/z/relax/api/base/base-ssh-mount</link>
        <description>base-ssh-mount

Mounts a remote share using sshfs/fuse (sftp).

Usage
base-ssh-mount SERVICE
	*  SERVICE: A key of a service definition in the repository.

Returns

No output.</description>
    </item>
    <item rdf:about="https://old.andunix.net/info/cryptography/openssl/print_certificate">
        <dc:format>text/html</dc:format>
        <dc:date>2015-12-09T07:36:40+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>Print Information about a Certificate</title>
        <link>https://old.andunix.net/info/cryptography/openssl/print_certificate</link>
        <description>Print Information about a Certificate
openssl x509 -in testkey.crt -noout -text
Informations about the used arguments from the OpenSSL man page:

	*  x509: Certificate display and signing utility.
	*  -in testkey.crt: This specifies the input filename to read a certificate from or standard input if this option is not specified.</description>
    </item>
    <item rdf:about="https://old.andunix.net/z/relax/api/host/host-user-list">
        <dc:format>text/html</dc:format>
        <dc:date>2013-02-04T22:17:33+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>host-user-list</title>
        <link>https://old.andunix.net/z/relax/api/host/host-user-list</link>
        <description>host-user-list

Lists the users on a given host.

Usage
host-user-tab HOST
	*  HOST: a key of a host service definition in the repository.

Returns

Returns the first colum (login) of the /etc/passwd file.

Example


users=$(host-user-list &quot;${host}&quot; \
	| egrep -v &quot;${IGNORED_USERS}&quot;
)</description>
    </item>
    <item rdf:about="https://old.andunix.net/z/relax/api/base/base-exec-superuser">
        <dc:format>text/html</dc:format>
        <dc:date>2013-02-04T22:17:31+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>base-exec-superuser</title>
        <link>https://old.andunix.net/z/relax/api/base/base-exec-superuser</link>
        <description>base-exec-superuser

Executes a command as a given user.
Command is executed using ssh if the user is not on localhost.
Before executing the command, the privileges will be elevated.
This privilege elevation method is defined by $RIGHT_ELEVATION in the
service configuration and can be either</description>
    </item>
</rdf:RDF>
