Miscellaneous Tips to use Linux
fetchmail
Fetchmail is a program to collect emails from
different servers and accounts. Fetchmail can either be invoked locally by a user and then runs just
once or it can be started globally as a daemon. The local version reads the file
$HOME/.fetchmailrc, the global one reads /etc/fetchmailrc. The usual
distributions provide the start script /etc/init.d/fetchmail for the global version.
This script runs as root, and this may be a security issue. If you want to change this, replace
the default start script by my
SuSE init script and add the
users, for whom you want to start a fetchmail process to
/etc/sysconfig/fetchmail2.txt.
In addition there is an untested RedHat init script
for which you have to add the users in the script's header.
Monitor
If you own an LCD display, which is not listed in the SaX2 selection, here is how to proceed. Most monitors come with a Cd for Windows, which can also be used with Linux. Alternatively you can write your own configuration entry:
Add the following paragraph to the file /usr/X11R6/lib/sax/api/data/cdb/Monitors:
#==============================================
# MD41079EB
#----------------------------------------------
MEDION:MD41079EBS02 {
Option=DPMS
DPI=376 301
Modeline="1280x1024" 108.0 1280 1328 1440 1688 1024 1025 1028 1066 +hsync +vsync
Hsync=31-82
Vsync=30-60
}
The syntax is shortly described in the header of this file. Mor information is available at XFree86 Video Timings HOWTO.
Reading the DDC- (Display Data Control) entry with read-edid does not work on every system. Those who want to build an RPM for this utility may start with my spec-file.
The modeline entry can be created with the XFree86 Calculator,
I simply copied the entry from a the paragraph „LCD:1280X1024@60HZ”.
The monitor is not recognized automatically, but you can set it manually with SaX2,
it will work with these settings and the message that you should enter the screen dimensions
manually won't be displayed any more.
A different example:
#==============================================
# Fujitsu Siemens P19-1
#----------------------------------------------
FUJITSU:P19-1 {
DDC=FUS0504
Option=DPMS
DPI=376 301
Hsync=30-81
Vsync=43-76
Resolution=1280x1024
}
The entry DDC is meant for automatic recognition.
Instead of the modeline entry, only the Resolution is configured.
I didn't modify the file /usr/share/YaST2/data/monitors.ycp.
See also /usr/src/linux/Documentation/fb/vesafb.txt
Nvidia driver on SuSE
#! /bin/sh
# Copyright (c) 2006 Christian Barmala http://www.barmala.de/
# License GNU Public License http://opensource.org/licenses/gpl-license.php
# @(#) $Id: nvidia.sh,v 1.0 2008/04/19 08:00:00 cvs Exp $
ARCH=x86_64
VERSION=1.0-8762
PACKAGE=pkg2
if ! rpm -q kernel-source; then
echo "install kernel source: yast -i kernel-source; you"
exit 1
fi
cd /usr/src/linux
make cloneconfig
make prepare-all
cd
wget http://download.nvidia.com/XFree86/Linux-${ARCH}/${VERSION}/NVIDIA-Linux-${ARCH}-${VERSION}-${PACKAGE}.run
if [ "$(file NVIDIA-Linux-${ARCH}-${VERSION}-${PACKAGE}.run | cut -d : -f 2)" != " Bourne shell script text" ]; then
echo "download failed"
exit 1
fi
if [ $(runlevel | cut -d " " -f 2) -ne 3 ]; then
echo "the next step must be performed in runlevel3: enter \"init 3\" on boot"
exit 1;
fi
sh NVIDIA-Linux-${ARCH}-${VERSION}-${PACKAGE}.run
sax2 -r -m 0=nvidia
(See also Nvidia Installer HOWTO for SUSE LINUX users)
Pictures
The logon screen shows a picture for every user. The standard pictures can be replaced with custom ones by „Start | System | Konfiguration | Anmeldefoto”. Here is how to do it manually:
cd /opt/kde3/share/apps/kdm/ contains the following subdirectories:
pics/users/that's where the user's pictures/photos/avatars/icons are locatedfaces/Thats where the pictures are associated with users. Random pictures are located under.randomlist
In order to associate a user with a pictuer, you have to
cp user.png /opt/kde3/share/apps/kdm/pics/users/user.pngln -s /opt/kde3/share/apps/kdm/pics/users/user.png /opt/kde3/share/apps/kdm/faces/user.face.icon
Links
- Imap
LOGINDISABLED(German) - fetchmail & SSL
