<?xml version="1.0" encoding="iso-8859-1"?>
<?xml-stylesheet type="text/css" href="http://spiegl.de/blog/nano/"?>
<rss version="2.0" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:admin="http://webns.net/mvcb/" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Filed under: Linux | Andys Blog</title>

    <atom:link href="http://spiegl.de/blog/nano/archives/linux/index-rss.xml" rel="self" type="application/rss+xml" />

    <link>http://spiegl.de/blog/nano</link>

    <description>ab und zu f&#228;llt sogar mir was Vern&#252;nftiges ein...</description>

    <dc:language>en-us</dc:language>

    <dc:creator>Andy Spiegl</dc:creator>

    <dc:date>2010-05-26T15:49:02+02:00</dc:date>

    <admin:generatorAgent rdf:resource="http://nanoblogger.sourceforge.net" />

    <item>
      <link>http://spiegl.de/blog/nano/archives/2010/05/26/automatic_backup_of_google_contacts/</link>

      <guid isPermaLink="true">http://spiegl.de/blog/nano/archives/2010/05/26/automatic_backup_of_google_contacts/</guid>

      <title>automatic backup of google contacts</title>

      <dc:date>2010-05-26T15:34:17+02:00</dc:date>

      <dc:creator>Andy Spiegl</dc:creator>

      <dc:subject>Linux</dc:subject>

      <description>
<![CDATA[After reading <a href="http://linux-aha.de/wordpress/?p=977">this</a> article about backing up the data
of google calendars I realized that it might be worthwhile publishing
my solution of automatic backups of google contacts.  So here goes:
<br /><br />
<pre>
#!/usr/bin/perl
#
# googlecontacs.get_vcf  --  get dump of Google Contacts (as VCARDs)
#
use strict;
use warnings;
 
use WWW::Mechanize;
 
my $USER='XXXXXXX@googlemail.com';
my $PASS='XXXXXXX';
my $OUTPUTFILE=$ENV{HOME} ."/tmp/google-contacts.backup";
 
my $mech = WWW::Mechanize->new();
 
my $start = qq|https://www.google.com/accounts/ServiceLoginBoxAuth|;
my $export_cmd = qq|https://mail.google.com/mail/contacts/data/export?groupToExport=%5EMine&exportType=ALL&out=VCARD|;
 
# login (to get cookie)
$mech->get($start);
$mech->field('Email', $USER);
$mech->field('Passwd', $PASS);
$mech->submit();
 
# get backup of all contacts as VCARDs
$mech->get( $export_cmd, ':content_file' => $OUTPUTFILE );
 
if ( not $mech->success() )
{
  die "ERROR: Download of google contacts did not work: $!";
}
</pre>]]>
      </description>
    </item>

    <item>
      <link>http://spiegl.de/blog/nano/archives/2009/05/06/shiftclick_im_firefox/</link>

      <guid isPermaLink="true">http://spiegl.de/blog/nano/archives/2009/05/06/shiftclick_im_firefox/</guid>

      <title>Shift+Click im Firefox</title>

      <dc:date>2009-05-06T14:38:56+02:00</dc:date>

      <dc:creator>Andy Spiegl</dc:creator>

      <dc:subject>Linux</dc:subject>

      <description>
