Archive for the ‘ Linux Distributions ’ Category

Bei Debian Lenny treten häufig Probleme bei der SASL Anmeldung an Postix auf.
Folgenden Code ausführen:

~$ nano /etc/default/saslauth
Die OPTIONS Zeile umändern in
~$ OPTIONS=”-c -m /var/spool/postfix/var/run/saslauthd”
Danach folgenden Code ausführen
~$ dpkg-statoverride –add root sasl 710 /var/spool/postfix/var/run/saslauthd
~$ adduser postfix sasl

Danach noch die Dämonen neu starten
~$ /etc/init.d/saslauthd restart
~$ /etc/init.d/postfix restart

Jetzt sollte es mit dem Mailversand wider klappen

 

I experienced this problem on VPS Debian 5.0  Lenny:

——————————————————————————-
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LANG = “en_US.UTF-8″
are supported and installed on your system.
perl: warning: Falling back to the standard locale (“C”).
——————————————————————————-

Locale is a framework to switch between multiple languages for users who
can select to use their language, country, characters, collation order,
etc.

I noticed that i couldn’t install the Squirrelmail language modules.
How to fix:

~# apt-get update
~# apt-get upgrade
~# apt-get install locales
~# mv /etc/locale.gen /etc/locale.gen_back
~# ln -s /usr/share/i18n/SUPPORTED /etc/locale.gen
~# locale-gen

It takes a little eternity but afterwards your system is updated and
supports multiple languages.

 

To display the mailqueue type:
postqueue -p

To deliver messages in the queue type:
postqueue -f

 

Das Programm mirrordir ermöglicht ganz einfachen Datenabgleich, wobei im Zielordner nicht nur Daten hinzugefügt oder erneuert werden sondern auch gelöscht werden falls sie im Quellordner nicht mehr existieren.
Syntax: ~$ mirrordir -v /home/myaccount/datei1 /home/myaccount/datei2
Download des Programms unter http://www.sfr-fresh.com/unix/misc
Debian Anwender können das Programm über Apt installieren.

 

To test the connection between 2 internet location / machines type:
~$ traceroute rootserver.lu

( Replace with your domain name, host name or IP Address )
traceroute to rootserver.lu (78.47.146.25), 30 hops max, 40 byte packets
1 speedport.ip (192.168.2.1) 0.302 ms 0.297 ms 0.319 ms
2 * * *
3 217.0.67.154 (217.0.67.154) 51.127 ms 50.901 ms 50.529 ms
4 217.239.40.222 (217.239.40.222) 53.617 ms 55.222 ms 52.688 ms
5 dtag-gw.hetzner.de (193.159.226.2) 53.424 ms 55.301 ms 55.647 ms
6 hos-bb1.juniper1.rz4.hetzner.de (213.239.240.200) 56.871 ms 57.604 ms 71.951 ms
7 gi.4.1.rs3k16.rz9.hetzner.de (213.239.244.61) 59.760 ms 58.135 ms 56.870 ms
8 gate.my-web-host.org (78.46.99.143) 58.378 ms 115.404 ms 58.352 ms
9 rootserver.lu (78.47.146.25) 57.858 ms 56.213 ms 57.863 ms

 

To switch / define your default editor type:
~# update-alternatives –config editor

There are 3 alternatives which provide `editor’.

Selection Alternative
———————————————–
1 /bin/ed
*+ 2 /bin/nano
3 /usr/bin/vim.tiny

Press enter to keep the default[*], or type selection number:

 

In some php 5 versions the flle upload is bugging by default.
Open php.ini and add the following line ( or uncomment if present but not enabled )
upload_tmp_dir = /tmp

 

To add php modules to your configuration you can easily
use your apt manager:

~# apt-get install php5-gd
~# apt-get install php5-curl

 

Monitoring your system basics
 
To check the disk usage on your system
~# df -h

To check the memory allocation and usage
~# free -m

To visualize your CPU information
~# cat /proc/cpuinfo

To check your network configuration
~# ifconfig

To visualize the running processes, CPU Load and Memory
~# ps aux

To see lifetime running processes
~# top
( type q to leave the program )

 

Setting File and Folder Ownership
 
Every file or folder belongs to an owner and a group
To change ownership use the syntax:
~# chown username:usergroup filename
~# chown username:usergroup foldername
To change ownership recursively, meanwhile all files inside a folder:
~# chown -R username:usergroup foldername
To check and visualize your changes type:
~# ls -hal