Wednesday, August 13, 2014

further with ubuntu

you can follow my further on this blog:

Tuesday, June 24, 2014

still notebook hdd bug

I describes at my wiki how to avoid the notebook hdd bug with reading the smart values every 30 seconds.
But this not works correctly. After waking up from sleep mode the hdd goes every 10 sec into sleep and was waked up.
So i correctet the script so that i read the smart values every 10 seconds.
This works much better.
Here the updated script:

while :
sleep 10
/usr/sbin/smartctl -g apm /dev/sda > /dev/null

Tuesday, June 17, 2014

Logoff Problem with Testing and Gnome

After installing Debian Testing (16.06.2016) and uses Gnome as default
Desktop i have problems with rebooting, or logging out.
When i try to logout nothing happens,
and the enviroment go to a fallback mode.

I installed this package:

After this the problem was solved.

Friday, May 30, 2014

HDD-Bug on Jessie with Toshiba

With Debian Jessie and my notebook from Toshiba i found no solution for the hdd-notebook-bug.
I added the apm value of 254 (and for testing 255) several times to the system. Without effect. The hdd go to park position every 60 seconds.

I addes a small shell script to the /etc/rc.local that reads every 30 seconds the smart parameter and write it into nul.
With this script the problem is solved.
while :
sleep 30
/usr/sbin/smartctl -g apm /dev/sda > /dev/null

Tuesday, May 27, 2014

Installing Debian on Toshiba Satellite C50D-1-133

Here i write how to install Debian on my new Toshiba laptop.

Debian Wheezy was not working. Wlan was not found, the graphic card not correctly detected. Using a backport kernel solved the wlan problem, but not the graphic to work. Even with firmware only the vesa mode were used.

Because this i decieded to use Debian Testing (jessie build date 19.06.2014).
At the bios i disable secure boot, and switch vom uefi to csm mode.

With the Debian installer i delete all partitions of Windows 8.1, and the uefi partition. After this the installer was not able to write the grub2 into the mbr.
So i start with a Ubuntu live-cd and uses gparted to change the partion scheme to msdos.
After this the installer was able to create the partitions.

The installation works good, wlan and lan are found.

After the installation i installed the packages firmware-linux-free and firmware-linux-nonfree with dpkg -i .
Now the graphic works fine.

Sometimes during boot the kernel shows no messages at the text-mode.
The screen only keeps black. The solution i found was adding "vga=791" to the kernel.

The brightnesscontrol did not work after installation. The screen always has the highest brightness. For this problem i had to add a kernel parameter too:

The /etc/default/grub file of this machine now looks like this:

GRUB_CMDLINE_LINUX_DEFAULT=”vga=791 acpi_backlight=vendor”

After this only updating the grub with grub-update.

Wednesday, May 21, 2014

Analyse header and create email forwarding

For redirect emails before sending or receiving you can search the header of a file for keywords and create a rule for it.
The keywords can be a part of the email adress.
With this solution you can intercept emails or create a vacation representation.

I add the following line to
header_checks = regexp:/etc/postfix/header_checks

At the file header_checks are the keywords and the forward/redirect destinations stored.
This line search for the key "DASISTDASSUCHWORT" and if it is found the mail is redirected to the email

Friday, May 16, 2014

Jabberserver connectet to other

After routing port 5269 my jabberserver coult connect to
other server and transfer the messages to them.

Now i can use my own server for talking to every jabber account.

Tuesday, May 13, 2014

Small python program

The first program after “Hello World”:

wort = raw_input(”Wort:”)
wiederholen = input(”Anzahl:”)
if wiederholen == 0:
   print”0 mal geht ja wohl nicht, bitte nochmal eingeben”
  wiederholen = input(”noch ein Versuch:”)
for i in range(0, wiederholen):
  print wort

The program ask for a text-string and a number. Both is stored
as variable.
A minimal fault tolerance is the if statemenf for 0 so that a message appears.
Then the word is written as often as the variable says to the terminal.