<![CDATA[Jippieh!   <img src="http://spiegl.de/blog/nano/moods/smilies/smiley.gif" alt=":-)" />
<br /><br />
<a href="http://www.mozilla.com/">Mozilla Firefox</a> ist ja wirklich
genial, aber seit Anfang an vermisse ich Netscapes praktischen und
Zeit sparenden Shortcut "Shift+Click", um die Datei hinter einem Link
direkt abzuspeichern.  Bilder, Videos, PDFs usw. sofort herunterladen,
anstatt sie erst zu &ouml;ffnen oder umst&auml;ndlich &uuml;ber das Kontextmen&uuml; "Ziel
speichern unter..." ausw&auml;hlen zu m&uuml;ssen.
<br /><br />
Keine der unz&auml;hligen, n&uuml;tzlichen <a href="https://addons.mozilla.org/firefox/">Erweiterungen</a>
bietet das an.  Auch lange Recherchen f&uuml;hrten zu nichts.  Bis ich
diese Woche nochmal einen genaueren Blick auf
<a href="http://mozilla.dorando.at/keyconfig.xpi">keyconfig</a>
geworfen hab.  Damit geht's zwar auch nicht, aber eine Frage im dazugeh&ouml;rigen
<a href="http://forums.mozillazine.org/viewtopic.php?f=48&t=72994">mozillazine-Forum</a>
an den Autor "dorando" hat schnell zu einer
<a href="http://forums.mozillazine.org/viewtopic.php?f=48&t=72994&p=6420375#p6420375">genialen L&ouml;sung</a>
gef&uuml;hrt.  Der einfacheren Benutzbarkeit halber hab ich daraus dann
mein erstes eigenes Firefox-AddOn gestrickt: *stolz*
<br /><br />
<center>
-->  <a href="http://software.spiegl.de/shiftclick.xpi">ShiftClick</a>  <--
</center>
<br /><br />
<strong>Anleitung</strong>:<br>
&nbsp;&nbsp;&nbsp;AddOn installieren -> FF neu starten -> Shift+Click benutzen -> Freudentaumel
<br /><br />
Many, many thankful greetings go to <a href="http://dorando.at/">dorando</a>!]]>
      </description>
    </item>

    <item>
      <link>http://spiegl.de/blog/nano/archives/2008/08/01/new_licq_package_for_hardy/</link>

      <guid isPermaLink="true">http://spiegl.de/blog/nano/archives/2008/08/01/new_licq_package_for_hardy/</guid>

      <title>new licq package for Hardy</title>

      <dc:date>2008-08-01T14:22:02+02:00</dc:date>

      <dc:creator>Andy Spiegl</dc:creator>

      <dc:subject>Linux</dc:subject>

      <description>
<![CDATA[After upgrading my Ubuntu to Hardy Heron I found out that the logonfix
patch is still not included. *sigh*
<br /><br />
So I needed to build a new package again myself.  Here it is:
 <a href="http://software.spiegl.de/licq_1.3.5-3_i386.deb">licq_1.3.5-3_i386.deb</a>
<br /><br />
BTW, it worked just like for gutsy. (see below)]]>
      </description>
    </item>

    <item>
      <link>http://spiegl.de/blog/nano/archives/2008/07/22/licq_package_for_ubuntu_with_logonfix_patch/</link>

      <guid isPermaLink="true">http://spiegl.de/blog/nano/archives/2008/07/22/licq_package_for_ubuntu_with_logonfix_patch/</guid>

      <title>licq package for Ubuntu with logonfix patch</title>

      <dc:date>2008-07-22T21:45:33+02:00</dc:date>

      <dc:creator>Andy Spiegl</dc:creator>

      <dc:subject>Linux</dc:subject>

      <description>
<![CDATA[Unfortunately there still is no updated deb-package for licq 1.3.4 which
includes the
<a href="http://www.licq.org/attachment/wiki/news/2008-07-02-IcqLoginProblems/licq-1.3.4-logonfix.patch">logonfix patch</a>
.  So I just built one myself:
<a href="http://software.spiegl.de/licq_1.3.4-3_i386.deb">licq_1.3.4-3_i386.deb</a>
<br /><br />
Instructions:
<ul>
 <li> apt-get source licq</li>
 <li> cd licq-1.3.4</li>
 <li> edit src/icqpacket.cpp     [see link to the patch above]</li>
 <li> dpkg-buildpackage -uc -rfakeroot</li>
 <li> sudo dpkg -i ../licq_1.3.4-3_i386.deb</li>
</ul>
<br /><br />
Enjoy!]]>
      </description>
    </item>

    <item>
      <link>http://spiegl.de/blog/nano/archives/2007/02/02/linux-passwort_vergessen/</link>

      <guid isPermaLink="true">http://spiegl.de/blog/nano/archives/2007/02/02/linux-passwort_vergessen/</guid>

      <title>Linux-Passwort vergessen?</title>

      <dc:date>2007-02-02T22:47:06+02:00</dc:date>

      <dc:creator>Andy Spiegl</dc:creator>

      <dc:subject>Linux</dc:subject>

      <description>
