<?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-03T22:02:13+00:00</dc:date>
        <items>
            <rdf:Seq>
                <rdf:li rdf:resource="https://old.andunix.net/info/mysql/user/create"/>
                <rdf:li rdf:resource="https://old.andunix.net/z/relax/api/base/base-exec-user"/>
                <rdf:li rdf:resource="https://old.andunix.net/info/mysql/user/remove"/>
                <rdf:li rdf:resource="https://old.andunix.net/z/relax/api/base/base-exec-superuser"/>
                <rdf:li rdf:resource="https://old.andunix.net/info/mysql/user/password"/>
                <rdf:li rdf:resource="https://old.andunix.net/info/mysql/database/backup"/>
                <rdf:li rdf:resource="https://old.andunix.net/z/relax/api/base/base-ssh-login"/>
                <rdf:li rdf:resource="https://old.andunix.net/z/travian/travian_map_download_script"/>
                <rdf:li rdf:resource="https://old.andunix.net/info/oracle/exp"/>
                <rdf:li rdf:resource="https://old.andunix.net/z/relax/api/host/host-user-list"/>
                <rdf:li rdf:resource="https://old.andunix.net/blog/2011/project_pda"/>
                <rdf:li rdf:resource="https://old.andunix.net/p/pda/index"/>
                <rdf:li rdf:resource="https://old.andunix.net/info/script/root_login_with_bash"/>
                <rdf:li rdf:resource="https://old.andunix.net/z/relax/api/host/host-user-tab"/>
                <rdf:li rdf:resource="https://old.andunix.net/info/mysql/database/create"/>
                <rdf:li rdf:resource="https://old.andunix.net/wiki/welcome"/>
                <rdf:li rdf:resource="https://old.andunix.net/info/java/jps"/>
                <rdf:li rdf:resource="https://old.andunix.net/info/mysql/user/index"/>
                <rdf:li rdf:resource="https://old.andunix.net/blog/2009/opensolaris_virtualbox_mount_shared_folder"/>
                <rdf:li rdf:resource="https://old.andunix.net/info/script/dyndns_updates_without_client"/>
                <rdf:li rdf:resource="https://old.andunix.net/info/mysql/permissions/revoke"/>
                <rdf:li rdf:resource="https://old.andunix.net/info/mysql/permissions/grant"/>
                <rdf:li rdf:resource="https://old.andunix.net/info/mysql/permissions/view"/>
                <rdf:li rdf:resource="https://old.andunix.net/wiki/syntax"/>
                <rdf:li rdf:resource="https://old.andunix.net/blog/2010/drupal_reverse_proxy"/>
                <rdf:li rdf:resource="https://old.andunix.net/blog/2010/how_create_moveable_vm_virtualbox"/>
                <rdf:li rdf:resource="https://old.andunix.net/info/code/git"/>
                <rdf:li rdf:resource="https://old.andunix.net/wiki/dokuwiki"/>
            </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/mysql/user/create">
        <dc:format>text/html</dc:format>
        <dc:date>2016-01-25T11:49:04+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>MySQL: Create User</title>
        <link>https://old.andunix.net/info/mysql/user/create</link>
        <description>MySQL: Create User

Create User


CREATE USER '{user}'@'%' IDENTIFIED BY '{passwd}';


Create User and Database

	*  Usually, {user} == {db}


CREATE USER '{user}'@'%' IDENTIFIED BY '{passwd}';

GRANT USAGE ON * . * 
TO '{user}'@'%' 
IDENTIFIED BY '{passwd}' 
WITH 
  MAX_QUERIES_PER_HOUR 0 
  MAX_CONNECTIONS_PER_HOUR 0 
  MAX_UPDATES_PER_HOUR 0 
  MAX_USER_CONNECTIONS 0 ;

CREATE DATABASE IF NOT EXISTS `{db}`;

GRANT ALL PRIVILEGES ON `{db}` . *  TO '{user}'@'%';</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/mysql/user/remove">
        <dc:format>text/html</dc:format>
        <dc:date>2013-02-04T22:17:27+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>MySQL: Remove User</title>
        <link>https://old.andunix.net/info/mysql/user/remove</link>
        <description>MySQL: Remove User

