Michael's blog OSS / Linux, networking and my private life

28 Okt/10 2

Hello LastPass - 1password goodbye

To all the 1password users out there:

there is an alternative that works even across platforms

Find the whole is under Lastpass.com it acts just like the browser integration to 1password . With one master password, the Keychain is unlocked and you can access the existing passwords. The integration is also a button in Safari, and even just Firefox, Internet Explorer, Chrome, etc., but just read where even LastPass works anywhere, it is found here .

Only the iPhone app requires an upgrade to the Pro version and costs in the form of an annual payment, the iPad app is similar to that of 1password and even free.

I've been using LastPass for two weeks now and am completely thrilled, 1password is already gone! :)

15 Aug/10 0

Power-saving suspend file server with

After an eternal now time for me ran a 24x7 server, I've decided to phase out this now and to build a more energy-efficient option. Can aim was to have a file server, using wake-on-the LAN to wake up and do not run constantly. Was important to me as quickly as possible and wake up the server, who wants to wait long to access documents.

To solve the problem now is running Debian Lenny with latest kernel from backports.

  puppy: ~ # uname-r
 2.6.32-amd64-bpo.5 

Only the kernel upgrade has reduced the power saving features enabled (especially cpufreq) consumption by about 20 watts.

In addition, I want the server is not always manually shut down to, so I went in search of an already existing checker which checks on the one hand if someone is connected via SSH, on the other hand the network, the usual suspects for activity checks to ensure that the server is not shut down when needed.
I found what I was in the "server-sleepd", was apparently built by the part time Heise find the shell script is under http://mercurial.intuxication.org/hg/server-sleepd .
Within the script can be distinguished what to do with the server when shutting down, in my case, "pm-suspend" is called to put him to sleep.

I had problems but the WOL, I was not waking up the server again. The error is simply a deaktiverem WOL on the NIC and the deaktivertem wakeup event for the network card to search in ACPI.

Should all look as follows:

  puppy: ~ # cat / proc / acpi / wakeup
 Device S-state Status Sysfs node
 PS2K S4 disabled pnp: 00:0 a
 UAR1 S4 disabled pnp: 00:0 b
 NSMB S4 disabled pci: 0000:00: 01.1
 USB0 S4 disabled pci: 0000:00: 02.0
 USB2 S4 disabled pci: 0000:00: 02.1
 NMAC S5 enabled pci: 0000:00: 07.0
 P0P1 S4 disabled pci: 0000:00: 04.0
 HDAC S4 disabled pci: 0000:00: 05.0
 BR10 S4 disabled pci: 0000:00: 09.0
 BR12 S4 disabled pci: 0000:00:0 c.0
 BR11 S4 disabled pci: 0000:00:0 b.0
 puppy: ~ # ethtool eth0
 Settings for eth0:
	 Supported ports: [MII]
	 Half 10baseT / Full Supported link modes: 10baseT / 10baseT Half / Full
	                         Full 100baseT / 100baseT Half / Full
	                         1000baseT / Full
	 Supports auto-negotiation: Yes
	 Half 10baseT / Full Advertised link modes: 10baseT / 10baseT Half / Full
	                         Full 100baseT / 100baseT Half / Full
	                         1000baseT / Full
	 Advertised auto-negotiation: Yes
	 Speed: 1000Mb / s
	 Duplex: Full
	 Port: MII
	 PHYAD: 1
	 Transceiver: external
	 Auto-negotiation: on
	 Supports Wake-on: g
	 Wake-on: g
	 Link detected: yes 

Important here is that in / proc / acpi / wakeup in the respective network card is "enabled" appears in the status, otherwise events from this source is not used to wake up.
The correct PCI ID of the network map can be found via "lspci".

Is the whole set with me in / etc / network / interfaces when starting the network connections.

  up ethtool-s eth0 want g
 gt; / proc / acpi / wakeup up echo NMAC & gt; / proc / acpi / wakeup 

Filed under: it , kernel , linux No Comments
6 Aug/10 0

SLES11 Mirror

Similar to the SLES10 Mirror offers the UNI Regensburg again for all the packages SLES11.
To find the mirror is under http://demeter.uni-regensburg.de

Tags: , , , no comments
5 Aug/10 2

Alix 2D13 as a firewall

Recently, I run a firewall on my Alix 2d13 than on Entertain connection.

I ordered the part as a bundle consisting of the Alix, housing, CF card and power supply on the Varia-Store . As I have firewall distribution for IPFire decided reason for this was the native Alix and VDSL with VLAN7 support for IPTV and 8, in addition, there is a package for the necessary igmpproxy.

The whole thing works! Really just perfect and the performance of the VPN is much better than my previous router or telecom gefritzten version of it. Installation is even step by step in the documentation described.

The last major update to 2.7 from 2.5 has IPFire while requires a little time to install but works in total without error, speaks thus of great quality work in the distribution IPFire

All in all a good package and to recommend any of a knack for hardware and Linux.

Filed under: it , linux , networking , routing 2 comments
10 Dez/09 0

rootdelay the Linux boot