<![CDATA[Gerade hab ich einem Freund erklären müssen, wie er in sein frisch
installiertes Ubuntu kommt, obwohl er vergessen hat, welchen Usernamen und
welches Passwort er während der Installationsprozedur eingegeben hat.  Das
könnte vielleicht auch anderen von Nutzen sein, dachte ich mir und daher
schreib ich's mal hier auf:
<br /><br />
Hallo Stefan,
<br /><br />
Mist, wenn du das Passwort nicht mehr weißt, musst du tricksen.
Boote nochmal von der Installations-CD oder irgendeiner anderen
Linux-Boot-CD.  Sobald du mit ALT-F2 auf eine Console wechseln kannst,
mountest du dann deine Linux-Partition.  Nachdem du ja nur 1 Partition auf
deiner SCSI-Platte angelegt hast, ist es wahrscheinlich sda1,
also so:
 mount /dev/sda1 /mnt
<br /><br />
Wenn das nicht klappt, probier
 mount /dev/sda2 /mnt
 mount /dev/sda3 /mnt
 mount /dev/sda4 /mnt
 mount /dev/sda5 /mnt
bis es klappt.
<br /><br />
<small>
Das gleiche gilt für SATA-Platten.  Wer auf eine IDE-Platte installiert
hat, muss es mit /dev/hda1, /dev/hda2, /dev/hda3, /dev/hda4, ... probieren
</small>
<br /><br />
Danach gibst du ein:
 cd /mnt/etc
 vi shadow
<br /><br />
Kennst du den Editor "vi"?  Wahrscheinlich nicht.  Er ist sehr einfach,
aber kann alles was man braucht, wenn man weiß, wie man ihn bedienen
muss.  <img src="http://spiegl.de/blog/nano/moods/smilies/smiley.gif" alt=":-)" />
<br /><br />
In dieser Datei "shadow" solltest du den Usernamen finden, den du bei der
Installation angegeben hast, z.B. so:
<br /><br />
stefan:$1$pM8HYEMB$Cx0yiRM4pj2Ty4lFBWuy4.:12038:0:99999:7:::
<br /><br />
Alles was zwischen dem 1. und 2. Doppelpunkt steht ist dein verschlüsseltes
Passwort.  Lösch es (mit der "x" oder Entf-Taste) raus, dann drück "i" wie
"insert" und schreib stattdessen rein:
 $1$pM8HYEMB$Cx0yiRM4pj2Ty4lFBWuy4.
<br /><br />
Dann drück die ESC-Taste und zweimal ein großes Z, also ZZ.
So, jetzt hast du für diesen User das Passwort "abc" eingestellt.
Mach evtl. auch noch das gleiche für den User "root".
<br /><br />
Dann geh mit
 cd /
wieder aus dem Verzeichnis raus und unmounte die Partition mittels
 umount /mnt
<br /><br />
Dann noch ein beherzter "reboot", CD aus dem Laufwerk raus und jetzt kannst
du dich mit dem Passwort "abc" einloggen.  Sobald du drin bist, ändere es
wieder auf was Sinnvolleres!  Das machst du, indem du in einer Text-Konsole
oder X-Terminal "passwd" eingibst und dann den Anweisungen folgst.
<br /><br />
Viel Erfolg!
 Andy.
<br /><br />
PS: Ich hab das gerade nur so aus dem Gedächtnis aufgeschrieben und hoffe, dass
ich nichts vergessen habe.  Also keine Garantie.  <img src="http://spiegl.de/blog/nano/moods/smilies/smiley.gif" alt=":-)" />]]>
      </description>
    </item>

    <item>
      <link>http://spiegl.de/blog/nano/archives/2006/09/21/copy_files_from_acronis_securezone/</link>

      <guid isPermaLink="true">http://spiegl.de/blog/nano/archives/2006/09/21/copy_files_from_acronis_securezone/</guid>

      <title>copy files from Acronis SecureZone</title>

      <dc:date>2006-09-21T15:52:37+02:00</dc:date>

      <dc:creator>Andy Spiegl</dc:creator>

      <dc:subject>Linux</dc:subject>

      <description>