Remove User


DROP USER '{user}'@'%';


Remove User and Database

	*  Usually, {user} == {db}


DROP USER '{user}'@'%';
DROP DATABASE '{db}';


admin database mysql sql</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>
    <item rdf:about="https://old.andunix.net/info/mysql/user/password">
        <dc:format>text/html</dc:format>
        <dc:date>2013-12-17T09:09:25+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>MySQL: Change Password</title>
        <link>https://old.andunix.net/info/mysql/user/password</link>
        <description>MySQL: Change Password

	*  Replace {passwd} with the password of the user.
	*  Replace {user} with the name of the user.


GRANT USAGE ON *.* TO '{user}'@'%' IDENTIFIED BY '{passwd}';
FLUSH PRIVILEGES;


Or you can alternatively use the following:


UPDATE mysql.user SET Password=PASSWORD('{passwd}') WHERE User='{user}';
FLUSH PRIVILEGES;</description>
    </item>
    <item rdf:about="https://old.andunix.net/info/mysql/database/backup">
        <dc:format>text/html</dc:format>
        <dc:date>2013-02-04T22:17:25+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>MySQL: Backup</title>
        <link>https://old.andunix.net/info/mysql/database/backup</link>
        <description>MySQL: Backup

Export a Database


# set or replace the variables $USER, $PASS and $DB
mysqldump --add-drop-table -u${USER} -p${PASS} ${DB}


Export all Databases individually


# set or replace the variables $USER and $PASS
DATE_YMD=$(date &quot;+%Y-%m-%d&quot;)
DATABASES=$(mysql --batch -u${USER} -p${PASS} mysql --execute='show databases')
for db in ${DATABASES}
do
    mysqldump --add-drop-table -u${USER} -p${PASS} ${DB} &gt; ${DB}_${DATE_YMD}.sql &amp;
    bzip2 ${DB}_${DATE_YMD}.sql &amp;
    # sleep 10 # option…</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/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/info/oracle/exp">
        <dc:format>text/html</dc:format>
        <dc:date>2013-03-01T20:40:57+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>Oracle: EXP</title>
        <link>https://old.andunix.net/info/oracle/exp</link>
        <description>Oracle: EXP

Export all Objects from an Account

Enter the account name insteand of {user}.


exp USERID=\'/ as sysdba\' FILE={user}.dmp FULL=N OWNER={user}


admin exp oracle</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/blog/2011/project_pda">
        <dc:format>text/html</dc:format>
        <dc:date>2013-03-03T14:10:12+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>Project PDA</title>
        <link>https://old.andunix.net/blog/2011/project_pda</link>
        <description>Project PDA

I'm currently working on a project called 'PDA'.
PDA stands for “Personal Digital Assistant”.
I used several PDAs over the last two decades, from Sharp, Psion, Palm and others.
But they all were just Personal Datastorages.
I always missed the</description>
    </item>
    <item rdf:about="https://old.andunix.net/p/pda/index">
        <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>Project PDA</title>
        <link>https://old.andunix.net/p/pda/index</link>
        <description>Project PDA

The Project PDA aims to build a real Personal Digital Assistant.

	*  Data Collector: Collection of API Implementations to connect to several (Web-)Services and access data there
	*  Blackbox: Entity Storage. Stores XML objects like tasks, notes etc.
	*  PADD: Personal Access and Data Display. Named after the Star Trek Pads, it implements the pda index</description>
    </item>
    <item rdf:about="https://old.andunix.net/info/script/root_login_with_bash">
        <dc:format>text/html</dc:format>
        <dc:date>2013-02-04T22:17:35+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>root login with bash</title>
        <link>https://old.andunix.net/info/script/root_login_with_bash</link>
        <description>root login with bash

On our systems, the root account is set to be a role, so you can't login as root, just su to root from an user which has the root role.
Also, the root user has the bourne shell (/bin/sh), but working with /bin/bash is much easier.
Using this command, you can directly log in as</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/info/mysql/database/create">
        <dc:format>text/html</dc:format>
        <dc:date>2013-02-04T22:17:25+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>MySQL: Create Database</title>
        <link>https://old.andunix.net/info/mysql/database/create</link>
        <description>MySQL: Create Database

