Howto

Improving Mailserver Reputation

Submitted by h2b on
System
Alle
Symptom
Mails sent from your server go into the recipient's spam or junk folder.

It is quite easy to set up a mailing system on your own server, but more often than not the recipients of your mails find them in their spam or junk folder – if at all. The reason is that most mail providers establish procedures to block unsolicited mails we have to deal with nowadays.

Web Server in a Sandbox

Submitted by h2b on
System
Debian GNU/Linux
Version
7
Symptom
A web server and related services as a database server shall run in jailed environments, so that they have no or or only limited access to other processes or filesystem paths of the operating system.

There are different methods to get a sandbox environment. Here, we use the  Firejail Security Sandbox, which allows to assign a private sealed scope to a service and all associated processes; this includes resources like network access, process table or filesystem. Therewith, the service only sees its own processes and can only access the part of the filesystem that has been assigned tio it.

Repairing AWStats

Submitted by h2b on
System
AWStats
Version
7.0
Symptom
AWStats doesn't update statistics anymore although it worked fluently so far. The configured cron jobs are still running and manual calls yield no success either.

The following situation arises (for me the first time after years of usage): AWStats runs by crontab,  but all of a sudden no statistics are generated anymore; an error related to the execution of crontab can be ruled out. A manual call like

/usr/lib/cgi-bin/awstats.pl -config=<config> -update

where <config> stands for the configuration in question,  results in an error message like

Extracting Multiple Subtrees from a Git Repository

Submitted by h2b on
System

Git

Version
2.1.4
Symptom

Multiple subtrees of a Git repository shall be extracted and transferred to a new archive while keeping the version history.

Git provides different approaches to solve this task. Here, we use the git-subtree command to create branches from the subtrees to be detached. Then, these branches will be imported from another repository. Sources were the manpage (man git-subtree) and this answer on stackoverflow along with some comments listed there.

Upgrading openSUSE from a Running System

Submitted by h2b on
System
openSUSE
Version
12.1 - 13.2
Symptom

Want to upgrade system to new openSUSE distribution without using media like DVD, CD, USB sticks or the like. Instead, just performing an upgrade from the running system.
 

Update: The script talked about in the text has been replaced by a new version with simplfied usage. For details see the comment New Version with Simplified Usage.

Crontab without Continuous Operation

Submitted by h2b on
System
OpenSUSE
Version
11.3
Symptom

Events triggered by crontab will not happen, if the PC is off-state at the time specified.

Unix systems including Linux have a mechanism that automatically can execute programs at a specified time – for instance daily at a certain time of day or weekly or monthly at a given day and here again at a certain time of day. All of this is triggered by a file named crontab which usually resides in the directory /etc (i. e., /etc/crontab) and contains the particular indications.

Updating a Drupal-6.x System

Submitted by h2b on
System
Drupal
Version
6.x
Symptom

A Drupal system shall be updated within the 6.x series – core, custom modules or both.

This howto is a short description for experienced Drupal administrators who want a check list for system updates. Thus, it is assumed that the basic update mechanism including the server directory structure is known. Furthermore, it is assumed that all administrative actions on the website are performed with appropriate permissions.

Problems when Configuring the Login Screen by the KDE4 Login Manager

Submitted by h2b on
System
KDE 4.3 / KDE 3.5 / KDM
openSUSE 11.2 (x86_64)
Symptom

Settings taken by the KDE4 login manager have no effect on the login screen.

After updating a KDE3-based Linux system (in my case openSUSE) to a new version based on KDE4, it may happen that the login screen cannot be changed by the login manager of KDE4 (System Settings|System|Login Manager) anymore. Even though the settings taken there are stored correctly at the dedicated location

/usr/share/kde4/config/kdm