<![CDATA[Did you ever try to access the backup files in the "SecureZone" of <a
href="http://www.acronis.de/products/trueimage/">Acronis Trueimage</a>,
e.g. to save them to a backup harddrive?  Windows software can't because
the "SecureZone" is a hidden partition.  Maybe there is a way to unhide
this partition with Windows tools but I haven't found any.
<br /><br />
<b>Here's how it works pretty easily:</b>
<br /><br />
Boot a <a href="http://www.knopper.net/knoppix/">KNOPPIX</a> from CD and
you can access the hidden partition normally just like any other (FAT)
partition.
<br /><br />
If you've got a DVD burner in your computer you can use whatever KNOPPIX
tool to burn the files to DVD.  Done!
<br /><br />
<b>But how do you get them to a different drive, e.g. an USB backup drive?</b>
<br /><br />
Unfortunately KNOPPIX cannot write to NTFS partitions.  (Microsoft doesn't
provide enough information to be able to write driver for Linux).  So, I
connected the USB backup drive to another computer in the local network and
created a shared directory on it.  KNOPPIX can see and write to this
network directory.  If you don't have a DHCP server in your local network
you probably have to set up the network options first.  Use the appropriate
item in the KNOPPIX menu or type "netcardconfig".
<br /><br />
So all you have to do now is drag the Acronis backup files with the mouse
from the SecureZone partition to the shared directory of the other
computer.  
<br /><br />
Took me a while to find that out (after trying various tools without
success).  So I thought I'll share this mini-HowTo with you.  <img src="http://spiegl.de/blog/nano/moods/smilies/smiley.gif" alt=":-)" />
<br /><br />
Have fun!
 Andy.]]>
      </description>
    </item>

    <item>
      <link>http://spiegl.de/blog/nano/archives/2006/07/06/paypal_expresscheckout/</link>

      <guid isPermaLink="true">http://spiegl.de/blog/nano/archives/2006/07/06/paypal_expresscheckout/</guid>

      <title>PayPal ExpressCheckout</title>

      <dc:date>2006-07-06T12:46:31+02:00</dc:date>

      <dc:creator>Andy Spiegl</dc:creator>

      <dc:subject>Linux</dc:subject>

      <description>
<![CDATA[PayPal hat u.a. ein SOAP-API für den "ExpressCheckout".
Scott Wiersdorf (scott@perlcode.org) hat ein wunderbares Perl-Modul
Business::PayPal::API::ExpressCheckout dazu geschrieben.
<br /><br />
Die letzten Tage habe ich damit verbracht ein (mehr oder weniger)
komfortables Perl-Script
<a href="http://spiegl.de/andy/shareware/paypal-checkout-example">paypal-checkout-example</a>
zur Benutzung dieses Moduls zu schreiben.  Es ist sicherlich nicht perfekt,
aber vielleicht für den ein oder anderen ein guter Startpunkt, so dass er
sich die Zeit spart, die ich gebraucht habe.  Ich bin ja selber immer froh,
wenn ich schon (fast) fertige Lösungen von anderen Usern finde.  <img src="http://spiegl.de/blog/nano/moods/smilies/smiley.gif" alt=":-)" />
<br /><br />
Hier ist es - zur freien Verfügung: <a href="http://spiegl.de/andy/shareware/paypal-checkout-example">paypal-checkout-example</a>
<br /><br />
Happy Hacking!]]>
      </description>
    </item>

    <item>
      <link>http://spiegl.de/blog/nano/archives/2006/06/08/reinstall_grub_using_a_live_cd/</link>

      <guid isPermaLink="true">http://spiegl.de/blog/nano/archives/2006/06/08/reinstall_grub_using_a_live_cd/</guid>

      <title>Reinstall GRUB using a Live CD</title>

      <dc:date>2006-06-08T13:48:15+02:00</dc:date>

      <dc:creator>Andy Spiegl</dc:creator>

      <dc:subject>Linux</dc:subject>

      <description>
<![CDATA[How to reinstall the Grub using a (any) Live CD:
<br /><br />
 sudo grub
<br /><br />
A grub> prompt will appear 
<br /><br />
 find /boot/grub/stage1
<br /><br />
A list of all Linux grubs that were found will be displayed. Use the one
that matches the partition of the grub that is being fixed.
Examples: (hd0), (hd0,2)
<br /><br />
Use whatever the computer spits out in the next commands. If it was (hd0,2)
then the commands would be:
<br /><br />
 root (hd0,2) 
 setup (hd0,2)
<br /><br />
A bunch of lines appear with "Checking..." and "Running..."
The 2nd last line should read "succeeded" and the last line should read "Done." 
<br /><br />
 quit
<br /><br />
Restart the system and remove the bootable CD. ]]>
      </description>
    </item>
  </channel>
</rss>