Learned: using variable, if statement, for loop and printing variable.

Monday, May 12, 2014

Start with Python

My first Python Programm on Debian,
 of course the “Hello World”

print “hello world”

More about Python in future at my Wiki on

Monday, April 28, 2014

Wheezy uses apt as favorite methode

Debian Etch, Lenny and Squeeze prefered aptitude for installing packages. This changed with Wheezy to apt-get.
In the past you can see at the log-files that the debian installer advices aptitude to install the packages (you could look at the log-files).

Now the installer uses apt, what the log-files confirm.

Wednesday, April 16, 2014

Installation day 14.04

At 14.04 was  my great Debian installation day, and i installed my work-computer with Debian 7.4, later at home my notebook with Debian 7.1 and desktop with Debian 7.0.

The cause for the different versions is that i used the DVD for installation and this were the available DVD at this moment.
The installation i only run from media without  a network-connection so that all packages are installed from local media.

After long time usind Debian Squeeze now i switch to Wheezy and enjoy the new user experience with Gnome3.

The installation was very easy and the hardware detection found at the work-computer and home-desktop everything that was installed. It work out of the box. At the notebook i must installed furter nonfree firmware packages with some dpkg -i commands. Wireless lan and graphic card was not found and so it run with gnome-classic.

The only difference i notice was that Debian 7.0 hat the ssh-server selected at tasksel, and with Debian 7.4 it was disabled as default.

Timely this day i recevied the current debian manual from Heike Jurzik.
The books to debian 5 & 6 i owned and the new one is realy fine to read for beginner and professionals. Very nice is that not only Gnome is described, the other enviroments and window manager like fwvm are a part of the book too.
Debian Book at Galileo Computing from Heike Jurzik

Thursday, April 10, 2014

Slideshow with non X Server

Slideshow for the shell 

Auf einem Server wollte ich nebenbei noch eine Slideshow mit Bildern laufen lassen.
At my server i would run a slideshow with pictures.
Because the server has no graphical enviroment i decieded to use the framebuffers.
As programm i installed "fbi"

aptitude install fbi 

The programm is part of the official debian repository.
For creating a framebuffer device the kernel need this parameter during boot:


This means 16 Bit colour and 1024x768 Pixel.