Just now I had with a brand new Linux installation, a problem the first time the new system. The error was not initially apparent, after a long debugging has shown the error as follows:

During the transition from initrd to the kernel and mounting the file system reported Grub error:

ALERT! /dev/sda2 does not exist. Dropping to a shell!

Then I was greeted by a BusyBox shell of which I unfortunately did not continue.

Problem was simply the loading of the SAS Controller Module (mptsas) takes the system far too long to find the plates and aborts with a timeout.

The error can be explained by the parameter

rootdelay=45

fix in the kernel command line.

See also here at launchpad described.

26 Jan/09 1

Switching to lighttpd

Once I decided recently to switch to this web server from Apache to Lighttpd here is a graph of the load NagiosGrapher of the time suggested by the transition fairly accurate:

Load Graph

As you can see has changed from 19.01. to 20.01. the load of the server changed slightly downwards! :)

All my sites now run by Lighttpd, I'm really excited about it.

8 Dez/08 3

Comparison of popular Linux file systems

Often it is during the installation of a server before choosing which file system should be taken.

Here is a comparison of different filesystems (xfs jfx, reiserfs and ext2 / 3)

Tags: , 3 comments
17 Nov/08 0

SLES10 Mirror

Now that I have increasingly been looking for a SLES10 Mirror on the net here's a reminder.

In: http://demeter.uni-regensburg.de/ all packages are found.

Many thanks to the University of Regensburg for this.

Tags: , , no comments
24 Okt/08 3

Apache2 mpm-worker and fcgid

After Apache has felt the occasional times used on this site breaks thinking I've decided to replace the mpm-prefork mpm-worker with the version that is also called Now PHP through FastCGI.

Below is a small configuration instructions.

  • Installing the required packages:

  aptitude install libapache2-mod-fcgid apache2-mpm-worker php5-cgi 

  • Configuration of the Apache

  a2dismod php5
 a2enmod actions
 a2enmod fcgid 

  • Customizing the Apache Configuration

/ Etc/apache2/mods-enabled/fcgid.conf

 AddHandler fcgid-script. Fcgi
 Socketpath / var/lib/apache2/fcgid/sock
 IPCConnectTimeout 60 

/ Etc/apache2/conf.d/php5-fcgid.conf

 # Path to php.ini - defaults to / etc / phpX / cgi
 DefaultInitEnv PHPRC = / etc/php5/cgi

 # Number of PHP childs that will be launched.  Leave undefined to let PHP decide.
 DefaultInitEnv PHP_FCGI_CHILDREN # 3

 # Maximum requests before a process is stopped and a new one is launched
 DefaultInitEnv PHP_FCGI_MAX_REQUESTS 2500

 # Define a new handler "php-fcgi" for ". Php" files, plus the action that must follow
 AddHandler php-fcgi. Php
 Action php-fcgi / fcgi-bin/php-fcgi-wrapper

 # Define the MIME type for. "Php" files
 AddType application / x-httpd-php. Php

 # Define alias "/ fcgi-bin /".  The action above is using this value, Which that means
 # You could run another "php5-cgi" command by just changing this alias
 Alias ​​/ fcgi-bin / / var/www/fcgi-bin.d/php5-default /

 # Turn on the fcgid-script handler for all files within the alias "/ fcgi-bin /"

 SetHandler fcgid-script
 Options + ExecCGI 

  • Creating the wrapper under

/ Var/www/fcgi-bin.d/php5-default/php-fcgi-wrapper

  # / Bin / sh
 # Wrapper for PHP-fcgi
 # This wrapper can be used to define settings before launching the PHP-fcgi binary.

 # Define the path to php.ini.  This defaults to / etc / phpX / cgi.
 # Export PHPRC = / var/www/fcgi-bin.d/php5-web01/phprc
 export PHPRC = / etc/php5/cgi

 # Define the number of PHP childs that will be launched.  Leave undefined to let PHP decide.
 export PHP_FCGI_CHILDREN = 5

 # Maximum requests before a process is stopped and a new one is launched
 export PHP_FCGI_MAX_REQUESTS = 5000

 # Launch the PHP CGI binary
 # This can be any other version of PHP is compiled with FCGI Which support.
 exec / usr/bin/php5-cgi 

  • The new wrapper to make it executable

  chmod + x / var/www/fcgi-bin.d/php5-default/php-fcgi-wrapper 

  • Finally, Apache must be restarted again

  / Etc/init.d/apache2 restart 

20 Sep/08 1

Samba performance optimizations

Once again I am currently looking for various "verschnellerungen" for my home network now Samba was my turn to start had a maximum transmission rate 6Mbit whether over Powerline or WiFi.

Is used in my standart Debian Etch package, the following changes have taken care in combination for an improvement of about 14 Mbps:

write cache size = 262144
max xmit = 131072
use sendfile = yes
strict locking = no
socket options = TCP_NODELAY SO_RCVBUF = 65536 SO_SNDBUF IPTOS_LOWDELAY = 65536

The biggest improvement has been achieved but the SO_RCVBUF and SO_SNDBUF increase by variables that previously was deposited here each 8192nd

Meanwhile, I'm just under 20Mbit but surely there is something else.