Create Database


CREATE DATABASE IF NOT EXISTS `{db}`;


Create Database and Grant Rights to a User


CREATE DATABASE IF NOT EXISTS `{db}`;
GRANT ALL PRIVILEGES ON `{db}` . * TO '{user}'@'%';


admin database mysql sql</description>
    </item>
    <item rdf:about="https://old.andunix.net/wiki/welcome">
        <dc:format>text/html</dc:format>
        <dc:date>2020-09-15T19:10:57+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>Welcome to your new DokuWiki</title>
        <link>https://old.andunix.net/wiki/welcome</link>
        <description>Welcome to your new DokuWiki

Congratulations, your wiki is now up and running. Here are a few more tips to get you started.

Enjoy your work with DokuWiki,

-- the developers

Create your first pages

Your wiki needs to have a start page. As long as it doesn't exist, this link will be red:</description>
    </item>
    <item rdf:about="https://old.andunix.net/info/java/jps">
        <dc:format>text/html</dc:format>
        <dc:date>2013-02-19T14:05:55+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>jps - Java Virtual Machine Process Status Tool</title>
        <link>https://old.andunix.net/info/java/jps</link>
        <description>jps - Java Virtual Machine Process Status Tool

The Java Virtual Machine has a jps tool wich is a bit like the ps command.
jps lists all java Processes of a user.
You can find the man page at &lt;http://java.sun.com/j2se/1.5.0/docs/tooldocs/share/jps.html&gt;.
I'm using it with the parameters -l (long listing) and -m</description>
    </item>
    <item rdf:about="https://old.andunix.net/info/mysql/user/index">
        <dc:format>text/html</dc:format>
        <dc:date>2013-02-04T22:17:27+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>User Administration</title>
        <link>https://old.andunix.net/info/mysql/user/index</link>
        <description>User Administration
user index</description>
    </item>
    <item rdf:about="https://old.andunix.net/blog/2009/opensolaris_virtualbox_mount_shared_folder">
        <dc:format>text/html</dc:format>
        <dc:date>2009-08-11T10:16:00+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>OpenSolaris / VirtualBox: Mount Shared Folder</title>
        <link>https://old.andunix.net/blog/2009/opensolaris_virtualbox_mount_shared_folder</link>
        <description>OpenSolaris / VirtualBox: Mount Shared Folder

To mount a shared folder in a OpenSolaris guest in VirtualBox, you have to install the Guest Additions and then mount the file system type vboxfs.
The Usage is:


mount -F vboxfs &lt;share&gt; &lt;mountpoint&gt;</description>
    </item>
    <item rdf:about="https://old.andunix.net/info/script/dyndns_updates_without_client">
        <dc:format>text/html</dc:format>
        <dc:date>2013-02-04T22:17:34+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>DynDNS Updates without a Client</title>
        <link>https://old.andunix.net/info/script/dyndns_updates_without_client</link>
        <description>DynDNS Updates without a Client

My new hosting provide Strato offers DynDNS.
I was searching for a DynDNS client for my OpenSolaris Home Server, but a small bash script does the job as good as any other client.


#! /bin/bash
 
. ${HOME}/.dyndns.cfg
DOMAINS=$(cat ${HOME}/.dyndns.domains)
 
echo &quot;$(date '+%Y-%m-%d %H:%M') $(basename $0)&quot;
for domain in ${DOMAINS}; do
        echo -n &quot;  ${domain} - &quot;
        curl --silent --show-error --insecure --user ${LOGIN} &quot;${UPDATE_URL}?hostname=${domain}&quot;
d…</description>
    </item>
    <item rdf:about="https://old.andunix.net/info/mysql/permissions/revoke">
        <dc:format>text/html</dc:format>
        <dc:date>2013-02-04T22:17:26+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>MySQL: Revoke Permissions</title>
        <link>https://old.andunix.net/info/mysql/permissions/revoke</link>
        <description>MySQL: Revoke Permissions

