You are here

Howto

Howto

Submitted by h2b on 30. December 2009 - 18:36

This area contains short proposals (howtos) for solution of special hardware and software problems that happened to appear to myself.

Improving Mailserver Reputation

Submitted by h2b on 7. March 2019 - 20:50
System: 
Any
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.

AWStats: Taking Over Data from Other Profile

Submitted by h2b on 20. March 2018 - 1:04
System: 
AWStats
Version: 
7.0
Symptom: 
The AWStats profile has changed and older statistics shall be taken over.

When AWStats data shall be taken over from another, e.g. older, profile do the following.

First, ensure that during this procedure no unwanted updates of profiles take place by, say, removing all AWStats update commands from crontab.

Web Server in a Sandbox

Submitted by h2b on 5. July 2017 - 17:19
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 2. June 2017 - 1:21
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 17. November 2015 - 19:54
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 27. March 2012 - 18:23
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 20. October 2010 - 18:15
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.

Problems when Configuring the Login Screen by the KDE4 Login Manager

Submitted by h2b on 14. May 2010 - 19:34
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

Pages

Subscribe to RSS - Howto