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! :)

7 Sep/10 0

Apple Mail CPU utilization at 25%

Once again I had a problem with Apple Mail and a continuous CPU load of ~ 25%, all here for a solution with the same error.

Apparently something goes wrong with the address book synchronization and this causes the load to find the problem solution: http://discussions.info.apple.com/message.jspa?messageID=11471415

In summary helps the command:

  # Rm ~ / Library / Application \ Support / AddressBook / Sources * / 

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 a 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
13 Jan/10 2

Google Apps

Goolge apps logo After a long time I have my own mail server behind the decision to dispose of DSL line.

The new platform for me is Google apps is a free service available to Google. The specialty here is the use of own domain, in my case "streb.name"

Google offers apps like a "normal" GMail account the following features:

  • Gmail with your own domain and an unbeatable SPAM filter
  • Google Sites
  • Google Docs
  • Google Calendar
  • Google Contacts
  • final and Google Talk (a Jabber account with your own domain)

From the available apps I use currently "only" Gmail and Google Talk with MSN transport to find a list of "open" Jabber servers with transportation is available at: http://www.jabberes.org/servers/

The conversion itself is not much need an example of a zone file for the use of Google apps will be here . Only with Google Talk and Jabber services to other Jabber servers, for example, ICQ or AIM transport, there were some problems but they are resolved in the DNS by the complete lack of SRV records were with me.

28 Dez/09 0

Merge file on a Mac

I recently had the need to merge the two files problem, ie the files have the same origin but both are edited in parallel.

To help them reunite opendiff on Mac, is the tool included in XCode .


To select the desired content of the new file, simply select the right under Actions in the desired merge mechanism.

18 Dez/09 3

Time Machine and iSCSI

Having made my Time Machine backup to an SMB share in time due to problems with the image problems I've decided to seek a new way. Currently used for storage iSCSI on a Linux server. Does this only the iSCSI target on Linux (Ubuntu in this case) and an iSCSI initiator for the Mac is because in both Leopard and Snow Leopard will not support iSCSI natively.

The installation of the target is under Debian by:

  uname -r ` iscsitarget iscsitarget aptitude install-modules-`uname-r` 

This is followed by the configuration of the target in /etc/ietd.conf

  Target iqn.2009-12 name.streb. Storage.timemachine
     = / dev / vg_data / lv_timemachine, Type =blockio Lun 0 Path = / dev / vg_data / lv_timemachine, Type = blockio
     Also known as Time Machine 

The configuration change is initiated by the restart of the target daemon: /etc/init.d/iscsitarget restart .

Before that, however, must be /etc/default/iscsitarget to be edited to allow the starting of the daemons.

  ISCSITARGET_ENABLE = true 

To make iSCSI can be used on the Mac "globalSAN iSCSI" are used to find the software here: http://www.studionetworksolutions.com/support/faq.php?pi=11&fi=51 .
After successful installation, the volume will be involved.
To set the settings brings a globalSAN SystemPref with which the "portal" to the iSCSI target host is set.

globalSAN iSCSI Portal

globalSAN iSCSI portal

After that, the "target" the available file systems visible.

globalSAN iSCSI Target

globalSAN iSCSI Target

After that time machine as you normally set to the new volume, and there you go.

Filed under: apple , it 3 Comments
14 Dez/09 4

OpenNMS Prowl alerts

Having an iPhone user and Prowl had installed was now to my OpenNMS with Prowl for alerting couple.
Prowl because a well-described API and also provides ready-made scripts for this in various languages ​​(Perl, Python, ...) makes available, I decided for this variant.
I have used this version of Perl, is prowl.pl downloaded here .

However, there was the parameter passing (API key, application, etc.) from OpenNMS to prowl.pl some difficulties. Solution of the problem is a small wrapper that is called by OpenNMS, and in the background according to parameterized prowl.pl calls.

prowl_wrapper.pl

  # / Usr / bin / perl-w

 = "/usr/local/bin/prowl.pl" ; my $ prowl = "/ usr / local / bin / prowl.pl";
 = shift ; my $ apikey = shift;
 = "OpenNMS" ; my $ application = "OpenNMS";
 = 1 ; my $ priority = 1;
 = "Alert" ; my $ event = "alert";
 = "" ; my $ msg = "";

 @ ARGV ) { foreach (@ ARGV) {
         $_ . " " ; $ Msg = $ _ ""..;
 }

 = $prowl . " -apikey " . $apikey . my $ cmd = $ prowl. "apikey". $ apikey.
 $application . " \" -priority=" . "Application = \" ". $ Application." \ "Priority =".
 " -event= \" " . $event . " \" -notification= \" " . $msg . " \" " ; ... $ Priority "event = \" "$ event" \ "-notification = \" \ "" "$ msg..";

 = qx ( $cmd ) ; my $ return = qx ($ cmd);
 ; print $ return; 

Important here, the respective Prowl API key for the wrapper is properly adjusted, for this I used the pager email address in order to OpenNMS for each contact to be able to specify another.

Enclosed you will find the necessary configs for OpenNMS:

notificationCommands.xml

  > <command binary "true" =>
         <name> notifyProwl </ name>
         <Execute> / usr / local / bin / prowl_wrapper.pl </ execute>
         <comment> send notifications Prowl </ comment>
         > <Argument "false" streamed =>
             <switch> pemail </ switch>
         </ Argument>
         > <Argument "false" streamed =>
             <switch> subject </ switch>
         </ Argument>
     </ Command> 

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.