Revoke Permissions


REVOKE ALL PRIVILEGES ON `{db}` . * FROM '{user}'@'%';


admin database mysql sql</description>
    </item>
    <item rdf:about="https://old.andunix.net/info/mysql/permissions/grant">
        <dc:format>text/html</dc:format>
        <dc:date>2013-02-04T22:17:26+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>MySQL: Grant Permissions</title>
        <link>https://old.andunix.net/info/mysql/permissions/grant</link>
        <description>MySQL: Grant Permissions

Grant Permissions


GRANT ALL PRIVILEGES ON `{db}` . * TO '{user}'@'%';


admin database mysql sql</description>
    </item>
    <item rdf:about="https://old.andunix.net/info/mysql/permissions/view">
        <dc:format>text/html</dc:format>
        <dc:date>2013-02-04T22:17:26+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>MySQL: View Permissions</title>
        <link>https://old.andunix.net/info/mysql/permissions/view</link>
        <description>MySQL: View Permissions

View Permissions


SHOW PRIVILEGES;
SHOW GRANTS FOR '{user}'@'%';


admin database mysql sql</description>
    </item>
    <item rdf:about="https://old.andunix.net/wiki/syntax">
        <dc:format>text/html</dc:format>
        <dc:date>2020-09-15T19:10:57+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>Formatting Syntax</title>
        <link>https://old.andunix.net/wiki/syntax</link>
        <description>Formatting Syntax

DokuWiki supports some simple markup language, which tries to make the datafiles to be as readable as possible. This page contains all possible syntax you may use when editing the pages. Simply have a look at the source of this page by pressing</description>
    </item>
    <item rdf:about="https://old.andunix.net/blog/2010/drupal_reverse_proxy">
        <dc:format>text/html</dc:format>
        <dc:date>2013-03-12T21:41:05+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>Drupal: Reverse Proxy</title>
        <link>https://old.andunix.net/blog/2010/drupal_reverse_proxy</link>
        <description>Drupal: Reverse Proxy

skybow wrote the very helpful article “Drupal via HTTPS/SSL Proxy Server (shared certificates)”.
While following his advice, I found some improvements.

To reduce the amount of editing and to increate the reusability, I substituted

	*  www.example.com with $_SERVER['SERVER_NAME'] and</description>
    </item>
    <item rdf:about="https://old.andunix.net/blog/2010/how_create_moveable_vm_virtualbox">
        <dc:format>text/html</dc:format>
        <dc:date>2010-05-17T07:55:00+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>How To Create a Moveable VM with VirtualBox</title>
        <link>https://old.andunix.net/blog/2010/how_create_moveable_vm_virtualbox</link>
        <description>How To Create a Moveable VM with VirtualBox

VirtualBox works good when you use the same VMs all the time. It organizes the disk images in one directory and the configuration files in another. It kees a record of all known disk images and virtual machines.</description>
    </item>
    <item rdf:about="https://old.andunix.net/info/code/git">
        <dc:format>text/html</dc:format>
        <dc:date>2018-12-06T10:07:22+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>Git</title>
        <link>https://old.andunix.net/info/code/git</link>
        <description>Git

Basics

Init Repository

Standard:
git init [DIR]
Bare:
git init --bare [DIR]
Log

See commits between branches:
git log master..develop
Branches

List Branches
git branch
Switch Branch
git checkout BRANCH
Delete Branch
git branch -d BRANCH
Delete Remote Branch</description>
    </item>
    <item rdf:about="https://old.andunix.net/wiki/dokuwiki">
        <dc:format>text/html</dc:format>
        <dc:date>2020-09-15T19:10:57+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>DokuWiki</title>
        <link>https://old.andunix.net/wiki/dokuwiki</link>
        <description>DokuWiki

wiki:dokuwiki DokuWiki is a simple to use and highly versatile Open Source wiki software that doesn't require a database. It is loved by users for its clean and readable Formatting Syntax. The ease of maintenance, backup and integration makes it an administrator's favorite. Built in</description>
    </item>
</rdf:RDF>