fbi -d /dev/fb0 -t 7 -u /daten/bilder/*.JPG 

With this command line i show all pictures from the directory /daten/Bilder for each 7 secounds a picture on the /dev/fb0 framebuffer device.
With -d i chose the device, -t are the time in secounds and -u the sources of the pictures.

That the scripts run in a ininity loop i create two shell-scripts:

while true
fbi -d /dev/fb0 -t 7 -u /daten/bilder/*.jpg

while true
sleep 30
killall fbi

The first script starts the fbi command and the loop garants, that if the programm is closed, it starts again. The secound scripts stops the fbi programm every 5 minutes (so that script 1 restart it) and with this it recognize the new pictures.

Tuesday, March 18, 2014

Using ejabberd as xmpp server

The ejabberd server you can backup with this command: ejabberdctl backup filename

or create a raw dump with this command:  
ejabberdctl dump filename

Backup creates a normal backup-file and dump creates a raw file of all data.  

For normal work the backup is good enough.

Restoring the data is equal to backup, only using restore or load(when using dump):  
ejabberdctl restore Datei

This command shows how many users are online at the moment:  
ejabberdctl connected-users-number

And this command shows the user names:
ejabberdctl connected-users

For showing all users with a account at the server use this command: ejabberdctl registered-users Servername

Wednesday, March 5, 2014

Firebird Database with Debian

Usind firebird as database with Debian

Before we install the database here a short overview of the different versions:

Classic Server
The classic server uses for each connection a different task. On multiprocessor systems the server uses all cores to share the usage.
Best performance for a small  number of connections.

The superserver uses only one process and for each connection a thread. All connections use the same cache. Multiprocessing is not supportet. On server with more than one cpu there is no more performance improvement.
Best performance on many connections.

Superclassis uses a thread for each connection and one cache, but supports multicore cpu's. Combination of the advantages of both systems but only available at firebird 2.5 or higher.


For installation i used aptitude:

aptitude install firebird2.5-superclassic

With this command aptitude installed the needed packackes. For using the database we need the user and group "firebird" and the masterpassword. For creating this we use the package manager dpkg-reconfigure:

dpkg-reconfigure firebird2.5-superclassic

While the package manager is creating the database he ask for the masterpassword for the mainuser.

The config files can be found here: /etc/firebird/2.5

At the config file firebird.conf i changed nothing. The aliases.conf i used for creating an database alias. So we can use the database without the complete path to the database file. When not using an alias you must set the complete path to the file from view of the server.

# ------------------------------
# List of known database aliases
# ------------------------------
# Example Database:
employee.fdb = /usr/share/doc/firebird2.5-common-doc/examples/empbuild/employee.fdb
employee = /usr/share/doc/firebird2.5-common-doc/examples/empbuild/employee.fdb
# Live Databases:
datenbank = /daten/datenbank.fdb

Here i create the alias "datenbank" for the database file  /daten/datenbank.fdb
It is importent to check the permissions of the database file and the complete path to it.

For creating a user of firebird we using gsec.

gsec -user sysdba -pass hauptpassword -add benutzername -pw benutzerkennwort

Here we create the user "benutzername" with the password "benutzerkennwort" while using the mainuser "sysdba" and his password "hauptpassword" whis was created during the installation with dpkg-reconfigure.

When everything is done we restart the database:

/etc/init.d/firebird2.5-superclassic restart

Tuesday, February 11, 2014

Setting time and date on the shell

For setting time and date on the shell we use the command
It is used like this:
date <month><day><hour><minute><year>.<seconds>

date 021108092014.00

Here the time is set for this:
02 <- month 11 <- day 08 <- hour 09 <- minute  2014 <- year .00 <- seconds

Monday, January 20, 2014

Mail Provider changes SSL

Yesterday i recognice that the company mailserver hat problems with receiving mails from the provider.
The log file /var/log/ show this entrys:
  Jan 19 18:43:41 server fetchmail[25245]: SSL connection failed.
Jan 19 18:43:41 server fetchmail[25245]: socket error while fetching from
Jan 19 18:43:41 server fetchmail[25245]: Query status=2 (SOCKET)
Jan 19 18:43:41 server fetchmail[25245]: fingerprints
do not match!

This shows me, that the provider has changed the ssl key.
With this command i get the new ssl-key from the mail-server of the provider:
 fetchmail –verbose

Fetchmail shows me so more information during receving the emails from the provider and in this informations is the new ssl key.
This key i copy and wrote it into my .fetchmailrc that looks then like this:
pass “pop3password”
to info
options ssl sslfingerprint “A1:A1:A1:A1:8B:98:54:70:F7:07:89:1A:28:F1:F1:2E” 

Getting the new mails from the pop3 mailserver is no problem.

Thursday, January 9, 2014

Double mail delivery with postfix and always_bcc

At Postfix i enable this function:

With this line i get a copy of each email of the mailserver.
Because i installed a amavis scanner the postfix touch every mail
twice times. For this i get each mail double into the mail archive.
Adding this line solved the problem: (
enable_original_recipient = No

Wednesday, January 8, 2014

Little changes at my homepage

There a little changes on my homepage...
Maybe it is time to visit it again...

Jabber Clients

After installing the jabberserver at home,
i will spend a little time speaking about the clients.

At Linux i use pidgin for jabber, irc and icq. It is a very good
multi-protocol client and available for windows too.

My andorid phone works with xabber very good.
Together with pidgin the message appears at the device
i work actually with. (Empathy cant do this).

Windows Phones i set up with IM+ but it is not realy
als nice as xabber.