Blog of Karl Voit

This blog is automatically generated from my txt-file (emacs and outline-mode) using a Ruby-script. If you're interested in this kind of blogging, send me an email (address at the bottom). The language used here is mostly german. Sorry for all foreign visitors! For the longest time, this blog was only for personal (german) use.

Because this file is generated out of an ordinary ASCII text file, it is possible, that the result is not W3C-compliant as stated in the footer. I'll do my very best to prevent such a situation and improve the script from time to time.

RSS icon You can now subscribe to my RSS-feed which contains all the topics of this page

Preferred Tools (current snapshot)

not solved yet
I used to use Linux on my desktop since august 2005 and therefore,
some Linux-GUI applications may be out of date. Most of the
Linux-console tools, I am using on my Linux server and therefore they
should be OK.

Since august 2005, I was using OS X Tiger on my Mac Mini.

In my job, I have to use Windows XP and the tools below are sometimes
not my personal favorite but are chosen by my boss like MS Office and
MS Outlook.

How to interpret

More, than, one, application: I am using all of them for different
purposes like Taply for quick playing files I do not want to import
into my iTunes library.

(Applications in brackets): I hardly use this application.

(Applications in brackets with question mark?): If I had to use
something for this purpose, I'd try this one first. OR: I am not sure,
if this application is capable of doing this job.

- just a single dash: I do not have to do this on the named operating
system.

Applications+combined+with+plus: It's the combination, that does the
job.

                                      OS X (20060822)          Linux (2005)          Windows XP (20060822)
-------------------------------------------------------------------------------------------------------------
Filehandling (cp, mv, mkdir, ...)     muCommander, Finder, zsh zsh, mc               Free Commander, Total Commander
Multiple file renaming                -                        zmv, (mmv)            Free Commander, Total Commander
Terminal Emulation                    Terminal                 Konsole (KDE)         Cygwin
ASCII Editing                         vim, Emacs               vim, Emacs, joe       gvim, Emacs, Notepad
LaTeX editor                          Emacs+AUCTeX+RefTeX      Emacs+AUCTeX+RefTeX   Emacs+AUCTeX+RefTeX
Email client                          -                        mutt                  Outlook 2003
playing music                         iTunes, Taply            amaroK, (play)        iTunes
viewing images                        Xee, GraphicConverter    gqview                Irvanview
managing images (renaming, ...)       GraphicConverter     	 - (KuickShow?)        (Irvanview)
modifying images (size, color, ...)   GraphicConverter         The GIMP              Paint .NET, Paint
assembling panoramic images           Canon PhotoStitch        -                     Canon PhotoStitch
Web-browser                           FireFox                  FireFox               FireFox
watch TV                              EyeTV		             xawtv                 -
watch movie files                     VLC, (MPlayer)           Mplayer               VLC, MediaPlayer
instant messaging                     Adium X                  centericq             -
VoIP telephoning                      Skype, Gizmo+zfone       -                     Skype
Addressbook/Contacts                  Address Book             JPilot                Outlook 2003
Calender                              (iCal)                   JPilot                Outlook 2003
ToDos                                 -                        JPilot                Outlook 2003
Notes                                 -                        JPilot                Outlook 2003
PDA synchronization                   iSync                    pilotsync(sic?)       Palm HotSync
PDA desktop client                    -                        JPilot                Palm Desktop
scp client                            (Cyberduck), (Fugu)      scp, (lftp)           WinSCP
ftp client                            (Cyberduck)              ncftp, (lftp)         (FTP Commander)
ssh client                            ssh                      ssh                   putty
Egg timer                             DockTimer                -                     -
CD/DVD burning data                   Toast 6 Lite             X-CD-Roast            Nero Burning ROM
CD/DVD burning music                  iTunes                   gCombust              -
Audio-CD-ripping                      iTunes                   abcde                 iTunes
DVD-ripping                           -                        -                     -
Office                                NeoOfficeJ               OpenOffice.org        MS Office 2003, (OOo)
View/Print MS Office Files            NeoOfficeJ               OpenOffice.org        MS Office, OOo, (SoftMaker/TextMaker)
Quick Application Starter             Quicksilver              -                     ac'tivAid: AppLauncher
mp3-player sync                       SyncTunes                -                     -
Desktop Notifier                      Growl                    -                     -
RSS aggregator                        Bloglines (online)       Bloglines (online)    Bloglines (online)
Snippets injection                    TextExpander             screen-configuration  ac'tivAid: HotStrings
Bluetooth cellphone remote control    OS X, Salling Clicker    -                     Toshiba BT tools, mRouter
Lyrics downloader                     iTunes+pearlyrics        - (amaroK?)           -
Karaoke player                        -                        -                     vanBasco's Karaoke Player
Multiple desktops                     -                        KDE                   VirtuaWin
Desktop Search Engine                 -                        locate, (Beagle?)     Copernic Desktop Search
Encrypted data storage                -                        -                     TrueCrypt
File synchronisation                  - (unison)               unison                unison
Password storage                      -                        JPilot+GNU Keyring    KeePass
PDF generating                        -                        Ghostscript           PDFGenerator+Ghostscript
PDF viewer                            Acrobat Reader           gv, Acrobat Reader    Acrobat Reader
SVN client                            -                        -                     TortoiseSVN
Backup                                rsync to other computer  backup2l              Acronis True Image
Musiccover Browser                    Cover Flow               (amaroK)              -
Directorysize Viewer                  -                        xdu                   TreeSize

Please do not hesitate to give me feedback to that list!
comment this entry
go to top of page

My favorite FireFox extensions (current snapshot)

not solved yet
You can get all those extensions on the FireFox-website (if no other
source is mentioned).

del.icio.us Bookmarks

Best. Bookmark. Solution. Ever.
Please do not try the older ones like the one from del.icio.us itself.
I am very keen of this solution for synchronizing my personal bookmarks
("[x] do not share") and my shared bookmarks with all my computer accounts
and all my friends.
Usability and functionality are very good solved with this. My top favorite
FireFox extension.
Get the right version here: https://addons.mozilla.org/de/firefox/addon/3615

Adblock

Adblock removes advertisments, where they distract my attention from
the content of the pages. It uses regular expressions to match the
addresses of the ads, so it is really good in not showing things from
ad-servers. The ads are not just blanked out - Adblock removes them
also from the layout in order to spare you from white boxes.

NoScript

NoScript can deactivate scripting (Java, Flash, JavaScript, ...)
generally, showing a warning if they appear on sites and you can
either activate them for a special site temporarily or forever. Very
handy to me. Can be important for Windows-user in terms of security.

TabMixPlus

TabMixPlus gives me more control over the handling with tabs in
FireFox. Before FireFox 2.0, it was my method to get session
management. Many configuration options.
Addon: I am using TabMixPlus-Session-management also with
FireFox 2.0 because there are more options for it.

Greasemonkey

Greasemonkey is an extension to FireFox extensions - you can install
Greasemonkey-scripts in order to get more functionality.

I am using Greasemonkey currently only for one script called "Heise
Trollex v0.32" which is avaliable from
http://www.potschi.de/trollex/trollexinstall.html

It does not display entries in the heise-discussions that are rated as
bad. Those postings are troll postings and those are annoying.

Flashblock

Flashblock does a very simple but important thing to me: instead of
starting to play a Flash-animation whenever I visit such a page, it
shows a decent play-button. So distracting flash animations such as
advertisment are not played. And whenever there is an animation which
I want to see, I just have to push this play-button. I love it!

BugMeNot

BugMeNot (available only from http://roachfiend.com/) is a funny
extension that lets you log in to a lot of webpages without having an
own account.

Friendly people are doing these annoying account-creating-stuff and
sending those john-doe-account-informations to BugMeNot. After that,
other people can enter those accounts by using this FireFox extension.

Very handy for stupid webforums, where I just don't want to get myself
an account for some quick postings.

Auto Copy

Auto Copy is very simple: it just copies everything you select with
the mouse into the clipboard. Handsome on systems like Windows, where
it fixes this behaviour like I was used to in X11 (Linux).

VideoDownloader

VideoDownloader enables you to download those cool videos from sites
like YouTube. Nothing more, nothing less ;-)
20070804: zod proposed http://www.keepvid.com as a replacement and
as far as I saw, this is better than the plugin.

Stylish

Stylish is more for experts among you ;-)

With Stylish, you can overlay your own CSS-styles over the ones from
websites. For example when you read your favourite news-page which has
a dark background color and too narrow textformatting, you can
override these things with your own CSS-commands.

I am reading http://www.heise.de/newsticker and with Stylish, I can
hide the two vertical bars on the left and on the right side (with
advertisment and other things), disable some advertisment on the
bottom, choose more decent font-sizes for headlines and narrower
boundaries for the main text.

Some example-css for heise.de can be downloaded here:
http://www.Karl-Voit.at/temp/stylish-heise.css

On http://www.ORF.at I change the background-color to white, the
textwidth to a bigger size and disable some other things.

My first version for this css can be found here:
http://www.Karl-Voit.at/temp/stylish-orf.css
Note: this CSS is not optimized - so just don't be picky on the
content quality *g*

TrackMeNot

For the paranoids of us:
http://mrl.nyu.edu/~dhowe/trackmenot/
"TrackMeNot  is a lightweight browser extension that helps protect web
searchers from surveillance and data-profiling by search engines. It does so
not by means of concealment or encryption (i.e. covering one's tracks), but
instead, paradoxically, by the opposite strategy: noise and obfuscation. With
TrackMeNot, actual web searches, lost in a cloud of false leads, are
essentially hidden in plain view. User-installed TrackMeNot works with the
Firefox Browser and popular search engines (AOL, Yahoo!, Google, and MSN) and
requires no 3rd-party servers or services."

PDF Download

Instead of showing a PDF file inside Firefox, you get a dialog where you can
choose to download, view, ... the PDF-document. Very handy.

mozex

With mozex, you can edit text fields with your favourite editor - my current
one is gvim. Although emacs is god as well :-)
Additionally you can use your favourite newsreader for usenet-links, same for
email, IRC, ftp, telnet and so forth.
Install the Firefox extension mozex from
http://mozex.mozdev.org/installation.html (for Firefox 2.x use
http://mozex.mozdev.org/development.html)
Adding support for various Wikiwiki-systems is very straightforward. As an
example, here is what you have to do for TWiki and gvim for Windows:
Get yourself the TWiki Syntax files for gvim
from http://www.vim.org/scripts/script.php?script_id=1113
Copy the files ftplugin/* and syntax/* into your vim-directories, usually
C:\Dokumente und Einstellungen\USERNAME\vimfiles\... (or system-wide:
C:\Programme\Vim\...)
Add following lines in your .vimrc (System-wide: C:\Programme\Vim\_vimrc):
let g:Twiki_FoldAtHeadings = 1
let g:Twiki_SourceHTMLSyntax=1
let g:Twiki_Functions=1
let g:Twiki_Mapings=1
augroup filetypedetect
        au BufNewFile,BufRead *.wiki     setf twiki
        au BufNewFile,BufRead mozex.*.txt     setf twiki
        au BufNewFile,BufRead /tmp/mozex/mozex.textarea*.txt setf twiki
augroup END
Adapt the path /tmp/mozex/... to your needs in .vimrc and in mozex (Firefox -
Extras - Add-ons). Now you can use your context menu in a textarea mozex/Edit
Textarea to write Blackboard content.
ALERT! But be careful: gvim can destroy content like EURO-characters if gvim is
not configured properly!

Tip: create (native FireFox-) bookmarks like the example with Google:

example

Name: Google
Location: http://www.google.at/search?q=%s
Keyword: g
Description: <does not matter>

When you now create a new windows or tab, you can just enter "g querystring" to
the address field in order to start a Google-query concerning your querystring.

Cool thing ;-)

more examples

Location: http://en.wikipedia.org/wiki/%s
Keyword: we
Location: http://de.wikipedia.org/wiki/%s
Keyword: wd
Location: http://dict.leo.org/ende?lp=ende&lang=de&searchLoc=0&cmpType=relaxed&sectHdr=on&spellToler=on&search=%s&relink=on
Keyword: l
Location: http://german.imdb.com/find?s=all&q=%s
Keyword: md
Location: http://www.webs1.icomedias.com/stadtplan/index.php?suche_url=&suche_nach=strassen&karte=1&dpi=9000&groesse=5%2C4&show_type=&uebersicht.x=0&uebersicht.y=0&karte=1&groesse=5%2C4&strasse=%s&dosearch=1&suche_nach=strassen
Keyword: graz

http://www.tvinfo.de/exe.php3?quicksearch=1&volltext=%s&tpk=&showall=&genretipp=&target=list.inc
Keyword: tv
comment this entry
go to top of page

Karls OS X Manifesto: Why Apple OS X sucks ... and why it is that great

not solved yet
I am using Apple hardware since 2002 where I tested OS X Panther for a couple
of weeks (iBook G3 600). Back then, there were many issues that puzzled me.
Therefore I reinstalled the iBook with Debian PPC unstable and I used it as my
mobile solution in addition to my desktop linux on AMD K7-2 450.

In 2005 I bought a Mac Mini G4 1.42 (BT, WLAN, 1GB) with OS X Tiger and I had
different requirements. My thoughts back then: lets have a Linux server with
huge hard disk space and all those neat GNU tools I was used to use in the
console. On the desktop, I want to have a multimedia station where all those
fancy stuff like playing movies, watching TV, starting Terminal.app *g* and
Firefox works without having to spend much time on system maintenance.

Well this worked out almost perfectly.

So I have to admit, that I am using the Mac slightly different from Apple point
of view: I am not an user of all Apple software products. From the so called
iApps I am only using iTunes.

Apple Mail:

Way less features compared to mutt and Co.

Safari:

No plugin-concept like Firefox and important extensions to get basic
functionality costs money. Compare to
http://karl-voit.at/blog.shtml#id20061126--Myfavorit

iPhoto:

I still want to have my photos in the filesystem as described in
http://karl-voit.at/howtos/en/digicam_and_linux.shtml

No metadata in proprietary databases besides the files and the filesystem.

iTunes:

Well there are still data stored in iTunes-databases but they are XML-files
which means that there is a chance to get the data out of it. iTunes does the
job very well: it stores every information mp3 id3 can store right in the
mp3-files and this is important to me. Exception: with cover flow integrated
into iTunes, all covers fetched by coverflow gets into a special
CoverFlow-directory and not into the mp3 files. I guess this is because of
legal issues or because of saving space (10 mp3 songs per album means 10 times
the cover on the harddisk).

iTunes does also a great Job on storing the files in the filesystem. Once you
get used to "Artist > Album > Song" it is quite handy and renaming e.g. the
titles results in renaming the files. There are many great plugins for iTunes
on http://dougscripts.com/itunes/ which are very handy. Besides that I still
use tools like lltag on linux in order to get clean tags before importing into
iTunes.

The interface of iTunes with the smart lists and so on are great! I can also
sync my mp3-player (iRiver iFP-799) using SyncTunes.

It took some time that I loved iTunes - I have to admit. But it seems to be the
perfect solution for me in terms of trade-off between my philosophy and
convenient usage.

After a time, I found many applications that helped me doint the things I want
to do on OS X. You can take a view on it on
http://karl-voit.at/blog.shtml#id20060821--Preferred

There are many things that are not solved the way I would like to see it:

(no special order here)

I hate the finder! I really do. This is the worst implementation of a file
management software ever used so far. Even the Windows Explorer is more usable
in my mind. I do not like the philospophy of Apple-o (open) instead of Enter. I
am used to zsh, (seldom) midnight commander, Total Commander (Windows), or
FreeCommander (Windows) and they are MUCH better. On OS X I tested some of the
alternative solutions like X-Folders, PathFinder and so on but they are all
crap. At this moment, I am using muCommander which is slow but usable. It is
not as good as lets say FreeCommander but it is the best of the worst
applications ;-) If you have a hint here, do not hesitate and write me an
email.

My keyboard is Happy Hacking Keyboard
http://pfuca-store.stores.yahoo.net/haphackeylit1.html : PgUp, PgDn,
POS1/Home, End are not always doing what I intend to do. But this is an Apple
philosophy issue again I guess.

Terminal.app is broken. Colors are different here, some text is blinking only
here, the charset is not correct many times, no copy-on-mark or
paste-with-mouse, double-click-selecting for words has funny ideas about
borders, ... I also tried iTerm but this sucks too. Other issues are lacking
here but same poor "quality".

EyeTV: because of my desktop being also my TV set, I am depending on solutions
provided by EyeTV. I had the version 1 and I also bought the version 2 - bouth
crap. I know that many people do not have problems with this software but I do
have. Lots. I can forget the scheduler whenever I have to record an important
movie. It is not 100% trustworthy: mostly it records (since v2 and a certain OS
X update) the things but there are too many cases where there were only a
couple of seconds recorded, the computer did not wake up and so nothing was
recorded, it recorded over the programmed end time until the disk was full, it
recorded on the wrong day but scheduling was correct. Sorry but EyeTV is really
one of the worst piece of software I ever had to use. Not because of the
features - it would be a great solution IF it would work like expected. And
yes, I also changed the external TV grabber hardware too - no improvement on
stability of EyeTV.

The SMB/Cifs integration is not working very good: I am using a linux server as
a file server where all my data is located on. Therefore I am using SMB to
connect my OS X to that server. Every time I put my Apple to sleep mode, I have
to manually unmount the SMB-share. When I forget to do so, the next time I want
to connect to my files I have to wait until an error message comes up. OS X had
lost the connection. Then when I reconnect after that, the mountpoint got this
"-1" added and all my links are broken (muCommander, symlinks, ...). It's a
shame. And no, I do not want to switch to AFS because I am using
symlinks/hardlinks on my filer and I want to stick with that.

Generally, the GUI/Application-speed on my Mini is poor compared to Windows or
Linux on comparable or even much slower hardware. When I switch applications
using Alt-TAB, when I try to use Expose, then I use some keyboard shortcuts
consecutively, the feeling is clumsy and sometime it ends up in a wrong
behaviour because of that. Probably my Mini is to slow or just my graphics
adapter but I bought the system as it is and I even have much more RAM than
suggested.

Whenever a Java applications needs to be interpreted, the Java VM performance
shows its worst: TV-Browser and NeoOffice and stuff are awful slow on the G4 CPU!

Spotlight could be a very handy tool for me but on a SMB-share it just does not
work (yet?).

Things like Virtual desktops are missing but thanks to my 24" LCD I did not
install a third-party solution for that yet. Expose is really small and not
good to be controlled using the keyboard. YMMV.

No central packet manager like apt/dpkg in Debian: only Apple Applications get
this feature but for all the rest I have to choose from i-Installer, fink,
darwinports, or even worse: no management system at all. There are some
workarounds like the application update widget but the are only fighting
symptoms, not the problem.

iCal: well ... just ... not ... enough ;-) No categories like my Palm PDA
offers, not handy with that many entries I use to have (tasks as well as
appointments), please try again.


There are many things that are solved very cool:

(no special order here)

I love Growl (notifications). I am using it also from my linux server to send
notification messages using the perl-script that connects to growl on my Mini.
Very handy. Every operating system should develop such a system wide
notificationservice in order to modify its behaviour generally and not on
per-software-product basis.

Adium X (instant messenger) is a perfect example of how integration should be
accomplished: when I enter an ICQ-number in Address Book, the contact gets
added to my Adium X. Whenever I drag a photo on this contact in Address Book,
Adium X changes the corresponding icon too (if you wish). It is using Growl and
you can configure almost anything you want.

Address Book is great for my purposes. Although I had to run some tests until I
found out which fields were synced with my Palm PDA and my cellphone. After
that, I sticked to those fields and never used the other ones. So I sync my
contacts with Outlook (at work), Palm PDA, OS X Address Book, and my cellphone.
It basically works and thats great ;-)

iSync+Palm-PDA: as mentioned above, I am syncing my PDA with Address Book (only, no iCal).

iSync+SE-Cellphone: works. Unfortunately, my SE cellphone does not sync the
pictures of the contacts but the basic informations gets synced.

Textexpander is a very great tool. I am using GNU screen keybindings and
HotStrings (Windows, ac'tivAid) too and such an application has to be installed
on a powerusers machine.

Salling Clicker: with this application on OS X and my Palm PDA or even my
cellphone, I can remotely control my Mac. i use it especially for iTunes and
seldom for presenting slideshows or control video playback. I had to pay for
that but I love my iTunes remote control that - thanks Bluetooth - even does
not have to have a direct visible contact with an infra-red sensor or such ;-)

pearlyrics (Dashboard widget): I love this thing in order to get lyrics of
currently played songs. It even can write them into the ID3-tags of the
mp3-files. great!

Attachment handling: see
http://karl-voit.at/blog.shtml#id20070807-20070807-Attachmen With this trick, I
can easily manage my emails with mutt on a remote server but I also can open
attachments locally on my Mac. It improved my personal OS X experience a lot!

URL handling: see http://karl-voit.at/blog.shtml#id20070806-20070806-Enablerem
Like in the issue above, I manage to open URLs shown in a remote ssh session
window right in my local Firefox browser. I LOVE it!

Bluetooth: just simply works as expected! My crucial experience was, when I
thought of my newly bought bluetooth headset (for my cellphone) during a
Skype-session. *During* the very same skype session I paired the headset with
my Mac and took over the sound to the headset without having to interrupt the
call. Every bluetooth device is handled properly. When I paired my cellphone I
noticed a BT icon in Addressbook and I found out that I can send SMS right out
of Address Book. I can dial right out from Address Book and my Mac even tells
me that I missed a call, when my BT cellphone was ringing whenever I was not
infront of them.

Network settings: changing your network quite often? Well with OS X it is very
easily to switch network configuration lets say between work, home, and a
public hotspot. Easily.

Interface style like when renaming files in some applications, the extension
does not get marked/overwritten. Very tiny aspect but great improvement. Just
like hundreds of other little things I cannot recall right now. They just do
not attract attention and that is how it should be done.


Summary:

When there is a regular user with basic requirements that can be solved by
almost out-of-the-box Apple products, then this guy might be the luckiest
IT-using guy in the current universe: everything looks great, Apple is solving
his problems and managing his software, he has nothing to worry about except
for the content he wants to be processed. Sure for certain things you still
need third-party software here and there but with a couple of things, you get
your perfect operating system with all those neat applications you need.

As an example: Photos will be synced with his digicam and iPhoto and with the
iPhoto-release from august 2007, I got very easy to share pictures and movies
on the web with friends (using .Mac). Everything is great, and if you stick to
Apple products whenever you need an mp3-player or a cellphone or stuff like
that, you don't have to learn much or worry a lot on integration.

So it works damn well good this way.

But: If you are a poweruser and you want to do things differently from Apple
way of thinking, you might notice that modifying your system can be a harder
job than with alternative systems like Linux. When you do not use e.g. Address
Book you can forget integration of *your* address book (whatever solution you
chose) into Apple-applications. The more you neglect from Apple, the more
advantages you loose with OS X. It's OK but you have to know and accept this.

So it depends on your personal requirements and your personal ability to adapt
to Apple way-of-thinking. That's it.

Am I changing back to a Linux Desktop software? Well let's have a look on
grml-PPC ;-)
comment this entry
go to top of page

Why Windows Vista sucks to me

not solved yet
Multimedia is more important than basic services like network performance:
http://www.heise.de/newsticker/meldung/95031 (sorry, only german)

Microsoft can deactivate lots of Vista computers by accident (and they do):
http://www.heise.de/newsticker/meldung/95030 (sorry, only german)

The fun thing about that is that pirate copies works all the time but only
original licenses can be shut down remotely. So for a company that has to do
business with Windows Vista PCs, it would be the best thing to buy legal Vista
licenses but install pirate copies instead in order to be able to _use_ the
systems when Microsoft fails again or crackers remotely deactivate the legal
licenses.

I wonder when it will happen, that a bad guys cracker group finds out how to
disable large amounts of Vista licenses remotely. Microsoft can and in the
past, _every_ single security mechanism was implemented very poorly by
Microsoft programmers. So to me it is just a matter of time when I will read
headlines like "Company XY shut down by crackers" or similar. On the other
side: "forced Windows free days" are possible for future family holidays or
"independence day" ;-)

Microsoft has a very strange self-assessment about their product security quality:
http://www.heise.de/newsticker/meldung/94634 (sorry, only german)

Most of the new security features were cracked in the first days of selling
Microsoft Vista. Reaction of Microsoft? Well for example they told us that
these cracked security functions were not really for the security so therefore
there is no dimished security. So the marketing department defines the security
at Microsoft.

DRM is built into the system very deeply. The user is "protected" from the
content. The user looses power over his data on his hardware. the very same
hardware is approx. 30% less faster because of multiple encryption and
decryption processes for one single high-quality content path.

And if it comes to enviromental friendly usage of power: forget those
discussions about stand-by current: Vista needs LOTS of energy just for
protecting the user from its content by DRM. Calculate it by yourself: approx.
30 % of a modern CPU with every high-quality content every time and compare it
to the stand-by current. Not fair for environment. Choose a greeer operating
system ;-)

The operating system is sold in various flavours and you have to pay _lots_ of
money for the version that brings you all important features. Windowx XP (Pro)
brings all the important features for far less money and it is much more
stable.

Microsoft support hotlines still suck.

On Windows XP, there were only "My Documents" and the start menu virtual
folders (mappings of different folders). With Vista, there are _lot_ more
virtual folders and you don't have a clue, where your data is located in the
file system on the harddisk.

And with Vista, you can easily fake file extensions that the user cannot check
as mentioned in http://www.heise.de/newsticker/meldung/96455/. Good luck while
checking your email attachments :-)

The problem with administration permission? Solved in Vista: there is more than
one administrator permission ;-) Well done Microsoft. Shifted the problem one
layer higher for future desasters.

Many things changed (of course) and so you have to learn a lot of things from
scratch. Less transferable knowledge from version to version.
comment this entry
go to top of page

Configuring my next desktop

not solved yet

Requirements

silent!
low power consumption
TV tuner for analog/cable (my old PCI Hauppauge?)
grml/GNU Linux ready
good sound quality (digital out to amplifier)
working suspend to HDD
HW: DVI, 2GB RAM, >=750GB HDD, USB, Bluetooth (USB-BT-Stick?), 
nice2have: Firewire 6-port, Boot from USB-Stick, eSATA, 


c't Selbstbau PC 25/2007 p.100ff, 106ff

HDD:

Samsung Spinpoint HD103UJ SpinPoint F1, 1TB, c't4/2008 p.107; 20080218: Geizhals: 222,85 EUR best
... seems to have troubles :-(

Alternative: Wester Digital WD10EACS-00ZJBO Caviar SE16 GreenPower; 1TB, c't4/2008 p.107 (0.5-0.8 sone!, a bit slow); 20080218: Geizhals: 200,97EUR

Alternative: Seagate Barracuda 7200.11 1000GB SATA II (ST31000340AS); 1TB, c't4/2008 p.107 (a bit loud with 1.1-1.5 sone); 20080218: Geizhals: 227EUR


intel:
CPU: Core 2 Duo E4500 (2.2GHz) (107EUR?)
Mainboard: Intel Dg33TL (124 EUR?)
Graphics: onboard
RAM: 2x1GB PC2-6400-555 (56 EUR?)
HDD: Samsung Spinpoint HD103UJ SpinPoint F1, 1GB, c't4/2008 p.107; 20080218: Geizhals: 222,85 EUR best
DVD/CD: old one
CPU-Cooler: Asus Triton 75 (23,90EUR?)
CPU-Cooler-Fan: Arctic-Cooling AF12025PWM (3,90EUR?)
Case: CoolerMaster Centurion 5 (54EUR?) OR: my old one?
Power: Seasonic S12-II 380W (59EUR) OR: my old Enermax 350W
Antivibration: my old one(s)
HDD-Fan: my old one in the anto-vibrating case
Keyboard, Mouse: my old ones
OS: Linux

-> all things to buy: 650,65 EUR
-> using old case, power: 537,65

CPU: Athlon X2 BE-2400 (2,3GHz) (79EUR?)
Mainboard: MSI K9AG Neo2-Digital (MS-7368) (59 EUR?)
Graphics: onboard (MAD 690G)
RAM: 2x1GB PC2-6400-555 (56 EUR?)
HDD: Samsung Spinpoint HD103UJ SpinPoint F1, 1GB, c't4/2008 p.107; 20080218: Geizhals: 222,85 EUR best
DVD/CD: old one
CPU-Cooler: Arctic-Cooling Freezer 64 Pro PWM (13,90EUR?)
CPU-Cooler-Fan: -
Case: Sharkoon Rebel9 Economy (38EUR?) OR: my old one?
Power: Seasonic S12-II 380W (59EUR) OR: my old Enermax 350W
Antivibration: my old one(s)
HDD-Fan: my old one in the anto-vibrating case
Keyboard, Mouse: my old ones
OS: Linux

-> all things to buy: 527,75 EUR
-> using old case, power: 430,75 EUR


2do:
intel or AMD
get current Geizhals-Prices
old case or new one?
old power adapter or new one?
comment this entry
go to top of page

Enable automatic network configuration (with Linux) with guessnet, ifplugd, and wpasupplicant

not solved yet
GNU/Linux: grml v1.0

Source: c't 1/2008 p.176

apt-get install guessnet ifplugd wpasupplicant

/etc/udev/rules.d/z25_persistent-net.rules

# This file was automatically generated by the /lib/udev/write_net_rules
# program, probably run by the persistent-net-generator.rules rules file.
#
# You can modify it, as long as you keep each rule on a single line.
# MAC addresses must be written in lowercase.
# SUBSYSTEM=="net", DRIVERS=="?*", ATTR{address}=="00:1b:77:cc:aa:bb", NAME="ipw"
SUBSYSTEM=="net", DRIVERS=="?*", ATTR{address}=="00:16:d3:cc:aa:bb", NAME="eth0"

... this enables you to rename the interfaces to more common names like
"ethernet" instead of eth0 and so forth. (*If* you want!)

/etc/default/ifplugd

INTERFACES="eth0 wlan"
HOTPLUG_INTERFACES="all"
ARGS="-q -f -u0 -d10 -w -I"
SUSPEND_ACTION="stop"

... enables the "listener" on eth0 and wlan-device to detect cable plug-in and new networks

/etc/network/interfaces

auto lo
iface lo inet loopback
mapping eth0
        script guessnet-ifupdown
        map timeout: 10
        map verbose: true
        map debug: true
        map e_vif
        map e_olg
        map e_dhcp
        map e_no_cable
        map default: e_dhcp
iface e_dhcp inet dhcp
iface e_no_cable inet manual
        test missing-cable
iface e_vif inet dhcp
        test1 peer address 10.1.1.254 mac 00:0D:BD:EB:10:BF
        test2 peer address 10.1.1.1 mac 00:0E:0C:B1:AB:43
iface e_olg inet static
        address 192.168.7.4
        netmask 255.255.255.0
        network 192.168.7.0
        broadcast 192.168.7.255
        gateway 192.168.7.3
        dns-nameservers 129.27.2.3
        test peer address 192.168.7.3 mac 00:50:DA:3E:15:3D

... this is the new interfaces-file.

Note: there is no "auto eth0" any more

Note: eth0 is only a mapping

Note: test-lines are parsed by guessnet

When I plug in at home (e_olg-configuration), ifplugd recognises the plug-in of
the cable, starts the interface in promisc mode and searches for other hosts
and finds 192.168.7.3 with the mac 00:50:DA:3E:15:3D. Therefore, the
configuration of e_olg ist used and eth0 is now a static ip and so on.

I guess, you get the feeling, how this is going to work.

Note: if you get into troubles while configuring like me, sometimes removing
and reloading of the network driver helps: rmmod e1000 && modprobe e1000

And now for WLAN networks:

/etc/wpa_supplicant/wpa_supplicant.conf

# Also see the other files in /usr/share/doc/wpasupplicant/examples/ for
#  specific configuration examples.
# path to UNIX socket control interface
ctrl_interface=/var/run/wpa_supplicant
## iface w_ebr inet dhcp
##     wireless-mode Managed
##     wireless-essid ourssid
##     wpa-ssid ourssid
##     wpa-psk abc1234....987
network={
        ssid="ourssid"
        scan_ssid=1
        key_mgmt=WPA-PSK
        psk="abc1234...987"
        id_str="w_ebr"
}
### Associate with any open access point
###  Scans/ESSID changes can be done with wpa_cli
network={
        key_mgmt=NONE
}
## ## Static WEP keys
## network={
##         ssid="example wep network"
##         key_mgmt=NONE
##         wep_key0="abcde"
##         wep_key1=0102030405
##         wep_tx_keyidx=0
## }
## ## Example of basic WPA-PSK secured AP
## network={
##     ssid="ournet"
##     psk="w243sd5f324asdf5123sadf54324"
## }

/etc/network/interfaces

... add ipw (for wlan-device) to the auto-line and:
iface ipw inet manual
        wpa-driver      wext
        wpa-roam        /etc/wpa_supplicant/wpa_supplicant.conf
iface w_ebr inet dhcp
    wireless-mode Managed
    wireless-essid ourssid
    wpa-ssid ourssid
    wpa-psk abc1234...987

make sure, that the WLAN-driver is loaded: modprobe ipwFIXXME

Sorry, I do not (yet) know, which PSK can be deleted - two times (interfaces
and wpa_supplicant.conf) seems to be too much.

after "Restart networking", there works the CLI-tool wpa_cli

FIXXME: 2do: testing and further documentation
comment this entry
go to top of page

grml and external VGA on Lenovo X61s

not solved yet

mika

Externen Monitor aktivieren mit best. Auflösung:
# xrandr --output VGA --mode 1680x1050
#
# Internen Monitor bei Bedarf anpassen:
# # xrandr --output LVDS --mode 1024x768
#
# Externer Monitor ist linker Bildschirm, interner steht rechts:
# # xrandr --output VGA --left-of LVDS
#
# Externen Monitor wieder deaktivieren (wichtig bevor suspend):
# # xrandr --output VGA --off



Sat 20:04 < jimmy> vk: Das mit acpi geht bei mir auch nicht. Mach es mit xrandr
Sat 20:04 < jimmy> vk: Workaround ohne Software: Beim Booten funktioniert Fn+F7 noch in HW
Sat 20:05 < jimmy> vk: Bei alten intel Treiber mußte man die Option Clone aktivieren
comment this entry
go to top of page

vim und spell checking

not solved yet
http://strcat.de/blog/archives/486-.vimrc-fuer-Vim-7.0.html

Need to get vim-spell.de.tar.bz2
comment this entry
go to top of page

Terratec Cinergy 800e PVR and linux

not solved yet
using grml 1.0

output of lsusb

Bus 003 Device 009: ID 0ccd:003a TerraTec Electronic GmbH
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               2.00
  bDeviceClass            0 (Defined at Interface level)
  bDeviceSubClass         0
  bDeviceProtocol         0
  bMaxPacketSize0        64
  idVendor           0x0ccd TerraTec Electronic GmbH
  idProduct          0x003a
  bcdDevice            8.00
  iManufacturer           1 Terratec
  iProduct                2 Cinergy 800e PVR
  iSerial                 0
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength           60
    bNumInterfaces          1
    bConfigurationValue     1
    iConfiguration          0
    bmAttributes         0xc0
      Self Powered
    MaxPower                0mA
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       0
      bNumEndpoints           6
      bInterfaceClass       255 Vendor Specific Class
      bInterfaceSubClass    255 Vendor Specific Subclass
      bInterfaceProtocol    255 Vendor Specific Protocol
      iInterface              0
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x81  EP 1 IN
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        bInterval               0
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x84  EP 4 IN
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        bInterval               0
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x88  EP 8 IN
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        bInterval               0
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x01  EP 1 OUT
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        bInterval               0
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x02  EP 2 OUT
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        bInterval               0
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x86  EP 6 IN
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        bInterval               0
Device Qualifier (for other device speed):
  bLength                10
  bDescriptorType         6
  bcdUSB               2.00
  bDeviceClass            0 (Defined at Interface level)
  bDeviceSubClass         0
  bDeviceProtocol         0
  bMaxPacketSize0        64
  bNumConfigurations      1
Device Status:     0x0001
  Self Powered

Found nothing on google concerning linux :-(

Seems to me that this hardware is for Mac OS X only :-(
comment this entry
go to top of page

Setup of ikiwiki as a replacement for tagebuch2blog.rb

not solved yet
URL: http://ikiwiki.info/

infos about using ikiwiki as a blog system: http://ikiwiki.info/blog/

vim syntax highlighting: http://ikiwiki.info/tips/vim_syntax_highlighting/

css-styles: http://ikiwiki.info/css_market/ e.g. http://ikiwiki.info/css_market/zack.css

page templates: http://ikiwiki.info/wikitemplates/

search engine: http://ikiwiki.info/hyperestraier/ .. I could not find a debian package :-(

integrates versioning systems like mercurial: http://blog.medallia.com/2007/02/a_guided_tour_of_mercurial.html


sidebar plugin

entries in ~/public_html/snippets/2007/08/this_or_that.mdwn



INSTALLATION (following http://ikiwiki.info/setup/)

mkdir snippets
mkdir public_html/snippets
SRCDIR=~/snippets
DESTDIR=~/public_html/snippets
dpkg -S ikiwiki.setup
mkdir ~/.ikiwiki
cp /usr/share/doc/ikiwiki/html/ikiwiki.setup ~/.ikiwiki/

cpan -i Text::Textile
ikiwiki --verbose $SRCDIR $DESTDIR --url=http://www.Karl-Voit.at/snippets/ --wikiname "Snippets of Karl Voit" --plugin textile


Umalute:
machen offenbar noch Probleme -> mika?


Syntaxentscheidung:

textile:
Überlange Zeile: auf Browserbreite angepasst
Zeilen im 60er Blocksatz: Proportionalschrift mit selben Umbruch
URL ohne Formatierung: nur Text
Fixed font ohne besondere Auszeichnung: nein
Source/fixed mit:

markdown: ... default aber
Überlange Zeile: auf Browserbreite angepasst
Zeilen im 60er Blocksatz: auf Browserbreite angepasst
URL ohne Formatierung: nur Text
Fixed font ohne besondere Auszeichnung: nein
Source/fixed mit: einrücken


wikitext: ... Plugin arbeitet noch nicht
Überlange Zeile:
Zeilen im 60er Blocksatz:
URL ohne Formatierung:
Fixed font ohne besondere Auszeichnung:
Source/fixed mit:

Fazit:
markdown textile
-------------------------------------------------------------------------------------------------------
Codeblock x -
URL ohne Formatierung - -
URLs x (x)
Zeilen im 60er Blocksatz - x
Tabellen - x
Ueberschriften x -
UL x x
OL x x
Code in Zeile x x
Überlange Zeile x x
Fixed font ohne besondere Auszeichnung: - -
emph x x
strong x x
comment this entry
go to top of page

rewrite of tagebuch2blog.rb as FIXXME

not solved yet
Cool name (still has to be defined!):

SiAsBl ... Simple ASCII Blog
SAB(L)

Features:

* writing only in vim/emacs

* sheduled conversion from ASCII to static XHTML-files

* one static HTML-file per entry

* CSS2 for defining the style

* Starting page with X most recent entries

* one index page with all titles
probably in the same format as the old URLs were
order:
- solved first ordered by finishing date
- unsolved then ordered by starting date

* Items can be marked as open or solved
disadvantage: a category does not need open problems

* categories: each category uses its own file
disadvantage: one entry in exact _one_ category
each category has its own directory where the static files are located

* RSS-feeds per category

* RSS feed for recently solved items

* each blog entry on its own page
global identifier: startdate + title -> document the fact, that those two are mandatory!

* no direct comments possible - only mailto-links with predefined subject line
Possible extension: cgi-script that reads out an HTML-form and adds the content to the static comment-page for each page, linked together with server-side-includes

* vim macros for:
- adding entries
- solving an item

* hidden entries (private flag) for entries that should not be published in HTML version




2 check:

* textile syntax highlighting in vim
http://blog.aaronbieber.com/2007/05/30/editing-textile-in-vim/
http://www.ruby-mine.de/murphy/archives/2006/3

* RedCloth output of shell screen snippets and so forth



20070811: mika proposed ikiwiki because the features are almost exactly the same

see "Setup of ikiwiki as a replacement for tagebuch2blog.rb"

textile/RedCloth/SiAsBl will be set on hold until ikiwiki was found to be not suitable for this job!
comment this entry
go to top of page

comparing FreeCommander with Total Commander

not solved yet
Because Total Commander is not free to use, I was suggested to test FreeCommander instead:
http://www.freecommander.com

Total Commander features that has to be accomplished:

[x] Directory bookmarks
[?] session managing (restore last state when (re-)started)
[x] Tabbed browsing
[x] open ZIP-files
[x] open RAR-files
[x] create ZIP-files
[-] create RAR-files
[x] compare directories
[x] external tools for viewing/editing depending on extensions
[x] external tools via sortcut
[x] context-menu like windows-default context-menu
[x] (re-)define keyboard shortcuts
[?]
[?]
[?]
[?]
[?]

--> FreeCommander is a very good (free) replacement for Total Commander

--> if you use it too, please donate an adequate sum to the author: http://www.freecommander.com/de/fc_donation_de.htm
comment this entry
go to top of page

Testing PathFinder v4.6.1 (OS X v10.4.8)

not solved yet
Better than Finder in many ways but:

* no "favourites" (independent from Finder-favourites) to change to directories
* no shortcut for "multiple-item-Apple-i(nformation)" (openes one info-window for each selected item)
* looses directories of mounted shares, if share is reopened e.g. after system suspend/resume
* no shortcut for "show package contents"
* no shortcut for "delete" (not: move to trash)
comment this entry
go to top of page

AIX 5.2: GNU screen compiling problems

not solved yet
Hi!

I want to use GNU screen on an IBM AIX 5.2 system and I could not
compile it:

uname

voitka@uxibm275:/home/voitka/downloads/screen-4.0.2>uname -a
AIX uxibm275 2 5 0040801A4C00
voitka@uxibm275:/home/voitka/downloads/screen-4.0.2>

./configure ... no problem so far

make

misc.c:648: error: too few arguments to function `setenv'

Google-URLs found matching this problem:

http://savannah.gnu.org/bugs/?14277
http://tinyurl.com/rhs6y

I changed following part in order to get over it:

misc.c - original part

#else /* USESETENV */
# if defined(linux) || defined(__convex__) || (BSD >= 199103)
)
  setenv(var, value, 1);
# else
  setenv(var, value);
# endif /* linux || convex || BSD >= 199103 */
#endif /* USESETENV */
}

First, I added the "|| defined(__aix__)" but obviously this did not
change anything. Perhaps, "aix" is not the right term here.

Then I used the dirty hack by adding ", 1" to the second
setenv-statement directly.

misc.c - altered part

#else /* USESETENV */
# if defined(linux) || defined(__convex__) || (BSD >= 199103) || defined(__aix__)
  setenv(var, value, 1);
# else
  setenv(var, value, 1);
# endif /* linux || convex || BSD >= 199103 */
#endif /* USESETENV */
}

That "solved" the error-message above.

current problem

voitka@uxibm275:/home/voitka/downloads/screen-4.0.2>make
[...]
        gcc -c -I. -I.    -g -O2 socket.c
In file included from screen.h:38,
                 from socket.c:37:
osdef.h:92: error: conflicting types for `naccept'
/usr/include/sys/socket.h:424: error: previous declaration of `naccept'
make: 1254-004 The error code from the last command is 1.
Stop.
voitka@uxibm275:/home/voitka/downloads/screen-4.0.2>

Google could not help me with the second problem above. So perhaps
someone is using GNU screen on an old AIX box and can provide a little
of help ...


PS: For those who will ask: No, I could not find any precompiled
binary package of GNU screen for AIX.
comment this entry
go to top of page

10.4: handle DVD+RWs in OS X

not solved yet
http://www.xvsxp.com/burning/

erase: Festplatten-Dienstprogramm (or Disc utility)/<choose DVD>/Löschen

write: after erasing, eject and re-enter the DVD+RW and choose
"Finder" to be able to drop files into the newunerl media.
comment this entry
go to top of page

monitoring SMART parameters

not solved yet
my system: one system-hdd PATA and 4 times Samsung 250GB SATA in a
Software-RAID5 with a LVM on top

reading SMART values: smartctl
SMART monitoring: smartd

Archiving values and creating graphs: RRDtool (http://people.ee.ethz.ch/~oetiker/webtools/rrdtool/)

Plotting tool from Martin Pirker: smartplot (Ruby)

root@ned ~ # smartctl -A /dev/sda -d ata >>sda.log
root@ned ~ # bin/smartplot.rb sda.log
lines?!?

gnuplot> plot "z.parsed" using 1:2 axes x1y1 title " 1:RawReadErrorRate" with lines,"z.parsed" using 1:3 axes x1y1 title "  3:SpinUpTime      " with lines,"z.parsed" using 1:8 axes x1y1 title "  5:ReallocatedSecCt" with lines,"z.parsed" using 1:4 axes x1y1 title "  7:SeekErrorRate   " with lines,"z.parsed" using 1:5 axes x1y1 title " 12:PowerCycleCount " with lines,"z.parsed" using 1:6 axes x1y1 title "194:Temperature     " with lines,"z.parsed" using 1:7 axes x1y1 title "199:UDMACRCError    " with lines
                                                                                   ^
         "z.gnuplot", line 18: no data point found in specified file

root@ned ~ #

Seems to need some modifications ...


SMARTD:

/etc/smartd.conf

root@ned /etc # cat smartd.conf|egrep -v "^#"|egrep -v "^$"
/dev/hda -a -o on -S on -s (S/../.././02|L/../../6/03) -m root@localhost
/dev/sda -d ata -s L/../../7/03 -m root@localhost
/dev/sdb -d ata -s L/../../7/04 -m root@localhost
/dev/sdc -d ata -s L/../../7/05 -m root@localhost
/dev/sdd -d ata -s L/../../7/06 -m root@localhost
root@ned /etc #

-> Check hda with short test every day 2 a.m. and long test every saturday 3 a.m.
-> Check sd? with long test every sunday between 3 a.m. and 6 a.m.

modified default values

root@ned /etc # cat default/smartmontools
# Defaults for smartmontools initscript (/etc/init.d/smartmontools)
# This is a POSIX shell fragment

# list of devices you want to explicitly enable S.M.A.R.T. for
# not needed if the device is monitored by smartd
#enable_smart="/dev/hda /dev/hdb"

# uncomment to start smartd on system startup
start_smartd=yes

# uncomment to pass additional options to smartd on startup
smartd_opts="--interval=1800"
root@ned /etc #

FIXXME: test, if notification works
comment this entry
go to top of page

Proposal: Emacs Snippet and Template System (ESATS)

not solved yet
PROBLEM: Emacs wants to be programmed in emacs-LISP which hardly
anybody knows how to program (including myself). But user wants to
have some kind of template mechanism to relieve their daily work.

PROPOSAL: I was thinking of a hierarchy of simple ASCII-textfiles that
include some snippets or templates for complete documents that can be
easily created and expanded by _ordinary users_. These files are
completely seperated from the LISP code behind the system.

PROPOSED NAME (you might find a more cooler one?):


ESATS (emacs snippet and template system)


DETAILS: (with examples)

Imagine the files as sketched below:

~/.emacs.d/esats/.esats
~/.emacs.d/esats/misc.txt
~/.emacs.d/esats/web.txt
~/.emacs.d/esats/latex.txt
~/.emacs.d/esats/bibtex.txt
~/.emacs.d/esats/2do-lists.txt
~/.emacs.d/esats/main-2do.txt
~/.emacs.d/esats/emails.txt
~/.emacs.d/esats/usenet.txt
~/.emacs.d/esats/[...]

The first proposal for the syntax of the configuration file of ESATS
would be:

.esats

%% Syntax:
%% /<regular expression>/ <eats-file in $EATS_DIRECTORY>
%% <file name> <eats-file in $EATS_DIRECTORY>
%% <mode name>: <eats-file in $EATS_DIRECTORY>

/*/ misc.txt

/*.(htm|html|shtml)/ web.txt

/*.(tex|latex)/ latex.txt

/*.bib/ bibtex.txt

/2do*.txt/ 2do-lists.txt

/home/vk/2do.txt main-2do.txt

post-mode: emails.txt

post-mode: usenet.txt

This might be a clever way to connect various files with the content
of the template files.

Additional, I'd suggest to expand the local variables for ESATS:

Some kind of document...
[...]
 %%% Local Variables:
 %%% esats: 2do-lists.txt
 %%% End:

I guess that means maximum flexibility to connect a document with the
templates. The template files itself can be done as shown below:

2do-lists.txt

%%% esats-begin
%%% esats-name: maggie-system-upgrade
%%% esats-replacewithcursor: HERE

[2005xxxx][][maggie][] System Upgrade

apt-get install HERE

%%% esats-end:


%%% esats-begin
%%% esats-name: maggie-entry
%%% esats-replacewithcursor: HERE

[2005HERE][][maggie][] 

%%% esats-end:


%%% esats-begin
%%% esats-name: 2do-line

----------------------------------------------------------- 

%%% esats-end:

As you can imagine, if the command "esats-replacewithcursor" is found,
the system replaces the word behind that command with the cursor in
order to allow continue typing at this location.

How about the interface in the emacs? Well I thought about a simple
command like "esats-insert" that asks for the name of the
snippet/template that is given in the configurations files.

When using the example file above, the user has to enter ...

"M-x esats-insert maggie-system-upgrade"

... in order to create a new 2do-list entry concerning a system
upgrade on the computer called "maggie".


CONCLUSIO: In my point of view as a user (not a programmer), this
system would save me a lot of work during my day. I always wanted to
add some snippets to my .emacs file. But quite frankly the need for
LISP knowledge discouraged me every time.

With the help of you, it might be possible to enable everyone to use
such a handy template system in GNU emacs.
comment this entry
go to top of page

sync Outlook 2003 and OPIE (Sharp Zaurus)

not solved yet

http://opie-bugs.oszine.de/oldwiki/index.php/OpieSyncing

Syncing Outlook and Palm Desktop via Intellisync

To sync Opie with Outlook or Palm Desktop, you need Intellisync from
sharp, which you can get here:

http://www.zaurus.com/dev/tools/downloads/sync/IS_update.zip (this
appears to be the full version, even though it says it is just an
update); old (dead) link was: http://more.sbc.co.jp/slj/download.asp

Then, on your PDA, make sure you have a /home/root/systeminfo/linkver
file. (in familiar, you probably want to link /root to /home/root, and
then create this directory and file in /root). I know if the file
contains "1.13" that Intellisync works. Other values may work, but I
haven't tried them. You have to reboot after creating the file. Also,
you will need to install the "Security" app on you PDA, and make sure
that syncing is allowed from your desktop's ip address.

A note about ip addresses: Intellisync doesnt seem to like having any
ip other than the default one if you are using a 192.168.x.x reserved
ip. You can use the 10.x.x.x reserved ip if you like, and it should
work (itll ask you to change it, but you dont have to). To fix this,
modify the file intellisyncDir\QtDBTemp\NetStat.dat in Notepad
(actually changing the ip address to what they ask for wont work). It
will give you a bunch of junk characters, but you should also be able
to find an ip address in there. Change that to the PDA's ip address,
and you should be able to sync (intellisync changes this back after
every time you are done doing something, so, if you sync, it will use
this ip address, and when you are done, it will change it back to a
default, and you will have to modify the file again). If you are using
a non-reserved ip address, it will ask you to change your PDA's ip
address, but should let you use the correct one anyway.

Note to Windows 2000/XP Users: If you install Intellisync SL in an
NTFS Partition, you can edit intellisyncDir\QtDBTemp\NetStat.dat, and
after modifying it, go to file properties, security tab, and set a
Deny Write permission to the user loggued in, or any user which will
use Intellisync. Then, when Intellisync starts, it will complain about
the Ip address change, but will be unable to change the file. (Also,
you can remove Full control access to the file for the user loggued
on, it will work anyway). Sebastian@sbsoft.com.ar

In order to get it to sync properly, one needs to link /root/ to
/home/root/ by issuing the following command:

ln -s /root/ /home/

Q: Thomas Elam adds: Where has the Intellisync download page moved to?
Is Intellisync still available for free downloading?

A: see updated link above!

Q: Kent B. adds: I have followed the steps above and gotten everything
connected. My desktop and iPAQ both say that they are synchronizing. I
get the messages from Intellisync (saying how many records added,
deleted, changed, etc.), but I do not see any of my Contacts, TO DO,
or Calendar records in my iPAQ. Any ideas what the problem could be?

A: I had the same problem, and it was due to /root and
/home/root. Erase the /home/root folder and after that, do a ln -s
/root/ /home/ . After that, all is working perfectly for me. Martin

Q: Jens W. adds: What about the new Intellisync 3.2E? I can only use
the old version from the link above :(

NOTE: Now what about syncing via USB ?

Please refer to http://www.connecteduser.com/a003.php for
instructions.

NOTE: Above page is now 404 - bill(at)bamph(dot)com 11/20/03

The following are some old instructions, the web site above is
considered to be superior:

The people at bahia21 have developed a M$ compatible usbnet driver !
This thing works like the usbnet driver known on your Linux desktop
system. Get it here : http://www.bahia21.com/download Beside the small
glitch that Intellisync asks me to change my IP adress after each
sync, this combination works like a charm !

NOTE: The driver's readme states "will cease to work by the 1st
november 2003" - bill(at)bamph(dot)com 11/20/03

NOTE: :-( The link to www.bahia21.com is broken. 12/02/2003 (I need
this driver!! Who can help me info(at)callidryas(dot)de).

NOTE: To make the drivers work

Intellisync found on http://www.sharp.co.uk/zaurus/support/support.htm

http://www.sharp.co.uk/zaurus/support/support.htm

Intellisync (Outlook®) users must download both the setupi.exe file
and the setupz.exe file to complete the update.


Qtopia (non Outlook users) must download both the setupq.exe file and
the setupz.exe file to complete the update.

SetupI.exe File: Download (.exe 6.2M) View Instructions
This file is the setup program for installing the updated Intellisync
synchronization software.

SetupQ.exe File: Download (.exe 4.2M) View Instructions
This file is the setup program for installing the updated Qtopia
synchronization software.

SetupZ.exe File: Download (.exe 16.9M) View Instructions
This file is the setup program for updated the System ROM on the Zaurus.

Or you can download the following file. This zip file is the entire
CD. You should burn it to a CD and install from the CD.

SL5500UpdateCD.zip File: Download (.zip 62.8M)

This file contains the setup program for installing the updated
Intellisync synchronization software and appropriate synchronization
software.

If you require a CD-ROM of the OS Update please send an email to
Mailbox@sharpserv.co.uk, with the title "SL-5500 update", and include
your name, address and SL-5500 serial number.


Linux Users should download the following OSPACK file and follow the
instructions (View Instructions) to install this ROM to the Zaurus.

OSPACK File: Download ( 16M)
This file contains the system ROM image file.

Downloading usbnet-driver from:
http://www.bahia21.com/download

Downloading unlimited patch for above from:
http://nagygabor.tripod.com/bnd_unlimited.zip

OK, first, I installes IntelliSync for Windows on my XP Pro.

Then, I plugged in the Zaurus using the USB-cable and I got the usual
"new hardware found, please choose driver"-windows of XP.

Along the PDF provided by the Bahia Network Driver, I chose the manual
driver selection using the directory where the decompressed BND was
located.

But unfortunately, I got a "hardware installation not possible because
I could not find the software" dialog window :-(

Merde.

What to do now?

OK, now I copied the netTacTop.inf to the directory of the BND-patch
that enables the unlimited usage of BND (otherwise set your system
time back before 31 october 2003).

Same result :-(

(Posted the problem at zaurus.help4free.de)

Found a new Software-CD-ROm from Sharp at:
http://www.sharp.de/php/d.php?par=17_no_no_107

Downloaded it, uninstalled the IntelliSync that I already
had. Installed the Intellisync and the Update from the new CD.

But unfortunately, no "a new Hardware was found: SL5500"-dialog pops
up any more, so I can't chose this new CD as driver :-(

Reboot: no change.

Right-click on the two *.inf-files in the CD-root and chose
"install". No change.
comment this entry
go to top of page

inst: sitebar bookmark manager (from sid/unstable) on Woody

not solved yet

copy sitebar from debian sid onto local directory

murphy:~# wget http://ftp.tu-graz.ac.at/mirror/debian/pool/main/s/sitebar/sitebar_3.2.6-6_all.deb

check, what is missing

murphy:~# dpkg -i sitebar_3.2.6-6_all.deb
Selecting previously deselected package sitebar.
(Reading database ... 20120 files and directories currently installed.)
Unpacking sitebar (from sitebar_3.2.6-6_all.deb) ...
dpkg: dependency problems prevent configuration of sitebar:
 sitebar depends on libapache2-mod-php4 | php4 (>= 4.1); however:
  Package libapache2-mod-php4 is not installed.
  Package php4 is not installed.
 sitebar depends on php4-mysql; however:
  Package php4-mysql is not installed.
 sitebar depends on wwwconfig-common; however:
  Package wwwconfig-common is not installed.
dpkg: error processing sitebar (--install):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 sitebar
murphy:~#

install all dependencies

murphy:~# apt-get install php4 php4-mysql wwwconfig-common libmm11 libmysqlclient10 mysql-common
Reading Package Lists... Done
Building Dependency Tree... Done
The following NEW packages will be installed:
  libmm11 libmysqlclient10 mysql-common php4 php4-mysql wwwconfig-common 
0 packages upgraded, 6 newly installed, 0 to remove and 2  not upgraded.
1 packages not fully installed or removed.
Need to get 882kB of archives. After unpacking 2306kB will be used.

installing php-apache-module

[...]
Setting up php4 (4.1.2-7.0.1) ...
I see you have apache webserver installed and so far you haven't
used the apache module version of php4 in your apache. If you
want to use it, you should reconfigure the apache webserver and
select to load the php module. I can call the apacheconfig script
now for you to do it, or you can insert the following line into
/etc/apache/httpd.conf manually:

LoadModule php4_module /usr/lib/apache/1.3/libphp4.so

Do you want me to run the apacheconfig script now [y/N] ? y

[...]
Pondering........................................ done.

Save these changes to the configuration files? [Y/n]

Rotated `/etc/apache/httpd.conf' at Sun Oct 17 00:46:31 CEST 2004.
Restart Apache now? [Y/n]
Stopping apache with apachectl ... done.
Waiting for apache to terminate ... done.
/usr/sbin/apachectl start: httpd started

Setting up mysql-common (3.23.49-8.8) ...

Setting up libmysqlclient10 (3.23.49-8.8) ...

Setting up php4-mysql (4.1.2-7.0.1) ...
You are installing MySQL support for php4, but it's not
enabled in your /etc/php4/apache/php.ini.

To enable it you need to add this line:

extension=mysql.so

Do you want me to add it now [Y/n] ?y

[...]

I selected "Yes" at:

Remember that in order to activate the new configuration apache has to be restarted. You can also restart web servers
manually.                                                                                                            
                                                                                                                     
Do you want me to restart apache now?                                                                                
                                                                                                                     
                                  <Yes>                                      <No>

... and got this error-message:

/var/lib/dpkg/info/sitebar.postinst: mysql: command not found
dpkg: error processing sitebar (--configure):
 subprocess post-installation script returned error exit status 127
Errors were encountered while processing:
 sitebar
E: Sub-process /usr/bin/dpkg returned an error code (1)
murphy:~#

When trying to access <SERVER>/sitebar/, I get a php-script for downloading.

-> I guess that php-execution/module is not activated yet.

removing the comment-sign infront of following lines in /etc/apache/httpd.conf

LoadModule php4_module /usr/lib/apache/1.3/libphp4.so
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps

after restarting apache, still a download instead of a content:

murphy:~# apt-get -f install
Reading Package Lists... Done
Building Dependency Tree... Done
0 packages upgraded, 0 newly installed, 0 to remove and 2  not upgraded.
1 packages not fully installed or removed.
Need to get 0B of archives. After unpacking 0B will be used.
Setting up sitebar (3.2.6-6) ...
/var/lib/dpkg/info/sitebar.postinst: mysql: command not found
dpkg: error processing sitebar (--configure):
 subprocess post-installation script returned error exit status 127
Errors were encountered while processing:
 sitebar
E: Sub-process /usr/bin/dpkg returned an error code (1)
murphy:~# 

murphy:~# apt-file search mysql
[...]
mysql-server
mysql-client
[...]
phplib
php3-cgi-mysql
php3-mysql
php4-mysql
[...]

installing additional packages

murphy:~# apt-get install mysql-server phpmyadmin
Reading Package Lists... Done
Building Dependency Tree... Done
The following extra packages will be installed:
  libdbd-mysql-perl libdbi-perl mysql-client 
The following NEW packages will be installed:
  libdbd-mysql-perl libdbi-perl mysql-client mysql-server phpmyadmin 
0 packages upgraded, 5 newly installed, 0 to remove and 2  not upgraded.
1 packages not fully installed or removed.
Need to get 3718kB of archives. After unpacking 10.7MB will be used.
Do you want to continue? [Y/n]

note of mysql

security and update notice                                                                                                
                                                                                                                          
MySQL will only install if you have a NON-NUMERIC hostname that is resolvable via the /etc/hosts file. E.g. if the        
"hostname" command returns "myhostname" then there must be a line like "127.0.0.1 myhostname".                            
                                                                                                                          
A new mysql user "debian-sys-maint" will be created. He is used in the start/stop and cron scripts. Don't delete him.     
                                                                                                                          
Please remember to set a PASSWORD for the MySQL root user! If you use a /root/.my.cnf, always write the "user" and the    
"password" lines in there, never only the password! See /usr/share/doc/mysql-server/README.Debian for more information.   
                                                                                                                          
Networking is disabled by default for security reasons. You can enable it by commenting out the skip-networking option in 
/etc/mysql/my.cnf.                                                                                                        
                                                                                                                          
I will ensure secure permissions of /var/lib/mysql by replacing GIDs other than root and mysql with mysql.

[...]
Unpacking mysql-server (from .../mysql-server_3.23.49-8.8_i386.deb) ...
Selecting previously deselected package phpmyadmin.
Unpacking phpmyadmin (from .../phpmyadmin_2.2.3-1_all.deb) ...
Setting up sitebar (3.2.6-6) ...
ERROR 2003: Can't connect to MySQL server on 'murphy.Karl-Voit.at' (111)
dpkg: error processing sitebar (--configure):
 subprocess post-installation script returned error exit status 1
Setting up libdbi-perl (1.21-2) ...

Setting up libdbd-mysql-perl (1.2216-2) ...

Setting up mysql-client (3.23.49-8.8) ...

Setting up mysql-server (3.23.49-8.8) ...

-> have to call "apt/get -f install" again, AFTER mysql has been set up.

still no connection to mysql.

starting mysql

murphy:~# /etc/init.d/mysql start
Starting MySQL database server: mysqld.
murphy:~#

murphy:~# /usr/bin/mysql -u root -p
Enter password:
ERROR 1045: Access denied for user: 'root@localhost' (Using password: YES)
murphy:~#

http://www.linuxforum.com/linux_tutorials/69/9.php

murphy:~# /usr/bin/mysqladmin -u root password 'new-password' 
/usr/bin/mysqladmin: connect to server at 'localhost' failed
error: 'Access denied for user: 'root@localhost' (Using password: YES)'
murphy:~#

http://murphy.karl-voit.at/phpmyadmin/index.php

-> no entry using user "root" or "mysql", no error-msg either.

confusing X-P

[went to bed and started again next day:]

Surprisingly, now I get the entry-page at SERVER/sitebar/ but no link
is working.

And phpmyadmin works too (without rebooting the server!): no
sitebar-tables were found.

still the same error

murphy:~# apt-get -f install
Reading Package Lists... Done
Building Dependency Tree... Done
0 packages upgraded, 0 newly installed, 0 to remove and 2  not upgraded.
1 packages not fully installed or removed.
Need to get 0B of archives. After unpacking 0B will be used.
Setting up sitebar (3.2.6-6) ...
ERROR 2003: Can't connect to MySQL server on 'murphy.Karl-Voit.at' (111)
dpkg: error processing sitebar (--configure):
 subprocess post-installation script returned error exit status 1
Errors were encountered while processing:
 sitebar
E: Sub-process /usr/bin/dpkg returned an error code (1)
murphy:~#

http://makeashorterlink.com/?F59212D89

Bingo!!
With the installation of the 5.0 (I assume) skip-networking was set by default 
in /etc/mysql/my.cnf. That was it.

try to comment out following line:
#skip-networking

[...]
Need to get 0B of archives. After unpacking 0B will be used.
Setting up sitebar (3.2.6-6) ...
ERROR 1130: Host 't94.medien.kunstlabor.at' is not allowed to connect to this MySQL server
dpkg: error processing sitebar (--configure):
 subprocess post-installation script returned error exit status 1
Errors were encountered while processing:
 sitebar
E: Sub-process /usr/bin/dpkg returned an error code (1)
murphy:/etc/apache#

There you are: different message. Seems to be a problem caused by the
two domain names that points to the very same host.

second line added in /etc/hosts

127.0.0.1       murphy  localhost
127.0.0.1 t94.medien.kunstlabor.at

same error-message.

OK, lets try to configure sitebar to localhost (instead of the
domain):

/etc/sitebar# e config.inc.php

'host'      =>  'localhost'

Host 't94.medien.kunstlabor.at' still not allowed... :-(

/etc/mysql/debian.cnf has a different account setting with user
debian-sys-maint and mysql.log contains:

041017 23:55:00            42 Connect     debian-sys-maint@localhost on
                     42 Quit
041017 23:55:01      43 Connect     debian-sys-maint@localhost on
                     43 Query       SHOW VARIABLES LIKE 'pid_file'
                     43 Shutdown
/usr/sbin/mysqld, Version: 3.23.49-log, started with:
Tcp port: 3306  Unix socket: /var/run/mysqld/mysqld.sock
Time                 Id Command    Argument
041017 23:55:11       1 Connect     debian-sys-maint@localhost on
                      1 Quit
041017 23:55:12       2 Connect     debian-sys-maint@localhost on
                      2 Quit

So there might be a chance, when changing the password in
/etc/sitebar/config.inc.php to the password of debian-sys-maint:

no change and no additional mysql-logs.

[went to bed and started again next time:]
comment this entry
go to top of page

problems with centericq 4.9.10

not solved yet
from time to time cicq crashes when receiving a new message

when running for a couple of hours, it collects memory in huge sizes:

lisa:~# top -b|grep centericq
 1548 vk         9   0  104m  84m 3028 S  0.0 27.0   2:17.74 centericq
comment this entry
go to top of page

activating a bluetooth-USB-adapter

not solved yet

uname -a

Linux maggie 2.4.23-pre5-ben0 #8 Sat Sep 25 18:35:05 CEST 2004 ppc GNU/Linux

... with BlueZ as kernel module

Adapter: delock Class 1 (100m) (34 EUR)

kern.log when plugging in

Sep 25 20:46:22 maggie kernel: hub.c: new USB device 10:18.0-1, assigned address 2
Sep 25 20:46:22 maggie kernel: usb.c: USB device 2 (vend/prod 0xa12/0x1) is not claimed by any active driver.
Sep 25 20:46:26 maggie kernel: BlueZ HCI USB driver ver 2.4 Copyright (C) 2000,2001 Qualcomm Inc
Sep 25 20:46:26 maggie kernel: Written 2000,2001 by Maxim Krasnyansky <maxk@qualcomm.com>
Sep 25 20:46:26 maggie kernel: usb.c: registered new driver hci_usb

maggie:/proc# lsusb
Bus 002 Device 001: ID 0000:0000
Bus 001 Device 001: ID 0000:0000
Bus 001 Device 002: ID 0a12:0001 Cambridge Silicon Radio, Ltd Bluetooth Dongle
maggie:/proc#

http://www.tobias-bauer.de/linux/bluetooth.html

starting the interface

maggie:/proc# hciconfig hci0 up
maggie:/proc# hciconfig -a
hci0:   Type: USB
        BD Address: 00:09:DD:10:3F:31 ACL MTU: 192:8  SCO MTU: 64:8
        UP RUNNING PSCAN ISCAN 
        RX bytes:99 acl:0 sco:0 events:13 errors:0
        TX bytes:296 acl:0 sco:0 commands:12 errors:0
        Features: 0xff 0xff 0x0f 0x00 0x00 0x00 0x00 0x00
        Packet type: DM1 DM3 DM5 DH1 DH3 DH5 HV1 HV2 HV3 
        Link policy: RSWITCH HOLD SNIFF PARK 
        Link mode: SLAVE ACCEPT 
        Name: 'maggie-0'
        Class: 0x000100
        Service Classes: Unspecified
        Device Class: Computer, Uncategorized
        HCI Ver: 1.1 (0x1) HCI Rev: 0x175 LMP Ver: 1.1 (0x1) LMP Subver: 0x175
        Manufacturer: Cambridge Silicon Radio (10)

maggie:/proc# 

scanning for my mobile phone

maggie:/proc# hcitool scan
Scanning ...
        00:01:E3:31:B8:C6       Handy
maggie:/proc#

explore the device

maggie:~# hcitool inq
Inquiring ...
        00:01:E3:31:B8:C6       clock offset: 0x8c77    class: 0x720204
maggie:~# hcitool info 00:01:E3:31:B8:C6
Requesting information ...
        BD Address:  00:01:E3:31:B8:C6
        Device Name: Handy
        LMP Version: 1.1 (0x1) LMP Subversion: 0x555
        Manufacturer: Infineon Technologies AG (9)
        Features: 0xef 0xea 0x19 0x00 0x00 0x00 0x00 0x00
                <3-slot packets> <5-slot packets> <encryption> <slot offset> 
                <role switch> <hold mode> <sniff mode> <RSSI> <SCO link> 
                <HV3 packets> <u-law log> <A-law log> <CVSD> <transparent SCO> 
maggie:~# 

once again: from plugging in the usb-dongle to a connection

maggie:~# hciconfig 
hci0:   Type: USB
        BD Address: 00:09:DD:10:3F:31 ACL MTU: 192:8  SCO MTU: 64:8
        UP RUNNING PSCAN ISCAN 
        RX bytes:99 acl:0 sco:0 events:13 errors:0
        TX bytes:296 acl:0 sco:0 commands:12 errors:0

maggie:~# hcitool scan
Scanning ...
        00:01:E3:31:B8:C6       Handy
maggie:~# l2ping 00:01:E3:31:B8:C6
Ping: 00:01:E3:31:B8:C6 from 00:09:DD:10:3F:31 (data size 20) ...
0 bytes from 00:01:E3:31:B8:C6 id 200 time 35.50ms
0 bytes from 00:01:E3:31:B8:C6 id 201 time 39.96ms
0 bytes from 00:01:E3:31:B8:C6 id 202 time 29.98ms
0 bytes from 00:01:E3:31:B8:C6 id 203 time 44.92ms
0 bytes from 00:01:E3:31:B8:C6 id 204 time 30.97ms
0 bytes from 00:01:E3:31:B8:C6 id 205 time 38.07ms
6 sent, 6 received, 0% loss
maggie:~# 

cellphone doesn't want to respond

maggie:~# sdptool browse
Inquiring ...
Inquiry failed
maggie:~#

http://groups.google.com/groups?hl=de&lr=&ie=UTF-8&threadm=pan.2004.09.20.16.36.12.984067%40yahoo.com&rnum=11&prev=/groups%3Fq%3D%2Blinux%2Bbluetooth%2BS55%26hl%3Dde%26lr%3D%26ie%3DUTF-8%26start%3D10%26sa%3DN

bluepin doesnt work

maggie:~# bluepin 
Traceback (most recent call last):
  File "/usr/bin/bluepin", line 6, in ?
    import sys, os, string, popen2, pygtk
ImportError: No module named pygtk
maggie:~# 

Hm. Seems to me that the following suggestion is important:

maggie:~# apt-get install bluez-utils
[...]
Suggested packages:
  python-gtk2 python2.2
[...]

OK, let's follow this suggestions:

updating python

maggie:/etc/bluetooth# apt-get install python-gtk2 python2.2
Reading Package Lists... Done
Building Dependency Tree... Done
The following extra packages will be installed:
  python2.3-gtk2 python2.3-numeric
Suggested packages:
  python2.2-doc python-numeric-tutorial
Recommended packages:
  python2.2-iconvcodec python2.2-cjkcodecs python2.2-japanese-codecs
The following NEW packages will be installed:
  python-gtk2 python2.2 python2.3-gtk2 python2.3-numeric
0 upgraded, 4 newly installed, 0 to remove and 408 not upgraded.
4 not fully installed or removed.
Need to get 2879kB of archives.
After unpacking 9535kB of additional disk space will be used.
Do you want to continue? [Y/n]

maggie:/etc/bluetooth# /usr/bin/bluepin
Xlib: connection to ":0.0" refused by server
Xlib: No protocol specified

Traceback (most recent call last):
  File "/usr/bin/bluepin", line 39, in ?
    import gtk
  File "/usr/lib/python2.3/site-packages/gtk-2.0/gtk/__init__.py", line 43, in ?
    from _gtk import *
RuntimeError: could not open display
maggie:/etc/bluetooth#

OK, bluepin want to access the X, so let's start it as user:

Oops

vk@maggie:~$ bluepin 

(process:5295): Gtk-WARNING **: Locale not supported by C library.
        Using the fallback 'C' locale.
Xlib: connection to ":0.0" refused by server
Xlib: No protocol specified

Traceback (most recent call last):
  File "/usr/bin/bluepin", line 39, in ?
    import gtk
  File "/usr/lib/python2.3/site-packages/gtk-2.0/gtk/__init__.py", line 43, in ?
    from _gtk import *
RuntimeError: could not open display

vk@maggie:~$ xhost +
access control disabled, clients can connect from any host
vk@maggie:~$ bluepin 

(process:5303): Gtk-WARNING **: Locale not supported by C library.
        Using the fallback 'C' locale.
ERR
vk@maggie:~$

So even as user and with no X11-auth at all, there is an "ERR", whatever that means :-(

Many bluetooth links:

http://www.holtmann.org/linux/bluetooth/

-> http://www.linux-user.de/ausgabe/2003/05/071-bluetooth/
pand --service NAP -Q

http://www.luug-hn.org/artikel/bluetooth.html#config
maggie:/etc/bluetooth# rfcomm bind 0
Can't create device: Operation not supported
maggie:/etc/bluetooth# rfcomm show
Can't get device list: Operation not supported
maggie:/etc/bluetooth#

additional URLs

Setting up a Debian-box as transparent bluetooth-gateway: (german)
http://iserver.hta.fhz.ch/~iathalma/projects/bluetooth/Linux_Bluetooth_Lan_Gateway/Linux_Bluetooth_Lan_Gateway.html

Discover how to connect your Siemens S55 mobile phone to a linux PC via serial port, IrDa and Bluetooth:
http://people.na.infn.it/~satriano/s55.php
comment this entry
go to top of page

harden my spam-filter using the spam that made it through for the last months

not solved yet

Searching for regex, that don't cover normal words too

vk@lisa:/usr/lib/ispell$  strings ngerman.hash  |  egrep -i "p.nis"
KOMPONISTENPREISE
PUNISCH
SPANISCH
OPERETTENKOMPONIST
JAPANISCH
INNERJAPANISCH
KOMPONIST
PENIS
PANISCH
NICHTJAPANISCH
ALPINIST
OPERNKOMPONIST
PHILIPPINISCH
comment this entry
go to top of page

connecting to zaurus fails

not solved yet
I _did_ it already by simply doing:
modprobe usbserial
ifup usb0

with:

cat /etc/network/interfaces (only part)

iface usb0 inet static
        address 192.168.129.1
        pointopoint 192.168.129.201
        netmask 255.255.255.255

but this time it fails.

iBook: uname -a

Linux maggie 2.4.23-pre5-ben0 #6 Wed Jun 23 04:01:16 CEST 2004 ppc GNU/Linux

there is no usb0-interface, only an eth1-interface with no IP assigned to.

additional executed

ifconfig eth1 192.168.129.1
route add 192.168.129.201 eth1

ping zaurus fails (no answer)
but pings from zaurus to ibook works _almost_:

"tcpdump -i eth1" on ibook recognising the arp-requests of the zaurus

[...]
00:22:04.276708 arp who-has 192.168.129.1 tell zaurus
00:22:04.276792 arp reply 192.168.129.1 is-at 40:0:2:0:0:1
00:22:05.275704 arp who-has 192.168.129.1 tell zaurus
00:22:05.275794 arp reply 192.168.129.1 is-at 40:0:2:0:0:1
00:22:06.275707 arp who-has 192.168.129.1 tell zaurus
00:22:06.275799 arp reply 192.168.129.1 is-at 40:0:2:0:0:1
00:22:07.276703 arp who-has 192.168.129.1 tell zaurus
00:22:07.276792 arp reply 192.168.129.1 is-at 40:0:2:0:0:1
00:22:08.275707 arp who-has 192.168.129.1 tell zaurus
00:22:08.275801 arp reply 192.168.129.1 is-at 40:0:2:0:0:1
00:22:08.463546 192.168.129.1 > zaurus: icmp: echo request (DF)
00:22:09.275710 arp who-has 192.168.129.1 tell zaurus
00:22:09.275805 arp reply 192.168.129.1 is-at 40:0:2:0:0:1
00:22:09.463979 192.168.129.1 > zaurus: icmp: echo request (DF)
00:22:10.276711 arp who-has 192.168.129.1 tell zaurus
00:22:10.276792 arp reply 192.168.129.1 is-at 40:0:2:0:0:1
00:22:10.463938 192.168.129.1 > zaurus: icmp: echo request (DF)
00:22:11.275709 arp who-has 192.168.129.1 tell zaurus
00:22:11.275807 arp reply 192.168.129.1 is-at 40:0:2:0:0:1
00:22:11.464925 192.168.129.1 > zaurus: icmp: echo request (DF)
00:22:12.275703 arp who-has 192.168.129.1 tell zaurus
00:22:12.275799 arp reply 192.168.129.1 is-at 40:0:2:0:0:1
00:22:12.465928 192.168.129.1 > zaurus: icmp: echo request (DF)
[...]

but there are no ping-answers visible on the zaurus!

no "arp" on the zaurus, where I can check, if arp-answer gets through :-(

disabling the hotplug (/etc/init.d/hotplug stop) does not change a thing.

also rebooting.

kern.log

Jul 23 00:20:39 maggie kernel: CDCEther.c: no repsonse in BULK IN
Jul 23 00:20:39 maggie kernel: CDCEther.c: rx status -110
Jul 23 00:20:39 maggie kernel: CDCEther.c: no repsonse in BULK IN
Jul 23 00:20:39 maggie kernel: CDCEther.c: rx status -110
Jul 23 00:20:39 maggie kernel: CDCEther.c: no repsonse in BULK IN
Jul 23 00:20:39 maggie kernel: CDCEther.c: rx status -110
Jul 23 00:20:39 maggie kernel: CDCEther.c: no repsonse in BULK IN
Jul 23 00:20:39 maggie kernel: CDCEther.c: rx status -110
Jul 23 00:20:39 maggie kernel: CDCEther.c: no repsonse in BULK IN

unplug and take another usb-port:

kern.log

Jul 23 00:20:39 maggie kernel: usb.c: USB disconnect on device 10:19.0-1 address 2
Jul 23 00:20:40 maggie kernel: hub.c: new USB device 10:18.0-1, assigned address 2
Jul 23 00:20:40 maggie kernel: CDCEther.c: Found Header descriptor, CDC version 110.
Jul 23 00:20:40 maggie kernel: CDCEther.c: Imperfect filtering support - need sw hashing
Jul 23 00:20:40 maggie kernel: CDCEther.c: Can't use SetEthernetMulticastFilters request
Jul 23 00:20:40 maggie kernel: CDCEther.c: detected BULK OUT packets of size 64
Jul 23 00:20:40 maggie kernel: CDCEther.c: eth1: Sharp SL-5500 400002000001
Jul 23 00:20:40 maggie kernel: CDCEther.c: eth1: 40:00:02:00:00:01
Jul 23 00:20:41 maggie kernel: CDCEther.c: eth1: set multicast filters
Jul 23 00:20:41 maggie last message repeated 2 times
Jul 23 00:20:54 maggie kernel: CDCEther.c: eth1: too many MC filters for hardware, using allmulti
Jul 23 00:20:54 maggie last message repeated 2 times
Jul 23 00:21:08 maggie kernel: CDCEther.c: eth1: Promiscuous mode enabled
Jul 23 00:21:08 maggie kernel: device eth1 entered promiscuous mode
Jul 23 00:21:55 maggie kernel: usb.c: deregistering driver acm
Jul 23 00:21:56 maggie kernel: usb.c: deregistering driver usbnet
Jul 23 00:21:56 maggie kernel: usb-storage: usb_stor_exit() called
Jul 23 00:21:56 maggie kernel: usb-storage: -- calling usb_deregister()
Jul 23 00:21:56 maggie kernel: usb.c: deregistering driver usb-storage


20040915

maggie:~# modprobe usbnet 
Note: /etc/modules.conf is more recent than /lib/modules/2.4.23-pre5-ben0/modules.dep
maggie:~# ifup usb0
maggie:~# ping zaurus
PING zaurus (192.168.129.201): 56 data bytes
64 bytes from 192.168.129.201: icmp_seq=0 ttl=255 time=2.4 ms
64 bytes from 192.168.129.201: icmp_seq=1 ttl=255 time=0.8 ms
64 bytes from 192.168.129.201: icmp_seq=2 ttl=255 time=0.9 ms

--- zaurus ping statistics ---
3 packets transmitted, 3 packets received, 0% packet loss
round-trip min/avg/max = 0.8/1.3/2.4 ms
maggie:~#

Worked!
But I had to disable my hotplug/mountusbstick.sh-combination because of a kernel freeze(!)

20040918: the very same procedure does not work!

kernel.log when plugging in and starting usb0

Sep 18 22:20:17 maggie kernel: hub.c: new USB device 10:18.0-1, assigned address 11
Sep 18 22:20:17 maggie kernel: usb.c: USB device 11 (vend/prod 0x4dd/0x8004) is not claimed by any active driver.
Sep 18 22:20:21 maggie kernel: CDCEther.c: CDCEther.c: 0.98.6 7 Jan 2002 Brad Hards and another
Sep 18 22:20:21 maggie kernel: usb.c: registered new driver CDCEther
Sep 18 22:20:21 maggie kernel: CDCEther.c: Found Header descriptor, CDC version 110.
Sep 18 22:20:21 maggie kernel: CDCEther.c: Imperfect filtering support - need sw hashing
Sep 18 22:20:21 maggie kernel: CDCEther.c: Can't use SetEthernetMulticastFilters request
Sep 18 22:20:21 maggie kernel: CDCEther.c: detected BULK OUT packets of size 64
Sep 18 22:20:21 maggie kernel: CDCEther.c: eth1: Sharp SL-5500 400002000001
Sep 18 22:20:21 maggie kernel: CDCEther.c: eth1: 40:00:02:00:00:01
Sep 18 22:20:21 maggie kernel: CDCEther.c: eth1: set multicast filters
Sep 18 22:20:21 maggie kernel: CDCEther.c: eth1: set multicast filters
Sep 18 22:20:21 maggie kernel: usb.c: registered new driver usbnet
Sep 18 22:20:22 maggie kernel: CDCEther.c: eth1: set multicast filters

kernel.log when "rmmod usbnet CDCEther"

Sep 18 22:22:14 maggie kernel: CDCEther.c: rx status -110
Sep 18 22:22:14 maggie kernel: CDCEther.c: no repsonse in BULK IN
Sep 18 22:22:14 maggie kernel: CDCEther.c: rx status -110
Sep 18 22:22:14 maggie kernel: CDCEther.c: no repsonse in BULK IN
[...]
Sep 18 22:22:14 maggie kernel: CDCEther.c: rx status -110
Sep 18 22:22:14 maggie kernel: CDCEther.c: no repsonse in BULK IN
Sep 18 22:22:14 maggie kernel: usb.c: USB disconnect on device 10:18.0-1 address 11
Sep 18 22:22:17 maggie kernel: usb.c: deregistering driver CDCEther
Sep 18 22:22:20 maggie kernel: usb.c: deregistering driver usbnet

http://www.hshanemd.net/docs/HOWTOS/SurfBoard/troubleshooting.html

Q: I get kicked offline about once every 4 days, for no apparent reason, and get the following error, or something similar, in the kernel log: 

Feb 20 10:05:12 K7 kernel: CDCEther.c: rx status -110
Feb 20 10:05:12 K7 kernel: CDCEther.c: no repsonse in BULK IN
Feb 20 10:05:12 K7 kernel: CDCEther.c: rx status -110
Feb 20 10:05:12 K7 kernel: CDCEther.c: no repsonse in BULK IN
Feb 20 10:05:12 K7 kernel: CDCEther.c: rx status -110
Feb 20 10:05:12 K7 kernel: CDCEther.c: no repsonse in BULK IN
Feb 20 10:05:12 K7 kernel: CDCEther.c: rx status -110

A: There are a number of reasons this may be happening, and future
updates to the CDCEther driver may solve some of them. At least one
user on the Linux-USB-user mailing list noticed that on at least one
occasion data sent to the modem from upstream by the cable provider
has triggered it. Also, the modem itself is very sensitive to power
interruptions and can lose the connection if this occurs. The fix is
to run ifdown ethX, where ethX is the ethernet interface (eth0, eth1
etc.) to clear out any remaining settings that are hung, then remove
the module with rmmod CDCEther, reinsert the CDCEther module and then
ifup ethX . A reboot may be necessary if this doesn't fix the
problem. If none of these work you probably have a real service
interruption.

rmmod usbnet
rmmod CDCEther
... did not work :-(

20041227:
/etc/init.d/hotplug stop
rmmod usbserial usbnet CDCEther
modprobe usbnet
ifup usb0

... works.
comment this entry
go to top of page

evolution, multisync and Zaurus/OPIE: sync-test

not solved yet
http://multisync.sourceforge.net/opie_sync/howto.shtml

lisa: problems because of
* Evolution (crashes when accessing "preferences") and
* no "OPIE/Open Zaurus" in multisync-dropdown-list

Zaurus-Configuration in multisync

Type: OPIE/OpenZaurus
Protocol: SFTP
IP Address: 192.168.129.201
Port: 22
Enable QCop: [_] 
Username & Password: empty

Evolution syncs almost perfectly with my very huge PIM-database on the Z :-)
comment this entry
go to top of page

Problems using Acrobat Reader as PDF-viewer in emacs21 (Win32)

not solved yet
Windows XP Pro
Acrobat Reader v6.0.1
Below, I'll write "Acroreader" instead of "Acrobat Reader v6"

Cannot compile new version of file while old PDF is being viewed in the reader:

Error-message when compiling a pdf while it is being opened by Acroreader

ERROR: I can't write on file `Testfile.pdf'.

--- TeX said ---
Please type another file name for output
! Emergency stop.
<to be read again> 
                   \endgroup \set@typeset@protect 
l.27 \end{document}
                   
--- HELP ---
From the .log file...

*** (job aborted, file error in nonstop mode)

When closing the currently viewed PDF in Acroreader using Ctrl-W
(instead of Ctrl-Q for quit) and compiling new, Acroread can not open
the new PDF using the view-command of emacs:

"This file cannot be found." (translated from german to english by myself!)
comment this entry
go to top of page

GnuPG with Windows XP and Outlook

not solved yet

http://winpt.sourceforge.net/de/

Install the tool, let it generate the keys and live happily ever after *g*

Drawback1: Could not locate a GnuPG-Icon in Outlook 2000 SP2. Therefore I had to
use the clipboard and the tray-icon. Works but could be smoother (using an Outlook-icon).

Not yet solved: How to encrypt attachments?

second approach:

GPGshell http://www.jumaros.de/rsoft/

first: unpack gnupg-w32cli-1.2.5 to c:\GnuPG

copy de.mo gnupg.mo (for german translation)

adopt gnupg-w32.reg

REGEDIT4

[HKEY_LOCAL_MACHINE\Software\GNU]

[HKEY_LOCAL_MACHINE\Software\GNU\GNUPG]

[HKEY_LOCAL_MACHINE\Software\GNU\GNUPG]
"HomeDir"="C:\\GnuPG"
"gpgProgram"="C:\\GnuPG\\gpg.exe"


[HKEY_CURRENT_USER\Control Panel\Mingw32]

[HKEY_CURRENT_USER\Control Panel\Mingw32\NLS]

[HKEY_CURRENT_USER\Control Panel\Mingw32\NLS]
"MODir"="C:\\GnuPG"

execute gnupg-w32.reg

Add the string ";c:\GnuPG" to the PATH environment (system preferences)

Download GPGshell from http://www.simtel.net/product.download.mirrors.php?id=63285

German documentation with images can be found on: http://kai.iks-jena.de/pgp/gpg/gpgshell.html
German documentation on GnuPG: http://www.gnupg.org/gph/de/manual/index.html

Install GPGshell (with german translation enabled)

Problem: our firewall is very restrictive and does not like connections to the keyservers:
http://blackhole.pca.dfn.de:11371

So port 11371 is not allowed :-(

Found a keyserver, that operates on port 80 through:
http://lists.gnupg.org/pipermail/gnupg-users/2003-December/020905.html

But changing the GPGshell default-server to http://keys.se.linux.org results in:

Getting key(s) 0x2704CA24 from server . . .

gpg: no keyserver known (use option --keyserver)
gpg: Empfangen vom Schlüsselserver fehlgeschlagen: fehlerhafter URI

Drücken Sie eine beliebige Taste . . .

But manual assembling the URI out of GPGshell's configuration works in a browser:
http://keys.se.linux.org/pks/lookup?op=vindex&search=0x2704CA24

OK, so for now the import using a keyserver does not work. Import using locally stored keys.

After a hint of a collegue of mine, I tried the Outlook Plugin v0.9
(http://www3.gdata.de/gpg/download.html) which is _not_ the most
recently version. This plugin works with my Outlook v2003 SP1!

NOTE concerning the Outlook plugin v0.9

When a signed (and encrypted) message is opened and you get the
information, that this signature is OK. Good.
But a second opening, you get the message, that this message is not encrypted (or signed).

This is just a refresh-problem: when you klick on another Email (in
the same folder or a different folder) and change back to the
signed/encrypted message, you can again klick on the check icon of the Outlook plugin!

Tested and approved under Windows -> Linux:
* (inline) signature
* signature
* encryption
* encryption with attachments: attachments will be encrypted seperately

Linux (mutt) -> Windows (Outlook 2003 SP1):
* no signed, encrypted (or both) text is shown or recognised as GnuPG-signed or whatever

-> mutt sends the message in a format, that Outlook does not understand. :-(
comment this entry
go to top of page

not working things after change from xfce4 to KDE 3.2.2

not solved yet
not working Alt-key to choose [], pipe, ... on the german keyboard


no suspend to ram after closing the lid

no "apm" found
pressing the power-button goes to suspend (as usual)

baghira-theme looks awful compared to desktop
might be the smaller screen resolution? (1024 compared to 1280)
baghira: window-icons are only in blue-velvet and can't be changed in the settings
baghira: checkboxes are too bright with low contrast
baghira: I want blue drop-down-marker (solved)

Style/baghira: Buttons: 123, 169, 255 (RGB)

no battery state display in the KDE-panel

"apt-get install klaptopdaemon" already done!
found the battery state display in: system-tray (probably reboot helped)
comment this entry
go to top of page

CUPS: HP LaserJet 5L prints extremely slow

not solved yet
When I first installed CUPS, I used a gimp-print-driver.

It worked but only for 300x300dpi and approx. 1 page/minute (slow!)

When printing, a job called "rastertoprinter" occupies the CPU with
100% for approx. 30seconds per page.

So, a new PPD might change this behavior:

http://www.linuxprinting.org/show_printer.cgi?recnum=HP-LaserJet_5L

"Recommended driver: hpijs (Home page, view PPD, download PPD)"

http://www.linuxprinting.org/ppd-o-matic.cgi?driver=hpijs&printer=HP-LaserJet_5L&show=0

Copied to: /usr/share/cups/model/HP-LaserJet_5L-hpijs.ppd

KDE: Kontrol-center/printers (admin-mode):
new printer, ... and choose PPD-file manually

Everything seems to be fine but the test-page woun't show up. Only an
error-message appears (after the message "test page succesfully sent
to printer") that says:

A print error occurred. Error message received from system:

cupsdoprint -P 'HPLJ5L(neu)' -J 'KDE Print Test' -H 'localhost:631' -U
'root' -o '
multiple-document-handling=separate-documents-uncollated-copies
orientation-requested=3' '/usr/share/apps/kdeprint/testprint.ps' :
execution failed with message: client-error-not-possible

OK, no printing possible. I "like" CUPS *g*

/var/log/cups/error_log

Denying user "root" access to printer "Laserdrucker"...

Oooookay. Even user "root" has to be added to allowed users. Where did
I read "user root can do everything"?

But still no test-page:

/var/log/cups/error_log

I [23/Jul/2004:18:50:29 +0200] Job 889 queued on 'Laserdrucker' by 'root'.
I [23/Jul/2004:18:50:29 +0200] Started filter /usr/lib/cups/filter/pstops (PID 12795) for job 889.
I [23/Jul/2004:18:50:29 +0200] Started filter /usr/lib/cups/filter/foomatic-rip (PID 12796) for job 889.
I [23/Jul/2004:18:50:29 +0200] Started backend /usr/lib/cups/backend/parallel (PID 12797) for job 889.
E [23/Jul/2004:18:50:29 +0200] PID 12796 stopped with status 22!
I [23/Jul/2004:18:50:29 +0200] Hint: Try setting the LogLevel to "debug" to find out more.

/etc/cups/cupsd.conf

#LogLevel info
LogLevel debug

/etc/init.d/cupsys restart

/var/log/cups/error_log

[starting a test-print]
D [23/Jul/2004:18:54:49 +0200] AcceptClient: 5 from localhost:631.
D [23/Jul/2004:18:54:49 +0200] ReadClient: 5 POST / HTTP/1.1
D [23/Jul/2004:18:54:49 +0200] ProcessIPPRequest: 5 status_code=0
D [23/Jul/2004:18:54:49 +0200] ReadClient: 5 GET /printers/Laserdrucker.ppd HTTP/1.1
D [23/Jul/2004:18:54:49 +0200] SendFile: 5 file=7
D [23/Jul/2004:18:54:51 +0200] AcceptClient: 7 from localhost:631.
D [23/Jul/2004:18:54:51 +0200] ReadClient: 7 POST /printers/Laserdrucker HTTP/1.1
D [23/Jul/2004:18:54:51 +0200] print_job: auto-typing file...
D [23/Jul/2004:18:54:51 +0200] print_job: request file type is application/postscript.
D [23/Jul/2004:18:54:51 +0200] check_quotas: requesting-user-name = 'root'
D [23/Jul/2004:18:54:51 +0200] print_job: requesting-user-name = 'root'
D [23/Jul/2004:18:54:51 +0200] Adding default job-sheets values "none,none"...
I [23/Jul/2004:18:54:51 +0200] Adding start banner page "none" to job 890.
I [23/Jul/2004:18:54:51 +0200] Adding end banner page "none" to job 890.
I [23/Jul/2004:18:54:51 +0200] Job 890 queued on 'Laserdrucker' by 'root'.
D [23/Jul/2004:18:54:51 +0200] Job 890 hold_until = 0
D [23/Jul/2004:18:54:51 +0200] StartJob(890, 0x80a93a0)
D [23/Jul/2004:18:54:51 +0200] StartJob() id = 890, file = 0/1
D [23/Jul/2004:18:54:51 +0200] job-sheets=none,none
D [23/Jul/2004:18:54:51 +0200] banner_page = 0
D [23/Jul/2004:18:54:51 +0200] StartJob: argv = "Laserdrucker","890","root","KDE Print Test","1","multiple-document-handling=separate-documents-uncollated-copies orientation-requested=3","/var/spool/cups/d00890-001"
D [23/Jul/2004:18:54:51 +0200] StartJob: envp[0]="PATH=/usr/lib/cups/filter:/bin:/usr/bin"
D [23/Jul/2004:18:54:51 +0200] StartJob: envp[1]="SOFTWARE=CUPS/1.1"
D [23/Jul/2004:18:54:51 +0200] StartJob: envp[2]="USER=root"
D [23/Jul/2004:18:54:51 +0200] StartJob: envp[3]="CHARSET=iso-8859-15"
D [23/Jul/2004:18:54:51 +0200] StartJob: envp[4]="LANG=de"
D [23/Jul/2004:18:54:51 +0200] StartJob: envp[5]="TZ=Europe/Vienna"
D [23/Jul/2004:18:54:51 +0200] StartJob: envp[6]="PPD=/etc/cups/ppd/Laserdrucker.ppd"
D [23/Jul/2004:18:54:51 +0200] StartJob: envp[7]="CUPS_SERVERROOT=/etc/cups"
D [23/Jul/2004:18:54:51 +0200] StartJob: envp[8]="RIP_MAX_CACHE=8m"
D [23/Jul/2004:18:54:51 +0200] StartJob: envp[9]="TMPDIR=/var/spool/cups/tmp"
D [23/Jul/2004:18:54:51 +0200] StartJob: envp[10]="CONTENT_TYPE=application/postscript"
D [23/Jul/2004:18:54:51 +0200] StartJob: envp[11]="DEVICE_URI=parallel:/dev/lp0"
D [23/Jul/2004:18:54:51 +0200] StartJob: envp[12]="PRINTER=Laserdrucker"
D [23/Jul/2004:18:54:51 +0200] StartJob: envp[13]="CUPS_DATADIR=/usr/share/cups"
D [23/Jul/2004:18:54:51 +0200] StartJob: envp[14]="CUPS_FONTPATH=/usr/share/cups/fonts"
D [23/Jul/2004:18:54:51 +0200] StartJob: envp[15]="CUPS_SERVER=localhost"
D [23/Jul/2004:18:54:51 +0200] StartJob: envp[16]="IPP_PORT=631"
D [23/Jul/2004:18:54:51 +0200] StartJob: statusfds = [ 8 9 ]
D [23/Jul/2004:18:54:51 +0200] StartJob: filterfds[1] = [ 10 -1 ]
D [23/Jul/2004:18:54:51 +0200] StartJob: filter = "/usr/lib/cups/filter/pstops"
D [23/Jul/2004:18:54:51 +0200] StartJob: filterfds[0] = [ 11 12 ]
D [23/Jul/2004:18:54:51 +0200] start_process("/usr/lib/cups/filter/pstops", 0xbffefcc0, 0xbffef030, 10, 12, 9)
I [23/Jul/2004:18:54:51 +0200] Started filter /usr/lib/cups/filter/pstops (PID 12951) for job 890.
D [23/Jul/2004:18:54:51 +0200] StartJob: filter = "/usr/lib/cups/filter/foomatic-rip"
D [23/Jul/2004:18:54:51 +0200] StartJob: filterfds[1] = [ 10 13 ]
D [23/Jul/2004:18:54:51 +0200] start_process("/usr/lib/cups/filter/foomatic-rip", 0xbffefcc0, 0xbffef030, 11, 13, 9)
I [23/Jul/2004:18:54:51 +0200] Started filter /usr/lib/cups/filter/foomatic-rip (PID 12952) for job 890.
D [23/Jul/2004:18:54:51 +0200] StartJob: backend = "/usr/lib/cups/backend/parallel"
D [23/Jul/2004:18:54:51 +0200] StartJob: filterfds[0] = [ -1 11 ]
D [23/Jul/2004:18:54:51 +0200] start_process("/usr/lib/cups/backend/parallel", 0xbffefcc0, 0xbffef030, 10, 11, 9)
I [23/Jul/2004:18:54:51 +0200] Started backend /usr/lib/cups/backend/parallel (PID 12953) for job 890.
D [23/Jul/2004:18:54:51 +0200] ProcessIPPRequest: 7 status_code=0
D [23/Jul/2004:18:54:52 +0200] [Job 890] /usr/lib/cups/filter/foomatic-rip: No such file or directory
D [23/Jul/2004:18:54:52 +0200] [Job 890] Page = 595x842; 18,14 to 577,828
D [23/Jul/2004:18:54:52 +0200] [Job 890] slowcollate=0, slowduplex=0, sloworder=0
D [23/Jul/2004:18:54:52 +0200] [Job 890] 0 %%BoundingBox: 0 0 612 792
D [23/Jul/2004:18:54:52 +0200] [Job 890] 0 %%Pages: 1
D [23/Jul/2004:18:54:52 +0200] [Job 890] 0 %%LanguageLevel: 1
D [23/Jul/2004:18:54:52 +0200] [Job 890] 0 %%DocumentData: Clean7Bit
D [23/Jul/2004:18:54:52 +0200] [Job 890] 0 %%DocumentSuppliedResources: procset testprint/1.0
D [23/Jul/2004:18:54:52 +0200] [Job 890] 0 %%DocumentNeededResources: font Helvetica Helvetica-Bold Times-Roman
D [23/Jul/2004:18:54:52 +0200] [Job 890] 0 %%Creator: Michael Sweet, Easy Software Products
D [23/Jul/2004:18:54:52 +0200] [Job 890] 0 %%CreationDate: May 11, 1999
D [23/Jul/2004:18:54:52 +0200] [Job 890] 0 %%Title: Test Page
D [23/Jul/2004:18:54:52 +0200] [Job 890] 0 %%EndComments
D [23/Jul/2004:18:54:52 +0200] [Job 890] 0 %%BeginProlog
D [23/Jul/2004:18:54:52 +0200] [Job 890] 0 %%BeginResource procset testprint 1.1 0
D [23/Jul/2004:18:54:52 +0200] [Job 890] 0 %%EndResource
D [23/Jul/2004:18:54:52 +0200] [Job 890] 0 %%EndProlog
D [23/Jul/2004:18:54:52 +0200] [Job 890] 0 %%Page: 1 1
D [23/Jul/2004:18:54:52 +0200] [Job 890] 0 %%Page: 1 1
D [23/Jul/2004:18:54:52 +0200] [Job 890] pw = 559.0, pl = 813.2
D [23/Jul/2004:18:54:52 +0200] [Job 890] PageLeft = 18.0, PageRight = 577.0
D [23/Jul/2004:18:54:52 +0200] [Job 890] PageTop = 827.6, PageBottom = 14.4
D [23/Jul/2004:18:54:52 +0200] [Job 890] PageWidth = 595.0, PageLength = 842.0
D [23/Jul/2004:18:54:52 +0200] [Job 890] 0 %%EOF
D [23/Jul/2004:18:54:52 +0200] [Job 890] Saw EOF!
E [23/Jul/2004:18:54:52 +0200] PID 12952 stopped with status 22!
D [23/Jul/2004:18:54:52 +0200] CloseClient: 7
D [23/Jul/2004:18:54:52 +0200] UpdateJob: job 890, file 0 is complete.
D [23/Jul/2004:18:54:52 +0200] CancelJob: id = 890
D [23/Jul/2004:18:54:52 +0200] StopJob: id = 890, force = 0
D [23/Jul/2004:18:54:52 +0200] StopJob: printer state is 3
D [23/Jul/2004:18:54:57 +0200] AcceptClient: 7 from localhost:631.
D [23/Jul/2004:18:54:57 +0200] ReadClient: 7 POST /printers/ HTTP/1.1
D [23/Jul/2004:18:54:57 +0200] ProcessIPPRequest: 7 status_code=1
D [23/Jul/2004:18:54:57 +0200] AcceptClient: 8 from localhost:631.
D [23/Jul/2004:18:54:57 +0200] CloseClient: 7
D [23/Jul/2004:18:54:57 +0200] ReadClient: 8 POST /classes/ HTTP/1.1
D [23/Jul/2004:18:54:57 +0200] ProcessIPPRequest: 8 status_code=1
D [23/Jul/2004:18:54:57 +0200] AcceptClient: 7 from localhost:631.
D [23/Jul/2004:18:54:57 +0200] CloseClient: 8
D [23/Jul/2004:18:54:57 +0200] ReadClient: 7 POST /printers/ HTTP/1.1
D [23/Jul/2004:18:54:57 +0200] ProcessIPPRequest: 7 status_code=1
D [23/Jul/2004:18:54:57 +0200] CloseClient: 7
D [23/Jul/2004:18:54:57 +0200] AcceptClient: 7 from localhost:631.
D [23/Jul/2004:18:54:57 +0200] ReadClient: 7 POST /printers/ HTTP/1.1
D [23/Jul/2004:18:54:57 +0200] ProcessIPPRequest: 7 status_code=1
D [23/Jul/2004:18:54:57 +0200] CloseClient: 7
D [23/Jul/2004:18:54:57 +0200] ReadClient: 5 POST / HTTP/1.1
D [23/Jul/2004:18:54:57 +0200] ProcessIPPRequest: 5 status_code=0
D [23/Jul/2004:18:54:57 +0200] ReadClient: 5 GET /printers/Laserdrucker.ppd HTTP/1.1
D [23/Jul/2004:18:54:57 +0200] SendFile: 5 file=7
D [23/Jul/2004:18:54:57 +0200] AcceptClient: 7 from localhost:631.
D [23/Jul/2004:18:54:57 +0200] ReadClient: 7 POST / HTTP/1.1
D [23/Jul/2004:18:54:57 +0200] ProcessIPPRequest: 7 status_code=1
D [23/Jul/2004:18:54:57 +0200] CloseClient: 7
D [23/Jul/2004:18:55:02 +0200] AcceptClient: 7 from localhost:631.
D [23/Jul/2004:18:55:02 +0200] ReadClient: 7 POST /printers/ HTTP/1.1
D [23/Jul/2004:18:55:02 +0200] ProcessIPPRequest: 7 status_code=1
D [23/Jul/2004:18:55:02 +0200] AcceptClient: 8 from localhost:631.
D [23/Jul/2004:18:55:02 +0200] CloseClient: 7
D [23/Jul/2004:18:55:02 +0200] ReadClient: 8 POST /classes/ HTTP/1.1
D [23/Jul/2004:18:55:02 +0200] ProcessIPPRequest: 8 status_code=1
D [23/Jul/2004:18:55:02 +0200] AcceptClient: 7 from localhost:631.
D [23/Jul/2004:18:55:02 +0200] CloseClient: 8
[...] looped indefinitely

Where the f*** is the error-message?

Only line ...

/var/log/cups/error_log

E [23/Jul/2004:18:54:52 +0200] PID 12952 stopped with status 22!

... is marked with an 'E'.

But I can't read anything out of it.

What is PID 12952 anyway?

lisa:/var/log/cups# grep 12952 error_log
I [23/Jul/2004:18:54:51 +0200] Started filter /usr/lib/cups/filter/foomatic-rip (PID 12952) for job 890.
E [23/Jul/2004:18:54:52 +0200] PID 12952 stopped with status 22!
lisa:/var/log/cups#

Ah! OK. Maybe the missing "foomatic-rip" is the missing link?

lisa:/var/log/cups# apt-file search foomatic-rip
foomatic-filters: usr/bin/foomatic-rip
foomatic-filters: usr/lib/cups/filter/foomatic-rip
foomatic-filters: usr/lib/ppr/interfaces/foomatic-rip
foomatic-filters: usr/lib/ppr/lib/foomatic-rip
foomatic-filters: usr/share/man/man1/foomatic-rip.1.gz
lisa:/var/log/cups# 

lisa:/var/log/cups# apt-get install foomatic-filters
Reading Package Lists... Done
Building Dependency Tree... Done
The following extra packages will be installed:
  ucf
Recommended packages:
  foomatic-db-engine
The following NEW packages will be installed:
  foomatic-filters
The following packages will be upgraded:
  ucf
1 upgraded, 1 newly installed, 0 to remove and 963 not upgraded.
Need to get 157kB of archives.
After unpacking 356kB of additional disk space will be used.
Do you want to continue? [Y/n]

But still not working properly:

/var/log/cups/error_log

...]
D [23/Jul/2004:22:47:18 +0200] ReadClient: 7 POST /printers/Laserdrucker HTTP/1.1
D [23/Jul/2004:22:47:18 +0200] print_job: auto-typing file...
D [23/Jul/2004:22:47:18 +0200] print_job: request file type is application/postscript.
D [23/Jul/2004:22:47:18 +0200] CancelJob: id = 390
D [23/Jul/2004:22:47:18 +0200] check_quotas: requesting-user-name = 'root'
D [23/Jul/2004:22:47:18 +0200] print_job: requesting-user-name = 'root'
D [23/Jul/2004:22:47:18 +0200] Adding default job-sheets values "none,none"...
I [23/Jul/2004:22:47:18 +0200] Adding start banner page "none" to job 892.
I [23/Jul/2004:22:47:18 +0200] Adding end banner page "none" to job 892.
I [23/Jul/2004:22:47:18 +0200] Job 892 queued on 'Laserdrucker' by 'root'.
D [23/Jul/2004:22:47:18 +0200] Job 892 hold_until = 0
D [23/Jul/2004:22:47:18 +0200] StartJob(892, 0x80a93a0)
D [23/Jul/2004:22:47:18 +0200] StartJob() id = 892, file = 0/1
D [23/Jul/2004:22:47:18 +0200] job-sheets=none,none
D [23/Jul/2004:22:47:18 +0200] banner_page = 0
D [23/Jul/2004:22:47:18 +0200] StartJob: argv = "Laserdrucker","892","root","KDE Print Test","1","multiple-document-handling=separate-documents-uncollated-copies orientation-requested=3","/var/spool/cups/d00892-001"
D [23/Jul/2004:22:47:18 +0200] StartJob: envp[0]="PATH=/usr/lib/cups/filter:/bin:/usr/bin"
D [23/Jul/2004:22:47:18 +0200] StartJob: envp[1]="SOFTWARE=CUPS/1.1"
D [23/Jul/2004:22:47:18 +0200] StartJob: envp[2]="USER=root"
D [23/Jul/2004:22:47:18 +0200] StartJob: envp[3]="CHARSET=iso-8859-15"
D [23/Jul/2004:22:47:18 +0200] StartJob: envp[4]="LANG=de"
D [23/Jul/2004:22:47:18 +0200] StartJob: envp[5]="TZ=Europe/Vienna"
D [23/Jul/2004:22:47:18 +0200] StartJob: envp[6]="PPD=/etc/cups/ppd/Laserdrucker.ppd"
D [23/Jul/2004:22:47:18 +0200] StartJob: envp[7]="CUPS_SERVERROOT=/etc/cups"
D [23/Jul/2004:22:47:18 +0200] StartJob: envp[8]="RIP_MAX_CACHE=8m"
D [23/Jul/2004:22:47:18 +0200] StartJob: envp[9]="TMPDIR=/var/spool/cups/tmp"
D [23/Jul/2004:22:47:18 +0200] StartJob: envp[10]="CONTENT_TYPE=application/postscript"
D [23/Jul/2004:22:47:18 +0200] StartJob: envp[11]="DEVICE_URI=parallel:/dev/lp0"
D [23/Jul/2004:22:47:18 +0200] StartJob: envp[12]="PRINTER=Laserdrucker"
D [23/Jul/2004:22:47:18 +0200] StartJob: envp[13]="CUPS_DATADIR=/usr/share/cups"
D [23/Jul/2004:22:47:18 +0200] StartJob: envp[14]="CUPS_FONTPATH=/usr/share/cups/fonts"
D [23/Jul/2004:22:47:18 +0200] StartJob: envp[15]="CUPS_SERVER=localhost"
D [23/Jul/2004:22:47:18 +0200] StartJob: envp[16]="IPP_PORT=631"
D [23/Jul/2004:22:47:18 +0200] StartJob: statusfds = [ 8 9 ]
D [23/Jul/2004:22:47:18 +0200] StartJob: filterfds[1] = [ 10 -1 ]
D [23/Jul/2004:22:47:18 +0200] StartJob: filter = "/usr/lib/cups/filter/pstops"
D [23/Jul/2004:22:47:18 +0200] StartJob: filterfds[0] = [ 11 12 ]
D [23/Jul/2004:22:47:18 +0200] start_process("/usr/lib/cups/filter/pstops", 0xbffefcc0, 0xbffef030, 10, 12, 9)
I [23/Jul/2004:22:47:18 +0200] Started filter /usr/lib/cups/filter/pstops (PID 19124) for job 892.
D [23/Jul/2004:22:47:18 +0200] StartJob: filter = "/usr/lib/cups/filter/foomatic-rip"
D [23/Jul/2004:22:47:18 +0200] StartJob: filterfds[1] = [ 10 13 ]
D [23/Jul/2004:22:47:18 +0200] start_process("/usr/lib/cups/filter/foomatic-rip", 0xbffefcc0, 0xbffef030, 11, 13, 9)
I [23/Jul/2004:22:47:18 +0200] Started filter /usr/lib/cups/filter/foomatic-rip (PID 19125) for job 892.
D [23/Jul/2004:22:47:18 +0200] StartJob: backend = "/usr/lib/cups/backend/parallel"
D [23/Jul/2004:22:47:18 +0200] StartJob: filterfds[0] = [ -1 11 ]
D [23/Jul/2004:22:47:18 +0200] start_process("/usr/lib/cups/backend/parallel", 0xbffefcc0, 0xbffef030, 10, 11, 9)
I [23/Jul/2004:22:47:18 +0200] Started backend /usr/lib/cups/backend/parallel (PID 19126) for job 892.
D [23/Jul/2004:22:47:18 +0200] ProcessIPPRequest: 7 status_code=0
D [23/Jul/2004:22:47:18 +0200] CloseClient: 7
D [23/Jul/2004:22:47:18 +0200] [Job 892] perl: warning: Setting locale failed.
D [23/Jul/2004:22:47:18 +0200] [Job 892] perl: warning: Please check that your locale settings:
D [23/Jul/2004:22:47:18 +0200] [Job 892] LANGUAGE = (unset),
D [23/Jul/2004:22:47:18 +0200] [Job 892] LC_ALL = (unset),
D [23/Jul/2004:22:47:18 +0200] [Job 892] LANG = "de"
D [23/Jul/2004:22:47:18 +0200] [Job 892] are supported and installed on your system.
D [23/Jul/2004:22:47:18 +0200] [Job 892] perl: warning: Falling back to the standard locale ("C").
D [23/Jul/2004:22:47:18 +0200] [Job 892] Page = 595x842; 18,14 to 577,828
D [23/Jul/2004:22:47:18 +0200] [Job 892] slowcollate=0, slowduplex=0, sloworder=0
D [23/Jul/2004:22:47:18 +0200] [Job 892] 0 %%BoundingBox: 0 0 612 792
D [23/Jul/2004:22:47:18 +0200] [Job 892] 0 %%Pages: 1
D [23/Jul/2004:22:47:18 +0200] [Job 892] 0 %%LanguageLevel: 1
D [23/Jul/2004:22:47:18 +0200] [Job 892] 0 %%DocumentData: Clean7Bit
D [23/Jul/2004:22:47:18 +0200] [Job 892] 0 %%DocumentSuppliedResources: procset testprint/1.0
D [23/Jul/2004:22:47:18 +0200] [Job 892] 0 %%DocumentNeededResources: font Helvetica Helvetica-Bold Times-Roman
D [23/Jul/2004:22:47:18 +0200] [Job 892] 0 %%Creator: Michael Sweet, Easy Software Products
D [23/Jul/2004:22:47:18 +0200] [Job 892] 0 %%CreationDate: May 11, 1999
D [23/Jul/2004:22:47:18 +0200] [Job 892] 0 %%Title: Test Page
D [23/Jul/2004:22:47:18 +0200] [Job 892] 0 %%EndComments
D [23/Jul/2004:22:47:18 +0200] [Job 892] 0 %%BeginProlog
D [23/Jul/2004:22:47:18 +0200] [Job 892] 0 %%BeginResource procset testprint 1.1 0
D [23/Jul/2004:22:47:18 +0200] [Job 892] 0 %%EndResource
D [23/Jul/2004:22:47:18 +0200] [Job 892] 0 %%EndProlog
D [23/Jul/2004:22:47:18 +0200] [Job 892] 0 %%Page: 1 1
D [23/Jul/2004:22:47:18 +0200] [Job 892] 0 %%Page: 1 1
D [23/Jul/2004:22:47:18 +0200] [Job 892] pw = 559.0, pl = 813.2
D [23/Jul/2004:22:47:18 +0200] [Job 892] PageLeft = 18.0, PageRight = 577.0
D [23/Jul/2004:22:47:18 +0200] [Job 892] PageTop = 827.6, PageBottom = 14.4
D [23/Jul/2004:22:47:18 +0200] [Job 892] PageWidth = 595.0, PageLength = 842.0
D [23/Jul/2004:22:47:21 +0200] [Job 892] foomatic-rip version $Revision: 3.43.2.5 $ running...
D [23/Jul/2004:22:47:21 +0200] [Job 892] Parsing PPD file ...
D [23/Jul/2004:22:47:21 +0200] [Job 892] *cupsFilter: "application/vnd.cups-postscript 0 foomatic-rip"
D [23/Jul/2004:22:47:21 +0200] [Job 892] Added option ColorSpace
D [23/Jul/2004:22:47:21 +0200] [Job 892] Added option Resolution
D [23/Jul/2004:22:47:21 +0200] [Job 892] Added option PageSize
D [23/Jul/2004:22:47:21 +0200] [Job 892] Added option PageRegion
D [23/Jul/2004:22:47:21 +0200] [Job 892] Added option Model
D [23/Jul/2004:22:47:21 +0200] [Job 892] Added option PrintoutMode
D [23/Jul/2004:22:47:21 +0200] [Job 892] Added option ImageableArea
D [23/Jul/2004:22:47:21 +0200] [Job 892] Added option PaperDimension
D [23/Jul/2004:22:47:21 +0200] [Job 892] Added option InputSlot
D [23/Jul/2004:22:47:21 +0200] [Job 892] Added option Manualfeed
D [23/Jul/2004:22:47:21 +0200] [Job 892] Added option Duplex
D [23/Jul/2004:22:47:21 +0200] [Job 892] Added option Economode
D [23/Jul/2004:22:47:21 +0200] [Job 892] Added option Copies
D [23/Jul/2004:22:47:21 +0200] [Job 892] Added option REt
D [23/Jul/2004:22:47:21 +0200] [Job 892] Added option TonerDensity
D [23/Jul/2004:22:47:21 +0200] [Job 892] Added option MPTray
D [23/Jul/2004:22:47:21 +0200] [Job 892] Added option Quality
D [23/Jul/2004:22:47:21 +0200] [Job 892] Added option Font
D [23/Jul/2004:22:47:21 +0200] [Job 892]
D [23/Jul/2004:22:47:21 +0200] [Job 892] Parameter Summary
D [23/Jul/2004:22:47:21 +0200] [Job 892] -----------------
D [23/Jul/2004:22:47:21 +0200] [Job 892]
D [23/Jul/2004:22:47:21 +0200] [Job 892] Spooler: cups
D [23/Jul/2004:22:47:21 +0200] [Job 892] Printer: Laserdrucker
D [23/Jul/2004:22:47:21 +0200] [Job 892] PPD file: /etc/cups/ppd/Laserdrucker.ppd
D [23/Jul/2004:22:47:21 +0200] [Job 892] Printer model: HP LaserJet 5L Foomatic/hpijs (recommended)
D [23/Jul/2004:22:47:21 +0200] [Job 892] Job title: KDE Print Test
D [23/Jul/2004:22:47:21 +0200] [Job 892] File(s) to be printed:
D [23/Jul/2004:22:47:21 +0200] [Job 892] <STDIN>
D [23/Jul/2004:22:47:21 +0200] [Job 892]
D [23/Jul/2004:22:47:21 +0200] [Job 892] Pondering option 'multiple-document-handling=separate-documents-uncollated-copies'
D [23/Jul/2004:22:47:21 +0200] [Job 892] Unknown option multiple-document-handling=separate-documents-uncollated-copies.
D [23/Jul/2004:22:47:21 +0200] [Job 892] Pondering option 'orientation-requested=3'
D [23/Jul/2004:22:47:21 +0200] [Job 892] Unknown option orientation-requested=3.
D [23/Jul/2004:22:47:21 +0200] [Job 892]
D [23/Jul/2004:22:47:21 +0200] [Job 892] ================================================
D [23/Jul/2004:22:47:21 +0200] [Job 892]
D [23/Jul/2004:22:47:21 +0200] [Job 892] File: <STDIN>
D [23/Jul/2004:22:47:21 +0200] [Job 892]
D [23/Jul/2004:22:47:21 +0200] [Job 892] ================================================
D [23/Jul/2004:22:47:21 +0200] [Job 892]
D [23/Jul/2004:22:47:21 +0200] [Job 892] Reading PostScript input ...
D [23/Jul/2004:22:47:21 +0200] [Job 892] --> This document is DSC-conforming!
D [23/Jul/2004:22:47:21 +0200] [Job 892]
D [23/Jul/2004:22:47:21 +0200] [Job 892] -----------
D [23/Jul/2004:22:47:21 +0200] [Job 892] Found: %%BeginProlog
D [23/Jul/2004:22:47:21 +0200] [Job 892] 0 %%EOF
D [23/Jul/2004:22:47:21 +0200] [Job 892] Saw EOF!
D [23/Jul/2004:22:47:21 +0200] [Job 892] Found: %%EndProlog
D [23/Jul/2004:22:47:21 +0200] [Job 892]
D [23/Jul/2004:22:47:21 +0200] [Job 892] -----------
D [23/Jul/2004:22:47:21 +0200] [Job 892] Found: %%BeginSetup
D [23/Jul/2004:22:47:21 +0200] [Job 892] Inserting PostScript code for CUPS' page accounting
D [23/Jul/2004:22:47:21 +0200] [Job 892] Found: %%BeginFeature: *PrintoutMode Draft
D [23/Jul/2004:22:47:21 +0200] [Job 892] Option: PrintoutMode=Draft --> Setting option
D [23/Jul/2004:22:47:21 +0200] [Job 892] Found: %% FoomaticRIPOptionSetting: PrintoutMode=Draft
D [23/Jul/2004:22:47:21 +0200] [Job 892] Option: PrintoutMode=Draft --> Setting option
D [23/Jul/2004:22:47:21 +0200] [Job 892] Found: %%BeginFeature: *REt Medium
D [23/Jul/2004:22:47:21 +0200] [Job 892] Option: REt=Medium --> Setting option
D [23/Jul/2004:22:47:21 +0200] [Job 892] Found: %% FoomaticRIPOptionSetting: REt=Medium
D [23/Jul/2004:22:47:21 +0200] [Job 892] Option: REt=Medium --> Setting option
D [23/Jul/2004:22:47:21 +0200] [Job 892] Found: %%BeginFeature: *TonerDensity 5
D [23/Jul/2004:22:47:21 +0200] [Job 892] Option: TonerDensity=5 --> Setting option
D [23/Jul/2004:22:47:21 +0200] [Job 892] Found: %% FoomaticRIPOptionSetting: TonerDensity=5
D [23/Jul/2004:22:47:21 +0200] [Job 892] Option: TonerDensity=5 --> Setting option
D [23/Jul/2004:22:47:21 +0200] [Job 892] Found: %%BeginFeature: *InputSlot Default
D [23/Jul/2004:22:47:21 +0200] [Job 892] Option: InputSlot=Default --> Setting option
D [23/Jul/2004:22:47:21 +0200] [Job 892] Found: %% FoomaticRIPOptionSetting: InputSlot=Default
D [23/Jul/2004:22:47:21 +0200] [Job 892] Option: InputSlot=Default --> Setting option
D [23/Jul/2004:22:47:21 +0200] [Job 892] Found: %%BeginFeature: *Copies 1
D [23/Jul/2004:22:47:21 +0200] [Job 892] Option: Copies=1 --> Setting option
D [23/Jul/2004:22:47:21 +0200] [Job 892] Found: %% FoomaticRIPOptionSetting: Copies=1
D [23/Jul/2004:22:47:21 +0200] [Job 892] Option: Copies=1 --> Setting option
D [23/Jul/2004:22:47:21 +0200] [Job 892] Found: %%BeginFeature: *Economode On
D [23/Jul/2004:22:47:21 +0200] [Job 892] Option: Economode=On --> Setting option
D [23/Jul/2004:22:47:21 +0200] [Job 892] Found: %% FoomaticRIPOptionSetting: Economode=On
D [23/Jul/2004:22:47:21 +0200] [Job 892] Option: Economode=On --> Setting option
D [23/Jul/2004:22:47:21 +0200] [Job 892] Found: %%BeginFeature: *MPTray First
D [23/Jul/2004:22:47:21 +0200] [Job 892] Option: MPTray=First --> Setting option
D [23/Jul/2004:22:47:21 +0200] [Job 892] Found: %% FoomaticRIPOptionSetting: MPTray=First
D [23/Jul/2004:22:47:21 +0200] [Job 892] Option: MPTray=First --> Setting option
D [23/Jul/2004:22:47:21 +0200] [Job 892] Found: %%BeginFeature: *Quality FromPrintoutMod
D [23/Jul/2004:22:47:21 +0200] [Job 892] Option: Quality=FromPrintoutMode --> Setting option
D [23/Jul/2004:22:47:21 +0200] [Job 892] Found: %%BeginFeature: *PageRegion A4
D [23/Jul/2004:22:47:21 +0200] [Job 892] Option: PageRegion=A4 --> Option will be set by PostScript interpreter
D [23/Jul/2004:22:47:21 +0200] [Job 892] Found: %% FoomaticRIPOptionSetting: PageSize=A4
D [23/Jul/2004:22:47:21 +0200] [Job 892] Option: PageSize=A4 --> Setting option
D [23/Jul/2004:22:47:21 +0200] [Job 892] Found: %%BeginFeature: *Duplex None
D [23/Jul/2004:22:47:21 +0200] [Job 892] Option: Duplex=None --> Setting option
D [23/Jul/2004:22:47:21 +0200] [Job 892] Found: %% FoomaticRIPOptionSetting: Duplex=None
D [23/Jul/2004:22:47:21 +0200] [Job 892] Option: Duplex=None --> Setting option
D [23/Jul/2004:22:47:21 +0200] [Job 892] Found: %%EndSetup
D [23/Jul/2004:22:47:21 +0200] [Job 892]
D [23/Jul/2004:22:47:21 +0200] [Job 892] -----------
D [23/Jul/2004:22:47:21 +0200] [Job 892] New page:  1 1
D [23/Jul/2004:22:47:21 +0200] [Job 892] Inserting option code into "PageSetup" section.
D [23/Jul/2004:22:47:21 +0200] [Job 892] No page header or page header not DSC-conforming
D [23/Jul/2004:22:47:21 +0200] [Job 892] Stopping search for page header options
D [23/Jul/2004:22:47:21 +0200] [Job 892] Found:
D [23/Jul/2004:22:47:21 +0200] [Job 892] pageHeight sub                 % Move down...
D [23/Jul/2004:22:47:21 +0200] [Job 892] --> Output goes directly to the renderer now.
D [23/Jul/2004:22:47:21 +0200] [Job 892]
D [23/Jul/2004:22:47:21 +0200] [Job 892]
D [23/Jul/2004:22:47:21 +0200] [Job 892] Starting renderer
D [23/Jul/2004:22:47:21 +0200] [Job 892] renderer PID kid4=19129
D [23/Jul/2004:22:47:21 +0200] [Job 892] renderer command: gs -q -dBATCH -dPARANOIDSAFER -dQUIET -dNOPAUSE -sDEVICE=ijs -sIjsServer=hpijs -sDeviceManufacturer="HEWLETT-PACKARD" -sDeviceModel="HP LaserJet" -dDEVICEWIDTHPOINTS=595 -dDEVICEHEIGHTPOINTS=842 -dDuplex=false -r300 -sIjsParams=Quality:Quality=1,Quality:ColorMode=0,Quality:MediaType=0,Quality:PenSet=0,PS:MediaPosition=7 -dIjsUseOutputFD -sOutputFile=- -
D [23/Jul/2004:22:47:21 +0200] [Job 892] JCL: 2345X@PJL
D [23/Jul/2004:22:47:21 +0200] [Job 892] @PJL SET MANUALFEED=OFF
D [23/Jul/2004:22:47:21 +0200] [Job 892] @PJL SET ECONOMODE=ON
D [23/Jul/2004:22:47:21 +0200] [Job 892] @PJL SET COPIES=1
D [23/Jul/2004:22:47:21 +0200] [Job 892] @PJL SET RET=MEDIUM
D [23/Jul/2004:22:47:21 +0200] [Job 892] @PJL SET DENSITY=5
D [23/Jul/2004:22:47:21 +0200] [Job 892] @PJL SET MPTRAY=FIRST
D [23/Jul/2004:22:47:21 +0200] [Job 892] <job data>
D [23/Jul/2004:22:47:21 +0200] [Job 892] 2345X@PJL RESET
D [23/Jul/2004:22:47:21 +0200] [Job 892]
D [23/Jul/2004:22:47:21 +0200] [Job 892] perl: warning: Setting locale failed.
D [23/Jul/2004:22:47:21 +0200] [Job 892] perl: warning: Please check that your locale settings:
D [23/Jul/2004:22:47:21 +0200] [Job 892] LANGUAGE = (unset),
D [23/Jul/2004:22:47:21 +0200] [Job 892] LC_ALL = (unset),
D [23/Jul/2004:22:47:21 +0200] [Job 892] LANG = "de"
D [23/Jul/2004:22:47:21 +0200] [Job 892] are supported and installed on your system.
D [23/Jul/2004:22:47:21 +0200] [Job 892] perl: warning: Falling back to the standard locale ("C").
D [23/Jul/2004:22:47:21 +0200] [Job 892] foomatic-gswrapper: gs '-dBATCH' '-dPARANOIDSAFER' '-dQUIET' '-dNOPAUSE' '-sDEVICE=ijs' '-sIjsServer=hpijs' '-sDeviceManufacturer=HEWLETT-PACKARD' '-sDeviceModel=HP LaserJet' '-dDEVICEWIDTHPOINTS=595' '-dDEVICEHEIGHTPOINTS=842' '-dDuplex=false' '-r300' '-sIjsParams=Quality:Quality=1,Quality:ColorMode=0,Quality:MediaType=0,Quality:PenSet=0,PS:MediaPosition=7' '-dIjsUseOutputFD' '-sOutputFile=| cat >&3' '/dev/fd/0' 3>&1 1>&2
D [23/Jul/2004:22:47:24 +0200] [Job 892] sh: line 1: hpijs: command not found
D [23/Jul/2004:22:47:24 +0200] [Job 892] GNU Ghostscript 7.07: Can't start ijs server "hpijs"
D [23/Jul/2004:22:47:24 +0200] [Job 892] **** Unable to open the initial device, quitting.
D [23/Jul/2004:22:47:24 +0200] [Job 892] renderer return value: 1
D [23/Jul/2004:22:47:24 +0200] [Job 892] renderer received signal: 1
D [23/Jul/2004:22:47:24 +0200] [Job 892]
D [23/Jul/2004:22:47:24 +0200] [Job 892] Closing renderer
D [23/Jul/2004:22:47:24 +0200] [Job 892] tail process done writing data to STDOUT
D [23/Jul/2004:22:47:24 +0200] [Job 892] KID4 finished
D [23/Jul/2004:22:47:24 +0200] [Job 892] Process dying with "Possible error on renderer command line or PostScript error. Check options.", exit stat: 3  
D [23/Jul/2004:22:47:24 +0200] [Job 892] Possible error on renderer command line or PostScript error. Check options.
D [23/Jul/2004:22:47:24 +0200] [Job 892] KID4 exited with status 0
D [23/Jul/2004:22:47:24 +0200] [Job 892] KID3 exited with status 3
D [23/Jul/2004:22:47:24 +0200] [Job 892] Renderer exit stat: 3
D [23/Jul/2004:22:47:24 +0200] [Job 892] Renderer process finished
D [23/Jul/2004:22:47:24 +0200] [Job 892] Killing process 19128 (KID3)
D [23/Jul/2004:22:47:24 +0200] [Job 892] Process dying with "Error closing renderer", exit stat: 3
D [23/Jul/2004:22:47:24 +0200] [Job 892] Error closing renderer
E [23/Jul/2004:22:47:24 +0200] PID 19125 stopped with status 3!
D [23/Jul/2004:22:47:24 +0200] UpdateJob: job 892, file 0 is complete.
D [23/Jul/2004:22:47:24 +0200] CancelJob: id = 892
D [23/Jul/2004:22:47:24 +0200] StopJob: id = 892, force = 0
D [23/Jul/2004:22:47:24 +0200] StopJob: printer state is 3
[...]

(next) possible error cause

D [23/Jul/2004:22:47:21 +0200] [Job 892] foomatic-gswrapper: gs '-dBATCH' '-dPARANOIDSAFER' '-dQUIET' '-dNOPAUSE' '-sDEVICE=ijs' '-sIjsServer=hpijs' '-sDeviceManufacturer=HEWLETT-PACKARD' '-sDeviceModel=HP LaserJet' '-dDEVICEWIDTHPOINTS=595' '-dDEVICEHEIGHTPOINTS=842' '-dDuplex=false' '-r300' '-sIjsParams=Quality:Quality=1,Quality:ColorMode=0,Quality:MediaType=0,Quality:PenSet=0,PS:MediaPosition=7' '-dIjsUseOutputFD' '-sOutputFile=| cat >&3' '/dev/fd/0' 3>&1 1>&2
D [23/Jul/2004:22:47:24 +0200] [Job 892] sh: line 1: hpijs: command not found
D [23/Jul/2004:22:47:24 +0200] [Job 892] GNU Ghostscript 7.07: Can't start ijs server "hpijs"
D [23/Jul/2004:22:47:24 +0200] [Job 892] **** Unable to open the initial device, quitting.
D [23/Jul/2004:22:47:24 +0200] [Job 892] renderer return value: 1
D [23/Jul/2004:22:47:24 +0200] [Job 892] renderer received signal: 1

(IMHO) there are two possibilities:
1) "hpijs" is a missing tool
2) "hpijs" is interpreted as a tool because of failure in command line parameters

Checking variant 1):

lisa:/var/log/cups# apt-file search hpijs

apsfilter: usr/share/apsfilter/driver/hpijs/AP21xx
apsfilter: usr/share/apsfilter/driver/hpijs/DJ350
apsfilter: usr/share/apsfilter/driver/hpijs/DJ6xxP
apsfilter: usr/share/apsfilter/driver/hpijs/DJ8xx
apsfilter: usr/share/apsfilter/driver/hpijs/DJ9xx
apsfilter: usr/share/apsfilter/driver/hpijs/DJ9xxVIP
apsfilter: usr/share/apsfilter/setup/printer-hpijs
foomatic-db-hpijs: usr/share/doc/foomatic-db-hpijs/README
foomatic-db-hpijs: usr/share/doc/foomatic-db-hpijs/README.Debian
foomatic-db-hpijs: usr/share/doc/foomatic-db-hpijs/TODO
foomatic-db-hpijs: usr/share/doc/foomatic-db-hpijs/USAGE.gz
foomatic-db-hpijs: usr/share/doc/foomatic-db-hpijs/changelog.Debian.gz
foomatic-db-hpijs: usr/share/doc/foomatic-db-hpijs/changelog.gz
foomatic-db-hpijs: usr/share/doc/foomatic-db-hpijs/copyright
foomatic-db-hpijs: usr/share/foomatic/db/source/driver/hpijs-rss.xml
foomatic-db-hpijs: usr/share/foomatic/db/source/driver/hpijs.xml
foomatic-db-hpijs: usr/share/foomatic/db/source/opt/hpijs-Duplex.xml
foomatic-db-hpijs: usr/share/foomatic/db/source/opt/hpijs-InputSlot.xml
foomatic-db-hpijs: usr/share/foomatic/db/source/opt/hpijs-Model.xml
foomatic-db-hpijs: usr/share/foomatic/db/source/opt/hpijs-PageSize.xml
foomatic-db-hpijs: usr/share/foomatic/db/source/opt/hpijs-PrintoutMode.xml
foomatic-db-hpijs: usr/share/foomatic/db/source/opt/hpijs-Quality.xml
[...]
foomatic-filters-ppds: usr/share/ppd/HP/HP-LaserJet_4200-hpijs.ppd.gz
foomatic-filters-ppds: usr/share/ppd/HP/HP-LaserJet_4300-hpijs.ppd.gz
foomatic-filters-ppds: usr/share/ppd/HP/HP-LaserJet_4L-hpijs.ppd.gz
foomatic-filters-ppds: usr/share/ppd/HP/HP-LaserJet_4M-hpijs.ppd.gz
foomatic-filters-ppds: usr/share/ppd/HP/HP-LaserJet_4ML-hpijs.ppd.gz
foomatic-filters-ppds: usr/share/ppd/HP/HP-LaserJet_4P-hpijs.ppd.gz
foomatic-filters-ppds: usr/share/ppd/HP/HP-LaserJet_4Si-hpijs.ppd.gz
foomatic-filters-ppds: usr/share/ppd/HP/HP-LaserJet_4V-hpijs.ppd.gz
foomatic-filters-ppds: usr/share/ppd/HP/HP-LaserJet_4V_4LJ_Pro-hpijs.ppd.gz
foomatic-filters-ppds: usr/share/ppd/HP/HP-LaserJet_4_Plus-hpijs.ppd.gz
foomatic-filters-ppds: usr/share/ppd/HP/HP-LaserJet_5-hpijs.ppd.gz
foomatic-filters-ppds: usr/share/ppd/HP/HP-LaserJet_5000-hpijs.ppd.gz
foomatic-filters-ppds: usr/share/ppd/HP/HP-LaserJet_5100-hpijs.ppd.gz
foomatic-filters-ppds: usr/share/ppd/HP/HP-LaserJet_5L-hpijs.ppd.gz
foomatic-filters-ppds: usr/share/ppd/HP/HP-LaserJet_5M-hpijs.ppd.gz
foomatic-filters-ppds: usr/share/ppd/HP/HP-LaserJet_5MP-hpijs.ppd.gz
foomatic-filters-ppds: usr/share/ppd/HP/HP-LaserJet_5P-hpijs.ppd.gz
foomatic-filters-ppds: usr/share/ppd/HP/HP-LaserJet_5Si-hpijs.ppd.gz
foomatic-filters-ppds: usr/share/ppd/HP/HP-LaserJet_6-hpijs.ppd.gz
foomatic-filters-ppds: usr/share/ppd/HP/HP-LaserJet_6L-hpijs.ppd.gz
foomatic-filters-ppds: usr/share/ppd/HP/HP-LaserJet_6MP-hpijs.ppd.gz
[...]
foomatic-filters-ppds: usr/share/ppd/Xerox/Xerox-DocuPrint_4508-hpijs.ppd.gz
foomatic-filters-ppds: usr/share/ppd/Xerox/Xerox-DocuPrint_C20-hpijs.ppd.gz
foomatic-filters-ppds: usr/share/ppd/Xerox/Xerox-DocuPrint_N4512-hpijs.ppd.gz
foomatic-filters-ppds: usr/share/ppd/Xerox/Xerox-DocuPrint_N4512PS-hpijs.ppd.gz
foomatic-filters-ppds: usr/share/ppd/Xerox/Xerox-DocuPrint_P1202-hpijs.ppd.gz
foomatic-filters-ppds: usr/share/ppd/Xerox/Xerox-DocuPrint_P8e-hpijs.ppd.gz
foomatic-filters-ppds: usr/share/ppd/Xerox/Xerox-Document_Centre_400-hpijs.ppd.gz
hpijs: usr/bin/hpijs
hpijs: usr/share/doc/hpijs/changelog.Debian.gz
hpijs: usr/share/doc/hpijs/copyright
hpijs: usr/share/doc/hpijs/gs_hpijs.png
hpijs: usr/share/doc/hpijs/hpijs_readme.html
lisa:/var/log/cups# 

-> hpijs is a tool that might be missing:

lisa:/var/log/cups# apt-get install hpijs
Reading Package Lists... Done
Building Dependency Tree... Done
The following extra packages will be installed:
  libstdc++5
Suggested packages:
  hpoj
The following NEW packages will be installed:
  hpijs
The following packages will be upgraded:
  libstdc++5
1 upgraded, 1 newly installed, 0 to remove and 962 not upgraded.
Need to get 464kB of archives.
After unpacking 598kB of additional disk space will be used.
Do you want to continue? [Y/n] 

Aaaargh! Fu****** CUPS only works with some tools that aren't
installed, when CUPS is installed! Dependencies! I demand dependencies!

OK, I _might_ have noticed it right from the start at this point:

http://www.linuxprinting.org/show_printer.cgi?recnum=HP-LaserJet_5L

"Recommended driver: hpijs (Home page, view PPD, download PPD)"

BUT: I did not know, that a new PPD (the laserjet _is_ already
working!) requires some new tools too.

The printer prints out the testpage! (Problem solved)

Still some problems:

When printing a PDF as user, after confirming "print" in the
printing dialog, a popup-windows informs of invalid icon paths:

kdecore (KIconLoader): WARNING: Icon directory /usr/share/icons/hicolor/ group 16x16/stock/chart not valid.
kdecore (KIconLoader): WARNING: Icon directory /usr/share/icons/hicolor/ group 16x16/stock/code not valid.
kdecore (KIconLoader): WARNING: Icon directory /usr/share/icons/hicolor/ group 16x16/stock/data not valid.
kdecore (KIconLoader): WARNING: Icon directory /usr/share/icons/hicolor/ group 16x16/stock/form not valid.
kdecore (KIconLoader): WARNING: Icon directory /usr/share/icons/hicolor/ group 16x16/stock/image not valid.
kdecore (KIconLoader): WARNING: Icon directory /usr/share/icons/hicolor/ group 16x16/stock/io not valid.
kdecore (KIconLoader): WARNING: Icon directory /usr/share/icons/hicolor/ group 16x16/stock/media not valid.
kdecore (KIconLoader): WARNING: Icon directory /usr/share/icons/hicolor/ group 16x16/stock/navigation not valid.
kdecore (KIconLoader): WARNING: Icon directory /usr/share/icons/hicolor/ group 16x16/stock/net not valid.
kdecore (KIconLoader): WARNING: Icon directory /usr/share/icons/hicolor/ group[...]

Then the job "hpijs" and "parallel" occupies the CPU for about 20-30 seconds
and after a while, the printer blinks on error.

When touching the button on the printer, the page will be printed but
first half of the page looks like some badly lineprinter output (one
of the very old days) and the second half is OK except the last 5mm
are printed on a seperate page.

So it's working more slowly than before and the page is corrupt.

I hate CUPS.
comment this entry
go to top of page

mutt/muttrc: Emailadresse im Reply auf die alte To setzen

not solved yet

http://home.nyc.rr.com/computertaijutsu/mutt.html

There is another solution that will work better for individual emails rather than mailing lists. Say john sends some emails as john@isp.com and others as john@isp1.com Most of them are from isp.com but on occasion, he wants to use the isp1.com address. When he gets a response, he wants to respond with the same isp1.address to which the email was sent. 

He will add the following to his .muttrc

set reverse_name=yes
set alternates="john@isp1.com"

Now, if he receives an email addressed to john@isp1.com when he replies to it the From: portion of his header will read john@isp1.com rather than john@isp.com. If you have multiple addresses to use, they can separated by pipes such as 

set alternates="john@isp1.com|john@isp2.com" 

(I find that this only works if I write it as above, with no white space between word and pipe)

As of mutt-1.5.6 alternates syntax has changed. Now, rather than the above it is 

alternates "john@isp1.com|john@isp2.com"	

In other words, remove the word "set" and remove the = sign.

muttrc/general

set alternates=(\
(karl.voit|voit.karl|vk_news)@gmx.at|\
(latex|webcontact|shellscript|alphaIR|seti|news|mail|post|feedback|heiseforum|maredo|hooters|firmenkontakt|bewerbung|properties|p$
(root|postmaster|vk)@(tbox|lisa|voit)|\
)
set reverse_name=yes

... macht zB From==To==news@Karl-Voit.at (!)

Muss (gewachsene) Konfigurationsdateien von 0 auf neu machen... -> eigener Punkt
comment this entry
go to top of page

FireWire-Platten und USB-Stick per Hotplug einbinden

not solved yet
Script: statt rescan-scsi.sh nur einzelne (noch nicht eingebundene) Medien per addsinglescsidevice.sh suchen
============================================================================================================

per cdrecord & egrep die aktuellen Geraete finden

maggie:~# cdrecord -scanbus 2>&1|egrep -v '\) \*$'|egrep "[0-9],[0-9],[0-9].*\)"
        0,0,0     0) 'TOSHIBA ' 'DVD-ROM SD-R2002' '1C30' Removable CD-ROM
        1,0,0   100) 'SAMSUNG ' 'SP1614N         ' '    ' Disk
maggie:~#

Problem: Worueber durchiterieren?

[0-9],[0-9],[0-9] -> 1000 Moeglichkeiten


devlabel
========
siehe eigener Punkt (Kompilationsprobleme)


autofs
======
rescan_scsi_bus.sh weiterhin notwendig, damit Device erkannt wird


hotplug
=======
Kann sein, dass hotplug Loesung bietet

-> hotplug-Scripts in /etc ansehen

hotplug auf maggie erst einmal installieren

http://www.wlug.org.nz/HotPlug

lsusb

maggie:/etc/hotplug/usb# lsusb
Bus 002 Device 001: ID 0000:0000  
Bus 001 Device 001: ID 0000:0000  
Bus 001 Device 008: ID 0ea0:2168 Ours Technology, Inc. Transcend JetFlash 2.0
maggie:/etc/hotplug/usb# 

/etc/hotplug/usb/usb-storage.usermap:

usbstick         0x0003 0x0ea0 0x2168 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0

/etc/hotplug/usb/usbstick

#!/bin/bash
##  ACTION {add, remove}
##  DEVICE {name of the usbdevfs device... for example /proc/bus/usb/001/003}
##  DEVFS
##  PRODUCT
##  INTERFACE
##  TYPE
/usr/local/bin/say "an u s b stick was found on $DEVICE" &
mountusbstick
#end

-> USB-Sticks werden automatisch gemountet

CD-ROMs ebenfalls?

Scheint nicht so (bis auf autofs).

FireWire:
=========

$LABEL="IEEE1394 product 0x000000/0x00609e/0x010483"
(aka LABEL="IEEE1394 product 0x$VENDOR_ID/0x$SPECIFIER_ID/0x$VERSION")

mkdir /etc/hotplug/ieee1394

!!!!!!!!!!!!! AUSFUEHRBAR MACHEN! !!!!!!!!!!!!!!!!!!!!

/etc/hotplug/ieee1394/sbp2

#!/bin/bash

[ ${ACTION} = remove ] && exit

## maggie:/etc/hotplug/ieee1394# cat /root/tmp.txt
## ACTION=add
## VENDOR_ID=000000
## GUID=0001d20000214b21
## SPECIFIER_ID=00609e
## VERSION=010483

/usr/local/bin/say "a new firewire device was found" &

tmpfile=/root/tmp.txt

echo "ACTION=$ACTION" >$tmpfile
echo "VENDOR_ID=$VENDOR_ID" >>$tmpfile
echo "GUID=$GUID" >>$tmpfile
echo "SPECIFIER_ID=$SPECIFIER_ID" >>$tmpfile
echo "VERSION=$VERSION" >>$tmpfile

#end

Letztversion (vor erstem Loeschen) maggie:/etc/hotplug/ieee1394# cat sbp2

#!/bin/bash

## maggie:/etc/hotplug/ieee1394# cat /root/tmp.txt
## ACTION=add
## VENDOR_ID=000000
## GUID=0001d20000214b21
## SPECIFIER_ID=00609e
## VERSION=010483

handle_add()
{
    /usr/local/bin/say "a new firewire device was found" 
    /root/attachfw.sh ignoremodules
    /usr/local/bin/say "trying to mount the data partition" 
    /bin/mount /data
    /usr/local/bin/say "mounting data partition is done" 
}

handle_remove()
{
    echo "do nothing" >/dev/null
}

[ "x${ACTION}" = "xadd" -a "x${SPECIFIER_ID}" = "x00609e" ] && handle_add
[ "x${ACTION}" = "xremove" ] && handle_remove



-> Wird bei jedem FireWire an- & ausstecken aufgerufen
-> Leider keine Info, welches Device das nun ist :-(


http://www.csb.yale.edu/userguides/sysresource/disks/firewire.txt

Hotplugging and using IEEE 1394 (firewire) disks on Linux
September 16, 2002

Hardware:
Dell Optiplex
Maxtor 1394 PCI Adapter Card (PN K01PC1394A) ($40) or 
SIIG  1394 3-Port PCI i/e (PN NN-440012) -- ($48)
(same results with each)
Maxtor IEEE 1394 disk drive (previously formatted with EXT2 filesystem)
[Note: also works on emperor where it appears as /dev/sda1].

Software:
RedHat Linux 7.3
Kernel 2.4.18-3
hotplug-2002_04_01-3
hotplug resources:
http://linux-hotplug.sourceforge.net/

Overview:
From "man hotplug(8)"
/proc/sys/kernel/hotplug  -- specifies hotplug program path
/sbin/hotplug -- hotplug program (default path name)
/etc/hotplug/* -- hotplug files
/etc/hotplug/NAME.agent -- hotplug system-specific agents
X /etc/hotplug/NAME* -- subsystem-specific files, for agents
X /etc/hotplug/NAME/* -- driver setup scripts, invoked by agents
X /etc/init.d/hotplug -- hotplug system service script

The above files marked X do not exist, or do not exist for ieee1394.

/proc/sys/kernel/hotplug contains the name of the program to invoke
when something is hotplugged. This contains "/sbin/hotplug".

/sbin/hotplug is a BASH script. When an IEEE1394 device is plugged/
unplugged, this script invokes /etc/hotplug/ieee1394.agent.

/etc/hotplug/ contains hotplug modules for USB, PCI, ieee1394, etc.

/etc/hotplug/ieee1394.agent is a BASH script. It is invoked with
parameters describing the action to take, and vendor ID and other 
particulars of the device involved.  When a disk is connected, it
is invoked with action "add". When the disk is disconnected, it is
invoked with action "remove". (for testing purposes, I added a line
to ieee1394.agent so that it logs the action each time it is called.

The following modules are used to access the disk. Noted in the 
order they are loaded.
ieee1394
ohci1394
sbp2(?)

Connecting and recognizing the disk.

After system fresh system reboot, kernel doesn't know anything
about ieee1394 disks -- whether or not any devices are connected.
If drive is not connected:

#modprobe -v ohci1394
This loads both ieee1394 and ohci1394. /var/log/messages shows:
kernel: ohci1394: $Revision: 1.80 $ Ben Collins <bcollins@debian.org>
kernel: ohci1394_0: OHCI-1394 1.0 (PCI): IRQ=[9]  MMIO=[fafff000-fb000000]  Max Packet=[2048]

Now, apply power to disk drive, then connect firewire data cable.
/var/log/messages shows (1st line is from my mod. to ieee1394.agent):
logger: ieee1394.agent: action is add
/etc/hotplug/ieee1394.agent: Setup sbp2 for IEEE1394 product 0x0010b9/0x00609e/0x010483
kernel: ieee1394: sbp2: Driver forced to serialize I/O (serialize_io = 1)
kernel: ieee1394: sbp2: Node 0:1023: Max speed [S400] - Max payload [2048]
kernel: scsi2 : IEEE-1394 SBP-2 protocol driver
kernel:   Vendor: Maxtor    Model: 1394 storage      Rev: v1.0
kernel:   Type:   Direct-Access      ANSI SCSI revision: 06
kernel: Attached scsi disk sdb at scsi2, channel 0, id 0, lun 0
kernel: SCSI device sdb: 120103200 512-byte hdwr sectors (61493 MB)
kernel:  sdb: sdb1

#cat /proc/scsi/scsi
   shows that the maxtor disk has been seen and is available 
(as /dev/sdb in this case).
...]

Hm. Aber bei mir wird die FW-Platte nicht automatisch auf ein SCSI-Geraet gemappt!

http://www.linux1394.org/sbp2.php
-> Erst ab 2.6 wird FireWire-Hotplug fein
-> at.linux: Probleme mit Oxford 911 Chioset und Kernel 2.6!

Neuer Versuch mit rescan-scsi-bus.sh statt attachfw.sh

* attachfw.sh hat Kernelmodule neu geladen -> gemountete Partitionen wurden entrissen
* rescan-scsi-bus.sh -r laesst gemountete Partitionen und Kernelmodule in Ruhe

Ergebnis:
Fast perfektes Plug&Play fuer FireWire-Platten (siehe unteres Script)

Was noch fehlt:
* Behandlung von den ebenfalls auf den Platten gefindlichen VFAT-Partitionen
* man muss vor dem Abstecken ein haendisches umount machen

/etc/hotplug/ieee1394/sbp2

#!/bin/bash

## known FireWire-devices:

## /data (LABEL=tv)
## VENDOR_ID=000000
## GUID=0001d20000214b21
## SPECIFIER_ID=00609e
## VERSION=010483

## /mnt/fw (LABEL=car)
## VENDOR_ID=000000
## GUID=0001a3500002949a
## SPECIFIER_ID=00609e
## VERSION=010483

DEBUG=off
LOGFILE=/root/hotplug.log


report()
{
    /usr/local/bin/say $*
    [ "x${DEBUG}" = "xon" ] && echo $* >>${LOGFILE}
}


debug()
{
    [ "x${DEBUG}" = "xon" ] && report "DEBUG: " $*
}


handle_printdevicelog()
{
    echo "========================================" >>${LOGFILE}
    echo `date`>>${LOGFILE}
    echo "ACTION=$ACTION" >>${LOGFILE}
    echo "VENDOR_ID=$VENDOR_ID" >>${LOGFILE}
    echo "GUID=$GUID" >>${LOGFILE}
    echo "SPECIFIER_ID=$SPECIFIER_ID" >>${LOGFILE}
    echo "VERSION=$VERSION" >>${LOGFILE}
}


handle_add()
{
    modprobe sbp2
    /root/rescan-scsi-bus.sh -r
    debug "a new firewire device was found"

    ## mount known partitions
    case ${GUID} in
	"0001d20000214b21") ## /data
            /bin/mount /data && debug "successfully mounted tv partition";;
	"0001a3500002949a") ## /mnt/fw
	    /bin/mount /mnt/fw && debug "successfully mounted car partition";;
    esac
}


handle_remove()
{

    handle_not_unmounted_partition()
    {
	#par1: partition name
	#par2: mountpoint

	handle_could_umount()
	{
	    report "successfully unmounted partition ${1}."
	    /root/rescan-scsi-bus.sh -r
	}

	report "caution, you forgot to unmount the $1 partition. I will try to unmount it."
	umount ${2} && handle_could_umount
    }

    echo "do nothing" >/dev/null

    ## check, if user has forgot to umount a partition and do rescan-scsi-bus.sh if not
    case ${GUID} in
	"0001d20000214b21") ## /data
            if [ ! -z "`mount|grep "on \/data type ext3"`" ]; then
		handle_not_unmounted_partition tv "/data";
	    else
		debug "the tv partition partition was plugged out";
		/root/rescan-scsi-bus.sh -r;
	    fi;;
	"0001a3500002949a") ## /mnt/fw
            if [ ! -z "`mount|grep "on \/mnt\/fw type ext3"`" ]; then
		handle_not_unmounted_partition car "/mnt/fw";
	    else
		debug "the car partition partition was plugged out";
		/root/rescan-scsi-bus.sh -r;
	    fi;;
	*) report "an unknown firewire device was plugged out";
	/root/rescan-scsi-bus.sh -r;;
    esac
}


[ "x${DEBUG}" = "xon" ] && handle_printdevicelog
[ "x${ACTION}" = "xadd" ] && handle_add
[ "x${ACTION}" = "xremove" ] && handle_remove

#end

Notizen
=======

Netzwerkkonfiguration mit mappings in /etc/network/interfaces

http://www.debian.org/doc/manuals/reference/ch-gateway.en.html
comment this entry
go to top of page

inst: HA-prosper

not solved yet
~/src/latex/linked/haprosper/Doc/test

pdflatex HAPIntroduction.tex:

[...]
Non-PDF special ignored!
Non-PDF special ignored!
Non-PDF special ignored!
Non-PDF special ignored!]

! LaTeX Error: Unknown graphics extension: .ps.

See the LaTeX manual or LaTeX Companion for explanation.
Type  H <return>  for immediate help.
 ...

l.45 \tsectionandpart{Introduction}

? 

Update vpn prosper

lisa:/usr/share/texmf/tex/latex# apt-get -su install prosper
Reading Package Lists... Done
Building Dependency Tree... Done
The following packages will be upgraded:
  prosper
1 upgraded, 0 newly installed, 0 to remove and 687 not upgraded.
Inst prosper [1.00.4+cvs.2003.07.27-2] (1.00.4+cvs.2004.03.29-2 Debian:unstable)
Conf prosper (1.00.4+cvs.2004.03.29-2 Debian:unstable)
lisa:/usr/share/texmf/tex/latex# apt-get install prosper
Reading Package Lists... Done
Building Dependency Tree... Done
The following packages will be upgraded:
  prosper
1 upgraded, 0 newly installed, 0 to remove and 687 not upgraded.
Need to get 448kB of archives.
After unpacking 41.0kB of additional disk space will be used.
Get:1 http://ftp.tu-graz.ac.at unstable/main prosper 1.00.4+cvs.2004.03.29-2 [448kB]
Fetched 448kB in 0s (601kB/s)   
(Reading database ... 163218 files and directories currently installed.)
Preparing to replace prosper 1.00.4+cvs.2003.07.27-2 (using .../prosper_1.00.4+cvs.2004.03.29-2_all.deb) ...
Unpacking replacement prosper ...
Setting up prosper (1.00.4+cvs.2004.03.29-2) ...
mktexlsr: Updating /usr/local/lib/texmf/ls-R... 
mktexlsr: Updating /var/lib/texmf/ls-R... 
mktexlsr: Updating /var/cache/fonts/ls-R... 
mktexlsr: Done.

lisa:/usr/share/texmf/tex/latex#

Noch immer die selbe Fehlermeldung :-(

prosper.cls soll lt. PDF-Doku v1.24 sein. Bei mir ist sie aber v 1.25 2003/02/21.

---------------------------------------------------------------------------------
20040621: ~vk/tmp/2del/20040622_haprosper_Tests

http://makeashorterlink.com/?X31261E98

-> PS-Grafiken fuer Bulletpoints u.ae. werden per pdflatex nicht als PDF gefunden!

lisa:~# locate red-bullet-on-white.ps
/usr/share/texmf/tex/latex/prosper/red-bullet-on-white.ps
lisa:~# 

-> dort alle *.ps in PDF umwandeln (per ps2pdf)

for i in *.ps; do ps2pdf $i ; done

-> noch IMMER diese Fehlermeldung bei pdflatex:

...
Non-PDF special ignored!
Non-PDF special ignored!
Non-PDF special ignored!
Non-PDF special ignored!
Non-PDF special ignored!] (./HAPIntroduction.toc)

! LaTeX Error: Unknown graphics extension: .ps.

See the LaTeX manual or LaTeX Companion for explanation.
Type  H <return>  for immediate help.
 ...                                              
                                                  
l.45 \tsectionandpart{Introduction}
                                   
? X
{/usr/share/texmf/dvips/psnfss/8r.enc}
Output written on HAPIntroduction.pdf (1 page, 3349 bytes).
Transcript written on HAPIntroduction.log.
vk@lisa:~/tmp/2del/20040622_haprosper_Tests$

-> im HA-Prosper-Verzeichnis nach PS-Dateien suchen und in PDF umwandeln

lisa:/usr/share/texmf/tex/latex/haprosper/Styles# l
total 28
drwxr-xr-x    2 vk       users        4096 May 14 01:47 Aggie
drwxr-xr-x    2 vk       users        4096 May 14 01:47 Fyma
drwxr-xr-x    2 vk       users        4096 May 14 01:47 HA
drwxr-xr-x    2 vk       users        4096 May 14 01:47 Lakar
drwxr-xr-x    2 vk       users        4096 May 14 01:47 Simple
drwxr-xr-x    2 vk       users        4096 May 14 01:47 TCS
drwxr-xr-x    2 vk       users        4096 May 14 01:47 Tycja
lisa:/usr/share/texmf/tex/latex/haprosper/Styles# l HA
total 16
-rw-r--r--    1 vk       users        7217 May 14 01:47 HAPHA.sty
-rw-r--r--    1 vk       users        5758 May 14 01:47 flower.ps
lisa:/usr/share/texmf/tex/latex/haprosper/Styles# find . -name "*.ps"
./HA/flower.ps
./TCS/TCSlogo.ps
lisa:/usr/share/texmf/tex/latex/haprosper/Styles# cd HA/
lisa:/usr/share/texmf/tex/latex/haprosper/Styles/HA# ps2pdf flower.ps 
lisa:/usr/share/texmf/tex/latex/haprosper/Styles/HA# cd ../TCS/
lisa:/usr/share/texmf/tex/latex/haprosper/Styles/TCS# ps2pdf TCSlogo.ps 
lisa:/usr/share/texmf/tex/latex/haprosper/Styles/TCS#

-> noch IMMER diese Fehlermeldung bei pdflatex

lisa:/usr/share/texmf/tex/latex/haprosper/Styles/HA# grep flower HAPHA.sty 
        {\includegraphics[scale=.14]{flower.ps}}%
        {\Acrobatmenu{\HAP@NSNav}{\includegraphics[scale=.14]{flower.ps}}}%
        {\includegraphics[scale=.14]{flower.ps}}%
        {\Acrobatmenu{\HAP@NSNav}{\includegraphics[scale=.14]{flower.ps}}}%
        {\includegraphics[scale=.14]{flower.ps}}%
        {\Acrobatmenu{\HAP@NSNav}{\includegraphics[scale=.14]{flower.ps}}}%
        {\includegraphics[scale=.14]{flower.ps}}%
        {\Acrobatmenu{\HAP@NSNav}{\includegraphics[scale=.14]{flower.ps}}}%
lisa:/usr/share/texmf/tex/latex/haprosper/Styles/HA#

-> ps-Extension beim benutzten HA-Style hardcoded (Idiot!)

Eigener Style mit ".ps" einfach weggelassen (und natuerlich PS auch in
PDF vorliegend) ist per pdflatex endlich kompilierbar:

~/src/latex/linked/haprosper/Run/Styles/VK/*

Aber leider ist das Ergebnis-PDF Hochformat und nach rechts verrueckt,
sodass man nur die halbe Navigationsleiste von HA-Prosper sieht.

-> Andere Styles ausprobieren:

Aggie: eps-Datei direkt eingebunden 
       -> die alte Fehlermeldung
Fyma: keine Grafikdatei im Style-Verzeichnis
      -> kompilierbar aber man sieht auf der Hochformatseite nichts

Aerger!

Offenbar ist HA-Prosper voll auf DVI->PS ausgerichtet und laesst pdflatex nicht zu :-(
comment this entry
go to top of page

Notizen zum texttools-Vortrag (vim)

not solved yet
Screen
Strg-" ... Fensterliste Luxus

vim
Y ... yank line (C-k)
p ... paste (C-y)
$ ... EOL (C-e)
0 ... BOL (C-a)
^ ... erstes non-whitespace-Zeichen
:set tw=50 ... set texxt width
gqap ... gq format .. ap paragraph (M-q)
map <c-j> gqip ... macro setzen
:set ai ... set auto indent
:set ft=html
u ... undo (C-_)
C-r ... redo
:set paste ... Einfuegen ohne Umformatierung
G .. EOT (M->)
:set nopaste ...
1G ... BOT (M-<)
Strg-o ... goto last place
C-i ... goto next place (if any)
:set incsearch ... inkrementelle Suche aktivieren
:set shiftwidth ... Einruecktiefe festlegen
>> ... Zeile um shiftwidth einruecken
:set list ... tab & whitespaces anzeigen
:set nolist
<< ... Zeile nach links ruecken
:set shiftwidth? ... Option abfragen
:set sw<TAB> ... Option vervollstaendigen lassen
:set sw<TAB>=<TAB> ... Option plus Wert vervollstaendigen lassen
:set listchars=tab:»·,trail:·,,eol:$ ... wie sollen list-Elemente usw visualisiert werden?
:set expandtab ... TAB -> SPC
:retab ... TABs neu machen

[...]

:w datei:.neu ... Kopie mit Anhaengsel ".neu" erstellen, Buffer bleibt bei "datei"
:ls ... List buffers
:b 1 .. wechsle zu Buffer Nr.1
:f path/file ... save file as
:w datei ... save as
:!ls -l % ... shell-Kommando ls aufrufen (%=aktueller Buffername)
:!<UP> ... letzter Befehl, der mit "!" begonnen hat
:new ... new buffer (Duplikat des aktuellen)
:r file ... insert file
C-w n ... C-w=Fensterbefehl, n=new
N C-^ ... wechseln zum Buffer N (bzw. bei N="". last one)
N C-6 ... gleich
C-w C-r ... unterster Buffer oben einfuegen (rotate)
hjkl ... left,dn,up,right
C-w h,l ... Wechsle zum oberen oder unteren Buffer
C-w s | :sp(lit) ... Buffer splitten
C-w c | :clo(se) ... Buffer schliessen (C-x k)
C-w v | :vs(plit) ... vertikal splitten
C-w q | :q(uit) ... Buffer schliessen
C-w o | :on(ly) ... alle Buffer bis auf den aktuellen schliessen
:help C-v C-w ... show help on windows-commands (C-v nur um C-w einzugeben)

vimdiff
:diffget ... Aenderungen in den Buffer uebernehmen
comment this entry
go to top of page

kitchensync kompilieren

not solved yet
v0.0.6 downladen
./configure --prefix='kde-config --prefix' --enable-debug

checking for Qt... configure: error: Qt (>= Qt 3.1 (20021021)) (headers and libraries) not found. Please check your installation!
For more details about this problem, look at the end of config.log.
vk@lisa:/data/src/x86/kitchensync-0.0.6$

-> kde-devel inst
-> noch immer die selbe Meldung
-> apt-get install libqt3-dev
-> weiterhin
-> apt-get install libqt3-mt-dev
comment this entry
go to top of page

unexakte Duplikate per unscharfer Suche finden (/data/music/downloaded)

not solved yet
comment this entry
go to top of page

externe FW-Platte (mobile disk): Input/output error

not solved yet

/var/log/kernel

[Platte funktioniert]
Apr 16 18:30:15 maggie kernel: ieee1394: Node changed: 0-01:1023 -> 0-00:1023
Apr 16 18:30:15 maggie kernel: ieee1394: sbp2: Reconnected to SBP-2 device
Apr 16 18:30:15 maggie kernel: ieee1394: sbp2: Node 0-00:1023: Max speed [S400] - Max payload [2048]
Apr 16 18:30:15 maggie kernel: ieee1394: Node changed: 0-02:1023 -> 0-01:1023
Apr 16 18:30:15 maggie kernel: ieee1394: Node removed: ID:BUS[0-00:1023]  GUID[0001a3500002949a]
Apr 16 18:30:16 maggie kernel: ieee1394: sbp2: Logged out of SBP-2 device
Apr 16 18:30:16 maggie kernel: or: dev 08:06, sector 155806336
Apr 16 18:30:16 maggie kernel: SCSI disk error : host 0 channel 0 id 0 lun 0 return code = 10000
Apr 16 18:30:16 maggie kernel:  I/O error: dev 08:06, sector 155806344
Apr 16 18:30:16 maggie kernel: SCSI disk error : host 0 channel 0 id 0 lun 0 return code = 10000
Apr 16 18:30:16 maggie kernel:  I/O error: dev 08:06, sector 155806352
Apr 16 18:30:16 maggie kernel: SCSI disk error : host 0 channel 0 id 0 lun 0 return code = 10000
Apr 16 18:30:16 maggie kernel:  I/O error: dev 08:06, sector 155806360
Apr 16 18:30:16 maggie kernel: SCSI disk error : host 0 channel 0 id 0 lun 0 return code = 10000
Apr 16 18:30:16 maggie kernel:  I/O error: dev 08:06, sector 155806368
Apr 16 18:30:16 maggie kernel: SCSI disk error : host 0 channel 0 id 0 lun 0 return code = 10000
Apr 16 18:30:16 maggie kernel:  I/O error: dev 08:06, sector 155806376
Apr 16 18:30:16 maggie kernel: SCSI disk error : host 0 channel 0 id 0 lun 0 return code = 10000
Apr 16 18:30:16 maggie kernel:  I/O error: dev 08:06, sector 155806384
Apr 16 18:30:16 maggie kernel: SCSI disk error : host 0 channel 0 id 0 lun 0 return code = 10000
Apr 16 18:30:16 maggie kernel:  I/O error: dev 08:06, sector 155806392
Apr 16 18:30:16 maggie kernel: SCSI disk error : host 0 channel 0 id 0 lun 0 return code = 10000
[...]
comment this entry
go to top of page

Bash-Script: X and ( Y or Z ) geht nicht

not solved yet
     ## check, if parameter 2 is a file [if (pdf|dvi|ps|viewpdf|viewdvi|viewps)]:
      if [ ! -f "$2" -a ( "$1" = "pdf" -o "$1" = "ps" ) ]; then

./do: line 407: syntax error near unexpected token `('
./do: line 407: ` if [ ! -f "$2" -a ( "$1" = "pdf" -o "$1" = "ps" ) ]; then'

aber:

man test

       ( EXPRESSION )
              EXPRESSION is true
comment this entry
go to top of page

Evolution inst (for sync with Zaurus)

not solved yet

lisa:~# apt-get -su install evolution

Reading Package Lists... Done
Building Dependency Tree... Done
The following extra packages will be installed:
  gtkhtml3.0 libasn1-6-heimdal libgnome-pilot2 libgssapi1-heimdal libgtkhtml3.0-2 libkrb-1-kerberos4kth libkrb5-17-heimdal
  libpisync0 libroken16-kerberos4kth libsoup2.0-0
Suggested packages:
  gnome-spell gnome-pilot
Recommended packages:
  gnome-pilot-conduits
The following NEW packages will be installed:
  evolution gtkhtml3.0 libasn1-6-heimdal libgnome-pilot2 libgssapi1-heimdal libgtkhtml3.0-2 libkrb-1-kerberos4kth
  libkrb5-17-heimdal libpisync0 libroken16-kerberos4kth libsoup2.0-0
0 upgraded, 11 newly installed, 0 to remove and 522 not upgraded.
Need to get 11.2MB of archives.
After unpacking 31.8MB of additional disk space will be used.

lisa:~# apt-get install -su gnome-pilot-conduits gnome-spell

Reading Package Lists... Done
Building Dependency Tree... Done
The following extra packages will be installed:
  gnome-pilot
The following NEW packages will be installed:
  gnome-pilot gnome-pilot-conduits gnome-spell
0 upgraded, 3 newly installed, 0 to remove and 522 not upgraded.
Need to get 709kB of archives.
After unpacking 3428kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://ftp.tu-graz.ac.at unstable/main gnome-spell 1.0.4-2 [50.2kB]
Get:2 http://ftp.tu-graz.ac.at unstable/main gnome-pilot 2.0.10-4 [435kB]
Get:3 http://ftp.tu-graz.ac.at unstable/main gnome-pilot-conduits 2.0.10-2 [224kB]
Fetched 709kB in 1s (670kB/s)
Selecting previously deselected package gnome-spell.
(Reading database ... 133150 files and directories currently installed.)
Unpacking gnome-spell (from .../gnome-spell_1.0.4-2_i386.deb) ...
Selecting previously deselected package gnome-pilot.
Unpacking gnome-pilot (from .../gnome-pilot_2.0.10-4_i386.deb) ...
dpkg: error processing /var/cache/apt/archives/gnome-pilot_2.0.10-4_i386.deb (--unpack):
 trying to overwrite `/usr/lib/gnome-pilot/conduits/libfile_conduit.so', which is also in package libgnome-pilot0
dpkg-deb: subprocess paste killed by signal (Broken pipe)
Selecting previously deselected package gnome-pilot-conduits.
Unpacking gnome-pilot-conduits (from .../gnome-pilot-conduits_2.0.10-2_i386.deb) ...
dpkg: error processing /var/cache/apt/archives/gnome-pilot-conduits_2.0.10-2_i386.deb (--unpack):
 trying to overwrite `/usr/lib/gnome-pilot/conduits/libemail_conduit.so', which is also in package libgnome-pilot0
dpkg-deb: subprocess paste killed by signal (Broken pipe)
Errors were encountered while processing:
 /var/cache/apt/archives/gnome-pilot_2.0.10-4_i386.deb
 /var/cache/apt/archives/gnome-pilot-conduits_2.0.10-2_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
lisa:~# 

per force installiert!

lisa:/home/root/apt/archives# dpkg -i gnome-pilot_2.0.10-4_i386.deb
(Reading database ... 133199 files and directories currently installed.)
Unpacking gnome-pilot (from gnome-pilot_2.0.10-4_i386.deb) ...
dpkg: error processing gnome-pilot_2.0.10-4_i386.deb (--install):
 trying to overwrite `/usr/lib/gnome-pilot/conduits/libfile_conduit.so', which is also in package libgnome-pilot0
dpkg-deb: subprocess paste killed by signal (Broken pipe)
Errors were encountered while processing:
 gnome-pilot_2.0.10-4_i386.deb
lisa:/home/root/apt/archives# dpkg --force-all -i gnome-pilot_2.0.10-4_i386.deb
(Reading database ... 133199 files and directories currently installed.)
Unpacking gnome-pilot (from gnome-pilot_2.0.10-4_i386.deb) ...
dpkg - warning, overriding problem because --force enabled:
 trying to overwrite `/usr/lib/gnome-pilot/conduits/libfile_conduit.so', which is also in package libgnome-pilot0
dpkg - warning, overriding problem because --force enabled:
 trying to overwrite `/usr/lib/gnome-pilot/conduits/libbackup_conduit.so', which is also in package libgnome-pilot0
Setting up gnome-pilot (2.0.10-4) ...

Configuration file `/etc/gconf/schemas/pilot.schemas', does not exist on system.
Installing new config file as you request.

lisa:/home/root/apt/archives# dpkg --force-all -i gnome-pilot-conduits_2.0.10-2_i386.deb 
(Reading database ... 133287 files and directories currently installed.)
Unpacking gnome-pilot-conduits (from gnome-pilot-conduits_2.0.10-2_i386.deb) ...
dpkg - warning, overriding problem because --force enabled:
 trying to overwrite `/usr/lib/gnome-pilot/conduits/libemail_conduit.so', which is also in package libgnome-pilot0
dpkg - warning, overriding problem because --force enabled:
 trying to overwrite `/usr/lib/gnome-pilot/conduits/libexpense_conduit.so', which is also in package libgnome-pilot0
dpkg - warning, overriding problem because --force enabled:
 trying to overwrite `/usr/lib/gnome-pilot/conduits/libmemo_file_conduit.so', which is also in package libgnome-pilot0
Setting up gnome-pilot-conduits (2.0.10-2) ...
lisa:/home/root/apt/archives# 

--------------------------

Evolution starten mit Maildir = mein Maildir
-> alle Dateien umbenannt und Evolution-Metadateien
-> Aerger!

Sync with Zaurus: see "evolution, multisync and Zaurus/OPIE: sync-test"
comment this entry
go to top of page

USB-WLAN-Dongle geht nicht

not solved yet
Einstecken:

kern.log

Mar 22 00:28:41 lisa kernel: hub.c: new USB device 00:02.0-2.2, assigned address 8
Mar 22 00:28:41 lisa kernel: usb.c: USB device not responding, giving up (error=-110)
Mar 22 00:28:42 lisa kernel: hub.c: Cannot enable port 2 of hub 2, disabling port.
Mar 22 00:28:42 lisa kernel: hub.c: Maybe the USB cable is bad?
Mar 22 00:28:43 lisa kernel: hub.c: new USB device 00:02.0-2.2, assigned address 9
Mar 22 00:28:43 lisa kernel: usb.c: USB device 9 (vend/prod 0xace/0x1201) is not claimed by any active driver.

-> Treiber fehlt

http://iprserv.jura.uni-leipzig.de/pipermail/atmel-wlan-usb/2003-October/002198.html
-> Prism2
-> "Use the wlan-ng driver."

http://lists.linux-wlan.com/pipermail/linux-wlan-user/2004-February/012119.html
"When I put in the Dongle, I was recognized and the prism2_usb driver is loaded. But then something crashes"

http://lists.linux-wlan.com/pipermail/linux-wlan-user/2004-February/012132.html
"linux-wlan-ng does not support the Zydas chipset currently"

-> neuer Kernel:

.config

#
# Wireless LAN (non-hamradio)
#
CONFIG_NET_RADIO=y
# CONFIG_STRIP is not set
# CONFIG_WAVELAN is not set
# CONFIG_ARLAN is not set
# CONFIG_AIRONET4500 is not set
# CONFIG_AIRO is not set
CONFIG_HERMES=m
# CONFIG_PLX_HERMES is not set
# CONFIG_PCI_HERMES is not set
CONFIG_NET_WIRELESS=y

Mal probieren...


Nachsatz: bei Kernel 2.6 am Notebook von Dagmar (ruprecht) erfolglos probiert
comment this entry
go to top of page

VPN-Client vpnc einrichten

not solved yet
http://www.vc-graz.ac.at/vpn/vpnc/

maggie:~# apt-get install vpnc

Reading Package Lists... Done
Building Dependency Tree... Done
The following extra packages will be installed:
  iproute libatm1
The following NEW packages will be installed:
  iproute libatm1 vpnc
0 upgraded, 3 newly installed, 0 to remove and 239 not upgraded.
Need to get 632kB of archives.
After unpacking 1204kB of additional disk space will be used.

Account: 43546792
Passwort: XXXXXXXXXXXXXX

Fehler beim Routesetzen!

maggie:~# route
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
10.5.0.0        *               255.255.0.0     U     0      0        0 eth0

maggie:~#  route del default
maggie:~#  route add 10.0.0.0 255.255.0.0 gw 10.5.0.1
Usage: inet_route [-vF] del {-host|-net} Target[/prefix] [gw Gw] [metric M] [[dev] If]
       inet_route [-vF] add {-host|-net} Target[/prefix] [gw Gw] [metric M]
                              [netmask N] [mss Mss] [window W] [irtt I]
                              [mod] [dyn] [reinstate] [[dev] If]
       inet_route [-vF] add {-host|-net} Target[/prefix] [metric M] reject
       inet_route [-FC] flush      NOT supported
maggie:~# 
comment this entry
go to top of page

Concept for a simple desktop environment

not solved yet
http://www.aci.com.pl/mwichary/guidebook/articles/designingthestaruserinterface


KISS

hiding complexity until it is needed

switch: simple mode (above) and complex mode (as usual)

prevent (need of memorization of) modes

What does Ctrl-N:
(n)ew window (e.g. broser)
(n)ext occurance (find)
-> Ctrl-N -> popup-window showing all things that can be chosen

No program names, just task names (email -> drag empty sheet on out-folder)

one desktop and several task-screens

no file extensions

empty paper drag&drop -> new document from template list

heavly use of context menues

all options/entries can be disabled by clicking on a special icon beneath

every dialogue has a properties-entry at the end called: "more..."

working documents are located on the desktop

documents retrieved from a directory (file cabinet) know their old location and offer
a copy-back-to-command in the context-menu

_meaningful_ names should be used for commands



Noch etwas anzufuegen?
?Immer user/rolle zB oben rechts sichtbar (gleichzeitiges Arbeiten als ein User mit mehreren Rollen - pro Fenster/Programm)
Neuumsetzung oder Adaption (KDE, xfce, ...)
Komponentenbasiert (Komponente Rechtschreibkontrolle, Druckvorschau, ...) oder Programmbasiert (ispell mit verstecktem Namen, CUPS ohne Namen)?
comment this entry
go to top of page

externe VGA-Signalqualitaet

not solved yet
[iBook2 600MHz]

http://groups.google.com/groups?hl=de&lr=&ie=UTF-8&oe=UTF-8&selm=3D878718.2040404%40ee.ethz.ch&rnum=4
-> XF86Config mit 2 Displays


http://makeashorterlink.com/?Q33F228B7
-> rippels in iBook2


http://groups.google.com/groups?hl=de&lr=&ie=UTF-8&oe=UTF-8&selm=20021004133755.GD4536%40fastweb.it
http://makeashorterlink.com/?K45F628B7
-> GG-Beitrag, mit XF86Config und wie man sie startet:
startx -- -layout ExternalLcd


http://www.astro.umd.edu/~teuben/linux/laptop-display.html

Umschalten fuer Presentationen

NEW METHOD:
ctrl alt F3switch to VC3, as normal user

##  before you start X, try to toggle CRT/LCD to the CRT also
##  to see if you can can the LCD to show up the console

% startx -- :1 -xf86config XF86Config-4_1024

## this new X server will appear under VC8
## now use the CRT/LCD toggle

## or you can do this:, if you have made multiple Screen sections

% startx -- :1 -screen Screen1

EMail von benh

From: Benjamin Herrenschmidt
To: Karl Voit
Content-Type: text/plain
X-Mailer: Ximian Evolution 1.4.5
Date: Tue, 16 Mar 2004 10:14:00 +1100

On Mon, 2004-03-15 at 22:08, Karl Voit wrote:
> To save your time, maybe the problem is solved by altering my
> XF86Config-4 accoring to the example in [4] or [5]?

I don't know. This is an M3, for which there is no real dual head
support in the XFree driver. You may want to ask on the mailing lists,
there is a patch floating around for improving things.

Ben.
comment this entry
go to top of page

MIDI-Dateien abspielen

not solved yet
vk@lisa:~/tmp/2del/20040310_midifiles-karaoke$ playmidi One_U2.mid
Playmidi 2.4 Copyright (C) 1994-1997 Nathan I. Laredo, AWE32 by Takashi Iwai
This is free software with ABSOLUTELY NO WARRANTY.
For details please see the file COPYING.
playmidi: No playback device found.
vk@lisa:~/tmp/2del/20040310_midifiles-karaoke$ 

-> playmidi will nicht

lisa:~# apt-get -su install arts 
Reading Package Lists... Done
Building Dependency Tree... Done
The following extra packages will be installed:
  libarts1 libartsc0 libasound2
The following NEW packages will be installed:
  arts
The following packages will be upgraded:
  libarts1 libartsc0 libasound2
3 upgraded, 1 newly installed, 0 to remove and 438 not upgraded.
Inst libartsc0 [1.1.5-2] (1.2.1-1 Debian:unstable)
Inst libasound2 [1.0.1-1] (1.0.3-1 Debian:unstable)
Inst libarts1 [1.1.5-2] (1.2.1-1 Debian:unstable)
Inst arts (1.2.1-1 Debian:unstable)
Conf libartsc0 (1.2.1-1 Debian:unstable)
Conf libasound2 (1.0.3-1 Debian:unstable)
Conf libarts1 (1.2.1-1 Debian:unstable)
Conf arts (1.2.1-1 Debian:unstable)
lisa:~#

vk@lisa:~/tmp/2del/20040310_midifiles-karaoke$ artsplay One_U2.mid 
Can't connect to sound server
vk@lisa:~/tmp/2del/20040310_midifiles-karaoke$ artsd &
vk@lisa:~/tmp/2del/20040310_midifiles-karaoke$ artsplay One_U2.mid 
file format extension mid unsupported
vk@lisa:~/tmp/2del/20040310_midifiles-karaoke$ mv One_U2.mid One_U2.midi
vk@lisa:~/tmp/2del/20040310_midifiles-karaoke$ artsplay One_U2.midi
file format extension midi unsupported
vk@lisa:~/tmp/2del/20040310_midifiles-karaoke$

-> dpkg -P arts

maggie:
maggie:~# apt-get -su install timidi
Reading Package Lists... Done
Building Dependency Tree... Done
E: Couldn't find package timidi
maggie:~# apt-get -su install timidity
Reading Package Lists... Done
Building Dependency Tree... Done
The following extra packages will be installed:
  jackd libasound2 libjack0.80.0-0 libsndfile1
Suggested packages:
  jack-tools libjackasyn0 pmidi
The following NEW packages will be installed:
  jackd libjack0.80.0-0 libsndfile1 timidity
The following packages will be upgraded:
  libasound2
1 upgraded, 4 newly installed, 0 to remove and 239 not upgraded.
Inst libasound2 [1.0.1-1] (1.0.3-1 Debian:unstable)
Inst libjack0.80.0-0 (0.94.0-4 Debian:unstable) []
Inst libsndfile1 (1.0.7-1 Debian:unstable) []
Inst jackd (0.94.0-4 Debian:unstable)
Inst timidity (2.13.0-rc1-CVS20040221-1 Debian:unstable)
Conf libasound2 (1.0.3-1 Debian:unstable)
Conf libsndfile1 (1.0.7-1 Debian:unstable)
Conf jackd (0.94.0-4 Debian:unstable)
Conf libjack0.80.0-0 (0.94.0-4 Debian:unstable)
Conf timidity (2.13.0-rc1-CVS20040221-1 Debian:unstable)
maggie:~# 

aber:

maggie:/usr/share/doc/timidity# o README.Debian 
TiMidity++ for Debian
$Id: README.Debian,v 1.1 2004/02/21 17:20:43 hmh Exp $
-----------------------------------------------------------

WARNING: TiMidity requires additional configuration to play MIDI files, and to
act as a MIDI sequencer.

For MIDI playing and sequencing, TiMidity _REQUIRES_ a patchset (or Sound
Font), which is a table with the waveforms produced by the instruments.  There
are no good quality patch sets or sound fonts available that are compatible
with the DFSG, AFAIK.  Thus, by default, TiMidity cannot play MIDI files.

You have to find a sound font or patch set, and configure /etc/timidity.cfg
for that patchset.

Good soundfonts in .sf2 format are often available from sound-card makers.
TiMidity can use those.  There are also patchsets available for download in the
Internet, that TiMidity can use.

You can find more information about patchsets and soundfonts in the
TiMidity homepage and mailinglist.  The homepage is at
http://timidity.sourceforge.net/

 -- Henrique de Moraes Holschuh <hmh@debian.org>  Sat, 21 Feb 2004 13:28:02 -0300
README.Debian (END) 

-> dpkg -P jackd libjack0.80.0-0 libsndfile1 timidity
comment this entry
go to top of page

centericq: Ich will keinen Sound bei N/A oder occupied, DND

not solved yet
http://forum.centericq.de/viewforum.php?f=2
-> Account angelegt aber bei "New Topic" komme ich immer auf die Startseite zurueck
Eventuell spaeter probieren, da das Ding mich noch nicht ganz kennt?
comment this entry
go to top of page

Canon-Videos ruckeln beim Abspielen

not solved yet

mplayer-Infos:

Playing /home/vk/daten/pictures/[...]
AVI file format detected.
Demuxer info Digitization Time already present!
VIDEO:  [GPJM]  320x240  24bpp  15.000 fps  1775.3 kbps (216.7 kbyte/s)
Clip info:
 Digitization Time: Sun Feb 01 12:37:17 2004

 Software: CanonMVI01
==========================================================================
Opening audio decoder: [pcm] Uncompressed PCM audio decoder
AUDIO: 11024 Hz, 1 ch, 8 bit (0x8), ratio: 11024->11024 (88.2 kbit)
Selected audio codec: [pcm] afm:pcm (Uncompressed PCM)
==========================================================================
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffmjpeg] vfm:ffmpeg (FFmpeg MJPEG decoder)
==========================================================================
Checking audio filter chain for 11024Hz/1ch/8bit -> 11024Hz/2ch/8bit...
AF_pre: af format: 1 bps, 1 ch, 11024 hz, little endian unsigned int
AF_pre: 11024Hz 1ch Unsigned 8-bit
AO: [oss] 11024Hz 2ch Unsigned 8-bit (1 bps)
Building audio filter chain for 11024Hz/1ch/8bit -> 11024Hz/2ch/8bit...
Starting playback...
VDec: vo config request - 320 x 240 (preferred csp: Planar 422P)
VDec: using Planar YV12 as output csp (no 3)
Movie-Aspect is undefined - no prescaling applied.
VO: [xv] 320x240 => 320x240 Planar YV12
[...]
comment this entry
go to top of page

abcde/cdparanoid kann nicht auf das Pioneer-CD-ROM zugreifen

not solved yet

Posting in tug.betriebssysteme.linux

Ich habe schon 100%ig mit einer (ev. aelteren) Version von cdparanoia
Audio-CDs gerippt. Jetzt wollte ich das wieder mal versuchen und siehe
da, mein cdparanoia weigert sich, mit meinem CD-ROM etwas anzufangen.

System: Debian sid
cdparanoia III release 9.8 (March 23, 2001)
SCSI-CD-ROM Pioneer

,----
| vk@lisa:~/temp/2del$ abcde
| Getting CD track info... Grabbing entire CD - tracks: 01 02 03 04 05
| 06 07 08 09 10 11 12 13 14 15 16 17
| abcde: attempting to resume from
| /home/vk/temp/2del/abcde.ed10da11..
| Creating playlist...
| Grabbing track 01: Front Row...
| cdparanoia III release 9.8 (March 23, 2001)
| (C) 2001 Monty <monty@xiph.org> and Xiphophorus
|
| Report bugs to paranoia@xiph.org
| http://www.xiph.org/paranoia/
|
| Checking /dev/scd0 for cdrom...
|         Testing /dev/scd0 for cooked ioctl() interface
|                 /dev/scd0 is not a cooked ioctl CDROM.
|         Testing /dev/scd0 for SCSI interface
|                 No generic SCSI device found to match CDROM device
|               /dev/scd0
| The following commands failed to run:
| readtrack-01: /usr/bin/cdparanoia -v returned code 1
| Finished. Not cleaning /home/vk/temp/2del/abcde.ed10da11.
|
| vk@lisa:~/temp/2del$ groups
| users disk dialout cdrom floppy audio dip src video ftpuser
|
| vk@lisa:~/temp/2del$ l /dev/scd0
| brw-rw-r--    1 root     cdrom     11,   0 Sep 11  2001 /dev/scd0
| vk@lisa:~/temp/2del$
`----

Ich habe auch mal spasshalber ein "chown vk.users /dev/scd0" gemacht,
was auch nichts gebracht hat.
uf meinem Notebook habe ich die identen Einstellungen und Rechte mit
einem dortigen ATAPI-CD-ROM (in der SCSI-Emulation, Kernel
.4.23). Dort funktioniert es aber.
as kann ich noch pruefen?

Antwort von Wolfgang Scheicher

begin  followup to Wolfgang Scheicher <worf@sbox.tu-graz.ac.at>:
>
> Der versucht sicher auf /dev/sg0 zuzugreifen

Nein, zumindest nicht bewusst. cdparanoia ist auf /dev/scd0
konfiguriert und "eject /dev/scd0" oeffnet auch das richtige Laufwerk.

> überprüfe ob die scsi emulation für dieses cdrom geladen is

Das Laufwerk _ist_ ein SCSI-Geraet :-)

>, und ob auf /dev/sg0 zugriff is

lisa:~# l /dev/scd0
brw-rw-r--    1 root     cdrom     11,   0 Sep 11  2001 /dev/scd0
lisa:~# l /dev/sg0
crw-------    1 root     root      21,   0 May  2  2001 /dev/sg0
lisa:~#

Also auf /dev/sg0 scheint kein Zugriff moeglich zu sein. Ein
testweises "chown vk.users /dev/sg0" brachte Erleichterung: das Rippen
geht.

Nur: wieso kann ich das nicht ueber /dev/scd0 machen? (... das ich ja
auch dem cdparanoia als meine Wahl mitgeteilt hatte)

-> Loesung:
chown vk.users /dev/sg0

... funktioniert

lisa:~# l /dev/scd0
brw-rw-r--    1 root     cdrom     11,   0 Sep 11  2001 /dev/scd0
lisa:~# l /dev/sg0
crw-------    1 root     root      21,   0 May  2  2001 /dev/sg0
lisa:~# chown vk.users /dev/sg0
lisa:~# chown root.cdrom /dev/sg0
lisa:~# chmod g+r+w /dev/sg0
lisa:~# l /dev/sg0
crw-rw----    1 root     cdrom     21,   0 May  2  2001 /dev/sg0
lisa:~# 

myabcde-Ausgabe

Getting CD track info... cd-discid: /dev/sg0: CDROMREADTOCHDR: Operation not permitted
abcde error: CD could not be read. Perhaps there's no CD in the drive?

-> geht nicht mit root.cdrom-Rechten

lisa:~# chmod 777 /dev/sg0
lisa:~# l /dev/sg0
crwxrwxrwx 1 root cdrom 21, 0 May 2 2001 /dev/sg0
lisa:~#

-> geht auch nicht

chmod 700 und 600 und abcde als root

-> geht auch nicht


20070225: Feedback per Blogcomment

Hallo Karl,
ich habe bei einem ähnlichen Problem deinen Eintrag gefunden. Vielleicht hilft
dir meine Lösung bei
http://lists.opensuse.org/opensuse-de/2007-02/msg01876.html weiter. Ich
verwende Suse 10.2 mit allen Updates und fremden Repos, wie Packman.
In Kürze:
/etc/abcde.conf
HELLOINFO="root@192.168.1.1"
NOSUBMIT=y
MP3ENCODERSYNTAX=default
CDROMREADERSYNTAX=cdda2wav
PADTRACKS=y
INTERACTIVE=y
LAMEOPTS="--verbose --preset standard"
CDDA2WAVOPTS="-paranoia --verbose-level=all --deemphasize"
OUTPUTDIR=`pwd`
WAVOUTPUTDIR=`pwd`
OUTPUTTYPE=mp3
OUTPUTFORMAT='${TRACKNUM}_${TRACKFILE}-${ARTISTFILE}-${ALBUMFILE}'
VAOUTPUTFORMAT='${TRACKNUM}_${TRACKFILE}-${ARTISTFILE}-${ALBUMFILE}'
MAXPROCS=3
LOWDISK=n
EJECTCD=y
EXTRAVERBOSE=n
im Homeverzeichnis:
.abcde.conf
# für IDE
INTERACTIVE=y
CDROMID=ATA:0,1,0
CDPARANOIACDROMBUS="d"
# für SCSI
INTERACTIVE=y
CDROMID=0,2,0
CDPARANOIACDROMBUS=""
Al
comment this entry
go to top of page

ssh ueber http-proxy tunneln

not solved yet
http://www.imasy.or.jp/~gotoh/connect.c

http://www.pro-linux.de/news/2003/5925.html

vk@lisa:~$ connect -P 4445 -H proxy.vc-graz.ac.at:3128 slowlove.dyn.priv.at 22
FATAL: failed to begin relaying via HTTP.
vk@lisa:~$

-> Tipp: die meisten Proxies erlauben nur Kontakt zu port 443 (https)
-> portmapper erweitern?

vk@lisa:~$ connect -P 4445 -H proxy.vc-graz.ac.at:3128 lisa.homeunix.net 443
FATAL: failed to begin relaying via HTTP.
vk@lisa:~$

Auch auf 443 keine Chance :-(

als root

lisa:~# ~vk/bin/connect -P 4445 -H proxy.vc-graz.ac.at:3128 lisa.homeunix.net 443
FATAL: failed to begin relaying via HTTP.
lisa:~# ~vk/bin/connect -P 4445 -S proxy.vc-graz.ac.at:1080 lisa.homeunix.net 443
FATAL: Unable to connect to relay host, errno=110
lisa:~# ~vk/bin/connect -P 4445 -H proxy.vc-graz.ac.at:3128 193.170.225.196 443
FATAL: failed to begin relaying via HTTP.
lisa:~# ~vk/bin/connect -P 4445 -H proxy.vc-graz.ac.at:3128 193.170.225.196 22 
FATAL: failed to begin relaying via HTTP.
lisa:~#


http://www.pro-linux.de/news/2003/5925.html

Wer so wie ich in einem Netzwerk (Schule) hinter einem Proxy sitzt,
kennt das Problem, daß man nicht so einfach SSH-Verbindungen (unter
Linux) aufgebaut bekommt. Eine wirklich gute Alternative bietet da
connect.c von Shun-ichi Goto an (arbeitet transparent).

Download: http://www.imasy.or.jp/~gotoh/connect.c

Auf der Shell als Root:

$ su -
$ wget http://www.imasy.or.jp/~gotoh/connect.c
$ gcc -o sconnect connect.c
$ cp sconnect /usr/local/bin
$ nano ~/.ssh/config

und die folgenden Zeilen eintragen:


Host *

ProxyCommand /usr/local/bin/sconnect -4 -S your-socks-server:1080 %h %p

# oder als Proxy

# ProxyCommand connect /usr/local/bin/sconnect -4 -H proxy.local.net:8080 %h %p

Nun ein Test:

ssh deinusername@deinhost.de

Falls die Verbindung nicht aufgebaut wird, kann es daran liegen, daß
der Proxy den Hostnamen nicht auflösen kann, da kann man evtl. die IP
der jeweiligen SSH-Adresse eintippen und probieren ;)

also z.B. ssh deinusername@217.217.217.217

Wenn immer noch keine Verbindung aufgebaut werden kann, probiert man
am besten als root, den gleichen Eintrag wie oben in die Datei
/etc/ssh/ssh_config einzutragen. Wenn es dann auch nicht klappt, kann
man statt dem Proxy-Eintrag den Socks-Eintrag verwenden,
vorausgesetzt, es ist ein Socks-Server installiert. Meine erfahrung
hat aber gezeigt, daß zu 90% dies der Fall ist. Leider habe ich schon
alles Mögliche erlebt, was proxy/socks-Verbindungen angeht, deswegen
gibt es auch mehrere Lösungsmöglichkeiten, aber letztendlich hat es
immer funktioniert.
comment this entry
go to top of page

ssh konfigurieren

not solved yet
Anregung durch c't Artikel (01/04 S.172)

Posting in at.linux:

~/.ssh/config

## ,----
## |  Globale Einstellungen
## `----
PubkeyAuthentication yes
HostbasedAuthentication no
RhostsAuthentication no
ForwardX11 yes
Compression yes
Protocol 2
## ,----
## |  Hosts
## `----
# other
Host other
HostName other
Protocol 2
Compression no
CheckHostIP no
PasswordAuthentication no
User vk
## END

Nun ist es aber so, dass die Abteilung "Host other" offensichtlich
ignoriert wird, da ich nur durch Aenderungen der globalen Einstellung
zu "Compression" Geschwindigkeitsunterschiede erziehlen kann.

Wenn ich die beiden 'other' durch die IP ersetze, aendert sich auch
nichts.
comment this entry
go to top of page

Fernsehen auf HDD aufnehmen

not solved yet
http://www.erikburrows.com/index.php?node=DVD+Burning+Under+Linux

streamer -n pal -b 32 -s 720x480 -t 50 -o test3.avi -f mjpeg -R 10000 -F stereo -c /dev/video0
... nimmt in Datei auf

Aufnahme spielt ohne Ton ruckelnd ab :-(

capture_video.sh

#!/usr/bin/perl
#
# Capture X minutes of video into file Y from /dev/video0 for DVD creation
#
# Arguments:
# 1. Minutes of video to burn
# 2. Base filename output will be filename.avi

system("streamer -n ntsc -t " . ($ARGV[0] * 30 * 60) . " -s 720x480 -r 30 -o $ARGV[1].avi -f mjpeg -R 48000 -F stereo -c /dev/video0"

print $ARGV[0] . " minutes captured into $ARGV[1].avi\n";

create_dvd.sh

#!/bin/csh
#
# Burn a DVD from a set of MPEG files
#   Note: Uses disk bookmark resetting to fool some dumb players
#
# Input:
# 1-255: MPEG files to be chapters of DVD
#

dvddirgen -o tmp_dvd -r
dvdauthor -o tmp_dvd $argv
dvdauthor -o tmp_dvd -T

dvd+rw-format -force /dev/cdrom
dvd+rw-booktype -dvd-rom-spec -unit+rw /dev/cdrom

growisofs -speed=1 -dvd-compat -overburn -Z /dev/cdrom -R -udf -dvd-video tmp_dvd

rm -rf tmp_dvd
comment this entry
go to top of page

Kernel 2.6 PPC

not solved yet
* benh:

rsync -avz source.mvista.com::linuxppc-2.5-benh linuxppc-2.5-benh

* iBook with 2.6 Mini-Howto

http://malik.homelinux.org/ibook/ibook-2.6.html

Book with Linux 2.6

This page briefly documents the changes you face with your iBook when
switching from a 2.4-benh kernel to a 2.6-benh kernel. If you need
general information about installing linux on ibook TuxMobil.org is a
good place to start. If you didn't compile a kernel yet, please head
over to tldp.org (The linux documentation project) and read the
appropriate howto(s) first as this isn't within the scope of this
document.


Status:

Preempt is not yet supported on the powerpc architecture. Alsa
workaround obsolete as of 2.6.1-ben; read the alsa section if you're
upgrading from 2.6.0!

iBook G3: fully supported

iBook G4: sleep unsported, airport extreme unsupported, beep channel
supported since 2.6.0-ben3 (though with OSS only), cpu frequency
scaling since 2.6.1-rc1-ben1 (20031231)

Last update: 13 January 2004 

General
=======

Configuration files for modules now reside in /etc/modprobe.d/, also
the syntax has changed. Important: you need the module-init-tools
package or you want be able to insmod/modprobe anything! Installing
these before you boot into 2.6 is a good attempt since loading
ppp-modules to download the package doesn't work (guess who personally
ran into this one ;-) ). The infamous ide-scsi module is obsolete for
burning, ide-cd is sufficant; invoke cdrecord with "cdrecord
dev=/dev/hdb".  cpudyn (userspace cpu scaling daemon) didn't work for
me, so I switched to powernowd (works with powerpc despite the
name). cpudyn has been reported to work though, you might wanna just
try it; monitor the cpu with: "while true; do grep clock
/proc/cpuinfo;sleep 1;done" and play with the load.  One of the neat
things about 2.6 is the new O(1) scheduler. He makes it obsolete to
nice X; do a 'dpkg-reconfigure xserver-common' and choose zero for
nice value (if you're using debian that is).

Kernel

Kernel source: 

rsync -avz --delete source.mvista.com::linuxppc-2.5-benh <directory-where-source-goes>
or rsync -avz --delete rsync.theorie.physik.uni-muenchen.de::linuxppc-2.5-benh <dir>

Here's my kernel config Preempt is currently not usable on the ppc
architecture, I tried it and got floating point exceptions &
segfaults. So if you want to get something done with your machine
you'd better disable it.

ALSA
====

Alsa now ships with the kernel, so you don't need to get it extra
anymore.  As of 2.6.1-ben1 the workaround requiring to reload alsa/i2c
modules isn't needed anymore but might freeze your machine if you
apply it anyway or don't remove it when upgrading from 2.6.0x to
2.6.1x, so be sure to check and remove the workaround in
/etc/modprobe/alsa. The line to remove is:

   install snd-powermac /sbin/modprobe -i snd-powermac ; ( /sbin/modprobe -ir i2c-keywest && /sbin/modprobe -i i2c-keywest )

Thus it's now possibly to build i2c & alsa into the kernel instead of
modules (haven't tried it yet, though; feedback appreciated!). Here's
the alsa-modules-config.  When you plug in the headphones the volume
level is decreased, if you use pbbuttonsd to raise them again the
speaker will get reactivated. To avoid this either use alsamixer (or
similiar) to raise the main volume or remove speaker from the
mixerchannels-key in /etc/pbuttonsd.conf. If the sound skips or
anything alike try to use the oss-emulation of ALSA (I need to do this
with mplayer).  Another thing with alsa (at least on my machine) is
that after suspend the bass level is pretty high (the mixer doesn't
show this, unfortunately) making the sound quiet ugly and forcing me
do raise and lower the bass level in order to set it back to correct
level. Since doing this upon every sleep is annoying I altered
pbbuttonsd.conf to run a script upon (power) profile change which -
upon resume - uses aumix (use your favourite mixer here) to load an
intermediate and one final sound level config. The intermediate file
contains a profile where all levels are low and the final profile is
the one saved by aumix upon sleep. This ensures that the bass level is
touched no matter what

Configs: /etc/pbbuttonsd.conf, /etc/power/pwrctl-local /etc/aumix-intermediate

In related news: the pbbuttonsd.conf is only valid with version 0.5.6,
sarge/sid currently holds 0.5.2 (20031228) which silently terminates
with this config. You might like to use gtkpbbutons along with
pbbuttonsd which gives a graphical response to pressing fn-keys
(here's a shot). It generates a beep whenever the volume level is
altered but you hear the (accumulated) beeps after the movie/audio
file or whatever you're playing has ended as the audio device was
busy. So the beeping is pretty much pointless (at least on
iBook). Start gtkpbbuttons in your .xinitrc with 'gtkpbbuttons
--detach --audio=/dev/null' to disable the beeping (add
'--theme=MacOSX' if you like the theme from the shot). The source for
(gtk)pbbuttons is available here.  Alsa on 2.6 is actually pretty much
the same then 2.4 with alsa modules compiled seperatley, but as alsa
turned out to need quiet a few tweaks I felt this should go here as
well.

DRM
===

DRM that is supplied with the kernel is up to date, you don't have to
get drm-trunk-modules. A change in drm is that you have to load
uninorth_agp (after agpgart and before radeon), if you don't, you
don't get an error while loading radeon-module but DRI will be
disabled. Add radeon to /etc/modules to have it loaded at boot
time. Here's my modprobe config for the radeon module. You can test if
drm is setup correctly by running glxgears; with my configuration I
get ~470 fps. If glxgears segfaults drm is incorrectly set up. Check
/var/log/XFree86.0.log for clues.

USB
===

To use my USB-mouse I had to create /etc/modprobe.d/hid. Since I don't
own other usb stuff I tested only the usbmouse (additions welcome).



More config files

Thanks for contributing:
 Jan Medlock


My machine: iBook G3 Rev. 2.2 (last before the iBook G4 came out) 14" 900Mhz, with ATI Radeon Mobility 7500 (M7), CDRW (Sony) with Debian Sarge.

For corrections, additions and stuff mail me: joe dot malik at gmx dot net

Enjoy

http://mockenhaupt.homelinux.org/ibookWiki/Kernel_20migration
comment this entry
go to top of page

xblaster ueber's Netz mit Andreas spielen: stopKey deaktivieren

not solved yet
* Anpassung in ~/.Xresources, damit man bei Richtungstastendruckende auch stehenbleibt

XBlast.rightPlayer.stopKey: None
XBlast.rightPlayer.turnStep: 4

... zeigt aber keine Wirkung:

am iBook aendert sich nichts (der Spieler rennt so lange in eine
Richtung bis Wand oder Stop-Button). Am Andreas seinem Notebook bei
gleichen Einstellungen funktioniert alles!

Obige Aenderungen hab ich in /etc/.../app-defaults/XBlast,
~/.Xresources und ~/.xblast-player_resource gemacht!

* 20040107: Problem in at.linux gepostet
comment this entry
go to top of page

gcdmaster will nicht Sound abspielen

not solved yet
Fehlermeldung:

"WARNING: Sound device does not support little endian signed 16 bit samples."
erscheint in der Konsole von gcdmaster
comment this entry
go to top of page

Error "Invalid command" bei initwlansniffing

not solved yet

Problem

maggie:~# iwpriv eth1 monitor 2 1
Invalid command : monitor
maggie:~#

Loesungswege:
rmmod alle Module -> keine Aenderung
dpkg -S iwpriv -> iwpriv ist aus wireless-tools
apt-cache show wireless-tools -> Version: 26-2, sollte ab kernel 2.2.14 funktionieren

http://groups.google.com/groups?hl=de&lr=&ie=UTF-8&selm=1vC6X-4Dv-5%40gated-at.bofh.it
"Nur unterstützt orinoco den monitor mode nicht"
-> In der cvs Version geht es glaub ich schon (ohne Garantie).

http://groups.google.com/groups?hl=de&lr=&ie=UTF-8&selm=diLM.4T9.25%40gated-at.bofh.it
-> besser sind die Originaltreiber von
http://www.hpl.hp.com/personal/Jean_Tourrilhes/Linux/Orinoco.html
-> oder noch besser: ftp://ftp.linux-wlan.org/pub/linux-wlan-ng

http://www.hpl.hp.com/personal/Jean_Tourrilhes/Linux/Linux.Wireless.drivers.802.11b.html#Airport
-> "Monitor : With optional patch"

Patch-Hinweise:

http://archives.mandrakelinux.com/cooker-ppc/2003-05/msg00041.php

On Wed, 2003-05-07 at 11:24, Alexander Klosch wrote:
> first I did was to get the 2 patches (links available in the list a few days before). and run both patches in
> /usr/src/linux/drivers/net/wireless (patch -p0 < patchname).
> after that a quick # make dep && make modules && make modules_install should give me new modules, right? ok, this new airport.o modules in my modules directory doesn't have the monitor mode enabled. 
> so I tried the same procedure with 0.13b orinoco sources (just replaced the 0.11b in the kernel tree) and patched this source with the 0.13b monitor patch. result: same iwprivs like before and no monitor mode ..
> 
> [root@localhost orig]# iwpriv eth1
> eth1      Available private ioctl :
>           force_reset      (8BE0) : set   0       & get   0
>           card_reset       (8BE1) : set   0       & get   0
>           set_port3        (8BE2) : set   1 int   & get   0
>           get_port3        (8BE3) : set   0       & get   1 int
>           set_preamble     (8BE4) : set   1 int   & get   0
>           get_preamble     (8BE5) : set   0       & get   1 int
>           set_ibssport     (8BE6) : set   1 int   & get   0
>           get_ibssport     (8BE7) : set   0       & get   1 int
> 
> maybe didn't get the point. does someone have a hint for me??
I don't really know because I don't have an airport card, but did you
try to make menuconfig (or xconfig or config or oldconfig) before your
make dep to see if the patch has added a new CONFIG option to enable the
monitoring mode ?

http://www.ozlabs.org/people/dgibson/dldwd/monitor-0.13e.patch
-> geht nicht:

maggie:/usr/src/linux/drivers/net/wireless# patch -p0 < monitor-0.13e.patch 
can't find file to patch at input line 4
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff -urN dist/orinoco-0.13e/hermes.c orinoco-monitor/hermes.c
|--- dist/orinoco-0.13e/hermes.c        2003-05-12 16:22:27.000000000 +1000
|+++ orinoco-monitor/hermes.c   2003-05-13 13:26:02.000000000 +1000
--------------------------
File to patch: 
maggie:/usr/src/linux/drivers/net/wireless# rm monitor-0.13e.patch 
maggie:/usr/src/linux/drivers/net/wireless#

http://cattlegrid.net/~christophe/tmp/
-> orinoco-cvs-module-src_20040305-1_all.deb
(forget it)

http://www.swieskowski.net/code/wifi.php

Once you have installed Linux, you will need to install the modified
Airport drivers which are available here. You will want the latest
orinoco_cs tarball and patch (as of this writing it is 0.11b). Extract
the orinoco_cs tarball and apply the patch.

At this point the Orinoco driver (the Airport card is just a
repackaged Orinoco) is patched to allow use in monitor mode, but
because of firmware problems on the Airport card the card will lock up
when channel hopping. Luckily, with inspiration from Ian Goldberg's
problems with his Symbol CF card on a Zaurus (as seen in this thread),
I was able to construct a patch that allows worry-free channel hopping
with the Airport card. Download the patch here and apply it to the
driver after applying the monitor mode patch. Now the driver can be
compiled and installed.

Vorgehensweise

1) orinoco_cs.tgz holen
2) monitor-patch installieren
3) channel hopping-patch installieren
4) kompilieren

1) orinoco_cs.tgz holen

http://ozlabs.org/people/dgibson/dldwd/orinoco-0.13e.tar.gz
tar xvvfz ...

2) monitor-patch installieren

maggie:/data/src/x86/orinoco-driver# wget http://airsnort.shmoo.com/orinoco-0.13e-patch.diff
[...]
maggie:/data/src/x86/orinoco-driver# patch -p0 < orinoco-0.13e-patch.diff
patching file orinoco-0.13e/hermes.c
patching file orinoco-0.13e/hermes.h
patching file orinoco-0.13e/orinoco.c
patching file orinoco-0.13e/orinoco.h
maggie:/data/src/x86/orinoco-driver#

3) channel hopping-patch installieren

maggie:/data/src/x86/orinoco-driver/orinoco-0.13e# wget http://www.swieskowski.net/code/wifi/orinoco-0.11b-airport.diff
[...]
maggie:/data/src/x86/orinoco-driver/orinoco-0.13e# patch -p0 <orinoco-0.11b-airport.diff
patching file orinoco.c
Hunk #1 FAILED at 3241.
1 out of 1 hunk FAILED -- saving rejects to file orinoco.c.rej
maggie:/data/src/x86/orinoco-driver/orinoco-0.13e#

Na Toll.

-> e orinoco.c und den Patch selber einfuegen:
Entsprechender Teil ist schon vorhanden allerdings auskommentiert!
Einfach /* und */ entfernen und los gehts!

4) kompilieren

make

maggie:/data/src/x86/orinoco-driver/orinoco-0.13e# make
cc -MD -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -fno-common -pipe  -D__KERNEL__ -DPCMCIA_DEBUG=1 -DMODULE -DEXPORT_SYMTAB  -I/lib/modules/2.4.23-pre5-ben0/build/include -DMODVERSIONS -include /lib/modules/2.4.23-pre5-ben0/build/include/linux/modversions.h -c hermes.c
cc -MD -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -fno-common -pipe  -D__KERNEL__ -DPCMCIA_DEBUG=1 -DMODULE -DEXPORT_SYMTAB  -I/lib/modules/2.4.23-pre5-ben0/build/include -DMODVERSIONS -include /lib/modules/2.4.23-pre5-ben0/build/include/linux/modversions.h -c orinoco.c
orinoco.c: In function `orinoco_wlansniff':
orinoco.c:3733: warning: implicit declaration of function `__orinoco_stop_irqs'
orinoco.c:3734: warning: implicit declaration of function `hermes_reset'
orinoco.c:3735: warning: implicit declaration of function `__orinoco_start_irqs'
cc -MD -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -fno-common -pipe  -D__KERNEL__ -DPCMCIA_DEBUG=1 -DMODULE -DEXPORT_SYMTAB  -I/lib/modules/2.4.23-pre5-ben0/build/include -DMODVERSIONS -include /lib/modules/2.4.23-pre5-ben0/build/include/linux/modversions.h -c orinoco_cs.c
cc -MD -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -fno-common -pipe  -D__KERNEL__ -DPCMCIA_DEBUG=1 -DMODULE -DEXPORT_SYMTAB  -I/lib/modules/2.4.23-pre5-ben0/build/include -DMODVERSIONS -include /lib/modules/2.4.23-pre5-ben0/build/include/linux/modversions.h -c orinoco_plx.c
cc -MD -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -fno-common -pipe  -D__KERNEL__ -DPCMCIA_DEBUG=1 -DMODULE -DEXPORT_SYMTAB  -I/lib/modules/2.4.23-pre5-ben0/build/include -DMODVERSIONS -include /lib/modules/2.4.23-pre5-ben0/build/include/linux/modversions.h -c orinoco_tmd.c
cc -MD -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -fno-common -pipe  -D__KERNEL__ -DPCMCIA_DEBUG=1 -DMODULE -DEXPORT_SYMTAB  -I/lib/modules/2.4.23-pre5-ben0/build/include -DMODVERSIONS -include /lib/modules/2.4.23-pre5-ben0/build/include/linux/modversions.h -c orinoco_pci.c
cc -MD -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -fno-common -pipe  -D__KERNEL__ -DPCMCIA_DEBUG=1 -DMODULE -DEXPORT_SYMTAB  -I/lib/modules/2.4.23-pre5-ben0/build/include -DMODVERSIONS -include /lib/modules/2.4.23-pre5-ben0/build/include/linux/modversions.h -c airport.c
maggie:/data/src/x86/orinoco-driver/orinoco-0.13e#

make install

maggie:/data/src/x86/orinoco-driver/orinoco-0.13e# make install
if [ -d /etc/pcmcia ]; then install -m 644 -o 0 -g 0 hermes.conf /etc/pcmcia/hermes.conf; fi
mkdir -p /lib/modules/2.4.23-pre5-ben0/kernel/drivers/net/wireless
for f in hermes.o orinoco.o orinoco_cs.o orinoco_plx.o orinoco_tmd.o orinoco_pci.o airport.o; do \
    if test -e /lib/modules/2.4.23-pre5-ben0/pcmcia/$f; then \
        install -m 644 -o 0 -g 0 $f /lib/modules/2.4.23-pre5-ben0/pcmcia/$f; \
    else \
        install -m 644 -o 0 -g 0 $f /lib/modules/2.4.23-pre5-ben0/kernel/drivers/net/wireless/$f; \
    fi; \
done
depmod -a
depmod: *** Unresolved symbols in /lib/modules/2.4.23-pre5-ben0/kernel/drivers/net/wireless/orinoco.o
depmod: *** Unresolved symbols in /lib/modules/2.4.23-pre5-ben0/kernel/drivers/net/wireless/orinoco_cs.o
depmod: *** Unresolved symbols in /lib/modules/2.4.23-pre5-ben0/kernel/fs/ntfs/ntfs.o
maggie:/data/src/x86/orinoco-driver/orinoco-0.13e# 

-> README:
"        Q: I compiled the module from the sources on www.ozlabs.org,
           but when I try to load it, I get lots of "unresolved
           symbol" messages.

Red Hat, Debian and most other distributions compile their kernels
with "module symbol versioning" (CONFIG_MODVERSIONS) enabled.  This
causes some problems with compiling modules outside the kernel tree
itself.  You can either recompile the kernel with this option
disabled, then recompile the module, or try adding:
        -DMODVERSIONS -include $(KERNEL_SRC)/include/linux/modversions.h
to the CPPFLAGS option in the orinoco module Makefile."

editieren
rm *.o
make
make install

maggie:/data/src/x86/orinoco-driver/orinoco-0.13e# rmmod hermes 
maggie:/data/src/x86/orinoco-driver/orinoco-0.13e# depmod
depmod: *** Unresolved symbols in /lib/modules/2.4.23-pre5-ben0/kernel/drivers/net/wireless/orinoco.o
depmod: *** Unresolved symbols in /lib/modules/2.4.23-pre5-ben0/kernel/drivers/net/wireless/orinoco_cs.o
depmod: *** Unresolved symbols in /lib/modules/2.4.23-pre5-ben0/kernel/fs/ntfs/ntfs.o
maggie:/data/src/x86/orinoco-driver/orinoco-0.13e# modprobe orinoco_cs 
/lib/modules/2.4.23-pre5-ben0/kernel/drivers/net/wireless/orinoco.o: /lib/modules/2.4.23-pre5-ben0/kernel/drivers/net/wireless/orinoco.o: unresolved symbol __orinoco_stop_irqs
/lib/modules/2.4.23-pre5-ben0/kernel/drivers/net/wireless/orinoco.o: /lib/modules/2.4.23-pre5-ben0/kernel/drivers/net/wireless/orinoco.o: unresolved symbol hermes_reset
/lib/modules/2.4.23-pre5-ben0/kernel/drivers/net/wireless/orinoco.o: /lib/modules/2.4.23-pre5-ben0/kernel/drivers/net/wireless/orinoco.o: unresolved symbol __orinoco_start_irqs
/lib/modules/2.4.23-pre5-ben0/kernel/drivers/net/wireless/orinoco.o: insmod /lib/modules/2.4.23-pre5-ben0/kernel/drivers/net/wireless/orinoco.o failed
/lib/modules/2.4.23-pre5-ben0/kernel/drivers/net/wireless/orinoco.o: insmod orinoco_cs failed
maggie:/data/src/x86/orinoco-driver/orinoco-0.13e# 

OK, dann eben nicht.

CONFIG_MODVERSIONS deaktivieren und Kernel neu machen!

-> debian2423e

orinoco neu kompilieren: make && make install

Reboot klappt.

maggie:~# modprobe orinoco
orinoco orinoco_cs orinoco_pci orinoco_plx orinoco_tmd
maggie:~# modprobe orinoco_cs
/lib/modules/2.4.23-pre5-ben0/kernel/drivers/net/wireless/orinoco.o: /lib/modules/2.4.23-pre5-ben0/kernel/drivers/net/wireless/orinoco.o: unresolved symbol __orinoco_stop_irqs
/lib/modules/2.4.23-pre5-ben0/kernel/drivers/net/wireless/orinoco.o: /lib/modules/2.4.23-pre5-ben0/kernel/drivers/net/wireless/orinoco.o: unresolved symbol hermes_reset
/lib/modules/2.4.23-pre5-ben0/kernel/drivers/net/wireless/orinoco.o: /lib/modules/2.4.23-pre5-ben0/kernel/drivers/net/wireless/orinoco.o: unresolved symbol __orinoco_start_irqs
/lib/modules/2.4.23-pre5-ben0/kernel/drivers/net/wireless/orinoco.o: insmod /lib/modules/2.4.23-pre5-ben0/kernel/drivers/net/wireless/orinoco.o failed
/lib/modules/2.4.23-pre5-ben0/kernel/drivers/net/wireless/orinoco.o: insmod orinoco_cs failed
maggie:~#

nochmal orinoco neu machen: make && make install

noch immer nicht.

.config

#
# Wireless LAN (non-hamradio)
#
CONFIG_NET_RADIO=y
# CONFIG_STRIP is not set
# CONFIG_WAVELAN is not set
# CONFIG_ARLAN is not set
# CONFIG_AIRONET4500 is not set
# CONFIG_AIRO is not set
CONFIG_HERMES=m
CONFIG_APPLE_AIRPORT=m
# CONFIG_PLX_HERMES is not set
# CONFIG_TMD_HERMES is not set
CONFIG_PCI_HERMES=m
# CONFIG_TMD_HERMES is not set
CONFIG_NET_WIRELESS=y

# CONFIG_HERMES=m
# CONFIG_APPLE_AIRPORT=m
# CONFIG_PCI_HERMES=m
... mal auskommentieren und kernel neu uebersetzen ... ?

ODER: einfach die orinoco-Dateien ueber das Kernel-Verzeichnis kompieren?

ODER: Kernel 2.6
comment this entry
go to top of page

AVI um 90 Grad drehen mit Ton

not solved yet
* per mjpeg-Tools manipulieren:

http://www.clarkson.edu/projects/itl/HOWTOS/bgpAnalysis/howtos/Linux.html
mjpeg-Syntax:
http://cesnet.dl.sourceforge.net/sourceforge/mjpeg/mjpeg_howto.txt

** Sound herausfiltern

lavtrans -o sound.wav +p -f w original.avi

** Sound auf mpeg2 herausfiltern

lav2wav +p -I original.avi | mp2enc -b 128 -m -o sound.mp2
-> '-I' (ignore unsupported bitrates) weil "**ERROR: [lav2wav] Input file(s) must have 16 bit audio!"

** Sound und Video zusammenfuegen

mplex sound.mp2 foo.m1v -o output.mpg
-> "**ERROR: [mplex] Variable bit-rate stream present: output stream (max) data-rate *must* be specified!"
-> "-r 128" hinzufuegen:

mplex -r 128 sound.mp2 foo.m1v -o output.mpg
-> "**ERROR: [mplex] MUX STATUS: Frame data under-runs detected!"

mplex -r 12 sound.mp2 foo.m1v -o output.mpg
-> "**ERROR: [mplex] MUX STATUS: Frame data under-runs detected!"

*** Sound VCD-kompatibel herausfiltern
cat sound.wav | mp2enc -V -o sound2.mp2
-> ebenso "**ERROR: [mplex] MUX STATUS: Frame data under-runs detected!"

* Alternativvorschlag: AVI-Container und mplex

http://mplayerhq.hu/pipermail/mplayer-users/2003-November/040160.html
comment this entry
go to top of page

DVD-Brennen mit langen Dateinamen

not solved yet
* aus man-page herausgesucht
mkisofs -iso-level 4 -R -split-output -o ~/temp/2del/testdvd/somefile /home/vk/in/mp3/pop/finished_but_n[...]
dvdrecord dev=1,0,0 speed=2 temp/2del/testdvd/somefile

-> obiges mounten (loop) ergibt lange, korrekte Dateinamen


* mkisofs & dvdrecord-Syntax aus at.linux
lisa:~/temp/2del/testdvd# mkisofs -J -r -o ~/temp/2del/testdvd/somefile /home/vk/in/mp3/pop/finished_but_not_heard/
lisa:~/temp/2del/testdvd# dvdrecord dev=1,0,0 speed=2 -v ./somefile

-> obiges 'somefile' per loop-device mounten ergibt korrekt lange Dateinamen!

FIXXME: ogg-Dateien holen
FIXXME: ogg-Dateien brennen
comment this entry
go to top of page

Liero in Emulation starten

not solved yet
Liero.exe startet per dosemu mit 100% CPU-Auslastung, tut sonst nix.
Abbruch nach einigen Minuten.
comment this entry
go to top of page

Keyboard shortcuts for navigation in text

not solved yet
Windows OS X What
----------------------------------------------------------------------
Strg-Left|Right alt-left|right go word left|right
Shift-Strg-Left|Right Shift-alt-left|right mark word left|right
Pos1 Up or Cmd-left begin of line
End Down or Cmd-right end of line
Shift-Pos1|End Shift-cmd-left|right mark until begin|end of line
comment this entry
go to top of page

using existing ssh-connection for any further connection

not solved yet

Gebi

Host *
    ControlMaster auto
    ControlPath /tmp/%r@%h:%p
man ssh_config
comment this entry
go to top of page

find duplicate files

not solved yet
... undsing its md5sums

find . -type f -exec md5sum {} \; |sort >allmd5s; list=`cat allmd5s | awk '{ print $1 }'|uniq -d` ; for i in $list; do grep $i allmd5s; done

Test with 5.3GB and 5381 files: 8min29s -> 10.6 files/second
comment this entry
go to top of page

XFS internal error

not solved yet
I was deleting lots of files with mc while:

syslog with XFS-error

Sep  4 20:21:50 ned kernel: xfs_da_do_buf: bno 16777216
Sep  4 20:21:50 ned kernel: dir: inode 4194463767
Sep  4 20:21:50 ned kernel: Filesystem "dm-0": XFS internal error xfs_da_do_buf(1) at line 2119 of file fs/xfs/xfs_da_btree.c.  Caller 0xc022a8d9
Sep  4 20:21:50 ned kernel: <c022a4ee> xfs_da_do_buf+0x392/0x720  <c022a8d9> xfs_da_read_buf+0x19/0x1e
Sep  4 20:21:50 ned kernel: <c022a8d9> xfs_da_read_buf+0x19/0x1e  <c0234981> xfs_dir2_leafn_lookup_int+0x275/0x42d
Sep  4 20:21:50 ned kernel: <c02349df> xfs_dir2_leafn_lookup_int+0x2d3/0x42d  <c02303ff> xfs_dir2_data_log_unused+0x42/0x49
Sep  4 20:21:50 ned kernel: <c022a8d9> xfs_da_read_buf+0x19/0x1e  <c02330f4> xfs_dir2_node_removename+0x265/0x462
Sep  4 20:21:50 ned kernel: <c02330f4> xfs_dir2_node_removename+0x265/0x462  <c03c8175> schedule+0x9e1/0xa74
Sep  4 20:21:50 ned kernel: <c022ea3e> xfs_dir2_removename+0xe1/0xe8  <c025ea8a> kmem_zone_zalloc+0x1d/0x41
Sep  4 20:21:50 ned kernel: <c025ca0a> xfs_remove+0x258/0x3c4  <c0264659> xfs_vn_unlink+0x17/0x3b
Sep  4 20:21:50 ned kernel: <c0164002> link_path_walk+0xb3/0xbd  <c0162bd6> vfs_unlink+0x6e/0xd9
Sep  4 20:21:50 ned kernel: <c0131520> debug_mutex_add_waiter+0x7b/0x8b  <c0162bd6> vfs_unlink+0x6e/0xd9
Sep  4 20:21:50 ned kernel: <c0162bd6> vfs_unlink+0x6e/0xd9  <c03c93fc> __mutex_lock_slowpath+0x2b5/0x385
Sep  4 20:21:50 ned kernel: <c0162c0b> vfs_unlink+0xa3/0xd9  <c016466f> do_unlinkat+0x86/0x114
Sep  4 20:21:50 ned kernel: <c0102c87> syscall_call+0x7/0xb
Sep  4 20:21:50 ned kernel: Filesystem "dm-0": XFS internal error xfs_trans_cancel at line 1150 of file fs/xfs/xfs_trans.c.  Caller 0xc025cb50
Sep  4 20:21:50 ned kernel: <c02541e0> xfs_trans_cancel+0x4d/0xd6  <c025cb50> xfs_remove+0x39e/0x3c4
Sep  4 20:21:50 ned kernel: <c025cb50> xfs_remove+0x39e/0x3c4  <c0264659> xfs_vn_unlink+0x17/0x3b
Sep  4 20:21:50 ned kernel: <c0164002> link_path_walk+0xb3/0xbd  <c0162bd6> vfs_unlink+0x6e/0xd9
Sep  4 20:21:50 ned kernel: <c0131520> debug_mutex_add_waiter+0x7b/0x8b  <c0162bd6> vfs_unlink+0x6e/0xd9
Sep  4 20:21:50 ned kernel: <c0162bd6> vfs_unlink+0x6e/0xd9  <c03c93fc> __mutex_lock_slowpath+0x2b5/0x385
Sep  4 20:21:50 ned kernel: <c0162c0b> vfs_unlink+0xa3/0xd9  <c016466f> do_unlinkat+0x86/0x114
Sep  4 20:21:50 ned kernel: <c0102c87> syscall_call+0x7/0xb
Sep  4 20:21:50 ned kernel: xfs_force_shutdown(dm-0,0x8) called from line 1151 of file fs/xfs/xfs_trans.c.  Return address = 0xc0267124
Sep  4 20:21:50 ned kernel: Filesystem "dm-0": Corruption of in-memory data detected.  Shutting down filesystem: dm-0
Sep  4 20:21:50 ned kernel: Please umount the filesystem, and rectify the problem(s)
Sep  4 20:24:00 ned ntpd[5590]: kernel time sync error 0001
Sep  4 20:24:52 ned kernel: xfs_force_shutdown(dm-0,0x1) called from line 338 of file fs/xfs/xfs_rw.c.  Return address = 0xc0267124
Sep  4 20:24:52 ned kernel: xfs_force_shutdown(dm-0,0x1) called from line 338 of file fs/xfs/xfs_rw.c.  Return address = 0xc0267124

Gebi

uerst xfs_repair -n (nomodify)
danach xfs_repair
wenn garnichts mehr hilft dann xfs_repair -L
zeigt smartctl kaputte bloecke?

SMART dows not show hdd errors

root@ned /vk # smartctl -a /dev/sdd -d ata |grep Sector
  5 Reallocated_Sector_Ct   0x0033   253   253   010    Pre-fail  Always       -       0
197 Current_Pending_Sector  0x0012   253   253   000    Old_age   Always       -       0
root@ned /vk # smartctl -a /dev/sda -d ata |grep Sector
  5 Reallocated_Sector_Ct   0x0033   253   253   010    Pre-fail  Always       -       0
197 Current_Pending_Sector  0x0012   253   253   000    Old_age   Always       -       0
root@ned /vk # smartctl -a /dev/sdb -d ata |grep Sector
  5 Reallocated_Sector_Ct   0x0033   253   253   010    Pre-fail  Always       -       0
197 Current_Pending_Sector  0x0012   253   253   000    Old_age   Always       -       0
root@ned /vk # smartctl -a /dev/sdc -d ata |grep Sector
  5 Reallocated_Sector_Ct   0x0033   253   253   010    Pre-fail  Always       -       0
197 Current_Pending_Sector  0x0012   253   253   000    Old_age   Always       -       0
root@ned /vk # smartctl -a /dev/sdd -d ata |grep Sector
  5 Reallocated_Sector_Ct   0x0033   253   253   010    Pre-fail  Always       -       0
197 Current_Pending_Sector  0x0012   253   253   000    Old_age   Always       -       0
root@ned /vk #

RAID is also OK.

part of output of xfs_repair concerning the files, I was deleting

entry ".ds_store" at block 0 offset 48 in directory inode 4194463767 references free inode 4194509824
        would clear inode number in entry at offset 48...
entry "._img_0502.jpg" at block 0 offset 72 in directory inode 4194463767 references free inode 4194509869
        would clear inode number in entry at offset 72...
entry "._img_0711.jpg" at block 0 offset 104 in directory inode 4194463767 references free inode 4194510347
        would clear inode number in entry at offset 104...
entry "._img_0447.jpg" at block 0 offset 136 in directory inode 4194463767 references free inode 4194509841
        would clear inode number in entry at offset 136...
entry "2006-09-20_14h44_img_0707.jpg" at block 0 offset 184 in directory inode 4194463767 references free inode 4199966214
        would clear inode number in entry at offset 184...
entry "._img_0705.jpg" at block 0 offset 224 in directory inode 4194463767 references free inode 4194510351
        would clear inode number in entry at offset 224...
entry "._img_0461.jpg" at block 0 offset 256 in directory inode 4194463767 references free inode 4194510094
        would clear inode number in entry at offset 256...
entry "._img_0460.jpg" at block 0 offset 296 in directory inode 4194463767 references free inode 4194509849
        would clear inode number in entry at offset 296...
entry "._img_0448.jpg" at block 0 offset 328 in directory inode 4194463767 references free inode 4194509845
        would clear inode number in entry at offset 328...
entry "._img_0459.jpg" at block 0 offset 360 in directory inode 4194463767 references free inode 4194509853
        would clear inode number in entry at offset 360...
entry "2006-09-20_16h35_img_0742.jpg" at block 0 offset 408 in directory inode 4194463767 references free inode 4194509842
        would clear inode number in entry at offset 408...
entry "._img_0964.jpg" at block 0 offset 448 in directory inode 4194463767 references free inode 4194517276
        would clear inode number in entry at offset 448...

continued

entry "2006-09-21_11h57_img_0917.jpg" in directory inode 4194463767 points to free inode 4194510369, would junk entry
entry "2006-09-21_11h54_img_0912.jpg" in directory inode 4194463767 points to free inode 4194510379, would junk entry
entry "2006-09-21_11h52_img_0910.jpg" in directory inode 4194463767 points to free inode 4194510383, would junk entry
entry "2006-09-21_11h52_img_0908.jpg" in directory inode 4194463767 points to free inode 4194510390, would junk entry
entry "2006-09-21_11h51_img_0906.jpg" in directory inode 4194463767 points to free inode 4194510394, would junk entry
entry "2006-09-21_11h51_img_0904.jpg" in directory inode 4194463767 points to free inode 4194510399, would junk entry
entry "2006-09-21_11h48_img_0902.jpg" in directory inode 4194463767 points to free inode 4194517253, would junk entry
entry "2006-09-21_12h41_img_0937.jpg" in directory inode 4194463767 points to free inode 4194762022, would junk entry
entry "2006-09-21_12h41_img_0938.jpg" in directory inode 4194463767 points to free inode 4194762020, would junk entry
entry "2006-09-21_11h34_img_0889.jpg" in directory inode 4194463767 points to free inode 4194517283, would junk entry
entry "2006-09-21_11h34_img_0888.jpg" in directory inode 4194463767 points to free inode 4194517286, would junk entry
entry "2006-09-21_11h33_img_0886.jpg" in directory inode 4194463767 points to free inode 4194517291, would junk entry
entry "2006-09-21_11h33_img_0885.jpg" in directory inode 4194463767 points to free inode 4194517293, would junk entry
entry "2006-09-21_11h32_img_0884.jpg" in directory inode 4194463767 points to free inode 4194517295, would junk entry
entry "2006-09-21_11h31_img_0883.jpg" in directory inode 4194463767 points to free inode 4194517297, would junk entry
entry "2006-09-21_11h31_img_0882.jpg" in directory inode 4194463767 points to free inode 4194517300, would junk entry
entry "2006-09-21_11h31_img_0881.jpg" in directory inode 4194463767 points to free inode 4194517302, would junk entry
entry "2006-09-21_11h30_img_0880.jpg" in directory inode 4194463767 points to free inode 4194517304, would junk entry
entry "2006-09-21_11h30_img_0879.jpg" in directory inode 4194463767 points to free inode 4194517306, would junk entry
entry "2006-09-21_11h30_img_0878.jpg" in directory inode 4194463767 points to free inode 4194517308, would junk entry
entry "2006-09-21_11h30_img_0877.jpg" in directory inode 4194463767 points to free inode 4194517310, would junk entry
free block 16777216 for directory inode 4194463767 bad nused
        - 20:52:15: traversing filesystem - 128 of 128 allocation groups done
        - traversal finished ...
        - traversing all unattached subtrees ...
        - traversals finished ...
        - moving disconnected inodes to lost+found ...
Phase 7 - verify link counts...

output ends with "killed" :-O

entry "2006-09-21_11h31_img_0881.jpg" in directory inode 4194463767 points to free inode 4194517302, would junk entry
entry "2006-09-21_11h30_img_0880.jpg" in directory inode 4194463767 points to free inode 4194517304, would junk entry
entry "2006-09-21_11h30_img_0879.jpg" in directory inode 4194463767 points to free inode 4194517306, would junk entry
entry "2006-09-21_11h30_img_0878.jpg" in directory inode 4194463767 points to free inode 4194517308, would junk entry
entry "2006-09-21_11h30_img_0877.jpg" in directory inode 4194463767 points to free inode 4194517310, would junk entry
free block 16777216 for directory inode 4194463767 bad nused
        - 20:52:15: traversing filesystem - 128 of 128 allocation groups done
        - traversal finished ...
        - traversing all unattached subtrees ...
        - traversals finished ...
        - moving disconnected inodes to lost+found ...
Phase 7 - verify link counts...
zsh: killed     xfs_repair -n /dev/datavg1/datalv1
xfs_repair -n /dev/datavg1/datalv1  21.80s user 8.20s system 6% cpu 7:23.75 total
137 root@ned /vk #

another repair thinks that everything is solved by mount && umount

root@ned /vk # xfs_repair /dev/datavg1/datalv1
        - creating 2 worker thread(s)
Phase 1 - find and verify superblock...
        - reporting progress in intervals of 15 minutes
Phase 2 - using internal log
        - zero log...
ERROR: The filesystem has valuable metadata changes in a log which needs to
be replayed.  Mount the filesystem to replay the log, and unmount it before
re-running xfs_repair.  If you are unable to mount the filesystem, then use
the -L option to destroy the log and attempt a repair.
Note that destroying the log may cause corruption -- please attempt a mount
of the filesystem before doing this.
2 root@ned /vk # mount /data
root@ned /vk # umount /data
root@ned /vk #

xfs_check ends with a kill line?

root@ned ~ # xfs_check /dev/datavg1/datalv1
/usr/sbin/xfs_check: line 28: 27511 Killed                  xfs_db$DBOPTS -i -p xfs_check -c "check$OPTS" $1
xfs_check /dev/datavg1/datalv1  7.76s user 5.34s system 9% cpu 2:23.32 total
137 root@ned ~ #

another try, another number infront of "killed"

root@ned ~ # xfs_check /dev/datavg1/datalv1
/usr/sbin/xfs_check: line 28: 28822 Killed                  xfs_db$DBOPTS -i -p xfs_check -c "check$OPTS" $1
xfs_check /dev/datavg1/datalv1  7.65s user 5.72s system 9% cpu 2:25.38 total
137 root@ned ~ #

In irc on #xfs sandeen helped me to find out, that I've got a memory problem:

my out of memory messages from my experiments

root@ned ~ # dmesg | grep -i oom
oom-killer: gfp_mask=0x201d2, order=0
oom-killer: gfp_mask=0x201d2, order=0
oom-killer: gfp_mask=0x201d2, order=0
oom-killer: gfp_mask=0x280d2, order=0
oom-killer: gfp_mask=0x201d2, order=0
oom-killer: gfp_mask=0x280d2, order=0
oom-killer: gfp_mask=0x201d2, order=0
root@ned ~ #

So I have to add a swap file:

from the web

fuer ein 64MB swap file:
  # dd if=/dev/zero of=/var/swap/swapfile bs=1024 count=65536
und dann mit mkswap initialisieren:
  # mkswap /var/swap/swapfile
wenn man anschliessend einen Eintrag in /etc/fstab macht in der Art von:
   /var/swap/swapfile  swap swap  pri=1000 0 0
dann wird das file /var/swap/swapfile nach dem naechsten "swapon -a" fuer
swapping mitbenuetzt.

free space

root@ned ~ # df -h .
Filesystem            Size  Used Avail Use% Mounted on
/dev/root             9.2G  7.4G  1.4G  85% /
root@ned ~ #

I'll try 1GB:

dd if=/dev/zero of=/root/swapfile bs=1024 count=1048576
mkswap /root/swapfile
/etc/fstab: /root/swapfile swap swap pri=1000 0 0
swapon -a

execution

root@ned ~ # dd if=/dev/zero of=/root/swapfile bs=1024 count=1048576
1048576+0 records in
1048576+0 records out
1073741824 bytes (1.1 GB) copied, 51.4096 seconds, 20.9 MB/s
dd if=/dev/zero of=/root/swapfile bs=1024 count=1048576  1.17s user 23.43s system 47% cpu 51.772 total
root@ned ~ # mkswap /root/swapfile
Setting up swapspace version 1, size = 1073737 kB
no label, UUID=b13ac6f5-ed9b-4a17-bdb0-95a699738415
root@ned ~ #

another xfs_repair did work out great

[...]
        - agno = 122
        - agno = 123
        - agno = 124
        - agno = 125
        - agno = 126
        - agno = 127
        - 19:46:44: check for inodes claiming duplicate blocks - 1006272 of 1006272 inodes done
Phase 5 - rebuild AG headers and trees...
        - 19:46:56: rebuild AG headers and trees - 128 of 128 allocation groups done
        - reset superblock...
Phase 6 - check inode connectivity...
        - resetting contents of realtime bitmap and summary inodes
        - ensuring existence of lost+found directory
        - traversing filesystem starting at / ...
free block 16777216 for directory inode 3993020928 bad nused
rebuilding directory inode 3993020928
can't read freespace block 16777216 for directory inode 4194463767
rebuilding directory inode 4194463767
        - 19:49:57: traversing filesystem - 128 of 128 allocation groups done
        - traversal finished ...
        - traversing all unattached subtrees ...
        - traversals finished ...
        - moving disconnected inodes to lost+found ...
Phase 7 - verify and correct link counts...
        - 19:52:00: verify and correct link counts - 1006272 of 1006272 inodes done
done
xfs_repair /dev/datavg1/datalv1  22.92s user 9.95s system 6% cpu 9:06.62 total
root@ned ~ #

Monitoring with "top" showed a maximum of approx. 650MB of RAM for that process only.

xfs_check without problems

root@ned ~ # xfs_check /dev/datavg1/datalv1
xfs_check /dev/datavg1/datalv1  16.33s user 14.10s system 7% cpu 6:58.15 total
root@ned ~ #

So trying a mount ...

Seems to work. <crossing fingers>
comment this entry
go to top of page

installing APC UPS

not solved yet

what is connected per USB-cable?

root@ned ~ # lsusb
Bus 003 Device 001: ID 0000:0000
Bus 002 Device 003: ID 051d:0002 American Power Conversion Back-UPS Pro 500/1000/1500
Bus 002 Device 001: ID 0000:0000
Bus 004 Device 001: ID 0000:0000
Bus 001 Device 001: ID 0000:0000
root@ned ~ #

What provides debian for me?

root@ned ~ # acs apc
amap - next generation scanning tool
angrydd - Angry Drunken Dwarves - falling blocks puzzle game
apcalc - Arbitrary precision calculator (original name: calc)
apcalc-common - Arbitrary precision calculator (common files)
apcalc-dev - Library for arbitrary precision arithmetic
apcupsd - APC UPS Power Management (daemon)
apcupsd-cgi - APC UPS Power Management (web interface)
apcupsd-doc - APC UPS Power Management (documentation/examples)
collectd - statistics collection daemon
festvox-itapc16k - Italian male speaker for Festival
gapcmon - apcupsd monitor GUI
genpower - Monitor UPS and handle line power failures
gpsbabel - GPS file conversion plus transfer to/from GPS units
iasl - Intel ASL compiler/decompiler
imapcopy - IMAP backup, copy and migration tool
libmail-imapclient-perl - Perl library for manipulating IMAP mail stores
nut-snmp - A meta SNMP Driver subsystem for the nut - Network UPS Tools
powstatd - Configurable UPS monitoring daemon
texlive-latex-extra - TeX Live: LaTeX supplementary packages
tinysnmp-module-ups - UPS MIB module for TinySNMP
xbase-clients - miscellaneous X clients
apachetoolbox - easily compile Apache
root@ned ~ #

aptitude install apcupsd

my configuration

root@ned /etc/apcupsd # grep -v "^#" apcupsd.conf|grep -v "^$"
UPSNAME ned_ups
UPSCABLE usb
UPSTYPE usb
DEVICE
LOCKFILE /var/lock
SCRIPTDIR /etc/apcupsd
PWRFAILDIR /etc/apcupsd
NOLOGINDIR /etc
ONBATTERYDELAY 6
BATTERYLEVEL 5
MINUTES 2
TIMEOUT 0
ANNOY 300
ANNOYDELAY 60
NOLOGON disable
KILLDELAY 0
NETSERVER on
NISIP 127.0.0.1
NISPORT 3551
EVENTSFILE /var/log/apcupsd.events
EVENTSFILEMAX 10
UPSCLASS standalone
UPSMODE disable
STATTIME 0
STATFILE /var/log/apcupsd.status
LOGSTATS off
DATATIME 0
WAKEUP 60
root@ned /etc/apcupsd #

modify to yes

root@ned /etc/apcupsd # cat /etc/default/apcupsd
# Defaults for apcupsd initscript
# Apcupsd-devel internal configuration
APCACCESS=/sbin/apcaccess
ISCONFIGURED=yes
root@ned /etc/apcupsd #

Start apcupsd

Test it:

[x] disconnect cable -> Email should be sent
[x] reconnect cable -> Email should be sent
[x] disconnect cable and do not reconnect -> after some time, host should shutdown
[~] reconnect cable -> host should be booted
[x] is apcupsd running again?

Problem 1: UPS run out of battery -> system shutdown -> power back again -> ned did not start

Old problem: switch off ned at power switch, wait for half a minute and switch on again -> ned boots

Problem 2: eth0 and eth1 were swapped after booting!

-> modify /etc/network/interfaces and swap eth0 and eth1
-> modify /etc/init.d/vk-gateway and swap eth0 and eth1

Test output in log so far

root@ned ~log # cat apcupsd.events
Sat Aug 25 22:54:54 CEST 2007  Power failure.
Sat Aug 25 22:55:00 CEST 2007  Running on UPS batteries.
Sat Aug 25 22:55:24 CEST 2007  Mains returned. No longer on UPS batteries.
Sat Aug 25 22:55:24 CEST 2007  Power is back. UPS running on mains.
Sat Aug 25 23:07:31 CEST 2007  Power failure.
Sat Aug 25 23:07:36 CEST 2007  Running on UPS batteries.
Sat Aug 25 23:08:13 CEST 2007  Mains returned. No longer on UPS batteries.
Sat Aug 25 23:08:13 CEST 2007  Power is back. UPS running on mains.
Sat Aug 25 23:13:41 CEST 2007  Power failure.
Sat Aug 25 23:13:47 CEST 2007  Running on UPS batteries.
Sat Aug 25 23:22:07 CEST 2007  Battery power exhausted.
Sat Aug 25 23:22:07 CEST 2007  Initiating system shutdown!
Sat Aug 25 23:22:07 CEST 2007  User logins prohibited
Sat Aug 25 23:22:12 CEST 2007  apcupsd exiting, signal 15
Sat Aug 25 23:22:12 CEST 2007  apcupsd shutdown succeeded
root@ned ~log #

Emails:

To root@ned.hom (1.2K) ned UPS Power Failure !!!
To root@ned.hom (1.2K) ned UPS Power has returned
To root@ned.hom (1.2K) ned UPS Power has returned
To root@ned.hom (1.2K) ned UPS Power Failure !!!

Example email

From vk@ned...
To: root@ned...
Subject: ned UPS Power Failure !!!
Date: Sat, 25 Aug 2007 23:07:37 +0200 (CEST)
From: root <root@ned...
Subject: ned UPS Power Failure !!!
ned UPS Power Failure !!!
APC      : 001,044,1092
DATE     : Sat Aug 25 23:07:36 CEST 2007
HOSTNAME : ned
RELEASE  : 3.14.1
VERSION  : 3.14.1 (04 May 2007) debian
UPSNAME  : ned_ups
CABLE    : USB Cable
MODEL    : Back-UPS CS 500
UPSMODE  : Stand Alone
STARTTIME: Sat Aug 25 22:47:58 CEST 2007
STATUS   : ONBATT
LINEV    : 000.0 Volts
LOADPCT  :  27.0 Percent Load Capacity
BCHARGE  : 090.0 Percent
TIMELEFT :  22.1 Minutes
MBATTCHG : 5 Percent
MINTIMEL : 2 Minutes
MAXTIME  : 0 Seconds
OUTPUTV  : 230.0 Volts
SENSE    : Medium
DWAKE    : 000 Seconds
DSHUTD   : 000 Seconds
LOTRANS  : 180.0 Volts
HITRANS  : 266.0 Volts
RETPCT   : 000.0 Percent
ITEMP    : 29.2 C Internal
ALARMDEL : Always
BATTV    : 12.2 Volts
LINEFREQ : 50.0 Hz
LASTXFER : High line voltage
NUMXFERS : 2
XONBATT  : Sat Aug 25 23:07:30 CEST 2007
TONBATT  : 7 seconds
CUMONBATT: 37 seconds
XOFFBATT : Sat Aug 25 22:55:24 CEST 2007
SELFTEST : NO
STATFLAG : 0x07060010 Status Flag
SERIALNO : 8B0709R11914
BATTDATE : 2007-03-04
NOMOUTV  : 230
NOMINV   : 230
NOMBATTV :  12.0
FIRMWARE : 808.q8.I USB FW:q8
APCMODEL : Back-UPS CS 500
END APC  : Sat Aug 25 23:07:37 CEST 2007

-> 22 minutes of power with 90 percent battery charge capacity

example email 2 with CRT-monitor attached

[...]
LOADPCT  :  47.0 Percent Load Capacity
BCHARGE  : 084.0 Percent
TIMELEFT :  12.2 Minutes
[...]

-> 12 minutes with a running 19"-CRT
comment this entry
go to top of page

Using gvim to colorize sourcecode

not solved yet
http://barnson.org/node/295#comment-26758
comment this entry
go to top of page

gvim as Outlook-editor

not solved yet
http://barnson.org/node/295#comment-26755
comment this entry
go to top of page

OS X: No sound when playing Quick-Time movies like YouTube-videos in my browser

not solved yet
Since several weeks I faced a weird problem: whenever I played a youtube-video
in my OS X Firefox, I got no sound at all. I had to download the videofile
using the VideoDownloader-plugin and play it locally using VLC.

Today I found the reason: some application set the audio output format to 48kHz!

Solution: Open Audio MIDI Setup and change "Audio Output" Format to 44,1kHz and
then everything works fine again ;-)
comment this entry
go to top of page

Attachment handling from mutt to OS X (over the network)

not solved yet
please see my blog entry about "Enable remote URL opening from screen to
Firefox at OS X" first in order to get the basics of this issue solution.

With the open reverse tunnel (mentioned above), we can modify the mailcap-file in the home directory:

vk@kva ~ % cat .mailcap
application/*; scp -P 4242 %s vk@localhost:desktop/
image/*; scp -P 4242 %s vk@localhost:desktop/
vk@kva ~ %

Add a line for each document type. Whenever you get an email in mutt, you can
see the list of attachments by pressing 'v'. When you select an attachment,
whose document type is found in your mailcap-file as above, the file gets
copied right onto your OS X desktop (in this example).

Of course, you can write a script that opens up the file by invoking open() but
for me I'd like to keep the power of choosing an alternative application to
open the file. YMMV.
comment this entry
go to top of page

Enable remote URL opening from screen to Firefox at OS X

not solved yet

My setup

kva (Rootserver)                --- ned (Linux-router) --- marge (OS X desktop)
screen-session with mutt as MUA --- just a hop host    --- here I sit infront of the computer ;-)

I am using the host marge as a desktop but I mostly work through a ssh-session
to the host ned and another one to host kva in a GNU screen-session on kva.

Don't know GNU screen? If you're working with terminals, you've missed the best
tool: http://en.wikipedia.org/wiki/GNU_Screen

Desired feature: when I press a magic key combination, the currently shown
content of my screen windows gets parsed for hyperlinks, a window pops up where
I can choose one of the found URLs and after selecting it, it gets opened as a
new tab on my desktop Firefox browser in OS X. Cool eh? ;-)

Things that have to be accomplished:

1.) enable ssh backward tunnel through ssh from kva to marge
2.) enable ssh-login from kva to marge without entering a password
3.) create a screen-mechanism to extract URLs
4.) invoke a command that opens the URL on my Firefox

Starting the ssh backward tunnel when connecting to kva (from ned)

vk@ned ~ % grep ssh .zshrc.local
alias kva="ssh vk@123.456.78.9 -R 4242:marge:22"
vk@ned ~ %

Note: if you connect directly from OS X to the host with the screen session,
you can choose "4242:localhost:22" too, without the need of the router hop in
between.

enable ssh-login from kva directly to marge without entering a password

vk@kva ~ % cd .ssh
vk@kva ~/.ssh % ssh-keygen -t rsa
[...generating key pair without passphrase...]
vk@kva ~/.ssh % cat id_rsa.pub | ssh vk@localhost -p 4242 'cat >> .ssh/authorized_keys'
vk@kva ~/.ssh

You can do the last step even more cool by using ssh-copy-id. (Have a look on
the man-page for further details):

Alternative method using ssh-copy-id

vk@kva ~ % ssh-copy-id -i .ssh/id_rsa.pub vk@the.ned.server
15
Password:
Now try logging into the machine, with "ssh 'vk@the.ned.server'", and check in:
  .ssh/authorized_keys
to make sure we haven't added extra keys that you weren't expecting.
vk@kva ~ %

To extract URLs from a file, you can use urlview.

my urlview configuration

vk@kva ~ % cat .urlview
#
# Sample urlview(1) configuration file
#
# regular expression to use to match URLs
REGEXP (((http|https|ftp|gopher)|mailto):(//)?[^ <>"\t]*|(www|ftp)[0-9]?\.[-a-z0-9.]+)[^ .,;\t\n\r<">\):]?[^, <>"\t]*[^ .,;\t\n\r<">\):]
# command to invoke for selected URL
COMMAND ssh vk@localhost -p 4242 open
vk@kva ~ %

manual remote opening test of URLs with urlview

vk@kva ~ % echo http://www.heise.de >deleteme
vk@kva ~ % urlview deleteme
[ choose URL and press Enter twice ]
[ URL gets opened in Firefox! ]
vk@kva ~ %

create a screen-mechanism to extract URLs

vk@kva ~/.screen % grep urlview default_bind
bind U eval "hardcopy_append off" "hardcopy -h /tmp/screen-urlview.tmp" "screen urlview /tmp/screen-urlview.tmp; rm /tmp/screen-urlview.tmp"
vk@kva ~/.screen %

Note: the file "default_bind" from above is sourced in my ~/.screenrc so you can
put the line there also.

Now whenever I press "Ctrl-a U" in screen, a dialog pops up with all the URLs
found in the current screen and I can choose, which one of those will be opened
in my browser. Jeah, Baby jeah!


Note: If you are using mutt as MUA, I described a method to simply copy mail
attachments to the OS X desktop which is found in the blog entry "Attachment
handling from mutt to OS X (over the network)"
comment this entry
go to top of page

vim: handy macros for using vim as email editor

not solved yet
handy macros for using vin as email editor

,----[ Cursor on the first '>' of the second line ]
| before: after:
|
| > foo bar 1 > foo bar 1
| > foo bar 2
| > foo bar 3 <Cursor>
|
| > foo bar 2
| > foo bar 3
`----

Solution:
:map ,foo 0ji<CR><CR><CR><ESC>kki


Insert comment between lines:

,----[ Cursor on 'b' of "bar" ]
| before: after:
|
| > foo bar > foo
|
| <Cursor>
|
| > bar
`----

Solution:
:map ,foo i<CR><CR><CR><CR><ESC>0kxkkxjxi


For moving the "header line" into the boxed-title:

,----[ Cursor on the first ',' ]
| before: after:
|
| foo bar ,----[ foo bar ]
| ,----[ ] | asdf...
| | asdf...
`----

Solution:
:map ,foo kDj6lp0
comment this entry
go to top of page

Methods to prevent sshd password guessing attacks

not solved yet
http://www.teaparty.net/technotes/ssh-rate-limiting.html

http://www.linux.com/articles/61061

I finally ended up in using portsentry and fail2ban. Portsentry keeps an eye on
hosts that scan my ports and fail2ban rejects hosts that try to log in too
often.
comment this entry
go to top of page

Firefox+mozex+TWiki: Syntax highlighting

not solved yet
get mozex:
http://mozex.mozdev.org/installation.html

... install it in Firefox

get TWiki syntax files:
http://www.vim.org/scripts/script.php?script_id=1113

copy the files ftplugin/* and syntax/* into your vim-directories (usually "C:\Dokumente und Einstellungen\voit\vimfiles\...")

add following lines in your .vimrc:

let g:Twiki_FoldAtHeadings = 1
let g:Twiki_SourceHTMLSyntax=1
let g:Twiki_Functions=1
let g:Twiki_Mapings=1
augroup filetypedetect
        au BufNewFile,BufRead *.wiki     setf twiki
        au BufNewFile,BufRead mozex.*.txt     setf twiki
        au BufNewFile,BufRead /tmp/mozex/mozex.textarea*.txt setf twiki
augroup END

Enable TWiki syntax highlighting by typing: "set ft=twiki".
comment this entry
go to top of page

Delete files older than XX days

not solved yet
find /path/to/dir -mtime +200 -exec rm {} \;


delete old trash-emails

karl@grmlvrs ~/tmp % duu
1804292 trash_cur
karl@grmlvrs ~/tmp % find ./trash_cur -mtime +200 -exec rm {} \;
find ./trash_cur -mtime +200 -exec rm {} \;  2.83s user 11.25s system 70% cpu 19.860 total
karl@grmlvrs ~/tmp % duu
1533732 trash_cur
karl@grmlvrs ~/tmp %
comment this entry
go to top of page

Monitoring of current hard-disk throughput

not solved yet
dstat
comment this entry
go to top of page

Monitoring traffic bandwidth with iptables

not solved yet
http://www.linux.com/article.pl?sid=05/12/15/177232

I created a cron-job that will be executed every midnight of the first of a new month:

iptables -L -v >`/bin/date +%Y%m%d-%Hh%Mm%Ss`_iptables_L_v.log


example

root@ned ~log # cat 20070502-13h29m23s_iptables_L_v.log
Chain INPUT (policy ACCEPT 874M packets, 548G bytes)
 pkts bytes target     prot opt in     out     source               destination
41038 2824K fail2ban-ssh  tcp  --  any    any     anywhere             anywhere            tcp dpt:ssh
58759 8094K DROP       tcp  --  any    any     anywhere             anywhere            tcp flags:!FIN,SYN,RST,ACK/SYN state NEW
Chain FORWARD (policy ACCEPT 0 packets, 0 bytes)
 pkts bytes target     prot opt in     out     source               destination
6440K  626M ACCEPT     0    --  eth0   any     anywhere             anywhere
9253K 9894M ACCEPT     0    --  any    any     anywhere             anywhere            state RELATED,ESTABLISHED
Chain OUTPUT (policy ACCEPT 1042M packets, 780G bytes)
 pkts bytes target     prot opt in     out     source               destination
Chain fail2ban-ssh (1 references)
 pkts bytes target     prot opt in     out     source               destination
40917 2815K RETURN     0    --  any    any     anywhere             anywhere
root@ned ~log #
comment this entry
go to top of page

Which address-informations are being synchronized

not solved yet

devices used to test syncing

vifpc86:  Windows XP Pro, Outlook 2003, HotSync 4.1.0
marge:    OS X 10.4.8, iSync v2.3, Addressbook v4.0.4
milhouse: Palm T3
burns:    SonyEricsson K750i

Syncing is done: vifpc86 <-> Milhouse <-> marge <-> Burns

guessed status quo

What                     vifpc86          Milhouse            marge          burns
----------------------------------------------------------------------------------------
Category                    x                x        |         -              -
is private entry?           x                x        |         -              -
picture                     x       |        -        |         x       |      x
Lastname                    x                x                  x              x 
Firstname                   x                x                  x              x 
sex                         x       |        -                  -              -
Nickname                    x       |        -        |         x              ?
Companyname                 x                x                  x       |      - 
is company or person?       -                -        |         x              x
title                       x                x                  x              ? 
Tel office                  x                x                  x              ? 
Tel private                 x                x                  x              ? 
Tel cellphone               x                x                  x              x 
Email office                x                x                  x              ? 
Email private               ?                ?                  ?              ? 
Tel main                    x[1]             x                  x              ? 
Instant messager no.        x                x        |         x              ? 
website office              x                x                  x              ?
Address office              x                x                  x              ?
City office                 x                x                  x              ?
State office                x                x                  x              ?
BLZ office                  x                x                  x              ?
Country office              x                x                  x              ?
website private             x       |        -                  x              ?
Address private             x       |        -        |         x              ?
City private                x       |        -        |         x              ?
State private               x       |        -        |         x              ?
BLZ private                 x       |        -        |         x              ?
Country private             x       |        -        |         x              ?
Birthday                    x                x        |         x              ?
User1                                        x
User2                                        x
User3                                        x
User4                                        x
Notes                       x                x                  x       |      x

[1] called: Telefonzentrale Firma

--> I have to test the whole thing to get this list with validated values:



Synctest OS X addressbook maximum entry -> SonyEricsson K750i

company              x
phonetic firstname
phonetic middlename
phonetic lastname
prefix
firstname            x  (shortened)
middlename
lastname             x  (shortened)
suffix
nickname
title                x
department
maiden name
phone work           x
phone mobile         x
phone main
phone home           x
fax home
fax work             x
pager                x
phone_other1
phone other2
email home
email work           x
email other1
email other2
homepage             x
URL_home
URL_work
URL_other1
URL_other2
birthday             x
friend
assistant
father
mother
parent
brother
sister
child
spouse
partner
manager
other1
other2
home-icq
work-icq
other1-icq
other2-icq
address home
posyal code home
city home
country home
address work         x
postal code work     x
city work
country work         x
address other
postal code other
city other
country other
note                 x

summary of synchronized fields between SE K750i and Addressbook

company              x
firstname            x  (shortened)
lastname             x  (shortened)
title                x
phone work           x
phone mobile         x
phone home           x
fax work             x
pager                x
email work           x
homepage             x
birthday             x
address work         x
postal code work     x
country work         x
note                 x



Synctest Outlook <-> Palm

Outlook has _many_ entries (approximately 150 fields which were filled
manually). Following list contains all fields, that were synchronized to the
Palm T3:

category
is_private
firstname
lastname
position
company
phone work
phone home
fax work
phone other
email main
phone work
pager
Instant messager main
website
work: street, postal number, city, county, country
home: street, postal number, city, county, country
other: street, postal number, city, county, country
birthday
user1
user2
user3
user4
note

--> full filling of all address fields of palm!


Synctest OS X Addressbook -> Palm

(checked by generating a maximum field entry in addressbook of OS X and syncing
to Palm T3)

firstname
lastname
title
company
phone_work
phone_home
fax_work (interpreted as fax (general))
phone_other1 (as other)
email_work (as E-Mail (general))
home: address, postalcode, city, county, country (as work address fields)
note


Synctest OS X Addressbook <-> SE K750i

FIXXME



OS X Addressbook: exporting the full entry as vCard and reimporting it:

everything was reimportet except notes-field




List of all fields that are being able to be synced from Outlook to Palm to OS
X (without SonyEricsson K750i): (full path minus cellphone where I only need
numbers!)


maximum Outlook-entry viewed in OS X Addressbook

firstname
lastname
position
company
phone_work
phone_home
fax_work
phone_other
email_main (interpreted as email_work)
street_work, postal_work, city_work, country_work (interoreted by Addressbook as home)
note

maximum OS-X-Addressbook-entry viewed in Outlook

firstname
lastname
title
company
phone_work
phone_home
fax_work
address-fields for home (interpreted as work)
email_work (interpreted as main email address)
notes
phone_other1 (interpreted as other phone)



Final Test: fill all fields on SE K750i that are likely to be syncronized all
the chain backward to Outlook

FIXXME



Mappings between devices

Outlook           Palm               OS X Addressbook       SE Cellphone
----------------------------------------------------------------------------------
firstname         firstname          firstname              firstname
lastname          lastname           lastname               lastname
company           company            company                company
position          title              title                  title
phone_work        phone_work         phone_work             as:
phone_home        phone_private      phone_home             as:
phone_weitere     phone_other        phone_other1            
fax_work          fax                fax_work               as:
email_main        email              email_work             as:
address_work      address_work       address_home            
note              note               note                   note
                                 |   pager                  as:
                                 |   phone_mobile           as:
                                 |   homepage               as:
                                 |   address-fields_work    yes (without city, without county)
birthday          birthday       |   birthday               as:
category          category       |                            
is_private        is_private     |
address_home      address_home   |
address_other     address_other  |
phone_company     phone_main     |
pager             pager          |
IM_main           IM             |
website_main      website        |
user1             user1          |
user2             user2          |
user3             user3          |
user4             user4          |
comment this entry
go to top of page

AIX5.3: .screenrc with caption and hardstatus makes problems

not solved yet
I prefer a GNU screen configuration, where I can see, which windows are opened
with which label and number. Like:

karl@grmlvrs | 15:28 Fri 23.03.2007 | (load: 0.05 0.11 0.09 | cpu: [ cpufreq n/a ])       Fri 23.03.2007 15:28
0 vim Tagebuch  | 0* vim Tagebuch  1 mutt@grmlvrs  2 zsh  3 vim-emacs-cheatsheet  4- zsh  5 procmailrc  7 A->B

Unfortunately, with AIX and screen 3.09.08 (FAU) 1-Sep-00 (no newer binary
found, self compilation failed), my usual configuration ends up in garbage:

.screenrc: caption always "$USER | %c %D %d.%m.%Y | load: %l"
AIX5.3: "voitka | 15:18 Fri 23.03.2007 | load: 1.40 1.54 1.47"
.screenrc: caption always "%{+b bk}$USER@%{wk}%H%{gk} | %c %{yk}%D %d.%m.%Y | %{rk}(load: %l | cpu: %1` | acpi: %2`)"
AIX5.3: "0{+b bk}voitka@0{wk}0H0{gk} | 15:19 0{yk}Fri 23.03.2007 | 0{rk}(load: 2.14 1.73 1.54 | cpu: 0` | acpi:  0`)"
.screenrc: hardstatus alwayslastline "%{wr}%n%f %t %{kw} | %?%-Lw%?%{wb}%n*%f %t%?(%u)%?%{kw}%?%+Lw%? %{wk}"
AIX5.3: "0{wr}00f ksh 0{kw} | 0-Lw0{wb}0*0f ksh0{kw}0+Lw 0{wk}" (only showing current window)
.screenrc: hardstatus alwayslastline "%n%f %t  | %?%- %t"
AIX5.3: "00f ksh  | 0- ksh" (only showing current window)

To me, it would help, if I knew, what formatstring the usual "Ctrl-a
w"-information is because this works also on AIX.

caption always "$USER @ $HOST | %c %D %d.%m.%Y  %Y%m%d | load: %l"
hardstatus alwayslastline "  %w"

ends up in:

voitka @ uxibm275 | 15:36 Fri 23.03.2007  20070323 | load: 2.50 1.96 1.67
  0* first_window  1 second
comment this entry
go to top of page

export EyeTV-recordings to video-files

not solved yet
updating ffmpeg and libraries on my grml (linux)

copying a recording (special filled directory with extension .eyetv) to my
samba-share on my linux-box

"Exporttest 1m.eyetv" --> a recording of 60 seconds using EyeTV 250 (Pinnacle)

vcd-test

vk@ned ...yeTV-Umrechnerei/Exporttest 1m.eyetv % ffmpeg -i 000000000b620606.mpg -target vcd ./vcd.mpg
FFmpeg version SVN-rUNKNOWN, Copyright (c) 2000-2006 Fabrice Bellard, et al.
  configuration:  --prefix=/usr --libdir=${prefix}/lib --shlibdir=${prefix}/lib --incdir=${prefix}/include/ffmpeg --enable-shared --enable-mp3lame --enable-gpl --enable-faad --mandir=${prefix}/share/man --enable-vorbis --enable-pthreads --enable-faac --enable-xvid --enable-dts --enable-amr_nb --enable-amr_wb --enable-pp --enable-libogg --enable-libgsm --enable-x264 --enable-a52 --extra-cflags=-Wall -g -fPIC -DPIC --cc=ccache cc
  libavutil version: 49.1.0
  libavcodec version: 51.28.0
  libavformat version: 51.7.0
  built on Jan 19 2007 17:05:58, gcc: 4.1.2 20061115 (prerelease) (Debian 4.1.1-21)
Input #0, mpegts, from '000000000b620606.mpg':
  Duration: 00:00:59.4, start: 0.338356, bitrate: 3990 kb/s
  Stream #0.0[0x12c]: Video: mpeg2video, yuv420p, 720x576, 6000 kb/s, 25.00 fps(r)
  Stream #0.1[0x12d](eng): Audio: mp2, 44100 Hz, stereo, 192 kb/s
Assuming PAL for target.
Output #0, vcd, to './vcd.mpg':
  Stream #0.0: Video: mpeg1video, yuv420p, 352x288, q=2-31, 1150 kb/s, 25.00 fps(c)
  Stream #0.1: Audio: mp2, 44100 Hz, stereo, 224 kb/s
Stream mapping:
  Stream #0.0 -> #0.0
  Stream #0.1 -> #0.1
Press [q] to stop encoding
frame= 1499 q=2.0 Lsize=   10195kB time=59.9 bitrate=1393.8kbits/s
video:8414kB audio:1642kB global headers:0kB muxing overhead 1.375650%
ffmpeg -i 000000000b620606.mpg -target vcd ./vcd.mpg  104.43s user 0.67s system 99% cpu 1:45.49 total
vk@ned ...yeTV-Umrechnerei/Exporttest 1m.eyetv % l
total 40380
drwx------ 2 vk vk     4096 2007-01-28 15:54 ./
drwx------ 3 vk vk       48 2007-01-28 15:54 ../
-rwx------ 1 vk vk     5040 2007-01-20 09:51 000000000b620606.eyetvi*
-rwx------ 1 vk vk     1126 2007-01-20 09:26 000000000b620606.eyetvp*
-rwx------ 1 vk vk     1904 2007-01-20 09:51 000000000b620606.eyetvr*
-rwx------ 1 vk vk 29659820 2007-01-20 09:51 000000000b620606.mpg*
-rwx------ 1 vk vk       82 2007-01-28 15:54 ._000000000b620606.tiff*
-rwx------ 1 vk vk  1220199 2007-01-28 15:54 000000000b620606.tiff*
-rw-r--r-- 1 vk vk 10439408 2007-01-28 15:44 vcd.mpg
vk@ned ...yeTV-Umrechnerei/Exporttest 1m.eyetv %

--> mpg-file that can be played with VLC (OS X)

Quality is not so good.


man ffmpeg

-target type
    Specify target file type ("vcd", "svcd", "dvd", "dv", "pal-vcd", "ntsc-svcd", ... ). All the format options (bitrate, codecs, buffer sizes) are
    then set automatically. You can just type:
            ffmpeg -i myfile.avi -target vcd /tmp/vcd.mpg

results of my tests (inputfile with 60s)

target         size [M]      encoding time     output size   subjective quality
==================================================================================
EyeTV           29   x1      (realtime) x1     720x576       good (settings, see below)
vcd             10   x0.35   104.43s    x1.7   480x576       poor or very poor
svcd            17   x0.59   89.53s     x1.5   480x576       poor but better than vcd
dvd             47   x1.6    81.86s     x1.4   720x576       same quality than original
dv             206   x7.1    71.82s     x1.2   720x576       VLC cannot play it
pal-vcd    
ntsc-svcd
vcodec_mpeg4     6.5 x0.22   115.02s    x1.9   720x576       poor or acceptable
vcodec_h264     15   x0.52   402.43s    x6.7   720x576       acceptable or good
vcodec_xvid      6.8 x0.23   179.92s    x3.0   720x576       acceptable or good

Settings of EyeTV2: (eyetv2 v.2.3.3 (2497))

Video:
MPEG-2
720x576
VBR
Average bitrate 3.0 Mbps
Maximum bitrate 6.0 Mbps
GOP Structure: IBP Frames
Audio:
192 kbps
44.1 kHz
--> 1.3 GB per hour (says EyeTV)

-> if time does not count: h264, mp3
-> if space dows not count: original EyeTV2 MPEG-2

--> vcodec h264 seems to be a good tradeoff: ffmpeg -i SOURCEFILE -f avi -vcodec h264 -acodec mp3 DESTINATION.avi
--> half the filesize but approx. 7 times calculation time

svcd-test

vk@ned ...yeTV-Umrechnerei/Exporttest 1m.eyetv % ffmpeg -i 000000000b620606.mpg -target svcd ../svcd.mpg
FFmpeg version SVN-rUNKNOWN, Copyright (c) 2000-2006 Fabrice Bellard, et al.
  configuration:  --prefix=/usr --libdir=${prefix}/lib --shlibdir=${prefix}/lib --incdir=${prefix}/include/ffmpeg --enable-shared --enable-mp3lame --enable-gp
l --enable-faad --mandir=${prefix}/share/man --enable-vorbis --enable-pthreads --enable-faac --enable-xvid --enable-dts --enable-amr_nb --enable-amr_wb --enab
le-pp --enable-libogg --enable-libgsm --enable-x264 --enable-a52 --extra-cflags=-Wall -g -fPIC -DPIC --cc=ccache cc
  libavutil version: 49.1.0
  libavcodec version: 51.28.0
  libavformat version: 51.7.0
  built on Jan 19 2007 17:05:58, gcc: 4.1.2 20061115 (prerelease) (Debian 4.1.1-21)
Input #0, mpegts, from '000000000b620606.mpg':
  Duration: 00:00:59.4, start: 0.338356, bitrate: 3990 kb/s
  Stream #0.0[0x12c]: Video: mpeg2video, yuv420p, 720x576, 6000 kb/s, 25.00 fps(r)
  Stream #0.1[0x12d](eng): Audio: mp2, 44100 Hz, stereo, 192 kb/s
Assuming PAL for target.
Output #0, svcd, to '../svcd.mpg':
  Stream #0.0: Video: mpeg2video, yuv420p, 480x576, q=2-31, 2040 kb/s, 25.00 fps(c)
  Stream #0.1: Audio: mp2, 44100 Hz, stereo, 224 kb/s
Stream mapping:
  Stream #0.0 -> #0.0
  Stream #0.1 -> #0.1
Press [q] to stop encoding
frame= 1499 q=4.1 Lsize=   16763kB time=59.9 bitrate=2291.7kbits/s
video:14882kB audio:1642kB global headers:0kB muxing overhead 1.443782%
ffmpeg -i 000000000b620606.mpg -target svcd ../svcd.mpg  89.53s user 0.75s system 98% cpu 1:31.35 total
vk@ned ...yeTV-Umrechnerei/Exporttest 1m.eyetv %

dvd-test

vk@ned ...yeTV-Umrechnerei/Exporttest 1m.eyetv % ffmpeg -i 000000000b620606.mpg -target dvd ../dvd.mpg
FFmpeg version SVN-rUNKNOWN, Copyright (c) 2000-2006 Fabrice Bellard, et al.
  configuration:  --prefix=/usr --libdir=${prefix}/lib --shlibdir=${prefix}/lib --incdir=${prefix}/include/ffmpeg --enable-shared --enable-mp3lame --enable-gpl --enable-faad --mandir=${prefix}/share/man --enable-vorbis --enable-pthreads --enable-faac --enable-xvid --enable-dts --enable-amr_nb --enable-amr_wb --enable-pp --enable-libogg --enable-libgsm --enable-x264 --enable-a52 --extra-cflags=-Wall -g -fPIC -DPIC --cc=ccache cc
  libavutil version: 49.1.0
  libavcodec version: 51.28.0
  libavformat version: 51.7.0
  built on Jan 19 2007 17:05:58, gcc: 4.1.2 20061115 (prerelease) (Debian 4.1.1-21)
Input #0, mpegts, from '000000000b620606.mpg':
  Duration: 00:00:59.4, start: 0.338356, bitrate: 3990 kb/s
  Stream #0.0[0x12c]: Video: mpeg2video, yuv420p, 720x576, 6000 kb/s, 25.00 fps(r)
  Stream #0.1[0x12d](eng): Audio: mp2, 44100 Hz, stereo, 192 kb/s
Assuming PAL for target.
Output #0, dvd, to '../dvd.mpg':
  Stream #0.0: Video: mpeg2video, yuv420p, 720x576, q=2-31, 6000 kb/s, 25.00 fps(c)
  Stream #0.1: Audio: ac3, 48000 Hz, stereo, 448 kb/s
Stream mapping:
  Stream #0.0 -> #0.0
  Stream #0.1 -> #0.1
Press [q] to stop encoding
frame= 1499 q=2.0 Lsize=   47602kB time=59.9 bitrate=6507.9kbits/s
video:43317kB audio:3283kB global headers:0kB muxing overhead 2.150253%
ffmpeg -i 000000000b620606.mpg -target dvd ../dvd.mpg  81.86s user 1.06s system 83% cpu 1:39.14 total
vk@ned ...yeTV-Umrechnerei/Exporttest 1m.eyetv %

dv-test

vk@ned ...yeTV-Umrechnerei/Exporttest 1m.eyetv % ffmpeg -i 000000000b620606.mpg -target dv ../dv.mpg
FFmpeg version SVN-rUNKNOWN, Copyright (c) 2000-2006 Fabrice Bellard, et al.
  configuration:  --prefix=/usr --libdir=${prefix}/lib --shlibdir=${prefix}/lib --incdir=${prefix}/include/ffmpeg --enable-shared --enable-mp3lame --enable-gpl --enable-faad --mandir=${prefix}/share/man --enable-vorbis --enable-pthreads --enable-faac --enable-xvid --enable-dts --enable-amr_nb --enable-amr_wb --enable-pp --enable-libogg --enable-libgsm --enable-x264 --enable-a52 --extra-cflags=-Wall -g -fPIC -DPIC --cc=ccache cc
  libavutil version: 49.1.0
  libavcodec version: 51.28.0
  libavformat version: 51.7.0
  built on Jan 19 2007 17:05:58, gcc: 4.1.2 20061115 (prerelease) (Debian 4.1.1-21)
Input #0, mpegts, from '000000000b620606.mpg':
  Duration: 00:00:59.4, start: 0.338356, bitrate: 3990 kb/s
  Stream #0.0[0x12c]: Video: mpeg2video, yuv420p, 720x576, 6000 kb/s, 25.00 fps(r)
  Stream #0.1[0x12d](eng): Audio: mp2, 44100 Hz, stereo, 192 kb/s
Assuming PAL for target.
Output #0, dv, to '../dv.mpg':
  Stream #0.0: Video: dvvideo, yuv420p, 720x576, q=2-31, 200 kb/s, 25.00 fps(c)
  Stream #0.1: Audio: pcm_s16le, 48000 Hz, stereo, 1536 kb/s
Stream mapping:
  Stream #0.0 -> #0.0
  Stream #0.1 -> #0.1
Press [q] to stop encoding
frame= 1499 q=0.0 Lsize=  210797kB time=60.0 bitrate=28800.0kbits/s
video:210656kB audio:11260kB global headers:0kB muxing overhead -5.010778%
ffmpeg -i 000000000b620606.mpg -target dv ../dv.mpg  71.82s user 2.48s system 80% cpu 1:32.75 total
vk@ned ...yeTV-Umrechnerei/Exporttest 1m.eyetv %


svcd-test

vk@ned ...yeTV-Umrechnerei/Exporttest 1m.eyetv % ffmpeg -i 000000000b620606.mpg -target svcd ../svcd.mpg
FFmpeg version SVN-rUNKNOWN, Copyright (c) 2000-2006 Fabrice Bellard, et al.
  configuration:  --prefix=/usr --libdir=${prefix}/lib --shlibdir=${prefix}/lib --incdir=${prefix}/include/ffmpeg --enable-shared --enable-mp3lame --enable-gpl --enable-faad --mandir=${prefix}/share/man --enable-vorbis --enable-pthreads --enable-faac --enable-xvid --enable-dts --enable-amr_nb --enable-amr_wb --enable-pp --enable-libogg --enable-libgsm --enable-x264 --enable-a52 --extra-cflags=-Wall -g -fPIC -DPIC --cc=ccache cc
  libavutil version: 49.1.0
  libavcodec version: 51.28.0
  libavformat version: 51.7.0
  built on Jan 19 2007 17:05:58, gcc: 4.1.2 20061115 (prerelease) (Debian 4.1.1-21)
Input #0, mpegts, from '000000000b620606.mpg':
  Duration: 00:00:59.4, start: 0.338356, bitrate: 3990 kb/s
  Stream #0.0[0x12c]: Video: mpeg2video, yuv420p, 720x576, 6000 kb/s, 25.00 fps(r)
  Stream #0.1[0x12d](eng): Audio: mp2, 44100 Hz, stereo, 192 kb/s
Assuming PAL for target.
Output #0, svcd, to '../svcd.mpg':
  Stream #0.0: Video: mpeg2video, yuv420p, 480x576, q=2-31, 2040 kb/s, 25.00 fps(c)
  Stream #0.1: Audio: mp2, 44100 Hz, stereo, 224 kb/s
Stream mapping:
  Stream #0.0 -> #0.0
  Stream #0.1 -> #0.1
Press [q] to stop encoding
frame= 1499 q=4.1 Lsize=   16763kB time=59.9 bitrate=2291.7kbits/s
video:14882kB audio:1642kB global headers:0kB muxing overhead 1.443782%
ffmpeg -i 000000000b620606.mpg -target svcd ../svcd.mpg  89.53s user 0.75s system 98% cpu 1:31.35 total
vk@ned ...yeTV-Umrechnerei/Exporttest 1m.eyetv %



complex mpeg4-test

vk@ned ...yeTV-Umrechnerei/Exporttest 1m.eyetv % ffmpeg -i 000000000b620606.mpg -f avi -vcodec mpeg4 -b 800k -g 300 -bf 2 -acodec mp3 -ab 128  ../vcodec_mpeg4.mpg
FFmpeg version SVN-rUNKNOWN, Copyright (c) 2000-2006 Fabrice Bellard, et al.
  configuration:  --prefix=/usr --libdir=${prefix}/lib --shlibdir=${prefix}/lib --incdir=${prefix}/include/ffmpeg --enable-shared --enable-mp3lame --enable-gpl --enable-faad --mandir=${prefix}/share/man --enable-vorbis --enable-pthreads --enable-faac --enable-xvid --enable-dts --enable-amr_nb --enable-amr_wb --enable-pp --enable-libogg --enable-libgsm --enable-x264 --enable-a52 --extra-cflags=-Wall -g -fPIC -DPIC --cc=ccache cc
  libavutil version: 49.1.0
  libavcodec version: 51.28.0
  libavformat version: 51.7.0
  built on Jan 19 2007 17:05:58, gcc: 4.1.2 20061115 (prerelease) (Debian 4.1.1-21)
Input #0, mpegts, from '000000000b620606.mpg':
  Duration: 00:00:59.4, start: 0.338356, bitrate: 3990 kb/s
  Stream #0.0[0x12c]: Video: mpeg2video, yuv420p, 720x576, 6000 kb/s, 25.00 fps(r)
  Stream #0.1[0x12d](eng): Audio: mp2, 44100 Hz, stereo, 192 kb/s
Output #0, avi, to '../vcodec_mpeg4.mpg':
  Stream #0.0: Video: mpeg4, yuv420p, 720x576, q=2-31, 800 kb/s, 25.00 fps(c)
  Stream #0.1: Audio: mp3, 44100 Hz, stereo, 128 kb/s
Stream mapping:
  Stream #0.0 -> #0.0
  Stream #0.1 -> #0.1
Press [q] to stop encoding
frame= 1499 q=5.5 Lsize=    6609kB time=59.9 bitrate= 903.6kbits/s
video:5571kB audio:939kB global headers:0kB muxing overhead 1.529892%
ffmpeg -i 000000000b620606.mpg -f avi -vcodec mpeg4 -b 800k -g 300 -bf 2  mp3  115.02s user 1.15s system 82% cpu 2:19.98 total
vk@ned ...yeTV-Umrechnerei/Exporttest 1m.eyetv %


complex h264-test

vk@ned ...yeTV-Umrechnerei/Exporttest 1m.eyetv % ffmpeg -i 000000000b620606.mpg -f avi -vcodec h264 -acodec mp3  ../vcodec_h264.mpg                             FFmpeg version SVN-rUNKNOWN, Copyright (c) 2000-2006 Fabrice Bellard, et al.
  configuration:  --prefix=/usr --libdir=${prefix}/lib --shlibdir=${prefix}/lib --incdir=${prefix}/include/ffmpeg --enable-shared --enable-mp3lame --enable-gpl --enable-faad --mandir=${prefix}/share/man --enable-vorbis --enable-pthreads --enable-faac --enable-xvid --enable-dts --enable-amr_nb --enable-amr_wb --enable-pp --enable-libogg --enable-libgsm --enable-x264 --enable-a52 --extra-cflags=-Wall -g -fPIC -DPIC --cc=ccache cc
  libavutil version: 49.1.0
  libavcodec version: 51.28.0
  libavformat version: 51.7.0
  built on Jan 19 2007 17:05:58, gcc: 4.1.2 20061115 (prerelease) (Debian 4.1.1-21)
Input #0, mpegts, from '000000000b620606.mpg':
  Duration: 00:00:59.4, start: 0.338356, bitrate: 3990 kb/s
  Stream #0.0[0x12c]: Video: mpeg2video, yuv420p, 720x576, 6000 kb/s, 25.00 fps(r)
  Stream #0.1[0x12d](eng): Audio: mp2, 44100 Hz, stereo, 192 kb/s
Output #0, avi, to '../vcodec_h264.mpg':
  Stream #0.0: Video: h264, yuv420p, 720x576, q=2-31, 200 kb/s, 25.00 fps(c)
  Stream #0.1: Audio: mp3, 44100 Hz, stereo, 64 kb/s
Stream mapping:
  Stream #0.0 -> #0.0
  Stream #0.1 -> #0.1
[h264 @ 0xb7dec9c8]using SAR=16/15
[h264 @ 0xb7dec9c8]using cpu capabilities MMX MMXEXT SSE
Press [q] to stop encoding
frame= 1499 q=-7858187.2 Lsize=   14428kB time=60.0 bitrate=1971.2kbits/s
video:13827kB audio:470kB global headers:0kB muxing overhead 0.921220%
[h264 @ 0xb7dec9c8]slice I:125   Avg QP:29.02  size: 30161
[h264 @ 0xb7dec9c8]slice P:1374  Avg QP:31.00  size:  7579
[h264 @ 0xb7dec9c8]mb I  I16..4: 30.4%  0.0% 69.6%
[h264 @ 0xb7dec9c8]mb P  I16..4:  5.6%  0.0%  0.0%  P16..4: 48.1%  0.0%  0.0%  0.0%  0.0%    skip:46.3%
[h264 @ 0xb7dec9c8]final ratefactor: 43.98
[h264 @ 0xb7dec9c8]SSIM Mean Y:0.9429453
[h264 @ 0xb7dec9c8]kb/s:1892.5
ffmpeg -i 000000000b620606.mpg -f avi -vcodec h264 -acodec mp3   402.43s user 24.89s system 83% cpu 8:29.59 total
vk@ned ...yeTV-Umrechnerei/Exporttest 1m.eyetv %

complex xvid-test

vk@ned ...yeTV-Umrechnerei/Exporttest 1m.eyetv % ffmpeg -i 000000000b620606.mpg -f avi -vcodec xvid -b 800k -g 300 -bf 2 -acodec mp3 -ab 128  vcodec_xvid.mpg
FFmpeg version SVN-rUNKNOWN, Copyright (c) 2000-2006 Fabrice Bellard, et al.
  configuration:  --prefix=/usr --libdir=${prefix}/lib --shlibdir=${prefix}/lib --incdir=${prefix}/include/ffmpeg --enable-shared --enable-mp3lame --enable-gpl --enable-faad --mandir=${prefix}/share/man --enable-vorbis --enable-pthreads --enable-faac --enable-xvid --enable-dts --enable-amr_nb --enable-amr_wb --enable-pp --enable-libogg --enable-libgsm --enable-x264 --enable-a52 --extra-cflags=-Wall -g -fPIC -DPIC --cc=ccache cc
  libavutil version: 49.1.0
  libavcodec version: 51.28.0
  libavformat version: 51.7.0
  built on Jan 19 2007 17:05:58, gcc: 4.1.2 20061115 (prerelease) (Debian 4.1.1-21)
Input #0, mpegts, from '000000000b620606.mpg':
  Duration: 00:00:59.4, start: 0.338356, bitrate: 3990 kb/s
  Stream #0.0[0x12c]: Video: mpeg2video, yuv420p, 720x576, 6000 kb/s, 25.00 fps(r)
  Stream #0.1[0x12d](eng): Audio: mp2, 44100 Hz, stereo, 192 kb/s
Output #0, avi, to 'vcodec_xvid.mpg':
  Stream #0.0: Video: xvid, yuv420p, 720x576, q=2-31, 800 kb/s, 25.00 fps(c)
  Stream #0.1: Audio: mp3, 44100 Hz, stereo, 128 kb/s
Stream mapping:
  Stream #0.0 -> #0.0
  Stream #0.1 -> #0.1
Press [q] to stop encoding
frame= 1499 q=8.0 Lsize=    6915kB time=59.9 bitrate= 945.4kbits/s
video:5876kB audio:939kB global headers:0kB muxing overhead 1.456116%
ffmpeg -i 000000000b620606.mpg -f avi -vcodec xvid -b 800k -g 300 -bf 2  mp3   179.92s user 1.62s system 89% cpu 3:23.68 total
vk@ned ...yeTV-Umrechnerei/Exporttest 1m.eyetv %


Some real-world examples afterwards:

1h30min movie with h264

vk@ned /data/vk/tmp/20070128 EyeTV-Umrechnerei % cd Clockwise\ -\ In\ letzter\ Sekunde.eyetv
vk@ned ...Clockwise - In letzter Sekunde.eyetv % l
total 2398936
drwx------ 2 vk vk       4096 2007-01-20 09:07 ./
drwx------ 4 vk vk       4096 2007-01-29 00:23 ../
-rwx------ 1 vk vk       1178 2007-01-20 06:26 000000000b61451b.eyetvp*
-rwx------ 1 vk vk     449360 2007-01-20 09:05 000000000b61c295.eyetvi*
-rwx------ 1 vk vk       3547 2007-01-20 09:07 000000000b61c295.eyetvr*
-rwx------ 1 vk vk 2455233940 2007-01-20 09:05 000000000b61c295.mpg*
-rwx------ 1 vk vk         82 2007-01-29 00:08 ._000000000b61c295.tiff*
-rwx------ 1 vk vk     798060 2007-01-20 09:07 000000000b61c295.tiff*
vk@ned ...Clockwise - In letzter Sekunde.eyetv % ffmpeg -i 000000000b61c295.mpg -f avi -vcodec h264 -acodec mp3  ../Clockwise_-_In_letzter_Sekunde_h264.avi
FFmpeg version SVN-rUNKNOWN, Copyright (c) 2000-2006 Fabrice Bellard, et al.
  configuration:  --prefix=/usr --libdir=${prefix}/lib --shlibdir=${prefix}/lib --incdir=${prefix}/include/ffmpeg --enable-shared --enable-mp3lame --enable-gpl --enable-faad --mandir=${prefix}/share/man --enable-vorbis --enable-pthreads --enable-faac --enable-xvid --enable-dts --enable-amr_nb --enable-amr_wb --enable-pp --enable-libogg --enable-libgsm --enable-x264 --enable-a52 --extra-cflags=-Wall -g -fPIC -DPIC --cc=ccache cc
  libavutil version: 49.1.0
  libavcodec version: 51.28.0
  libavformat version: 51.7.0
  built on Jan 19 2007 17:05:58, gcc: 4.1.2 20061115 (prerelease) (Debian 4.1.1-21)
Input #0, mpegts, from '000000000b61c295.mpg':
  Duration: 01:29:51.4, start: 1089.520433, bitrate: 3643 kb/s
  Stream #0.0[0x12c]: Video: mpeg2video, yuv420p, 720x576, 6000 kb/s, 25.00 fps(r)
  Stream #0.1[0x12d](eng): Audio: mp2, 44100 Hz, stereo, 192 kb/s
Output #0, avi, to '../Clockwise_-_In_letzter_Sekunde_h264.avi':
  Stream #0.0: Video: h264, yuv420p, 720x576, q=2-31, 200 kb/s, 25.00 fps(c)
  Stream #0.1: Audio: mp3, 44100 Hz, stereo, 64 kb/s
Stream mapping:
  Stream #0.0 -> #0.0
  Stream #0.1 -> #0.1
[h264 @ 0xb7e689c8]using SAR=16/15
[h264 @ 0xb7e689c8]using cpu capabilities MMX MMXEXT SSE
Press [q] to stop encoding
frame=134794 q=-7350283.2 Lsize=  559864kB time=5391.8 bitrate= 850.6kbits/s
video:509471kB audio:42123kB global headers:0kB muxing overhead 1.499235%
[h264 @ 0xb7e689c8]slice I:11233 Avg QP:29.00  size: 16221
[h264 @ 0xb7e689c8]slice P:123561 Avg QP:31.00  size:  2744
[h264 @ 0xb7e689c8]mb I  I16..4: 52.9%  0.0% 47.1%
[h264 @ 0xb7e689c8]mb P  I16..4:  5.4%  0.0%  0.0%  P16..4: 28.4%  0.0%  0.0%  0.0%  0.0%    skip:66.2%
[h264 @ 0xb7e689c8]final ratefactor: 37.47
[h264 @ 0xb7e689c8]SSIM Mean Y:0.9572864
[h264 @ 0xb7e689c8]kb/s:773.4
ffmpeg -i 000000000b61c295.mpg -f avi -vcodec h264 -acodec mp3   28208.77s user 98.26s system 91% cpu 8:36:59.08 total
vk@ned ...Clockwise - In letzter Sekunde.eyetv % cd ..
vk@ned /data/vk/tmp/20070128 EyeTV-Umrechnerei % l
total 866304
drwx------  5 vk vk      4096 2007-01-30 23:17 ./
drwx------ 20 vk vk      4096 2007-01-28 14:14 ../
drwx------  2 vk vk      4096 2007-01-20 09:07 Clockwise\ -\ In\ letzter\ Sekunde.eyetv/
-rw-r--r--  1 vk vk 573300530 2007-01-29 09:02 Clockwise_-_In_letzter_Sekunde_h264.avi
drwx------  2 vk vk      4096 2007-01-30 19:03 Der\ Kuss\ des\ Tigers.eyetv/
-rwx------  1 vk vk      6148 2007-01-28 23:51 .DS_Store*
-rw-r--r--  1 vk vk  48744448 2007-01-28 16:46 dvd.mpg
-rw-r--r--  1 vk vk 215856000 2007-01-28 16:51 dv.mpg
drwx------  2 vk vk      4096 2007-01-28 15:54 Exporttest\ 1m.eyetv/
-rw-r--r--  1 vk vk  17165064 2007-01-28 23:57 svcd.mpg
-rw-r--r--  1 vk vk  10439408 2007-01-28 15:44 vcd.mpg
-rw-r--r--  1 vk vk  14774478 2007-01-29 00:15 vcodec_h264.avi
-rw-r--r--  1 vk vk   6767942 2007-01-29 00:02 vcodec_mpeg4.avi
vk@ned /data/vk/tmp/20070128 EyeTV-Umrechnerei %

testresults: Clockwise_-_In_letzter_Sekunde_h264

file           size [M]    encoding time     output size   subjective quality
==========================================================================
EyeTV 250      2.3G        90m               720x576       good
avi, h264, mp3 573M x0.25  470m   x5.2       720x576       good


older recording with ATI TV wonder hardware, h264

vk@ned /data/vk/tmp/20070128 EyeTV-Umrechnerei % cd Der\ Kuss\ des\ Tigers.eyetv
vk@ned ...mrechnerei/Der Kuss des Tigers.eyetv % l
total 1228072
drwx------ 2 vk vk       4096 2007-01-30 19:03 ./
drwx------ 5 vk vk       4096 2007-01-30 23:17 ../
-rwx------ 1 vk vk       1156 2006-01-13 02:12 00000000097715d6.eyetvp*
-rwx------ 1 vk vk     580880 2007-01-30 19:03 00000000097719fb.eyetvi*
-rwx------ 1 vk vk     108525 2007-01-30 19:03 00000000097719fb.eyetvr*
-rwx------ 1 vk vk 1256570192 2007-01-30 19:03 00000000097719fb.mpg*
-rwx------ 1 vk vk         82 2007-01-30 23:21 ._00000000097719fb.tiff*
-rwx------ 1 vk vk     261146 2007-01-30 19:01 00000000097719fb.tiff*
vk@ned ...mrechnerei/Der Kuss des Tigers.eyetv % ffmpeg -i 00000000*mpg -f avi -vcodec h264 -acodec mp3  ../Der_Kuss_des_Tigers_h264.avi
FFmpeg version SVN-rUNKNOWN, Copyright (c) 2000-2006 Fabrice Bellard, et al.
  configuration:  --prefix=/usr --libdir=${prefix}/lib --shlibdir=${prefix}/lib --incdir=${prefix}/include/ffmpeg --enable-shared --enable-mp3lame --enable-gpl --enable-faad --mandir=${prefix}/share/man --enable-vorbis --enable-pthreads --enable-faac --enable-xvid --enable-dts --enable-amr_nb --enable-amr_wb --enable-pp --enable-libogg --enable-libgsm --enable-x264 --enable-a52 --extra-cflags=-Wall -g -fPIC -DPIC --cc=ccache cc
  libavutil version: 49.1.0
  libavcodec version: 51.28.0
  libavformat version: 51.7.0
  built on Jan 19 2007 17:05:58, gcc: 4.1.2 20061115 (prerelease) (Debian 4.1.1-21)
Input #0, mpegts, from '00000000097719fb.mpg':
  Duration: 01:53:01.6, start: 142.706667, bitrate: 1482 kb/s
  Stream #0.0[0x22]: Video: mpeg1video, yuv420p, 352x288, 1150 kb/s, 25.00 fps(r)
  Stream #0.1[0x23]: Audio: mp2, 44100 Hz, stereo, 224 kb/s
Output #0, avi, to '../Der_Kuss_des_Tigers_h264.avi':
  Stream #0.0: Video: h264, yuv420p, 352x288, q=2-31, 200 kb/s, 25.00 fps(c)
  Stream #0.1: Audio: mp3, 44100 Hz, stereo, 64 kb/s
Stream mapping:
  Stream #0.0 -> #0.0
  Stream #0.1 -> #0.1
[h264 @ 0xb7e679c8]using SAR=178/163
[h264 @ 0xb7e679c8]using cpu capabilities MMX MMXEXT SSE
Press [q] to stop encoding
frame=169621 q=-7354379.2 Lsize=  295834kB time=6784.8 bitrate= 357.2kbits/s
video:232138kB audio:53007kB global headers:0kB muxing overhead 3.748762%
[h264 @ 0xb7e679c8]slice I:14158 Avg QP:28.77  size:  5040
[h264 @ 0xb7e679c8]slice P:155463 Avg QP:30.72  size:  1068
[h264 @ 0xb7e679c8]mb I  I16..4: 48.3%  0.0% 51.7%
[h264 @ 0xb7e679c8]mb P  I16..4:  5.8%  0.0%  0.0%  P16..4: 36.5%  0.0%  0.0%  0.0%  0.0%    skip:57.7%
[h264 @ 0xb7e679c8]final ratefactor: 27.62
[h264 @ 0xb7e679c8]SSIM Mean Y:0.9492829
[h264 @ 0xb7e679c8]kb/s:280.0
ffmpeg -i 00000000*mpg -f avi -vcodec h264 -acodec mp3   10337.14s user 87.41s system 35% cpu 8:07:10.14 total
vk@ned ...mrechnerei/Der Kuss des Tigers.eyetv % l ..
total 1594220
drwx------  7 vk vk      4096 2007-01-30 23:44 ./
drwx------ 20 vk vk      4096 2007-01-28 14:14 ../
-rw-r--r--  1 vk vk 195220220 2007-01-31 05:57 20051220_Simpl_h264.avi
-rw-r--r--  1 vk vk 247177098 2007-01-31 07:26 20070125_Ali_G_h264.avi
drwx------  2 vk vk      4096 2007-01-30 19:01 Ali\ G.eyetv/
drwx------  2 vk vk      4096 2007-01-20 09:07 Clockwise\ -\ In\ letzter\ Sekunde.eyetv/
-rw-r--r--  1 vk vk 573300530 2007-01-29 09:02 Clockwise_-_In_letzter_Sekunde_h264.avi
drwx------  2 vk vk      4096 2007-01-30 19:03 Der\ Kuss\ des\ Tigers.eyetv/
-rw-r--r--  1 vk vk 302933748 2007-01-31 07:29 Der_Kuss_des_Tigers_h264.avi
-rwx------  1 vk vk      6148 2007-01-28 23:51 .DS_Store*
-rw-r--r--  1 vk vk  48744448 2007-01-28 16:46 dvd.mpg
-rw-r--r--  1 vk vk 215856000 2007-01-28 16:51 dv.mpg
drwx------  2 vk vk      4096 2007-01-28 15:54 Exporttest\ 1m.eyetv/
drwx------  2 vk vk      4096 2007-01-30 23:34 Simpl.eyetv/
-rw-r--r--  1 vk vk  17165064 2007-01-28 23:57 svcd.mpg
-rw-r--r--  1 vk vk  10439408 2007-01-28 15:44 vcd.mpg
-rw-r--r--  1 vk vk  14774478 2007-01-29 00:15 vcodec_h264.avi
-rw-r--r--  1 vk vk   6767942 2007-01-29 00:02 vcodec_mpeg4.avi
vk@ned ...mrechnerei/Der Kuss des Tigers.eyetv %


testresults: Der Kuss des Tigers.eyetv

file           size [M]    encoding time     output size   subjective quality
==========================================================================
ATI TV wonder  1.2G        113m              352x288       poor
avi, h264, mp3 303M x0.25  172m   x1.5       352x288       equal quality


ffmpeg -i 000000000b61c295.mpg -f avi -vcodec h264 -acodec mp3 ../Clockwise_-_In_letzter_Sekunde_h264.avi

Script, that converts an EyeTV2-recording into h264/mp3:

vk@ned /data/vk/bin % cat recode-eyetv.sh
#!/bin/sh
EYETVDIRECTORY=$1
TARGETNAME=`echo ${EYETVDIRECTORY} | sed 's/eyetv/avi/g'`
echo "$0: I will recode \"${EYETVDIRECTORY}/*.mpg\" to \"${TARGETNAME}\""
cd "${EYETVDIRECTORY}"
ls *.mpg
nice -n 19 ffmpeg -i *.mpg -f avi -vcodec h264 -acodec mp3 ../"${EYETVDIRECTORY}.avi"
#end
vk@ned /data/vk/bin %

20070730: Tests with mencoder

vk@ned ...yeTV-Umrechnerei/Exporttest 1m.eyetv % mencoder 000000000b620606.mpg -ovc lavc -oac mp3lame -o mplayer_lavc_mp3lame.avi
mencoder: /usr/lib/libtheora.so.0: no version information available (required by mencoder)
MEncoder dev-SVN-rUNKNOWN-4.1.3 (C) 2000-2007 MPlayer Team
CPU: Intel Celeron 2/Pentium III Coppermine,Geyserville (Family: 6, Model: 8, Stepping: 3)
CPUflags: Type: 6 MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 0
Compiled with runtime CPU detection.
This codecs.conf is too old and incompatible with this MPlayer release! at line 6
success: format: 0  data: 0x0 - 0x1c492ac
TS file format detected.
VIDEO MPEG2(pid=300) AUDIO MPA(pid=301) NO SUBS (yet)!  PROGRAM N. 1
VIDEO:  MPEG2  720x576  (aspect 2)  25.000 fps  6000.0 kbps (750.0 kbyte/s)
[V] filefmt:29  fourcc:0x10000002  size:720x576  fps:25.00  ftime:=0.0400
==========================================================================
Opening audio decoder: [mp3lib] MPEG layer-2, layer-3
AUDIO: 44100 Hz, 2 ch, s16le, 192.0 kbit/13.61% (ratio: 24000->176400)
Selected audio codec: [mp3] afm: mp3lib (mp3lib MPEG layer-2, layer-3)
==========================================================================
Opening video filter: [expand osd=1]
Expand: -1 x -1, -1 ; -1, osd: 1, aspect: 0.000000, round: 1
==========================================================================
Opening video decoder: [mpegpes] MPEG 1/2 Video passthrough
VDec: vo config request - 720 x 576 (preferred colorspace: Mpeg PES)
Could not find matching colorspace - retrying with -vf scale...
Opening video filter: [scale]
The selected video_out device is incompatible with this codec.
Try appending the scale filter to your filter list,
e.g. -vf spp,scale instead of -vf spp.
VDecoder init failed :(
Opening video decoder: [libmpeg2] MPEG 1/2 Video decoder libmpeg2-v0.4.0b
Selected video codec: [mpeg12] vfm: libmpeg2 (MPEG-1 or 2 (libmpeg2))
==========================================================================
MP3 audio selected.
VDec: vo config request - 720 x 576 (preferred colorspace: Planar YV12)
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is 1.33:1 - prescaling to correct movie aspect.
videocodec: libavcodec (720x576 fourcc=34504d46 [FMP4])
New_Face failed. Maybe the font path is wrong.
Please supply the text font file (~/.mplayer/subfont.ttf).
subtitle font: load_sub_face failed.
Writing header...2f ( 1%)  0.00fps Trem:   0min   0mb  A-V:0.004 [0:0]
ODML: Aspect information not (yet?) available or unspecified, not writing vprp header.
Writing header...
ODML: Aspect information not (yet?) available or unspecified, not writing vprp header.
1 duplicate frame(s)!
Pos:   0.8s     22f ( 3%) 15.19fps Trem:   0min  10mb  A-V:0.084 [0:155]
Skipping frame!
Pos:   1.2s     32f ( 4%) 16.60fps Trem:   0min   8mb  A-V:0.084 [2200:154]
Skipping frame!
TS_PARSE: COULDN'T SYNC%) 17.11fps Trem:   0min   6mb  A-V:0.043 [785:160]]
Broken frame at 0x15F469
Pos:  59.5s   1491f (100%) 17.11fps Trem:   0min   6mb  A-V:0.047 [784:160]
Broken frame at 0x15FE35
Pos:  59.8s   1499f (100%) 17.12fps Trem:   0min   6mb  A-V:0.070 [784:160]
Flushing video frames.
Writing index...
Writing header...
ODML: Aspect information not (yet?) available or unspecified, not writing vprp header.
Video stream:  784.384 kbit/s  (98048 B/s)  size: 5863274 bytes  59.800 secs  1499 frames
Audio stream:  160.260 kbit/s  (20032 B/s)  size: 1200970 bytes  59.951 secs
mencoder 000000000b620606.mpg -ovc lavc -oac mp3lame -o   74.01s user 1.76s system 84% cpu 1:29.45 total
vk@ned ...yeTV-Umrechnerei/Exporttest 1m.eyetv %


vk@ned ...yeTV-Umrechnerei/Exporttest 1m.eyetv % mencoder 000000000b620606.mpg -profile mpeg4 -ovc lavc -oac mp3lame -o mplayer_prof-mpeg4.avi
mencoder: /usr/lib/libtheora.so.0: no version information available (required by mencoder)
MEncoder dev-SVN-rUNKNOWN-4.1.3 (C) 2000-2007 MPlayer Team
CPU: Intel Celeron 2/Pentium III Coppermine,Geyserville (Family: 6, Model: 8, Stepping: 3)
CPUflags: Type: 6 MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 0
Compiled with runtime CPU detection.
This codecs.conf is too old and incompatible with this MPlayer release! at line 6
success: format: 0  data: 0x0 - 0x1c492ac
TS file format detected.
VIDEO MPEG2(pid=300) AUDIO MPA(pid=301) NO SUBS (yet)!  PROGRAM N. 1
VIDEO:  MPEG2  720x576  (aspect 2)  25.000 fps  6000.0 kbps (750.0 kbyte/s)
[V] filefmt:29  fourcc:0x10000002  size:720x576  fps:25.00  ftime:=0.0400
==========================================================================
Opening audio decoder: [mp3lib] MPEG layer-2, layer-3
AUDIO: 44100 Hz, 2 ch, s16le, 192.0 kbit/13.61% (ratio: 24000->176400)
Selected audio codec: [mp3] afm: mp3lib (mp3lib MPEG layer-2, layer-3)
==========================================================================
Opening video filter: [expand osd=1]
Expand: -1 x -1, -1 ; -1, osd: 1, aspect: 0.000000, round: 1
==========================================================================
Opening video decoder: [mpegpes] MPEG 1/2 Video passthrough
VDec: vo config request - 720 x 576 (preferred colorspace: Mpeg PES)
Could not find matching colorspace - retrying with -vf scale...
Opening video filter: [scale]
The selected video_out device is incompatible with this codec.
Try appending the scale filter to your filter list,
e.g. -vf spp,scale instead of -vf spp.
VDecoder init failed :(
Opening video decoder: [libmpeg2] MPEG 1/2 Video decoder libmpeg2-v0.4.0b
Selected video codec: [mpeg12] vfm: libmpeg2 (MPEG-1 or 2 (libmpeg2))
==========================================================================
MP3 audio selected.
VDec: vo config request - 720 x 576 (preferred colorspace: Planar YV12)
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is 1.33:1 - prescaling to correct movie aspect.
videocodec: libavcodec (720x576 fourcc=34504d46 [FMP4])
New_Face failed. Maybe the font path is wrong.
Please supply the text font file (~/.mplayer/subfont.ttf).
subtitle font: load_sub_face failed.
Writing header...2f ( 1%)  0.00fps Trem:   0min   0mb  A-V:0.004 [0:0]
ODML: Aspect information not (yet?) available or unspecified, not writing vprp header.
Writing header...
ODML: Aspect information not (yet?) available or unspecified, not writing vprp header.
[...]
Video stream: 1176.048 kbit/s  (147005 B/s)  size: 8790956 bytes  59.800 secs  1499 frames
Audio stream:  160.260 kbit/s  (20032 B/s)  size: 1200970 bytes  59.951 secs
mencoder 000000000b620606.mpg -profile mpeg4 -ovc lavc -oac mp3lame -o   77.14s user 1.52s system 83% cpu 1:34.32 total

MEncoder dev-SVN-rUNKNOWN-4.1.3 (C) 2000-2007 MPlayer Team
CPU: Intel Celeron 2/Pentium III Coppermine,Geyserville (Family: 6, Model: 8, Stepping: 3)
CPUflags: Type: 6 MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 0
Compiled with runtime CPU detection.
This codecs.conf is too old and incompatible with this MPlayer release! at line 6
success: format: 0  data: 0x0 - 0x1c492ac
TS file format detected.
VIDEO MPEG2(pid=300) AUDIO MPA(pid=301) NO SUBS (yet)!  PROGRAM N. 1
VIDEO:  MPEG2  720x576  (aspect 2)  25.000 fps  6000.0 kbps (750.0 kbyte/s)
[V] filefmt:29  fourcc:0x10000002  size:720x576  fps:25.00  ftime:=0.0400
==========================================================================
Opening audio decoder: [mp3lib] MPEG layer-2, layer-3
AUDIO: 44100 Hz, 2 ch, s16le, 192.0 kbit/13.61% (ratio: 24000->176400)
Selected audio codec: [mp3] afm: mp3lib (mp3lib MPEG layer-2, layer-3)
==========================================================================
Opening video filter: [expand osd=1]
Expand: -1 x -1, -1 ; -1, osd: 1, aspect: 0.000000, round: 1
==========================================================================
Opening video decoder: [mpegpes] MPEG 1/2 Video passthrough
VDec: vo config request - 720 x 576 (preferred colorspace: Mpeg PES)
Could not find matching colorspace - retrying with -vf scale...
Opening video filter: [scale]
The selected video_out device is incompatible with this codec.
Try appending the scale filter to your filter list,
e.g. -vf spp,scale instead of -vf spp.
VDecoder init failed :(
Opening video decoder: [libmpeg2] MPEG 1/2 Video decoder libmpeg2-v0.4.0b
Selected video codec: [mpeg12] vfm: libmpeg2 (MPEG-1 or 2 (libmpeg2))
==========================================================================
MP3 audio selected.
VDec: vo config request - 720 x 576 (preferred colorspace: Planar YV12)
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is 1.33:1 - prescaling to correct movie aspect.
videocodec: libavcodec (720x576 fourcc=34504d46 [FMP4])
[VE_LAVC] High quality encoding selected (non-realtime)!
New_Face failed. Maybe the font path is wrong.
Please supply the text font file (~/.mplayer/subfont.ttf).
subtitle font: load_sub_face failed.
Writing header...2f ( 1%)  0.00fps Trem:   0min   0mb  A-V:0.004 [0:0]
ODML: Aspect information not (yet?) available or unspecified, not writing vprp header.
Writing header...
ODML: Aspect information not (yet?) available or unspecified, not writing vprp header.
[...]
ODML: Aspect information not (yet?) available or unspecified, not writing vprp header.
Video stream: 1175.321 kbit/s  (146915 B/s)  size: 8785523 bytes  59.800 secs  1499 frames
Audio stream:  160.260 kbit/s  (20032 B/s)  size: 1200970 bytes  59.951 secs
mencoder 000000000b620606.mpg -profile mpeg4-hq -ovc lavc -oac mp3lame -o   218.30s user 2.94s system 83% cpu 4:25.98 total


results of my tests (inputfile with 60s)

target         size [M]      encoding time     output size   subjective quality
==================================================================================
EyeTV           29   x1      (realtime) x1     720x576       good (settings, see below)
vcd             10   x0.35   104.43s    x1.7   480x576       poor or very poor
svcd            17   x0.59   89.53s     x1.5   480x576       poor but better than vcd
dvd             47   x1.6    81.86s     x1.4   720x576       same quality than original
dv             206   x7.1    71.82s     x1.2   720x576       VLC cannot play it
pal-vcd    
ntsc-svcd
vcodec_mpeg4     6.5 x0.22   115.02s    x1.9   720x576       poor or acceptable
vcodec_h264     15   x0.52   402.43s    x6.7   720x576       acceptable or good
vcodec_xvid      6.8 x0.23   179.92s    x3.0   720x576       acceptable or good
menc_lavc_mp3    7.1 x0.24    89.45s    x1.5   720x576       acceptable
menc_mpeg4      10.0 x0.34    94.00s    x1.6   720x576       acceptable or good <--
menc_mpeg4-hq   10.0 x0.34   265.98s    x4.4   720x576       acceptable or good

new best tradeoff: menc_mpeg4

Real world encoding test: Arme\ Millionäre\ -\ 06\ Geld\ regiert\ die\ Welt

vk@ned ...onäre - 06 Geld regiert die Welt.eyetv % mencoder 00000*.mpg -profile mpeg4 -ovc lavc -oac mp3lame -o Arme\ Millionäre\ -\ 06\ Geld\ regiert\ die\ Wel
t.avi
mencoder: /usr/lib/libtheora.so.0: no version information available (required by mencoder)
MEncoder dev-SVN-rUNKNOWN-4.1.3 (C) 2000-2007 MPlayer Team
CPU: Intel Celeron 2/Pentium III Coppermine,Geyserville (Family: 6, Model: 8, Stepping: 3)
CPUflags: Type: 6 MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 0
Compiled with runtime CPU detection.
This codecs.conf is too old and incompatible with this MPlayer release! at line 6
success: format: 0  data: 0x0 - 0x4cd8c6a8
TS file format detected.
VIDEO MPEG2(pid=300) AUDIO MPA(pid=301) NO SUBS (yet)!  PROGRAM N. 1
VIDEO:  MPEG2  720x576  (aspect 2)  25.000 fps  6000.0 kbps (750.0 kbyte/s)
[V] filefmt:29  fourcc:0x10000002  size:720x576  fps:25.00  ftime:=0.0400
==========================================================================
Opening audio decoder: [mp3lib] MPEG layer-2, layer-3
AUDIO: 44100 Hz, 2 ch, s16le, 192.0 kbit/13.61% (ratio: 24000->176400)
Selected audio codec: [mp3] afm: mp3lib (mp3lib MPEG layer-2, layer-3)
==========================================================================
Opening video filter: [expand osd=1]
Expand: -1 x -1, -1 ; -1, osd: 1, aspect: 0.000000, round: 1
==========================================================================
Opening video decoder: [mpegpes] MPEG 1/2 Video passthrough
VDec: vo config request - 720 x 576 (preferred colorspace: Mpeg PES)
Could not find matching colorspace - retrying with -vf scale...
Opening video filter: [scale]
The selected video_out device is incompatible with this codec.
Try appending the scale filter to your filter list,
e.g. -vf spp,scale instead of -vf spp.
VDecoder init failed :(
Opening video decoder: [libmpeg2] MPEG 1/2 Video decoder libmpeg2-v0.4.0b
Selected video codec: [mpeg12] vfm: libmpeg2 (MPEG-1 or 2 (libmpeg2))
==========================================================================
MP3 audio selected.
VDec: vo config request - 720 x 576 (preferred colorspace: Planar YV12)
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is 1.33:1 - prescaling to correct movie aspect.
videocodec: libavcodec (720x576 fourcc=34504d46 [FMP4])
New_Face failed. Maybe the font path is wrong.
Please supply the text font file (~/.mplayer/subfont.ttf).
subtitle font: load_sub_face failed.
Writing header...2f ( 0%)  0.00fps Trem:   0min   0mb  A-V:0.004 [0:0]
ODML: Aspect information not (yet?) available or unspecified, not writing vprp header.
Writing header...
ODML: Aspect information not (yet?) available or unspecified, not writing vprp header.
1 duplicate frame(s)!
Pos:   0.8s     22f ( 0%) 13.81fps Trem:   0min   0mb  A-V:0.084 [0:156]
Skipping frame!
Pos:   1.2s     32f ( 0%) 15.14fps Trem:   0min   0mb  A-V:0.084 [2224:159]
Skipping frame!
Pos:   1.9s     52f ( 0%) 16.40fps Trem:  44min 398mb  A-V:0.084 [1842:159]
Skipping frame!
Pos:   2.3s     62f ( 0%) 16.75fps Trem:  47min 399mb  A-V:0.084 [1708:160]
Skipping frame!
TS_PARSE: COULDN'T SYNC%)  7.65fps Trem:   0min 454mb  A-V:0.074 [1200:157]
Broken frame at 0x401D643
Pos:2800.7s  70025f (100%)  7.65fps Trem:   0min 454mb  A-V:0.077 [1200:157]
Broken frame at 0x401DD9C
Pos:2800.8s  70026f (100%)  7.65fps Trem:   0min 454mb  A-V:0.081 [1200:157]
Skipping frame!
Pos:2800.9s  70031f (100%)  7.65fps Trem:   0min 454mb  A-V:0.061 [1200:157]
Flushing video frames.
Writing index...
Writing header...
ODML: Aspect information not (yet?) available or unspecified, not writing vprp header.
Video stream: 1200.522 kbit/s  (150065 B/s)  size: 420320906 bytes  2800.920 secs  70031 frames
Audio stream:  157.462 kbit/s  (19682 B/s)  size: 55134557 bytes  2801.162 secs
mencoder 00000*.mpg -profile mpeg4 -ovc lavc -oac mp3lame -o   3602.93s user 91.63s system 40% cpu 2:32:37.26 total
vk@ned ...onäre - 06 Geld regiert die Welt.eyetv %
Encoding time: 591 minutes (non exclusive CPU time and with nice-value 19!)

vk@ned ~/movies/tv-shows/new % recode-eyetv.sh Arme\ Millionäre\ -\ 06\ Geld\ regiert\ die\ Welt.eyetv
/home/vk/bin/recode-eyetv.sh: I will recode "Arme Millionäre - 06 Geld regiert die Welt.eyetv/*.mpg" to "Arme Millionäre - 06 Geld regiert die Welt.avi"
000000000c574818.mpg
FFmpeg version SVN-rUNKNOWN, Copyright (c) 2000-2006 Fabrice Bellard, et al.
  configuration:  --prefix=/usr --libdir=${prefix}/lib --shlibdir=${prefix}/lib --incdir=${prefix}/include/ffmpeg --enable-shared --enable-mp3lame --enable-gpl --enable-faad --mandir=${prefix}/share/man --enable-vorbis --enable-pthreads --enable-faac --enable-xvid --enable-dts --enable-amr_nb --enable-amr_wb --enable-pp --enable-libogg --enable-libgsm --enable-x264 --enable-a52 --extra-cflags=-Wall -g -fPIC -DPIC --cc=ccache cc
  libavutil version: 49.1.0
  libavcodec version: 51.28.0
  libavformat version: 51.7.0
  built on Jan 19 2007 17:05:58, gcc: 4.1.2 20061115 (prerelease) (Debian 4.1.1-21)
Input #0, mpegts, from '000000000c574818.mpg':
  Duration: 00:46:40.8, start: 348.880422, bitrate: 3682 kb/s
  Stream #0.0[0x12c]: Video: mpeg2video, yuv420p, 720x576, 6000 kb/s, 25.00 fps(r)
  Stream #0.1[0x12d](eng): Audio: mp2, 44100 Hz, stereo, 192 kb/s
Output #0, avi, to '../Arme Millionäre - 06 Geld regiert die Welt.avi':
  Stream #0.0: Video: h264, yuv420p, 720x576, q=2-31, 200 kb/s, 25.00 fps(c)
  Stream #0.1: Audio: mp3, 44100 Hz, stereo, 64 kb/s
Stream mapping:
  Stream #0.0 -> #0.0
  Stream #0.1 -> #0.1
[h264 @ 0xb7e579c8]using SAR=16/15
[h264 @ 0xb7e579c8]using cpu capabilities MMX MMXEXT SSE
Press [q] to stop encoding
frame=70030 q=-7419915.2 Lsize=  232005kB time=2801.2 bitrate= 678.5kbits/s
video:205819kB audio:21885kB global headers:0kB muxing overhead 1.889047%
[h264 @ 0xb7e579c8]slice I:5836  Avg QP:29.00  size: 13105
[h264 @ 0xb7e579c8]slice P:64194 Avg QP:31.00  size:  2088
[h264 @ 0xb7e579c8]mb I  I16..4: 55.8%  0.0% 44.2%
[h264 @ 0xb7e579c8]mb P  I16..4:  6.6%  0.0%  0.0%  P16..4: 27.2%  0.0%  0.0%  0.0%  0.0%    skip:66.2%
[h264 @ 0xb7e579c8]final ratefactor: 36.12
[h264 @ 0xb7e579c8]SSIM Mean Y:0.9565512
[h264 @ 0xb7e579c8]kb/s:601.3
recode-eyetv.sh Arme\ Millionäre\ -\ 06\ Geld\ regiert\ die\ Welt.eyetv  16326.30s user 341.86s system 46% cpu 9:51:49.20 total
vk@ned ~/movies/tv-shows/new %

Original:
Size: 1.2GB

mencoder:
Size: 479MB
Encoding time: 152 minutes (non exclusive CPU time and with nice-value 19!)

ffmpeg:
Size: 237MB

Test of different .mplayer/mencoder.conf-entries:

[test1]
profile-desc="MPEG4 encoding"
ovc=lavc=yes
lavcopts=vcodec=mpeg4:vbitrate=800

[test2]
profile-desc="MPEG4 encoding"
ovc=lavc=yes
lavcopts=vcodec=xvidenc

[test3]
profile-desc="MPEG4 encoding"
ovc=lavc=yes
lavcopts=vcodec=x264enc

[test4]
profile-desc="MPEG4 encoding"
ovc=lavc=yes
lavcopts=vcodec=mpeg

time nice -n 19 mencoder 0000*.mpg -profile test1 -vf spp,scale -ovc lavc -oac mp3lame -o menc_test1.avi
time nice -n 19 mencoder 0000*.mpg -profile test2 -ovc lavc -oac mp3lame -o menc_test2.avi

Test 2, 3, and 4

Cannot find codec 'x264enc' in libavcodec...
Couldn't open video filter 'lavc'.
Failed to open the encoder.

[test2]
profile-desc="MPEG4 encoding"
ovc=lavc=yes
lavcopts=vcodec=mpeg4:vbitrate=1200:vqscale=2

[test3]
profile-desc="MPEG4 encoding"
ovc=lavc=yes
lavcopts=vcodec=mpeg4:vbitrate=1200:vqscale=10

[test4]
profile-desc="MPEG4 encoding"
ovc=lavc=yes
lavcopts=vcodec=mpeg4:vbitrate=1200:vqscale=20

[test5]
profile-desc="MPEG4 encoding"
ovc=lavc=yes
lavcopts=vcodec=mpeg4:vbitrate=1200:vqscale=15

results of my tests (inputfile with 60s)

target         size [M]      encoding time     output size   subjective quality
==================================================================================
EyeTV           29   x1      (realtime) x1     720x576       good (settings, see below)
vcd             10   x0.35   104.43s    x1.7   480x576       poor or very poor
svcd            17   x0.59   89.53s     x1.5   480x576       poor but better than vcd
dvd             47   x1.6    81.86s     x1.4   720x576       same quality than original
dv             206   x7.1    71.82s     x1.2   720x576       VLC cannot play it
pal-vcd    
ntsc-svcd
vcodec_mpeg4     6.5 x0.22   115.02s    x1.9   720x576       poor or acceptable
vcodec_h264     15   x0.52   402.43s    x6.7   720x576       acceptable or good
vcodec_xvid      6.8 x0.23   179.92s    x3.0   720x576       acceptable or good
menc_lavc_mp3    7.1 x0.24    89.45s    x1.5   720x576       acceptable
menc_mpeg4      10.0 x0.34    94.00s    x1.6   720x576       acceptable or good <--
menc_mpeg4-hq   10.0 x0.34   265.98s    x4.4   720x576       acceptable or good
test1            7.1 x0.24     4m39s    x4.7                 acceptable
test2           64.2 x2.21     1m50s    x1.83                same quality than original
test3           11.5 x0.40     1m33s    x1.55                acceptable or good
test4            5.6 x0.19     2m00s    x2.00                poor
test5            7.4 x0.26     1m32s    x1.53                poor
comment this entry
go to top of page

vim: boxquote like in emacs

not solved yet
Emacs: C-q ... send marked text into boxed quoting:

Example

,----[ Title ]
| Test
`----

vim: need to install tool boxes (apt-get install boxes)

For boxquote-configuration, you have to add definition in ~/.boxes or
download Michael Prokops .boxes from
http://www.michael-prokop.at/computer/config/.boxes

.vimrc

" boxes for quoting
  map ;0 <ESC>:'<,'>!boxes
  map ;1 <ESC>:'<,'>!boxes -d boxquote
  map ;2 <ESC>:'<,'>!boxes -d peek -a c -s 40x5
  map ;2 <ESC>  map ;3 <ESC>:'<,'>!boxes -d c-cmt
  map ;2 <ESC>  map ;4 <ESC>:'<,'>!boxes -d dog -a c
  map ;5 <ESC>:'<,'>!boxes -d simple -a jr
  map ;6 <ESC>:'<,'>!boxes -d headline

After pressing ;1 the selected text (visual mode!) will be put into a box
comment this entry
go to top of page

vim: customizing folding in file

solved at 20061107
I want to use ASCII-files that contain entries like

[][] foobar title line
this is a text and should not be visible when this item is folded (closed)
[20061107][] foobar other title line
this is a text and should not be visible when this item is folded (closed)
this is a text and should not be visible when this item is folded (closed)
[20061107][20061108] last title line
this is a text and should not be visible when this item is folded (closed)

with those "[][] title"-lines as headlines for items.

In emacs, I am using the outline-mode which can be customized in the
tail of a file like:

 %%% Local Variables:
 %%% mode: outline
 %%% outline-regexp: "\\(\\[\\([1-2][0-9][0-9][0-9][0-1][0-9][0-3][0-9]\\)?\\]\\[\\([1-2][0-9][0-9][0-9][0-1][0-9][0-3][0-9]\\)?\\] .*"
 %%% eval: (auto-fill-mode -1)
 %%% eval: (flyspell-mode -1)
 %%% eval: (end-of-buffer)
 %%% eval: (hide-body)

vim can also use such customization like in:

karl@grmlvrs ~ % tail /etc/zsh/zshrc -n 2
## END OF FILE #################################################################
# vim:foldmethod=marker
karl@grmlvrs ~ % 

And this is how you get the solution by using vim:

:set foldmethod=expr
:set fde=getline(v:lnum)=~'^\\%([[][0-9]*[]]\\)\\{2\\}\ .\\+'?'>1':'='

But when adding following lines (in order to "bind" these things to the file):

## vim:foldmethod=expr
## vim:fde=getline(v:lnum)=~'^\\%([[][0-9]*[]]\\)\\{2\\}\ .\\+'?'>1':'='

I get:

"tmp" 34L, 645C
Error detected while processing modelines:
line   33:
E518: Unknown option: lnum)=~'^\\%([[][0-9]*[]]\\)\\{2\\}\ .\\+'?'>1'
Press ENTER or type command to continue

I had to escape all colons.

Working solution:

## vim:foldmethod=expr
## vim:fde=getline(v\:lnum)=~'^\\%([[][0-9]*[]]\\)\\{2\\}\ .\\+'?'>1'\:'='

Have phun!


## genau zwei Klammern nur mit Zahlen befüllt:
## vimx:xfoldmethod=expr fde=getline(v\:lnum)=~'^\\%([[][0-9]*[]]\\)\\{2\\}\ .\\+'?'>1'\:'='
## besser:
## vimx:xfoldmethod=expr fde=getline(v\:lnum)=~'^\\%(\\[[0-9]*\\]\\)\\{2\\}\ .\\+'?'>1'\:'='
## zwischen zwei und vier Klammern mit beliebigem Inhalt:
## vim:foldmethod=expr fde=getline(v\:lnum)=~'^\\%(\\[.*\\]\\)\\{2,4\\}\ .\\+'?'>1'\:'='
comment this entry
go to top of page

mount VFAT-partition on linux by using label

solved at 20061024
mkfs.vfat -F 32 -n "tv" /dev/sdf1 ==> create the partition

check volume label

root@ned ~ # vol_id /dev/sdf1
ID_FS_USAGE=filesystem
ID_FS_TYPE=vfat
ID_FS_VERSION=FAT32
ID_FS_UUID=453E-19D0
ID_FS_LABEL=TV
ID_FS_LABEL_SAFE=TV
root@ned ~ #

Course because vfat has got only uppercase labels (and mounting by label is case-sensisitve)

create fstab-entry like this one

root@ned ~ # grep -i tv /etc/fstab
LABEL=TV /mnt/tv auto user,noauto,rw,uid=vk,gid=vk 0 0
root@ned ~ # 

Create mountpoint (here: mkdir /mnt/tv)

check everything if it is working

root@ned ~ # mount /mnt/tv 
root@ned ~ # df -h | grep tv
/dev/sdf1             149G   32K  149G   1% /mnt/tv
root@ned ~ # umount /mnt/tv 
root@ned ~ # df -h | grep tv
root@ned ~ #

Live happily ever after ...
comment this entry
go to top of page

Maildir-folders and parallel usage with Squirrelmail and mutt

solved at 20061015

out of the box behavior of SquirrelMail

~/Maildir/                                                            
   .Trash   visible in Squirrelmail                                  
   .Drafts  visible                                                  
   .Sent    visible                                                  
   .foo     visible                                                  
      foo   not visile                                              
      .foo  not visile                                              
   bar      not visile                                              
      foo   not visile                                              
      .foo  not visile                                              
   .foo.bar visible (as subfolder of "foo")

My current Maildir structure looks like this:

Maildir                                                               
   community                                                          
     michael.prokop                                                   
     foo.bar                                                          
   work                                                                
     some.guy                                                       

Obviously, Squirrelmail (and probably the Maildir-standard) wants to
have something like this instead:

Maildir                                                               
   .community                                                         
   .community.michael\ prokop                                         
   .community.foo\ bar                                                
   .work                                                               
   .work.some\ guy

After Googeling around, I found following page that lists those
structure under the term of Extended Maildir Format:
http://wiki.mutt.org/?ExtendedMaildirFormat

Unfortunately, this kind of structure is some kind of bad when it
comes to be used with the email client mutt.

One could try to modify the configurations of Squirrelmail in order to
meet my "old" Maildir-structure. Probably modifying one or more of the
following lines could help:

/etc/squirrelmail/config.php

$default_folder_prefix          = '';                                 
$trash_folder                   = 'INBOX.Trash';                      
$sent_folder                    = 'INBOX.Sent';                       
$draft_folder                   = 'INBOX.Drafts';                     
$show_prefix_option             = false;                              
$auto_expunge                   = true;                               
$default_sub_of_inbox           = true;                               
$show_contain_subfolders_option = false;                              
$force_username_lowercase = false;        

I guess this might cause some side-effects and therefore I'd prefer a
solution which offers two kinds of Maildir-Interfaces: the one for the
Extended Maildir Format _and_ the one that is usable with mutt.

Somebody suggested to use a parallel symlink-directory-structure as a
solution:
http://does-not-exist.org/mail-archives/mutt-users/msg10316.html

And here is a script, that solves the (automatic) creation of the
symlink-structure: (muttdirs.sh)
http://wiki.mutt.org/?action=browse&diff=2&id=UserStory/Maildir


So I might try the following things:

1. restructure all my folders along the Extended Maildir Format
(means much work which I can combine with some cleaning/reorganizing)

2. Test the new structure with Squirrelmail

3. Run the muttdirs.sh-script and check the result

4. Modify .muttrc to access the muttdirs.sh-structure instead of the
Maildir-folder (set folder=...)

5. Test the new structure with mutt


Details:

1. restructure all my folders along the Extended Maildir Format
===============================================================

Replace dots in all files and directories in current directory with spaces:
zmv '*.*' '$f:gs/./ '

Adding the string "community." infront of every entry:
zmv -W '*' 'community.*'

maildir2extendedmaildir.sh

#!/bin/zsh                                                                                                                                                      

## if no parameter1 is given, take current directoryname as name:                                                                                               
DIRNAME=`echo \`pwd\`|sed 's/.*\///'`

SCRIPTNAME=`basename $0`

## if parameter1 is given, take it as directory name:                                                                                                           
[ "x${1}" = "x" ] || DIRNAME=${1}

echo "${SCRIPTNAME}: autoloading zmv ..."
autoload -U zmv    # who needs mmv or rename?                                                                                                                   

#echo ${SCRIPTNAME}: "debug: DIRNAME=[${DIRNAME}]"                                                                                                              

echo ${SCRIPTNAME}: "replacing dots with spaces ..."
zmv '*.*' '$f:gs/./ '

echo "${SCRIPTNAME}: adding directory name infront of every directory ..."
zmv -W '*' '.${DIRNAME}.*'

echo "${SCRIPTNAME}: renaming ${DIRNAME}.new, ${DIRNAME}.cur, and ${DIRNAME}.tmp back to new, cur, and tmp ..."
mv .${DIRNAME}.new new
mv .${DIRNAME}.cur cur
mv .${DIRNAME}.tmp tmp

echo "${SCRIPTNAME}: moving directories one directory hierarchy level higher ..."
mv .${DIRNAME}.* ..

echo ${SCRIPTNAME}: finished.
#end       

... does some of the annoying things of this job. Useful mainly in the
second hierarchy of my old Maildir.

Please notice: DO NOT USE THIS SCRIPT UNLESS YOU COMPLETELY UNDERSTAND IT!


2. Test the new structure with Squirrelmail
===========================================

Works.


3. Run the muttdirs.sh-script and check the result
==================================================

Works.


4. Modify .muttrc to access the muttdirs.sh-structure instead of the
Maildir-folder (set folder=...)
====================================================================

.muttrc (corresponding lines only)

set folder=~/.mutt/Maildir
set mbox_type=Maildir
set mbox=~/Maildir
set spoolfile=~/Maildir


5. Test the new structure with mutt
===================================

Works but with one nasty thing left:

When changing back to the inbox, I used to type c=(Enter)

But this ends up with an error: "/home/karl/.mutt/Maildir// is not a mailbox."

muttdirs.sh has one bug: it ignores the new, tmp, and cur-directories
of the Maildir-root itself. Adding the three symlinks solves this problem:

the three "ln -ls ..."-lines should be added to the script

[...]
for i in "$maildir_source"/.*; do parse "$(basename "${i}")"; done
ln -s "$maildir_source/cur" "$maildir_target/"
ln -s "$maildir_source/tmp" "$maildir_target/"
ln -s "$maildir_source/new" "$maildir_target/"
exit $?

One last word: please remember that you should not create a new
Maildir-directory using mutt because it will be created in the
symlink-hierarchy and will be deleted when running muttdirs.sh next
time!s
comment this entry
go to top of page

Emacs: replace with new line; typing spoiler-character

solved at 20060715
How can I replace a string with something that contains a CRLF, enter, return, or how you call it?

Cq ENTER -> Carriage Return
Cq Cj -> Newline

Cq Cl -> Spoiler
comment this entry
go to top of page

Fail event had been detected on md device /dev/md0

solved at 20060630
From root@ned.homeunix.net  Wed Jun 28 07:46:29 2006
From: mdadm monitoring <root@ned.homeunix.net>
To: root@ned.homeunix.net
Subject: Fail event on /dev/md0:ned
Date: Wed, 28 Jun 2006 07:46:29 +0200 (CEST)

This is an automatically generated mail message from mdadm
running on ned

A Fail event had been detected on md device /dev/md0.

Faithfully yours, etc.

syslog

Jun 28 07:45:45 ned kernel: ata1: command timeout
Jun 28 07:45:45 ned kernel: ata1: translated ATA stat/err 0x25/00 to SCSI SK/ASC/ASCQ 0x4/00/00
Jun 28 07:45:45 ned kernel: ata1: status=0x25 { DeviceFault CorrectedError Error }
Jun 28 07:45:45 ned kernel: SCSI error : <0 0 0 0> return code = 0x8000002
Jun 28 07:45:45 ned kernel: sda: Current: sense key: Hardware Error
Jun 28 07:45:45 ned kernel: Additional sense: No additional sense information
Jun 28 07:45:45 ned kernel: end_request: I/O error, dev sda, sector 27023695
Jun 28 07:45:45 ned kernel: raid5: Disk failure on sda1, disabling device. Operation continuing on 3 devices
Jun 28 07:45:45 ned kernel: RAID5 conf printout:
Jun 28 07:45:45 ned kernel: --- rd:4 wd:3 fd:1
Jun 28 07:45:45 ned kernel: disk 0, o:0, dev:sda1
Jun 28 07:45:45 ned kernel: disk 1, o:1, dev:sdb1
Jun 28 07:45:45 ned kernel: disk 2, o:1, dev:sdc1
Jun 28 07:45:45 ned kernel: disk 3, o:1, dev:sdd1
Jun 28 07:45:45 ned kernel: RAID5 conf printout:
Jun 28 07:45:45 ned kernel: --- rd:4 wd:3 fd:1
Jun 28 07:45:45 ned kernel: disk 1, o:1, dev:sdb1
Jun 28 07:45:45 ned kernel: disk 2, o:1, dev:sdc1
Jun 28 07:45:45 ned kernel: disk 3, o:1, dev:sdd1


root@ned ~ # mdadm --detail /dev/md0
/dev/md0:
        Version : 00.90.02
  Creation Time : Sun Jan 29 21:35:05 2006
     Raid Level : raid5
     Array Size : 732443136 (698.51 GiB 750.02 GB)
    Device Size : 244147712 (232.84 GiB 250.01 GB)
   Raid Devices : 4
  Total Devices : 4
Preferred Minor : 0
    Persistence : Superblock is persistent

    Update Time : Wed Jun 28 08:58:08 2006
          State : clean, degraded
 Active Devices : 3
Working Devices : 3
 Failed Devices : 1
  Spare Devices : 0

         Layout : left-symmetric
     Chunk Size : 64K

           UUID : 15f07005:037e4abf:70f51389:83dde0ed
         Events : 0.1605756

    Number   Major   Minor   RaidDevice State
       0       0        0        -      removed
       1       8       17        1      active sync   /dev/sdb1
       2       8       33        2      active sync   /dev/sdc1
       3       8       49        3      active sync   /dev/sdd1

       4       8        1        -      faulty   /dev/sda1
root@ned ~ #

SMART short test

root@ned ~ # smartctl -d ata -t short /dev/sda
smartctl version 5.34 [i686-pc-linux-gnu] Copyright (C) 2002-5 Bruce Allen
Home page is http://smartmontools.sourceforge.net/

=== START OF OFFLINE IMMEDIATE AND SELF-TEST SECTION ===
Sending command: "Execute SMART Short self-test routine immediately in off-line mode".
Drive command "Execute SMART Short self-test routine immediately in off-line mode" successful.
Testing has begun.
Please wait 1 minutes for test to complete.
Test will complete after Wed Jun 28 09:01:50 2006

Use smartctl -X to abort test.
root@ned ~ #

SMART reports no problems

root@ned ~ # smartctl -d ata -l selftest /dev/sda
smartctl version 5.34 [i686-pc-linux-gnu] Copyright (C) 2002-5 Bruce Allen
Home page is http://smartmontools.sourceforge.net/

=== START OF READ SMART DATA SECTION ===
SMART Self-test log structure revision number 1
Num  Test_Description    Status                  Remaining  LifeTime(hours)  LBA_of_first_error
# 1  Short offline       Completed without error       00%      4366         -
# 2  Extended offline    Completed without error       00%      4289         -
# 3  Extended offline    Completed without error       00%      4121         -
# 4  Extended offline    Completed without error       00%      3952         -
# 5  Extended offline    Completed without error       00%      3783         -
# 6  Extended offline    Completed without error       00%      3614         -
# 7  Extended offline    Completed without error       00%      3446         -
# 8  Extended offline    Completed without error       00%      3277         -
# 9  Extended offline    Completed without error       00%      3108         -
#10  Extended offline    Completed without error       00%      2940         -
#11  Extended offline    Completed without error       00%      2771         -
#12  Extended offline    Completed without error       00%      2603         -
#13  Extended offline    Completed without error       00%      2434         -
#14  Extended offline    Completed without error       00%      2265         -
#15  Extended offline    Completed without error       00%      2097         -
#16  Extended offline    Completed without error       00%      1929         -
#17  Extended offline    Completed without error       00%      1760         -
#18  Extended offline    Completed without error       00%      1592         -
#19  Extended offline    Completed without error       00%      1423         -
#20  Extended offline    Completed without error       00%      1254         -
#21  Extended offline    Completed without error       00%      1085         -

root@ned ~ #

hot adding not possible

root@ned ~ # mdadm -a /dev/md0 /dev/sda1
mdadm: Cannot open /dev/sda1: Device or resource busy
1 root@ned ~ # 

Rebooting server.

sda still outside of md0

root@ned ~ # mdadm --detail /dev/md0
/dev/md0:
        Version : 00.90.02
  Creation Time : Sun Jan 29 21:35:05 2006
     Raid Level : raid5
     Array Size : 732443136 (698.51 GiB 750.02 GB)
    Device Size : 244147712 (232.84 GiB 250.01 GB)
   Raid Devices : 4
  Total Devices : 3
Preferred Minor : 0
    Persistence : Superblock is persistent

    Update Time : Wed Jun 28 12:58:41 2006
          State : clean, degraded
 Active Devices : 3
Working Devices : 3
 Failed Devices : 0
  Spare Devices : 0

         Layout : left-symmetric
     Chunk Size : 64K

           UUID : 15f07005:037e4abf:70f51389:83dde0ed
         Events : 0.1607152

    Number   Major   Minor   RaidDevice State
       0       0        0        -      removed
       1       8       17        1      active sync   /dev/sdb1
       2       8       33        2      active sync   /dev/sdc1
       3       8       49        3      active sync   /dev/sdd1
root@ned ~ #

succesfully hot adding sda

root@ned ~ # mdadm -a /dev/md0 /dev/sda1
mdadm: hot added /dev/sda1
root@ned ~ # date;cat /proc/mdstat
Wed Jun 28 12:58:58 CEST 2006
Personalities : [linear] [raid0] [raid1] [raid5] [multipath] [raid6] [raid10]
md0 : active raid5 sda1[4] sdd1[3] sdc1[2] sdb1[1]
      732443136 blocks level 5, 64k chunk, algorithm 2 [4/3] [_UUU]
      [>....................]  recovery =  0.0% (116736/244147712) finish=208.9min speed=19456K/sec

unused devices: <none>
root@ned ~ #

During resync: sdb1 had a failure too :-(

Jun 28 12:58:51 ned kernel: md: bind<sda1>
Jun 28 12:58:51 ned kernel: RAID5 conf printout:
Jun 28 12:58:51 ned kernel: --- rd:4 wd:3 fd:1
Jun 28 12:58:51 ned kernel: disk 0, o:1, dev:sda1
Jun 28 12:58:51 ned kernel: disk 1, o:1, dev:sdb1
Jun 28 12:58:51 ned kernel: disk 2, o:1, dev:sdc1
Jun 28 12:58:51 ned kernel: disk 3, o:1, dev:sdd1
Jun 28 12:58:51 ned kernel: md: syncing RAID array md0
Jun 28 12:58:51 ned kernel: md: minimum _guaranteed_ reconstruction speed: 1000 KB/sec/disc.
Jun 28 12:58:51 ned kernel: md: using maximum available idle IO bandwith (but not more than 200000 KB/sec) for reconstruction.
Jun 28 12:58:51 ned kernel: md: using 128k window, over a total of 244147712 blocks.

Jun 28 13:30:33 ned kernel: ata2: command timeout
Jun 28 13:30:33 ned kernel: ata2: translated ATA stat/err 0x25/00 to SCSI SK/ASC/ASCQ 0x4/00/00
Jun 28 13:30:33 ned kernel: ata2: status=0x25 { DeviceFault CorrectedError Error }
Jun 28 13:30:33 ned kernel: SCSI error : <1 0 0 0> return code = 0x8000002
Jun 28 13:30:33 ned kernel: sdb: Current: sense key: Hardware Error
Jun 28 13:30:33 ned kernel: Additional sense: No additional sense information
Jun 28 13:30:33 ned kernel: end_request: I/O error, dev sdb, sector 108647231
Jun 28 13:30:33 ned kernel: raid5: Disk failure on sdb1, disabling device. Operation continuing on 2 devices
Jun 28 13:30:34 ned kernel: I/O error in filesystem ("dm-0") meta-data dev dm-0 block 0x2ba07c24       ("xlog_iodone") error 5 buf count 5632
Jun 28 13:30:34 ned kernel: xfs_force_shutdown(dm-0,0x2) called from line 952 of file fs/xfs/xfs_log.c.  Return address = 0xc02c463d
Jun 28 13:30:34 ned kernel: Filesystem "dm-0": Log I/O Error Detected.  Shutting down filesystem: dm-0
Jun 28 13:30:34 ned kernel: Please umount the filesystem, and rectify the problem(s)
Jun 28 13:30:34 ned kernel: Buffer I/O error on device dm-0, logical block 27449594
Jun 28 13:30:34 ned kernel: lost page write due to I/O error on dm-0
Jun 28 13:30:34 ned kernel: md: md0: sync done.
Jun 28 13:30:34 ned kernel: RAID5 conf printout:
Jun 28 13:30:34 ned kernel: --- rd:4 wd:2 fd:2
Jun 28 13:30:34 ned kernel: disk 0, o:1, dev:sda1
Jun 28 13:30:34 ned kernel: disk 1, o:0, dev:sdb1
Jun 28 13:30:34 ned kernel: disk 2, o:1, dev:sdc1
Jun 28 13:30:34 ned kernel: disk 3, o:1, dev:sdd1
Jun 28 13:30:34 ned kernel: RAID5 conf printout:
Jun 28 13:30:34 ned kernel: --- rd:4 wd:2 fd:2
Jun 28 13:30:34 ned kernel: disk 1, o:0, dev:sdb1
Jun 28 13:30:34 ned kernel: disk 2, o:1, dev:sdc1
Jun 28 13:30:34 ned kernel: disk 3, o:1, dev:sdd1
Jun 28 13:30:34 ned kernel: RAID5 conf printout:
Jun 28 13:30:34 ned kernel: --- rd:4 wd:2 fd:2
Jun 28 13:30:34 ned kernel: disk 1, o:0, dev:sdb1
Jun 28 13:30:34 ned kernel: disk 2, o:1, dev:sdc1
Jun 28 13:30:34 ned kernel: disk 3, o:1, dev:sdd1
Jun 28 13:30:34 ned kernel: Buffer I/O error on device dm-0, logical block 17293712
Jun 28 13:30:34 ned kernel: lost page write due to I/O error on dm-0
Jun 28 13:30:34 ned kernel: RAID5 conf printout:
Jun 28 13:30:34 ned kernel: --- rd:4 wd:2 fd:2
Jun 28 13:30:34 ned kernel: disk 2, o:1, dev:sdc1
Jun 28 13:30:34 ned kernel: disk 3, o:1, dev:sdd1

Booting grml v0.7 (Linux Magazin edition)

root@grml ~ # mdadm -A /dev/md0 /dev/sda /dev/sdb /dev/sdc /dev/sdd
mdadm: /dev/md0 has been started with 3 drives (out of 4) and 1 spare.
root@grml ~ #

resyncing md0

root@grml ~ # cat /proc/mdstat
Personalities : [linear] [raid0] [raid1] [raid10] [raid5] [raid4] [raid6] [multipath]
md0 : active raid5 sdc[0] sda[4] sdb[2] sdd[1]
      732595392 blocks level 5, 64k chunk, algorithm 2 [4/3] [UUU_]
      [>....................]  recovery =  0.9% (2300032/244198464) finish=137.9min speed=29224K/sec

unused devices: <none>
root@grml ~ # mdadm --detail /dev/md0
/dev/md0:
        Version : 00.90.03
  Creation Time : Fri Jan  6 23:17:16 2006
     Raid Level : raid5
     Array Size : 732595392 (698.66 GiB 750.18 GB)
    Device Size : 244198464 (232.89 GiB 250.06 GB)
   Raid Devices : 4
  Total Devices : 4
Preferred Minor : 0
    Persistence : Superblock is persistent

    Update Time : Fri Jan  6 23:17:16 2006
          State : clean, degraded, recovering
 Active Devices : 3
Working Devices : 4
 Failed Devices : 0
  Spare Devices : 1

         Layout : left-symmetric
     Chunk Size : 64K

 Rebuild Status : 1% complete

           UUID : af8efa72:3719f9fe:2b52ec59:f6f6293f
         Events : 0.44

    Number   Major   Minor   RaidDevice State
       0       8       32        0      active sync   /dev/sdc
       1       8       48        1      active sync   /dev/sdd
       2       8       16        2      active sync   /dev/sdb
       3       0        0        -      removed

       4       8        0        3      spare rebuilding   /dev/sda
root@grml ~ #

25% finished and no problems so far

root@grml ~ # date;cat /proc/mdstat
Mi Jun 28 22:28:56 CEST 2006
Personalities : [linear] [raid0] [raid1] [raid10] [raid5] [raid4] [raid6] [multipath] 
md0 : active raid5 sdc[0] sda[4] sdb[2] sdd[1]
      732595392 blocks level 5, 64k chunk, algorithm 2 [4/3] [UUU_]
      [=====>...............]  recovery = 25.0% (61078528/244198464) finish=105.7min speed=28870K/sec
      
unused devices: <none>
root@grml ~ #

resync finished and md0 clean

root@grml ~ # date;cat /proc/mdstat
Do Jun 29 08:34:07 CEST 2006
Personalities : [linear] [raid0] [raid1] [raid10] [raid5] [raid4] [raid6] [multipath]
md0 : active raid5 sdc[0] sda[3] sdb[2] sdd[1]
      732595392 blocks level 5, 64k chunk, algorithm 2 [4/4] [UUUU]

unused devices: <none>
root@grml ~ # mdadm --detail /dev/md0
/dev/md0:
        Version : 00.90.03
  Creation Time : Fri Jan  6 23:17:16 2006
     Raid Level : raid5
     Array Size : 732595392 (698.66 GiB 750.18 GB)
    Device Size : 244198464 (232.89 GiB 250.06 GB)
   Raid Devices : 4
  Total Devices : 4
Preferred Minor : 0
    Persistence : Superblock is persistent

    Update Time : Thu Jun 29 00:16:09 2006
          State : clean
 Active Devices : 4
Working Devices : 4
 Failed Devices : 0
  Spare Devices : 0

         Layout : left-symmetric
     Chunk Size : 64K

           UUID : af8efa72:3719f9fe:2b52ec59:f6f6293f
         Events : 0.45

    Number   Major   Minor   RaidDevice State
       0       8       32        0      active sync   /dev/sdc
       1       8       48        1      active sync   /dev/sdd
       2       8       16        2      active sync   /dev/sdb
       3       8        0        3      active sync   /dev/sda
root@grml ~ #

Trying to access data on the LVM ontop of my md0-raid:

pvchange -a y
or
pvscan

"lsmod |grep lvm" -> no result
vgchange -a y -> "No volume groups found"

#pvchange /dev/md0
vgscan -vvv
vgchange -a y
lvchange


pvscan shows results

root@ned ~ # pvscan
  PV /dev/sda1   VG datavg1   lvm2 [698.51 GB / 524.00 MB free]
  Total: 1 [698.51 GB] / in use: 1 [698.51 GB] / in no VG: 0 [0   ]
root@ned ~ # pvchange -a y
  Please give exactly one option of -x, -uuid, --addtag or --deltag
  pvchange: Change attributes of physical volume(s)

pvchange
        [-a|--all]
        [-A|--autobackup y|n]
        [-d|--debug]
        [-h|--help]
        [-t|--test]
        [-u|--uuid]
        [-x|--allocatable y|n]
        [-v|--verbose]
        [--addtag Tag]
        [--deltag Tag]
        [--version]
        [PhysicalVolumePath...]

3 root@ned ~ #  

vgscan shows result, lvscan too but device is not mountable

root@ned ~ # vgscan
  Reading all physical volumes.  This may take a while...
  Found volume group "datavg1" using metadata type lvm2
root@ned ~ # vgchange -a y
  1 logical volume(s) in volume group "datavg1" now active
root@ned ~ # lvscan
  ACTIVE            '/dev/datavg1/datalv1' [698.00 GB] inherit
root@ned ~ # mount /data
mount: special device /dev/datavg1/datalv1 does not exist
root@ned ~ # mdadm --detail /dev/md0
mdadm: md device /dev/md0 does not appear to be active.
root@ned ~ #

funny

root@ned ~ # mdadm --detail /dev/md0
mdadm: md device /dev/md0 does not appear to be active.
1 root@ned ~ #

maybe the LVM is initialized in a wrong way

root@ned ~ # Stop lvm
Shutting down LVM Volume Groups...
  0 logical volume(s) in volume group "datavg1" now active
root@ned ~ #

PV seems to be OK

root@ned ~ # mdadm -a /dev/md0 /dev/sda1 /dev/sdb1 /dev/sdc1 /dev/sdd1
mdadm: cannot get array info for /dev/md0
root has logged on pts/5 from vifpix:S.4.
root@ned ~ # pvscan
  PV /dev/sda1   VG datavg1   lvm2 [698.51 GB / 524.00 MB free]
  Total: 1 [698.51 GB] / in use: 1 [698.51 GB] / in no VG: 0 [0   ]
root@ned ~ #

mdadm -f is the wrong order - try to put -f at the end

root@ned ~ # mdadm -f -A /dev/md0 /dev/sda1 /dev/sdb1 /dev/sdc1 /dev/sdd1
mdadm: -A would set mdadm mode to "assemble", but it is already set to
"manage".
root@ned ~ #

forcing md0 to be assembled (-A)

root@ned ~ # mdadm -A /dev/md0 /dev/sda1 /dev/sdb1 /dev/sdc1 /dev/sdd1 -f
mdadm: forcing event count in /dev/sda1(0) from 1607350 upto 1607353
mdadm: clearing FAULTY flag for device 0 in /dev/md0 for /dev/sda1
mdadm: /dev/md0 has been started with 3 drives (out of 4).
root@ned ~ #

activating LVM and checking

root@ned ~ # pvscan
  PV /dev/md0   VG datavg1   lvm2 [698.51 GB / 524.00 MB free]
  Total: 1 [698.51 GB] / in use: 1 [698.51 GB] / in no VG: 0 [0   ]
root@ned ~ # lvscan
  inactive          '/dev/datavg1/datalv1' [698.00 GB] inherit
root@ned ~ # vgscan
  Reading all physical volumes.  This may take a while...
  Found volume group "datavg1" using metadata type lvm2
root@ned ~ # vgchange -a y
  1 logical volume(s) in volume group "datavg1" now active
root@ned ~ #

being able to mount read-only

root@ned ~ # mount /dev/datavg1/datalv1 /data -o ro
root@ned ~ # df -h
Filesystem            Size  Used Avail Use% Mounted on
rootfs                9.2G  5.9G  3.0G  67% /
/dev/root             9.2G  5.9G  3.0G  67% /
/dev/root             9.2G  5.9G  3.0G  67% /dev/.static/dev
tmpfs                  10M   80K   10M   1% /dev
tmpfs                 188M     0  188M   0% /dev/shm
/dev/datavg1/datalv1  698G  688G   11G  99% /data
root@ned ~ # 

hot-adding sdb1 and hoping for a clean resync

root@ned ~ #  mdadm -a /dev/md0 /dev/sdb1
mdadm: hot added /dev/sdb1
root@ned ~ # mdadm --detail /dev/md0
/dev/md0:
        Version : 00.90.02
  Creation Time : Sun Jan 29 21:35:05 2006
     Raid Level : raid5
     Array Size : 732443136 (698.51 GiB 750.02 GB)
    Device Size : 244147712 (232.84 GiB 250.01 GB)
   Raid Devices : 4
  Total Devices : 4
Preferred Minor : 0
    Persistence : Superblock is persistent

    Update Time : Fri Jun 30 14:52:41 2006
          State : clean, degraded, recovering
 Active Devices : 3
Working Devices : 4
 Failed Devices : 0
  Spare Devices : 1

         Layout : left-symmetric
     Chunk Size : 64K

 Rebuild Status : 0% complete

           UUID : 15f07005:037e4abf:70f51389:83dde0ed
         Events : 0.1607366

    Number   Major   Minor   RaidDevice State
       0       8        1        0      active sync   /dev/sda1
       1       0        0        -      removed
       2       8       33        2      active sync   /dev/sdc1
       3       8       49        3      active sync   /dev/sdd1

       4       8       17        1      spare rebuilding   /dev/sdb1
root@ned ~ # date;cat /proc/mdstat
Fri Jun 30 14:52:51 CEST 2006
Personalities : [linear] [raid0] [raid1] [raid5] [multipath] [raid6]
[raid10]
md0 : active raid5 sdb1[4] sda1[0] sdd1[3] sdc1[2]
      732443136 blocks level 5, 64k chunk, algorithm 2 [4/3] [U_UU]
      [>....................]  recovery =  0.1% (314756/244147712)
finish=129.0min speed=31475K/sec

unused devices: <none>
root@ned ~ #

----> resync, please do!

another IO-error during resync

Jun 30 15:00:42 ned kernel: ata4: command timeout
Jun 30 15:00:42 ned kernel: ata4: translated ATA stat/err 0x25/00 to SCSI SK/ASC/ASCQ 0x4/00/00
Jun 30 15:00:42 ned kernel: ata4: status=0x25 { DeviceFault CorrectedError Error }
Jun 30 15:00:42 ned kernel: SCSI error : <3 0 0 0> return code = 0x8000002
Jun 30 15:00:42 ned kernel: sdd: Current: sense key: Hardware Error
Jun 30 15:00:42 ned kernel: Additional sense: No additional sense information
Jun 30 15:00:42 ned kernel: end_request: I/O error, dev sdd, sector 27495231
Jun 30 15:00:42 ned kernel: raid5: Disk failure on sdd1, disabling device. Operation continuing on 2 devices
Jun 30 15:00:42 ned kernel: md: md0: sync done.
Jun 30 15:00:42 ned kernel: RAID5 conf printout:
Jun 30 15:00:42 ned kernel: --- rd:4 wd:2 fd:2
Jun 30 15:00:42 ned kernel: disk 0, o:1, dev:sda1
Jun 30 15:00:42 ned kernel: disk 1, o:1, dev:sdb1
Jun 30 15:00:42 ned kernel: disk 2, o:1, dev:sdc1
Jun 30 15:00:42 ned kernel: disk 3, o:0, dev:sdd1
Jun 30 15:00:42 ned kernel: RAID5 conf printout:
Jun 30 15:00:42 ned kernel: --- rd:4 wd:2 fd:2
Jun 30 15:00:42 ned kernel: disk 0, o:1, dev:sda1
Jun 30 15:00:42 ned kernel: disk 2, o:1, dev:sdc1
Jun 30 15:00:42 ned kernel: disk 3, o:0, dev:sdd1
Jun 30 15:00:42 ned kernel: RAID5 conf printout:

md0 is down again

root@ned ~ # date;cat /proc/mdstat
Fri Jun 30 15:07:45 CEST 2006
Personalities : [linear] [raid0] [raid1] [raid5] [multipath] [raid6] [raid10]
md0 : active raid5 sdb1[4] sda1[0] sdd1[5](F) sdc1[2]
      732443136 blocks level 5, 64k chunk, algorithm 2 [4/2] [U_U_]
unused devices: <none>

Shit!

root@ned ~ # mdadm -A /dev/md0 /dev/sda1 /dev/sdb1 /dev/sdc1 /dev/sdd1 -f
mdadm: device /dev/md0 already active - cannot assemble it
root@ned ~ # Stop lvm
Shutting down LVM Volume Groups...
  0 logical volume(s) in volume group "datavg1" now active
root@ned ~ # mdadm -A /dev/md0 /dev/sda1 /dev/sdb1 /dev/sdc1 /dev/sdd1 -f

stopping md0 and assembling again

mdadm --stop /dev/md0
mdadm -A /dev/md0 /dev/sda1 /dev/sdb1 /dev/sdc1 /dev/sdd1 -f

another resync

root@ned ~ # date;cat /proc/mdstat
Fri Jun 30 15:18:23 CEST 2006
Personalities : [linear] [raid0] [raid1] [raid5] [multipath] [raid6]
[raid10]
md0 : active raid5 sda1[0] sdb1[4] sdd1[3] sdc1[2]
      732443136 blocks level 5, 64k chunk, algorithm 2 [4/3] [U_UU]
      [>....................]  recovery =  0.5% (1310356/244147712)
finish=129.0min speed=31364K/sec

unused devices: <none>
root@ned ~ #

this time successfully

Jun 30 17:29:48 ned kernel: md: md0: sync done.
Jun 30 17:29:48 ned kernel: RAID5 conf printout:
Jun 30 17:29:48 ned kernel: --- rd:4 wd:4 fd:0
Jun 30 17:29:48 ned kernel: disk 0, o:1, dev:sda1
Jun 30 17:29:48 ned kernel: disk 1, o:1, dev:sdb1
Jun 30 17:29:48 ned kernel: disk 2, o:1, dev:sdc1
Jun 30 17:29:48 ned kernel: disk 3, o:1, dev:sdd1

After "Start lvm" -> being able to mount /data

Doing some backups now *g*

Considering this problem solved and hoping for a loooong clean run.

Probably the controller (Promise FastTrack), the PCI-bus or the board
is not quite stable.

during backup2l errors in files

[...]
Preparing full backup <misc_data_vk.1>...
find: /data/vk/tmp/4burning/backup/20050918_backup_vk/Maildir/cvjm/cur/1121257218.2121_24.lisa:2,S: Unknown error 990
find: /data/vk/tmp/4burning/backup/20050918_backup_vk/Maildir/cvjm/cur/1121257218.2121_24.lisa:2,S: Unknown error 990
find: /data/vk/tmp/4burning/backup/20050918_backup_vk/Maildir/cvjm/cur/1121257218.2121_24.lisa:2,S: Unknown error 990

-> Aborting backup.

syslog-errors of xfs

Jul  1 07:34:05 ned kernel: Filesystem "dm-0": corrupt inode 3959514635 ((a)extents = 0).  Unmount and run xfs_repair.
Jul  1 07:34:05 ned kernel: 0x0: 49 4e 81 80 01 02 00 01 00 00 01 f4 00 00 00 64
Jul  1 07:34:05 ned kernel: Filesystem "dm-0": XFS internal error xfs_iformat_extents(1) at line 631 of file fs/xfs/xfs_inode.c.  Caller 0xc02bb6ba
Jul  1 07:34:05 ned kernel: [<c02bbb89>] xfs_iformat_extents+0x89/0x280
Jul  1 07:34:05 ned kernel: [<c02bb6ba>] xfs_iformat+0x29a/0x540
Jul  1 07:34:05 ned kernel: [<c02bb6ba>] xfs_iformat+0x29a/0x540
Jul  1 07:34:05 ned kernel: [<c02ddcb4>] kmem_zone_zalloc+0x14/0x50
Jul  1 07:34:05 ned kernel: [<c02bb6ba>] xfs_iformat+0x29a/0x540
[...]

-> have to umount and check filesystem
comment this entry
go to top of page

Burning failed with "Interface was not stable"

solved at 20060601
new burner: NEC 4571A in external Firewire 400 drive
with Roxio Toast Lite v6.0.7

"Interface was not stable"

The drive reported an error:
Sense Key = UNIT ATTENTION
Sense Code = 0x29
POWER ON, RESET, OR BUS DEVICE RESET OCCURED

Settings: Best speed, 6x (8m52s - 10m08s)

4x: works

Solved by chosing another external FireWire-case!
comment this entry
go to top of page

inst and conf Munin

solved at 20060502
root@ned ~ # apt-get install munin munin-node
Reading package lists... Done
Building dependency tree... Done
The following extra packages will be installed:
  libio-multiplex-perl libnet-server-perl lsb-base
Suggested packages:
  libnet-irc-perl
Recommended packages:
  libnet-snmp-perl
The following NEW packages will be installed:
  libio-multiplex-perl libnet-server-perl munin-node
The following packages will be upgraded:
  lsb-base munin
2 upgraded, 3 newly installed, 0 to remove and 1489 not upgraded.
1 not fully installed or removed.
Need to get 1344kB of archives.
After unpacking 1847kB of additional disk space will be used.
Do you want to continue [Y/n]? 

added "allow ^192\.169\.7\.*$"-line in /etc/munin/munin-node.conf

My sd*-disks are SATA and have to be accessed using the ata-driver:

added env.drives-line in /etc/munin/plugin-conf.d/munin-node

[hddtemp_smartctl]
user root
env.drives hda sda sdb sdc sdd
[smart_sda]
user root
env.smartargs -d ata

[smart_sdb]
user root
env.smartargs -d ata

[smart_sdc]
user root
env.smartargs -d ata

[smart_sdd]
user root
env.smartargs -d ata
[uptime]
user root

[ping_*]
user root


generate the symlinks for the sd-devices

root@ned /etc/munin/plugins # ln -s /usr/share/munin/plugins/smart_* smart_sda
root@ned /etc/munin/plugins # ln -s /usr/share/munin/plugins/smart_* smart_sdb
root@ned /etc/munin/plugins # ln -s /usr/share/munin/plugins/smart_* smart_sdc
root@ned /etc/munin/plugins # ln -s /usr/share/munin/plugins/smart_* smart_sdd
root@ned /etc/munin/plugins # ln -s /usr/share/munin/plugins/ping_ ping_heise.de
root@ned /etc/munin/plugins # ln -s /usr/share/munin/plugins/uptime .
root@ned /etc/munin/plugins #

Munin works from host ned using: http://ned/munin/localdomain/localhost.localdomain.html

But hddtemp shows no graphs or values for sd*

Mika had the same problem. Solved with:

[hddtemp_smartctl]
user root
env.drives hda sda sdb sdc sdd
env.args_sda -d ata
env.args_sdb -d ata
env.args_sdc -d ata
env.args_sdd -d ata

... same with smart: SATA has to be accessed using ata!
comment this entry
go to top of page

Internet for Palm PDA Tungsten T3 over a Windows-Computer

solved at 20060424
Software:
http://tinyurl.com/necxb

Instructions:
http://tinyurl.com/maz46

Palm Tungsten T3 and Toshiba Tekra S1:

* Install mRouter
* System Preferences/Bluetooth Local COM: search COM-port-number for "Local COM Server..."
* Choose "Extended Preferences" (or similar) from context-menu of mRouter (in tray)
- "Other COM ports" (or similar)/"Show ..." (or similar)
- add COM-port from above to the right side
- you may deselect other things like infrared and USB if not needed
- Security: activate "allow connection to other computers" (or similar)
- close window
* Create on your palm a network and a connection as described in the instruction-link above.
* Connect and have fun! :-)
comment this entry
go to top of page

Enable Addressbook for using Sony-Ericsson K750i

solved at 20060402

http://www.macosxhints.com/article.php?story=20050731124746116

The K750i works great with iSync 2.1, but it's still impossible to
send (and receive) SMS or dial a number from the Address Book.

But there is a really easy way to solve this: a similar method as the
one described in this hint can be used.

   1. Quit and backup your Address Book app, etc.

   2. Control click on the Address Book app, select Show Package
      Contents, then navigate to Contents -> Resources.

   3. Control click on Telephony.bundle, select Show Package Contents,
      then navigate to Contents -> Resources

   4. Open ABDeviceCommandSets.plist with Property List Editor (or a
      text editor to change the XML in a more primitive way)

   5. Find this array in the ABDeviceCommandSets.plist: Root -> 2 ->
      ABDeviceModelStrings ... you should see one string entry here:
      K700. Add another string entry with the value K750.

   6. Save and quit

Now relaunch Address book. SMS and dialing should now work with your
K750i. This works on my Tiger 10.4.2...

Works for me on 10.4.5 too.
comment this entry
go to top of page

monitor SW-RAID5 with mdadm

solved at 20060130
http://www.tldp.org/HOWTO/Software-RAID-HOWTO-6.html#ss6.5

"mdadm --monitor --mail=root@localhost --delay=600 /dev/md0"

Demon mode started through "/etc/init.d/mdadm start" with:

correct defaults for mdadm

root@ned /etc/mdadm # l
total 0
root@ned /etc/mdadm # cat /etc/default/mdadm
# This file is automatically generated.
# Run 'dpkg-reconfigure mdadm' to modify it.
START_DAEMON=true
MAIL_TO="root"
AUTOSTART=true
root@ned /etc/mdadm #
comment this entry
go to top of page

Summary of RAID5-operations for my configuration

solved at 20060129

My configuration

4x250GB Samsung SATA
1xPromise FastTrack 150 SATA controller
one big RAID5 with all 4 hdds
LVM on top of it
XFS as file system

Creating RAID5, LVM, XFS and mounting

mdadm --create --verbose /dev/md0 --level=raid5 --raid-devices=4 /dev/sda1 /dev/sdb1 /dev/sdc1 /dev/sdd1
pvcreate /dev/md0
vgcreate datavg1 /dev/md0
lvcreate -L698G -ndatalv1 datavg1
mkfs.xfs -d agcount=128,su=65536,sw=196608 -l internal,size=32768b    /dev/datavg1/datalv1
mount /dev/datavg1/datalv1 /data

Getting status informations from /proc/mdstat

root@ned ~ # date;cat /proc/mdstat
Sun Oct  9 21:26:40 CEST 2005
Personalities : [linear] [raid0] [raid1] [raid5] [multipath] [raid6] [raid10] 
md0 : active raid5 sdd1[4] sdc1[2] sdb1[1] sda1[0]
      732418944 blocks level 5, 64k chunk, algorithm 2 [4/3] [UUU_]
      [>....................]  recovery =  0.3% (832640/244139648) finish=173.2min speed=23402K/sec
      
unused devices: <none>
root@ned ~ # 

Getting detailed status informations from mdadm

root@ned ~ # mdadm --detail /dev/md0
/dev/md0:
        Version : 00.90.02
  Creation Time : Sun Oct  9 21:26:03 2005
     Raid Level : raid5
     Array Size : 732418944 (698.49 GiB 750.00 GB)
    Device Size : 244139648 (232.83 GiB 250.00 GB)
   Raid Devices : 4
  Total Devices : 4
Preferred Minor : 0
    Persistence : Superblock is persistent

    Update Time : Sun Oct  9 21:26:03 2005
          State : clean, degraded, recovering
 Active Devices : 3
Working Devices : 4
 Failed Devices : 0
  Spare Devices : 1

         Layout : left-symmetric
     Chunk Size : 64K

 Rebuild Status : 0% complete

           UUID : e296bb86:ab07b6b4:afe15070:9c0773ae
         Events : 0.19830

    Number   Major   Minor   RaidDevice State
       0       8        1        0      active sync   /dev/sda1
       1       8       17        1      active sync   /dev/sdb1
       2       8       33        2      active sync   /dev/sdc1
       3       0        0        -      removed

       4       8       49        3      spare rebuilding   /dev/sdd1
root@ned ~ # 

Determining maximum size of LVM

root@ned ~ # vgdisplay|grep Size
  VG Size               698.51 GB
  PE Size               4.00 MB
  Alloc PE / Size       178688 / 698.00 GB
  Free  PE / Size       131 / 524.00 MB
root@ned ~ # lvcreate -L698G -ndatalv1 datavg1
  Logical volume "datalv1" created
root@ned ~ # 

Remove an working partition sdb1 from raid

Set it faulty:
mdadm -f /dev/md0 /dev/sdb1
Remove it from raid:
mdadm -r /dev/md0 /dev/sdb1

Stopping an raid

Set all disks faulty:
mdadm -f /dev/md0 /dev/sda1 /dev/sdb1 ...
Stop the raid:
mdadm --stop /dev/md0

Adding a prepared partition to the RAID again

mdadm -a /dev/md0 /dev/sda1
comment this entry
go to top of page

SW-RAID5 with FastTrack 150 with Benchmarking

solved at 20060129

Errors in RAID with Dawicontrol 150

Jan 24 18:22:34 ned kernel: ata3: command 0x35 timeout, stat 0xd1 host_stat 0x1
Jan 24 18:22:34 ned kernel: ata3: translated ATA stat/err 0x35/00 to SCSI SK/ASC/ASCQ 0x4/00/00
Jan 24 18:22:34 ned kernel: ata3: status=0x35 { DeviceFault SeekComplete CorrectedError Error }
Jan 24 18:22:34 ned kernel: SCSI error : <2 0 0 0> return code = 0x8000002
Jan 24 18:22:34 ned kernel: sdc: Current: sense key: Hardware Error
Jan 24 18:22:34 ned kernel: Additional sense: No additional sense information
Jan 24 18:22:34 ned kernel: end_request: I/O error, dev sdc, sector 8023039
Jan 24 18:22:34 ned kernel: ATA: abnormal status 0xD1 on port 0xE8B04287
Jan 24 18:22:34 ned kernel: ATA: abnormal status 0xD1 on port 0xE8B04287
Jan 24 18:22:34 ned kernel: ATA: abnormal status 0xD1 on port 0xE8B04287

--> always the last hdd is the bad one

Controller seems to be the problem.

Changed from Dawicontrol 154 to Promise FastTrack 150 SATA controller:


2x250G RAID5:

No errors after 44% at full speed

root@ned ~ # date;cat /proc/mdstat
Tue Jan 24 23:08:38 CET 2006
Personalities : [linear] [raid0] [raid1] [raid5] [multipath] [raid6] [raid10]
md0 : active raid5 sdd1[4] sdc1[2] sdb1[1] sda1[0]
      732443136 blocks level 5, 64k chunk, algorithm 2 [4/3] [UUU_]
      [==>..................]  recovery = 10.0% (24614784/244147712) finish=121.6min speed=30066K/sec

unused devices: <none>
root@ned ~ # date;cat /proc/mdstat
Tue Jan 24 23:55:01 CET 2006
Personalities : [linear] [raid0] [raid1] [raid5] [multipath] [raid6] [raid10]
md0 : active raid5 sdd1[4] sdc1[2] sdb1[1] sda1[0]
      732443136 blocks level 5, 64k chunk, algorithm 2 [4/3] [UUU_]
      [========>............]  recovery = 44.0% (107574148/244147712) finish=74.8min speed=30421K/sec

unused devices: <none>
root@ned ~ #

Sync finished

Jan 25 01:10:44 ned kernel: md: md0: sync done.
Jan 25 01:10:44 ned kernel: RAID5 conf printout:
Jan 25 01:10:44 ned kernel: --- rd:4 wd:4 fd:0
Jan 25 01:10:44 ned kernel: disk 0, o:1, dev:sda1
Jan 25 01:10:44 ned kernel: disk 1, o:1, dev:sdb1
Jan 25 01:10:44 ned kernel: disk 2, o:1, dev:sdc1
Jan 25 01:10:44 ned kernel: disk 3, o:1, dev:sdd1

All disks in the RAID5

root@ned ~ # date;cat /proc/mdstat
Wed Jan 25 08:24:19 CET 2006
Personalities : [linear] [raid0] [raid1] [raid5] [multipath] [raid6] [raid10]
md0 : active raid5 sdd1[3] sdc1[2] sdb1[1] sda1[0]
      732443136 blocks level 5, 64k chunk, algorithm 2 [4/4] [UUUU]

unused devices: <none>
root@ned ~ #

bonnie-results

Using uid:1000, gid:100.
Writing with putc()...done
Writing intelligently...done
Rewriting...done
Reading with getc()...done
Reading intelligently...done
start 'em...done...done...done...
Create files in sequential order...done.
Stat files in sequential order...done.
Delete files in sequential order...done.
Create files in random order...done.
Stat files in random order...done.
Delete files in random order...done.
Version  1.03       ------Sequential Output------ --Sequential Input- --Random-
                    -Per Chr- --Block-- -Rewrite- -Per Chr- --Block-- --Seeks--
Machine        Size K/sec %CP K/sec %CP K/sec %CP K/sec %CP K/sec %CP  /sec %CP
ned              2G 10952  83 45702  30 24176  25 13604  90 53219  35 340.6   2
                    ------Sequential Create------ --------Random Create--------
                    -Create-- --Read--- -Delete-- -Create-- --Read--- -Delete--
              files  /sec %CP  /sec %CP  /sec %CP  /sec %CP  /sec %CP  /sec %CP
                 16  1647  34 +++++ +++  1535  28  1700  38 +++++ +++  1271  29
ned,2G,10952,83,45702,30,24176,25,13604,90,53219,35,340.6,2,16,1647,34,+++++,+++,1535,28,1700,38,+++++,+++,1271,29
./raidtest_mkfs_mount_bonnie.sh  267.44s user 98.39s system 61% cpu 9:56.35 total

hddtemp works ...

root@ned ~ # hddtemp /dev/sd[abcd]
/dev/sda: SAMSUNG SP2504C: 22°C
/dev/sdb: SAMSUNG SP2504C: 21°C
/dev/sdc: SAMSUNG SP2504C: 22°C
/dev/sdd: SAMSUNG SP2504C: 23°C
root@ned ~ #

... with following messages in syslog

Jan 25 10:03:04 ned kernel: ata4: translated ATA stat/err 0xec/00 to SCSI SK/ASC/ASCQ 0xb/47/00
Jan 25 10:03:04 ned kernel: ata4: translated ATA stat/err 0xec/00 to SCSI SK/ASC/ASCQ 0xb/47/00
Jan 25 10:03:04 ned kernel: ata3: translated ATA stat/err 0xec/00 to SCSI SK/ASC/ASCQ 0xb/47/00
Jan 25 10:03:04 ned kernel: ata3: translated ATA stat/err 0xec/00 to SCSI SK/ASC/ASCQ 0xb/47/00
Jan 25 10:03:04 ned kernel: ata2: translated ATA stat/err 0xec/00 to SCSI SK/ASC/ASCQ 0xb/47/00
Jan 25 10:03:04 ned kernel: ata2: translated ATA stat/err 0xec/00 to SCSI SK/ASC/ASCQ 0xb/47/00
Jan 25 10:03:04 ned kernel: ata1: translated ATA stat/err 0xec/00 to SCSI SK/ASC/ASCQ 0xb/47/00
Jan 25 10:03:04 ned kernel: ata1: translated ATA stat/err 0xec/00 to SCSI SK/ASC/ASCQ 0xb/47/00
Jan 25 10:03:04 ned kernel: ata1: translated ATA stat/err 0xb0/00 to SCSI SK/ASC/ASCQ 0xb/47/00
Jan 25 10:03:04 ned kernel: ata1: translated ATA stat/err 0xb0/00 to SCSI SK/ASC/ASCQ 0xb/47/00
Jan 25 10:03:04 ned kernel: ata2: translated ATA stat/err 0xb0/00 to SCSI SK/ASC/ASCQ 0xb/47/00
Jan 25 10:03:04 ned kernel: ata2: translated ATA stat/err 0xb0/00 to SCSI SK/ASC/ASCQ 0xb/47/00
Jan 25 10:03:04 ned kernel: ata3: translated ATA stat/err 0xb0/00 to SCSI SK/ASC/ASCQ 0xb/47/00
Jan 25 10:03:04 ned kernel: ata3: translated ATA stat/err 0xb0/00 to SCSI SK/ASC/ASCQ 0xb/47/00
Jan 25 10:03:04 ned kernel: ata4: translated ATA stat/err 0xb0/00 to SCSI SK/ASC/ASCQ 0xb/47/00
Jan 25 10:03:04 ned kernel: ata4: translated ATA stat/err 0xb0/00 to SCSI SK/ASC/ASCQ 0xb/47/00


copying real-data onto the raid for testing

vk@ned ~/data % du -h
[...]
21G     .
vk@ned ~/data % cp -r * /root/testraid/data/vk/
cp -r * /root/testraid/data/vk/  4.59s user 210.06s system 17% cpu 20:05.40 total
vk@ned ~/data %

-> approx. 18.3MB/s from PATA system-hdd to RAID5

pvcreate /dev/md0
vgcreate datavg1 /dev/md0

creating maximum size logical volume

root@ned ~ # vgdisplay|grep Size
  VG Size               698.51 GB
  PE Size               4.00 MB
  Alloc PE / Size       178688 / 698.00 GB
  Free  PE / Size       131 / 524.00 MB
root@ned ~ # lvcreate -L698G -ndatalv1 datavg1
  Logical volume "datalv1" created
root@ned ~ # 

What are the XFS defaults?

root@ned ~ # mkfs.xfs -N /dev/datavg1/datalv1
meta-data=/dev/datavg1/datalv1   isize=256    agcount=32, agsize=5718016 blks
         =                       sectsz=512
data     =                       bsize=4096   blocks=182976512, imaxpct=25
         =                       sunit=0      swidth=0 blks, unwritten=1
naming   =version 2              bsize=4096
log      =internal log           bsize=4096   blocks=32768, version=1
         =                       sectsz=512   sunit=0 blks
realtime =none                   extsz=65536  blocks=0, rtextents=0
root@ned ~ #

RAID strip size for sunit?

root@ned ~ # mdadm --detail /dev/md0|grep Chunk
     Chunk Size : 64K
root@ned ~ #

Gebi:

imho is z.b für deine größe die allocation size zu klein die kannst ruhig vergrößern
und auch das journal kannst vergrößern
blockgröße 4KB
was noch wichtig ist is sunit
also die stripe size von deinem raid
dass sollte mit der stripe size mit der du das raid erzeugt hast übereinstimmen

Gebi

sunit ist das was du beim raid als blocksize angibst (bei dir 64k)

swidth ist fürs fs interessanter, das ist die blockgröße die sich aus deiner raid config ergibt

raid5 mit 4 platten:
sunit = 64k
3 datenplatten => swidth = sunit * 3 = 192k

create fs

root@ned ~ # mkfs.xfs -d agcount=128,su=65536,sw=196608 -l internal,size=32768b    /dev/datavg1/datalv1   
meta-data=/dev/datavg1/datalv1   isize=256    agcount=128, agsize=1429504 blks
         =                       sectsz=512  
data     =                       bsize=4096   blocks=182976512, imaxpct=25
         =                       sunit=16     swidth=3145728 blks, unwritten=1
naming   =version 2              bsize=4096  
log      =internal log           bsize=4096   blocks=32768, version=1
         =                       sectsz=512   sunit=0 blks
realtime =none                   extsz=65536  blocks=0, rtextents=0
root@ned ~ #

Bonnie

root@ned ~ # mount /dev/datavg1/datalv1 /data 
root@ned ~ # chown vk.users -R /data
root@ned ~ # bonnie -s 2048 -d /data -u vk:users
Using uid:1000, gid:100.
Writing with putc()...done
Writing intelligently...done
Rewriting...done
Reading with getc()...done
Reading intelligently...done
start 'em...done...done...done...
Create files in sequential order...done.
Stat files in sequential order...done.
Delete files in sequential order...done.
Create files in random order...done.
Stat files in random order...done.
Delete files in random order...done.
Version  1.03       ------Sequential Output------ --Sequential Input- --Random-
                    -Per Chr- --Block-- -Rewrite- -Per Chr- --Block-- --Seeks--
Machine        Size K/sec %CP K/sec %CP K/sec %CP K/sec %CP K/sec %CP  /sec %CP
ned              2G 10617  80 44998  29 18517  17 12745  90 39479  25 356.3   2
                    ------Sequential Create------ --------Random Create--------
                    -Create-- --Read--- -Delete-- -Create-- --Read--- -Delete--
              files  /sec %CP  /sec %CP  /sec %CP  /sec %CP  /sec %CP  /sec %CP
                 16  1723  48 +++++ +++  1369  33  1702  51 +++++ +++  1307  37
ned,2G,10617,80,44998,29,18517,17,12745,90,39479,25,356.3,2,16,1723,48,+++++,+++,1369,33,1702,51,+++++,+++,1307,37
bonnie -s 2048 -d /data -u vk:users  284.15s user 91.40s system 58% cpu 10:47.42 total
root@ned ~ # 

second run

root@ned /data # bonnie -s 2048 -d /data -u vk:users
[...]
Version  1.03       ------Sequential Output------ --Sequential Input- --Random-
                    -Per Chr- --Block-- -Rewrite- -Per Chr- --Block-- --Seeks--
Machine        Size K/sec %CP K/sec %CP K/sec %CP K/sec %CP K/sec %CP  /sec %CP
ned              2G 10787  82 45624  29 18442  17 12875  91 37526  22 315.6   1
                    ------Sequential Create------ --------Random Create--------
                    -Create-- --Read--- -Delete-- -Create-- --Read--- -Delete--
              files  /sec %CP  /sec %CP  /sec %CP  /sec %CP  /sec %CP  /sec %CP
                 16  1680  49 +++++ +++  1591  40  1648  49 +++++ +++   918  21
ned,2G,10787,82,45624,29,18442,17,12875,91,37526,22,315.6,1,16,1680,49,+++++,+++,1591,40,1648,49,+++++,+++,918,21
bonnie -s 2048 -d /data -u vk:users  283.35s user 89.81s system 57% cpu 10:52.64 total
root@ned /data #


copying the same data onto the RAID

vk@ned ~/data % mkdir /data/vk && cp -r * /data/vk/
cp -r * /data/vk/  4.58s user 209.05s system 17% cpu 20:26.52 total
vk@ned ~/data %

BENCHMARKING the RAID:

benchmarking with dd

40k:  7864320000 bytes transferred in 171.078215 seconds (45969149 bytes/sec)
      dd if=/dev/zero of=./Testdatei bs=40k count=192000  0.77s user 47.40s system 28% cpu 2:51.40 total
[...]

Results of the benchmark

Chunk size  Transfer speed
40k         45,969,149
62k         45,481,267
64k         45,916,594
66k         45,815,830
100k        45,815,283
192k        44,323,210

-> maximum at 40k
-> at 62k and 66k a bit slower than 64k (=chunk size of RAID)
-> slowest value at 192k

Seems to be as expected (except the 40k-maximum value)

Testing r/w the raw device and the XFS

root@ned ~ # time dd if=/dev/zero of=/dev/datavg1/datalv1 bs=64k count=192000
root@ned ~ # time dd of=/dev/null if=/dev/datavg1/datalv1 bs=64k count=192000
root@ned ~ # time dd if=/dev/zero of=/data/testfile bs=64k count=192000
root@ned ~ # time dd of=/dev/null if=/data/testfile bs=64k count=192000
[...]

Benchmark results

50,466,165 bytes/s  write raw LVM
40,040,596 bytes/s  read  raw LVM
35,569,267 bytes/s  write XFS
40,663,072 bytes/s  read  XFS



TEST: Setting one disk to faulty, reformatting it and reinsert into the RAID
====

(Starting to play a movie from the RAID in mplayer during the next actions below to ensure constand working data delivery)

mdadm -f /dev/md0 /dev/sda1
mdadm -r /dev/md0 /dev/sda1
cfdisk /dev/sda

correct configuration for sda1 for the RAID

sda1  Primary  Linux raid autodetect  250007.39

Repartitioning to one big partition sda1

Benchmarking with one disk

root@ned ~ # cat bench_sda1.sh
#!/bin/sh

time dd if=/dev/zero of=/dev/sda1 bs=64k count=192000 && \
time dd of=/dev/null if=/dev/sda1 bs=64k count=192000 && \
mkfs.xfs /dev/sda1 && \
mount /dev/sda1 /root/testmount && \
time dd if=/dev/zero of=/root/testmount/testfile bs=64k count=192000 && \
time dd of=/dev/null if=/root/testmount/testfile bs=64k count=192000

root@ned ~ #

XFS on sda1 with default values

root@ned ~ # mkfs.xfs /dev/sda1
meta-data=/dev/sda1              isize=256    agcount=16, agsize=3814809 blks
         =                       sectsz=512  
data     =                       bsize=4096   blocks=61036944, imaxpct=25
         =                       sunit=0      swidth=0 blks, unwritten=1
naming   =version 2              bsize=4096  
log      =internal log           bsize=4096   blocks=29803, version=1
         =                       sectsz=512   sunit=0 blks
realtime =none                   extsz=65536  blocks=0, rtextents=0
root@ned ~ #

Benchmark results

70,462,615 bytes/s   write raw sda1
69,375,920 bytes/s   read  raw sda1
67,492,801 bytes/s   write XFS@sda1
65,103,340 bytes/s   read  XFS@sda1

Script for partitioning one hdd for the RAID

root@ned ~ # cat prepare_empty_sdX_for_250GB_raid_disk.sh
#!/bin/sh

[ "x${1}" == "x" ] && exit

echo -e "n\np\n1\n\n+250G\nt\nfd\nw" | fdisk /dev/sd${1}

root@ned ~ # ./prepare_empty_sdX_for_250GB_raid_disk.sh a
[...]
root@ned ~ # 

Adding the new partition into the raid

root@ned ~ # mdadm -a /dev/md0 /dev/sda1                
mdadm: hot added /dev/sda1
root@ned ~ # 

Syncing starts automatically after reinserting the paprtition

root@ned ~ # date;cat /proc/mdstat                       
Sun Jan 29 14:06:31 CET 2006
Personalities : [linear] [raid0] [raid1] [raid5] [multipath] [raid6] [raid10] 
md0 : active raid5 sda1[4] sdd1[3] sdc1[2] sdb1[1]
      732443136 blocks level 5, 64k chunk, algorithm 2 [4/3] [_UUU]
      [>....................]  recovery =  0.0% (44032/244147712) finish=184.5min speed=22016K/sec
      
unused devices: <none>
root@ned ~ # 

(still playing the movie with no dropouts!)

Stopping the movie and mplayer in order to check, if the syncspeed increases from 22MB/s.

Resync speed increases if no movie is played

root@ned ~ # date;cat /proc/mdstat
Sun Jan 29 14:11:37 CET 2006
Personalities : [linear] [raid0] [raid1] [raid5] [multipath] [raid6] [raid10]
md0 : active raid5 sda1[4] sdd1[3] sdc1[2] sdb1[1]
      732443136 blocks level 5, 64k chunk, algorithm 2 [4/3] [_UUU]
      [>....................]  recovery =  2.8% (6859264/244147712) finish=131.5min speed=30057K/sec

unused devices: <none>
root@ned ~ #

During resync: approx. 35% CPU-time from task md0_raid5.

In between resyncing ...

root@ned ~ # date;cat /proc/mdstat
Sun Jan 29 15:33:44 CET 2006
Personalities : [linear] [raid0] [raid1] [raid5] [multipath] [raid6] [raid10] 
md0 : active raid5 sda1[4] sdd1[3] sdc1[2] sdb1[1]
      732443136 blocks level 5, 64k chunk, algorithm 2 [4/3] [_UUU]
      [============>........]  recovery = 61.8% (151127552/244147712) finish=50.5min speed=30691K/sec
      
unused devices: <none>
root@ned ~ #

OK, I believe, that the resync would be succesfull. I want to test the
4 hdds extra with dd in parallel in order to check, if the speed is
comparable with the single disk (faster) or the RAID array
(slower). RAID5 _should_ be faster than single disks - probably the
PCI-bus is a bottleneck.

Marking all disks als faulty and removing from RAID and starting a
script which is testing sd[abcd]1 with writing and reading as raw
partitions and standard XFS volumes:

read raw single 56,682,781
57,356,488
57,550,131
57,731,526
read raw parallel 16,915,141
18,808,178
18,786,515
16,823,961
read xfs single 69,307,944
69,937,614
71,109,160
72,243,881
read xfs parallel 33,440,424
33,424,518
33,713,129
33,427,713

write raw single 54,770,235
54,140,295
54,518,710
54,245,696
write raw parallel 15,563,174
15,534,786
15,503,197
15,535,730
write xfs single 57,396,807
61,527,632
71,536,327
72,867,579
write xfs parallel 24,662,808
26,275,125
25,314,475
24,993,174

-> Maybe the board is the bottleneck because parallel tests are way
more slow.

Try of an explanation:

A HW-RAID-Adapter is addressed as _one_ big disk sda' through the PCI
bus, where the HW-RAID-Adapter is responsible for allocating the hard
disk space sda through sdd:

HW-RAID

  ,---.                                                      
  |sda|---.                                                       
  `---´   |                                                
  ,---.   |                                                   
  |sdb|---+                          PCI bus                              
  `---´   | ,------------------.  ============                                             
  ,---.   +-|HW-RAID-Controller|---------------- sda'  -> Southbridge                     
  |sdc|---+ `------------------´  ============                                                   
  `---´   |                                                 
  ,---.   |                                                   
  |sdd|---´                                                        
  `---´                                                    


When using a SW-RAID, the disks are addressed seperately as four disks
from the (S)ATA controller to the CPU which is doing the RAID-stuff:

SW-RAID

  
  ,---.                                                      
  |sda|---.                                                       
  `---´   |                                                
  ,---.   |                          PCI bus
  |sdb|---+ ,-------------------.  ============                                             
  `---´   | |                   |---------------- sda
  ,---.   +-| (S)ATA-Controller |---------------- sdb  -> Southbridge                     
  |sdc|---+ |                   |---------------- sdc                        
  `---´   | |                   |---------------- sdd                 
  ,---.   | `-------------------´  ============                   
  |sdd|---´                                                        
  `---´                                                    


It is obvious, that the SW-RAID needs more information transferred
through the same PCI bus than the single "virtual" disk in a HW-RAID.

Michael Gebetsroither

es kann mit ein grund sein, aber imho kanns den drastischen
performance einbruch net erklären ;)

imho is es viel einfacher, dein pci bus schafft 133MB/s und wie wir
von parallelen bussen wissen schauts bei überlastung _EXTREM_ schlecht
aus...

dh. kann dein bus schon nichtmal 2 hd's richtig versorgen

außerdem...
die 133MB/s sind nur in eine richtung (nicht in beide richtungen
gleichzeitig)...

es werden daten aber in beide richtungen geschickt... damit hast des
problem schon

selbst wenn dein bus 266MB/s schaffen würde also pci2.1 würds net viel
bringen

burst transfers bei pci laufen mit 1024byte...  wennst des auf 300byte
oder so runterschraubst bleiben von den 133MB/s immer noch 90-100
übrig



Creating raid again and going life.
comment this entry
go to top of page

SW-RAID5 with Dawicontrol 154 SATA controller

solved at 20060124
ned: Linux grml 2.6 with SW-RAID5 and LVM mounted on /data, linked
from ~vk/data and ~vk is shared by samba

marge: OS X 10.4.2 with cifs-connection to the samba share.

Test-RAID with 3 hdds:

/etc/raidtab

raiddev /dev/md0
raid-level 5
nr-raid-disks 3
nr-spare-disks 0
persistent-superblock 1
device /dev/sda1
raid-disk 0
device /dev/sdb1
raid-disk 1
device /dev/sdc1
raid-disk 2

mkraid /dev/md0
cat /proc/mdstat


mdstat during and after first resync

root@grml /etc # cat /proc/mdstat
Personalities : [linear] [raid0] [raid1] [raid5] [multipath] [raid6] [raid10]
md0 : active raid5 sdc1[2] sdb1[1] sda1[0]
      488279296 blocks level 5, 4k chunk, algorithm 0 [3/3] [UUU]
      [=>...................]  resync =  8.0% (19548800/244139648) finish=143.5min speed=26074K/sec

unused devices: <none>
root@grml /etc #
[...]
root@grml ~doc/webmin # cat /proc/mdstat
Personalities : [linear] [raid0] [raid1] [raid5] [multipath] [raid6] [raid10]
md0 : active raid5 sdc1[2] sdb1[1] sda1[0]
      488279296 blocks level 5, 4k chunk, algorithm 0 [3/3] [UUU]

unused devices: <none>
root@grml ~doc/webmin #


mkfs.ext3 /dev/md0
mount /dev/md0 /mnt/raid


Testing the 300GB-raid:


raid is doing fine on /dev/md0

root@grml ~ # cat /proc/mdstat
Personalities : [linear] [raid0] [raid1] [raid5] [multipath] [raid6] [raid10]
md0 : active raid5 sdc1[2] sdb1[1] sda1[0]
      488279296 blocks level 5, 4k chunk, algorithm 0 [3/3] [UUU]

unused devices: <none>
root@grml ~ #

Starting monitoring with interval of 60s:
mdadm --monitor --mail=root@localhost --delay=600 /dev/md0

syslog: removing disk 3 of 3 by shutting down power supply of disk

[...]
Oct  8 13:53:58 ned kernel: ata3: command 0x25 timeout, stat 0xd0 host_stat 0x1
Oct  8 13:53:58 ned kernel: ata3: status=0xd0 { Busy }
Oct  8 13:53:58 ned kernel: SCSI error : <2 0 0 0> return code = 0x8000002
Oct  8 13:53:58 ned kernel: sdc: Current: sense key: Aborted Command
Oct  8 13:53:58 ned kernel: Additional sense: Scsi parity error
Oct  8 13:53:58 ned kernel: end_request: I/O error, dev sdc, sector 138886663
Oct  8 13:53:58 ned kernel: raid5: Disk failure on sdc1, disabling device. Operation continuing on 2 devices
Oct  8 13:53:58 ned kernel: ATA: abnormal status 0xD0 on port 0xE8B04287
Oct  8 13:53:58 ned kernel: ATA: abnormal status 0xD0 on port 0xE8B04287
Oct  8 13:53:58 ned kernel: ATA: abnormal status 0xD0 on port 0xE8B04287
Oct  8 13:54:28 ned kernel: ata3: command 0x25 timeout, stat 0xd0 host_stat 0x1
Oct  8 13:54:28 ned kernel: ata3: status=0xd0 { Busy }
Oct  8 13:54:28 ned kernel: SCSI error : <2 0 0 0> return code = 0x8000002
Oct  8 13:54:28 ned kernel: sdc: Current: sense key: Aborted Command
Oct  8 13:54:28 ned kernel: Additional sense: Scsi parity error
Oct  8 13:54:28 ned kernel: end_request: I/O error, dev sdc, sector 138886679
Oct  8 13:54:28 ned kernel: ATA: abnormal status 0xD0 on port 0xE8B04287
Oct  8 13:54:28 ned kernel: ATA: abnormal status 0xD0 on port 0xE8B04287
Oct  8 13:54:28 ned kernel: ATA: abnormal status 0xD0 on port 0xE8B04287
Oct  8 13:54:58 ned kernel: ata3: command 0x25 timeout, stat 0xd0 host_stat 0x1
Oct  8 13:54:58 ned kernel: ata3: status=0xd0 { Busy }
Oct  8 13:54:58 ned kernel: SCSI error : <2 0 0 0> return code = 0x8000002
Oct  8 13:54:58 ned kernel: sdc: Current: sense key: Aborted Command
Oct  8 13:54:58 ned kernel: Additional sense: Scsi parity error
Oct  8 13:54:58 ned kernel: end_request: I/O error, dev sdc, sector 138886687
Oct  8 13:54:58 ned kernel: ATA: abnormal status 0xD0 on port 0xE8B04287
Oct  8 13:54:58 ned kernel: ATA: abnormal status 0xD0 on port 0xE8B04287
Oct  8 13:54:58 ned kernel: ATA: abnormal status 0xD0 on port 0xE8B04287

Last lines after "ata3: command 0x25 timeout, stat 0xd0 host_stat 0x1"
are repeated every 30 seconds.

/proc/mdstat can not be read

root@ned ~ # cat /proc/mdstat
<Aborting by pressing Ctrl-C>
130 root@ned ~ #

The Samba-share on ned to marge breaks down and cannot be established
again.

Cannot list directory content of Raid/LVM-directory

root@ned ~ # cd /data 
root@ned /data # l

<nothing happens>

Mail from the monitoring daemon

From root@ned.homeunix.net  Sat Oct  8 14:04:28 2005       
From: mdadm monitoring <root@ned.homeunix.net>             
To: root@localhost                                         
Subject: Fail event on /dev/md0:ned                        
Date: Sat,  8 Oct 2005 14:04:28 +0200 (CEST)               
                                                           
This is an automatically generated mail message from mdadm 
running on ned                                             
                                                           
A Fail event had been detected on md device /dev/md0.      
                                                           
Faithfully yours, etc.

The mail is rather late, if you take a look at the timestamps and
remember the check-interval of one minute!

14h08: the /proc/mdstat can be read again

root@ned /data # cat /proc/mdstat
Personalities : [linear] [raid0] [raid1] [raid5] [multipath] [raid6] [raid10] 
md0 : active raid5 sdc1[3](F) sdb1[1] sda1[0]
      488279296 blocks level 5, 4k chunk, algorithm 0 [3/2] [UU_]
      
unused devices: <none>
root@ned /data #

the directories can be accessed again

root@ned ~ # l /data/data/freelancing 
total 24
drwxr-xr-x  15 vk vk 4096 2005-09-30 00:26 200402_Briefmarkenkatalog_HITI/
drwxr-xr-x   4 vk vk 4096 2005-10-02 02:58 200404_latex-Vortrag_IFEA/
drwxr-xr-x   4 vk vk 4096 2005-09-30 00:25 200406_LaTeX\@TUG/
drwx------   3 vk vk 4096 2005-10-02 03:03 20050511_GLT05-Vortrag/
drwxr-xr-x  19 vk vk 4096 2005-10-01 14:52 isi-homepage/
drwxr-xr-x  23 vk vk 4096 2005-10-06 09:56 rucker/
root@ned ~ #

syslog: RAID recovers again after approx. 11 minutes

[...]
Oct  8 14:02:58 ned kernel: ATA: abnormal status 0xD0 on port 0xE8B04287
Oct  8 14:02:58 ned kernel: ATA: abnormal status 0xD0 on port 0xE8B04287
Oct  8 14:03:28 ned kernel: ata3: command 0x25 timeout, stat 0xd0 host_stat 0x1
Oct  8 14:03:28 ned kernel: ata3: status=0xd0 { Busy }
Oct  8 14:03:28 ned kernel: SCSI error : <2 0 0 0> return code = 0x8000002
Oct  8 14:03:28 ned kernel: sdc: Current: sense key: Aborted Command
Oct  8 14:03:28 ned kernel: Additional sense: Scsi parity error
Oct  8 14:03:28 ned kernel: end_request: I/O error, dev sdc, sector 138886895
Oct  8 14:03:28 ned kernel: ATA: abnormal status 0xD0 on port 0xE8B04287
Oct  8 14:03:28 ned kernel: ATA: abnormal status 0xD0 on port 0xE8B04287
Oct  8 14:03:28 ned kernel: ATA: abnormal status 0xD0 on port 0xE8B04287
Oct  8 14:03:54 ned syslog-ng[3759]: STATS: dropped 226
Oct  8 14:03:58 ned kernel: ata3: command 0x25 timeout, stat 0xd0 host_stat 0x1
Oct  8 14:03:58 ned kernel: ata3: status=0xd0 { Busy }
Oct  8 14:03:58 ned kernel: SCSI error : <2 0 0 0> return code = 0x8000002
Oct  8 14:03:58 ned kernel: sdc: Current: sense key: Aborted Command
Oct  8 14:03:58 ned kernel: Additional sense: Scsi parity error
Oct  8 14:03:58 ned kernel: end_request: I/O error, dev sdc, sector 138886903
Oct  8 14:03:58 ned kernel: ATA: abnormal status 0xD0 on port 0xE8B04287
Oct  8 14:03:58 ned kernel: ATA: abnormal status 0xD0 on port 0xE8B04287
Oct  8 14:03:58 ned kernel: ATA: abnormal status 0xD0 on port 0xE8B04287
Oct  8 14:04:28 ned kernel: ata3: command 0x35 timeout, stat 0xd0 host_stat 0x1
Oct  8 14:04:28 ned kernel: ata3: status=0xd0 { Busy }
Oct  8 14:04:28 ned kernel: SCSI error : <2 0 0 0> return code = 0x8000002
Oct  8 14:04:28 ned kernel: sdc: Current: sense key: Aborted Command
Oct  8 14:04:28 ned kernel: Additional sense: Scsi parity error
Oct  8 14:04:28 ned kernel: end_request: I/O error, dev sdc, sector 488279359
Oct  8 14:04:28 ned kernel: RAID5 conf printout:
Oct  8 14:04:28 ned kernel: --- rd:3 wd:2 fd:1
Oct  8 14:04:28 ned kernel: disk 0, o:1, dev:sda1
Oct  8 14:04:28 ned kernel: disk 1, o:1, dev:sdb1
Oct  8 14:04:28 ned kernel: disk 2, o:0, dev:sdc1
Oct  8 14:04:28 ned kernel: RAID5 conf printout:
Oct  8 14:04:28 ned kernel: --- rd:3 wd:2 fd:1
Oct  8 14:04:28 ned kernel: disk 0, o:1, dev:sda1
Oct  8 14:04:28 ned kernel: disk 1, o:1, dev:sdb1

Reinserted the harddrive back to the SATA-bus and power up harddisk.

(unchanged) status with the inserted disk

root@ned ~ # cat /proc/mdstat                                            
Personalities : [linear] [raid0] [raid1] [raid5] [multipath] [raid6] [raid10]
md0 : active raid5 sdc1[3](F) sdb1[1] sda1[0]
      488279296 blocks level 5, 4k chunk, algorithm 0 [3/2] [UU_]

unused devices: <none>
root@ned ~ #

Disk is recognised by scsitools

root@ned ~ # scsiinfo -l
/dev/sda /dev/sdb /dev/sdc /dev/sdd 
root@ned ~ # 

Cannot add disk to RAID /dev/md0

root@ned ~ # mdadm /dev/md0 -a /dev/sdc1
mdadm: Cannot open /dev/sdc1: Device or resource busy
1 root@ned ~ #

no job is accessing /dev/sdc1

root@ned ~ # lsof |grep sdc1
1 root@ned ~ #

removing by invoking raidhotremove and reinserting helps

root@ned ~ # raidhotremove /dev/md0 /dev/sdc1
root@ned ~ # mdadm /dev/md0 -a /dev/sdc1     
mdadm: hot added /dev/sdc1
root@ned ~ #

syslog

[...]
Oct  8 14:32:13 ned kernel: md: unbind<sdc1>
Oct  8 14:32:13 ned kernel: md: export_rdev(sdc1)
Oct  8 14:32:28 ned kernel: md: bind<sdc1>
Oct  8 14:32:28 ned kernel: RAID5 conf printout:
Oct  8 14:32:28 ned kernel: --- rd:3 wd:2 fd:1
Oct  8 14:32:28 ned kernel: disk 0, o:1, dev:sda1
Oct  8 14:32:28 ned kernel: disk 1, o:1, dev:sdb1
Oct  8 14:32:28 ned kernel: disk 2, o:1, dev:sdc1
Oct  8 14:32:28 ned kernel: md: syncing RAID array md0
Oct  8 14:32:28 ned kernel: md: minimum _guaranteed_ reconstruction speed: 1000 KB/sec/disc.
Oct  8 14:32:28 ned kernel: md: using maximum available idle IO bandwith (but not more than 200000 KB/sec) for reconstruction.
Oct  8 14:32:28 ned kernel: md: using 128k window, over a total of 244139648 blocks.
[...]

raid is recovering (starting 14h32)

root@ned ~ # cat /proc/mdstat     
Personalities : [linear] [raid0] [raid1] [raid5] [multipath] [raid6] [raid10] 
md0 : active raid5 sdc1[3] sdb1[1] sda1[0]
      488279296 blocks level 5, 4k chunk, algorithm 0 [3/2] [UU_]
      [>....................]  recovery =  1.0% (2581248/244139648) finish=159.3min speed=25257K/sec
      
unused devices: <none>
root@ned ~ # 

Curious, how long this takes for the 300GB-raid with 16GB data.

System is pretty usable during resync

root@ned ~ # top -b|head
top - 14:43:07 up 19:44,  1 user,  load average: 1.87, 2.35, 1.63
Tasks:  99 total,   2 running,  97 sleeping,   0 stopped,   0 zombie
Cpu(s):  3.0% us,  3.7% sy,  1.1% ni, 87.9% id,  4.2% wa,  0.1% hi,  0.1% si
Mem:    643864k total,   626464k used,    17400k free,    19152k buffers
Swap:   265032k total,       84k used,   264948k free,   520228k cached

  PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND     
  864 root      15   0     0    0    0 S 35.3  0.0   3:25.54 md0_raid5   
 5557 root      15   0     0    0    0 R  3.7  0.0   0:07.02 md0_resync  
 6510 root      15   0  2196 1028  780 R  3.7  0.2   0:00.04 top         
root@ned ~ #

/proc/mdstat after a while

root@ned ~ # date;cat /proc/mdstat
Sat Oct  8 14:45:55 CEST 2005
Personalities : [linear] [raid0] [raid1] [raid5] [multipath] [raid6] [raid10] 
md0 : active raid5 sdc1[3] sdb1[1] sda1[0]
      488279296 blocks level 5, 4k chunk, algorithm 0 [3/2] [UU_]
      [=>...................]  recovery =  8.5% (20807424/244139648) finish=139.8min speed=26616K/sec
      
unused devices: <none>
root@ned ~ # 

The system is perfectly usable for me during resync even while
accessing my mp3-archive and viewing a good-resolution movie from the
share:

root@ned ~ # top -b|head -n 15
top - 14:48:26 up 19:49,  1 user,  load average: 1.23, 1.56, 1.49
Tasks:  99 total,   1 running,  98 sleeping,   0 stopped,   0 zombie
Cpu(s):  3.0% us,  3.8% sy,  1.1% ni, 87.8% id,  4.2% wa,  0.1% hi,  0.1% si
Mem:    643864k total,   636456k used,     7408k free,    20116k buffers
Swap:   265032k total,       84k used,   264948k free,   529232k cached

  PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND     
  864 root      16   0     0    0    0 S 31.4  0.0   5:00.89 md0_raid5   
21055 vk        15   0 10008 4064 3132 S  1.8  0.6   0:05.17 smbd        
 6619 root      15   0  2200 1036  780 R  1.8  0.2   0:00.03 top         
    1 root      16   0  1600  540  472 S  0.0  0.1   0:02.55 init        
    2 root      34  19     0    0    0 S  0.0  0.0   0:00.85 ksoftirqd/0 
    3 root      10  -5     0    0    0 S  0.0  0.0   0:00.10 events/0    
    4 root      11  -5     0    0    0 S  0.0  0.0   0:00.02 khelper     
    5 root      10  -5     0    0    0 S  0.0  0.0   0:00.00 kthread     
root@ned ~ # 

Later on ...

root@ned ~ # date;cat /proc/mdstat
Sat Oct  8 15:29:02 CEST 2005
Personalities : [linear] [raid0] [raid1] [raid5] [multipath] [raid6] [raid10] 
md0 : active raid5 sdc1[3] sdb1[1] sda1[0]
      488279296 blocks level 5, 4k chunk, algorithm 0 [3/2] [UU_]
      [=======>.............]  recovery = 38.4% (93797760/244139648) finish=80.9min speed=30956K/sec
      
unused devices: <none>
root@ned ~ # 

Additional email during resync

From root@ned.homeunix.net  Sat Oct  8 15:31:29 2005         
From: mdadm monitoring <root@ned.homeunix.net>               
To: root@localhost                                           
Subject: FailSpare event on /dev/md0:ned                     
Date: Sat,  8 Oct 2005 15:31:28 +0200 (CEST)                 
                                                             
This is an automatically generated mail message from mdadm   
running on ned                                               
                                                             
A FailSpare event had been detected on md device /dev/md0.   
                                                             
It could be related to component device /dev/sdc1.           
                                                             
Faithfully yours, etc.

Log-entries that worries me:

syslog

Oct  8 15:45:15 ned kernel: ata3: command 0x35 timeout, stat 0xd1 host_stat 0x1
Oct  8 15:45:15 ned kernel: ata3: status=0xd1 { Busy }
Oct  8 15:45:15 ned kernel: SCSI error : <2 0 0 0> return code = 0x8000002
Oct  8 15:45:15 ned kernel: sdc: Current: sense key: Aborted Command
Oct  8 15:45:15 ned kernel: Additional sense: Scsi parity error
Oct  8 15:45:15 ned kernel: end_request: I/O error, dev sdc, sector 193876255
Oct  8 15:45:15 ned kernel: ATA: abnormal status 0xD1 on port 0xE8B04287
Oct  8 15:45:15 ned kernel: ATA: abnormal status 0xD1 on port 0xE8B04287
Oct  8 15:45:15 ned kernel: ATA: abnormal status 0xD1 on port 0xE8B04287
Oct  8 15:45:45 ned kernel: ata3: command 0x35 timeout, stat 0xd1 host_stat 0x1
Oct  8 15:45:45 ned kernel: ata3: status=0xd1 { Busy }
Oct  8 15:45:45 ned kernel: SCSI error : <2 0 0 0> return code = 0x8000002
Oct  8 15:45:45 ned kernel: sdc: Current: sense key: Aborted Command
Oct  8 15:45:45 ned kernel: Additional sense: Scsi parity error
Oct  8 15:45:45 ned kernel: end_request: I/O error, dev sdc, sector 193876263
Oct  8 15:45:45 ned kernel: ATA: abnormal status 0xD1 on port 0xE8B04287
Oct  8 15:45:45 ned kernel: ATA: abnormal status 0xD1 on port 0xE8B04287
Oct  8 15:45:45 ned kernel: ATA: abnormal status 0xD1 on port 0xE8B04287
Oct  8 15:46:15 ned kernel: ata3: command 0x35 timeout, stat 0xd1 host_stat 0x1
Oct  8 15:46:15 ned kernel: ata3: status=0xd1 { Busy }
Oct  8 15:46:15 ned kernel: SCSI error : <2 0 0 0> return code = 0x8000002
Oct  8 15:46:15 ned kernel: sdc: Current: sense key: Aborted Command
Oct  8 15:46:15 ned kernel: Additional sense: Scsi parity error
Oct  8 15:46:15 ned kernel: end_request: I/O error, dev sdc, sector 193876271
Oct  8 15:46:15 ned kernel: ATA: abnormal status 0xD1 on port 0xE8B04287
Oct  8 15:46:15 ned kernel: ATA: abnormal status 0xD1 on port 0xE8B04287
Oct  8 15:46:15 ned kernel: ATA: abnormal status 0xD1 on port 0xE8B04287
Oct  8 15:46:45 ned kernel: ata3: command 0x35 timeout, stat 0xd1 host_stat 0x1
Oct  8 15:46:45 ned kernel: ata3: status=0xd1 { Busy }
Oct  8 15:46:45 ned kernel: SCSI error : <2 0 0 0> return code = 0x8000002
Oct  8 15:46:45 ned kernel: sdc: Current: sense key: Aborted Command
Oct  8 15:46:45 ned kernel: Additional sense: Scsi parity error
Oct  8 15:46:45 ned kernel: end_request: I/O error, dev sdc, sector 193876279
Oct  8 15:46:45 ned kernel: ATA: abnormal status 0xD1 on port 0xE8B04287
Oct  8 15:46:45 ned kernel: ATA: abnormal status 0xD1 on port 0xE8B04287
Oct  8 15:46:45 ned kernel: ATA: abnormal status 0xD1 on port 0xE8B04287
Oct  8 15:47:15 ned kernel: ata3: command 0x35 timeout, stat 0xd1 host_stat 0x1
Oct  8 15:47:15 ned kernel: ata3: status=0xd1 { Busy }
Oct  8 15:47:15 ned kernel: SCSI error : <2 0 0 0> return code = 0x8000002
Oct  8 15:47:15 ned kernel: sdc: Current: sense key: Aborted Command
Oct  8 15:47:15 ned kernel: Additional sense: Scsi parity error
Oct  8 15:47:15 ned kernel: end_request: I/O error, dev sdc, sector 193876287
Oct  8 15:47:15 ned kernel: ATA: abnormal status 0xD1 on port 0xE8B04287
Oct  8 15:47:15 ned kernel: ATA: abnormal status 0xD1 on port 0xE8B04287
Oct  8 15:47:15 ned kernel: ATA: abnormal status 0xD1 on port 0xE8B04287

Is this normal?

Resync is MUCH slower now

root@ned ~ # date;cat /proc/mdstat
Sat Oct  8 15:49:33 CEST 2005
Personalities : [linear] [raid0] [raid1] [raid5] [multipath] [raid6] [raid10] 
md0 : active raid5 sdc1[3](F) sdb1[1] sda1[0]
      488279296 blocks level 5, 4k chunk, algorithm 0 [3/2] [UU_]
      [=======>.............]  recovery = 39.7% (96938132/244139648) finish=2815.8min speed=871K/sec
      
unused devices: <none>
root@ned ~ # 

I start thinking about a reboot ...

root@ned ~ # date;cat /proc/mdstat
Sat Oct  8 16:28:45 CEST 2005
Personalities : [linear] [raid0] [raid1] [raid5] [multipath] [raid6] [raid10] 
md0 : active raid5 sdc1[3](F) sdb1[1] sda1[0]
      488279296 blocks level 5, 4k chunk, algorithm 0 [3/2] [UU_]
      [=======>.............]  recovery = 39.7% (96938576/244139648) finish=8514.2min speed=288K/sec
      
unused devices: <none>
root@ned ~ #

OK, lets just deactivate the raid and start it again:

I have to shut down LVM first

root@ned ~ # /etc/init.d/raid2 stop
Stopping RAID devices: /dev/md0: Device or resource busy
done.
root@ned ~ #

stopping LVM

root@ned ~ # /etc/init.d/lvm stop
Shutting down LVM Volume Groups...
<nothing happenes any more>

syslog: several such section are logged every 30s

Oct  8 16:37:15 ned kernel: ata3: command 0x35 timeout, stat 0xd1 host_stat 0x1
Oct  8 16:37:15 ned kernel: ata3: status=0xd1 { Busy }
Oct  8 16:37:15 ned kernel: SCSI error : <2 0 0 0> return code = 0x8000002
Oct  8 16:37:15 ned kernel: sdc: Current: sense key: Aborted Command
Oct  8 16:37:15 ned kernel: Additional sense: Scsi parity error
Oct  8 16:37:15 ned kernel: end_request: I/O error, dev sdc, sector 193877087
Oct  8 16:37:15 ned kernel: ATA: abnormal status 0xD1 on port 0xE8B04287
Oct  8 16:37:15 ned kernel: ATA: abnormal status 0xD1 on port 0xE8B04287
Oct  8 16:37:15 ned kernel: ATA: abnormal status 0xD1 on port 0xE8B04287

OK, rebooting the whole system...

System hangs on shutdown, had to hard reset the computer by hand.

After rebooting:

root@ned ~ # /etc/init.d/raid2 start
root@ned ~ # cat /proc/mdstat       
Personalities : [linear] [raid0] [raid1] [raid5] [multipath] [raid6] [raid10] 
md0 : active raid5 sdb1[1] sda1[0]
      488279296 blocks level 5, 4k chunk, algorithm 0 [3/2] [UU_]
      
unused devices: <none>
root@ned ~ # mdadm /dev/md0 -a /dev/sdc1
mdadm: hot added /dev/sdc1
root@ned ~ # date;cat /proc/mdstat      
Sat Oct  8 17:15:26 CEST 2005
Personalities : [linear] [raid0] [raid1] [raid5] [multipath] [raid6] [raid10] 
md0 : active raid5 sdc1[3] sdb1[1] sda1[0]
      488279296 blocks level 5, 4k chunk, algorithm 0 [3/2] [UU_]
      [>....................]  recovery =  1.1% (2737920/244139648) finish=137.6min speed=29219K/sec
      
unused devices: <none>
root@ned ~ # 

Second try ...

Newly integrating sdc1 - it does not work out

root@ned ~ # date;cat /proc/mdstat  
Sun Oct  9 01:17:24 CEST 2005
Personalities : [linear] [raid0] [raid1] [raid5] [multipath] [raid6] [raid10] 
md0 : active raid5 sdc1[3](F) sdb1[1] sda1[0]
      488279296 blocks level 5, 4k chunk, algorithm 0 [3/2] [UU_]
      
unused devices: <none>
root@ned ~ # mdadm /dev/md0 -a /dev/sdc1
mdadm: Cannot open /dev/sdc1: Device or resource busy
1 root@ned ~ # raidhotremove /dev/md0 /dev/sdc1                                                                                                              :(
root@ned ~ # date;cat /proc/mdstat           
Sun Oct  9 01:17:55 CEST 2005
Personalities : [linear] [raid0] [raid1] [raid5] [multipath] [raid6] [raid10] 
md0 : active raid5 sdb1[1] sda1[0]
      488279296 blocks level 5, 4k chunk, algorithm 0 [3/2] [UU_]
      
unused devices: <none>
root@ned ~ # mdadm /dev/md0 -a /dev/sdc1     
mdadm: hot added /dev/sdc1
root@ned ~ # date;cat /proc/mdstat
Sun Oct  9 01:19:08 CEST 2005
Personalities : [linear] [raid0] [raid1] [raid5] [multipath] [raid6] [raid10] 
md0 : active raid5 sdc1[3](F) sdb1[1] sda1[0]
      488279296 blocks level 5, 4k chunk, algorithm 0 [3/2] [UU_]
      
unused devices: <none>
root@ned ~ # 

Oct  9 01:17:52 ned kernel: md: unbind<sdc1>
Oct  9 01:17:52 ned kernel: md: export_rdev(sdc1)
Oct  9 01:18:03 ned kernel: md: bind<sdc1>
Oct  9 01:18:03 ned kernel: ATA: abnormal status 0xD1 on port 0xE8B04287
Oct  9 01:18:03 ned kernel: ATA: abnormal status 0xD1 on port 0xE8B04287
Oct  9 01:18:03 ned kernel: ATA: abnormal status 0xD1 on port 0xE8B04287
Oct  9 01:18:33 ned kernel: ata3: command 0x35 timeout, stat 0xd1 host_stat 0x1
Oct  9 01:18:33 ned kernel: ata3: status=0xd1 { Busy }
Oct  9 01:18:33 ned kernel: SCSI error : <2 0 0 0> return code = 0x8000002
Oct  9 01:18:33 ned kernel: sdc: Current: sense key: Aborted Command
Oct  9 01:18:33 ned kernel: Additional sense: Scsi parity error
Oct  9 01:18:33 ned kernel: end_request: I/O error, dev sdc, sector 488279359
Oct  9 01:18:33 ned kernel: raid5: Disk failure on sdc1, disabling device. Operation continuing on 2 devices

What to do, what to do...?

Jimmy said to me, that I unfortunately mixed up raidtools2 with mdadm.

Things that I used from raidtools2 (which I should not have done)
==================================

/etc/raidtab
/etc/init.d/raid2 start|stop

Things that I *should* use
==========================

mdadm --create --verbose /dev/md0 --level=raid5 --raid-devices=4 /dev/sda1 /dev/sdb1 /dev/sdc1 /dev/sdd1

mdadm --assemble --verbose /dev/md0 --level=raid5 --raid-devices=4 /dev/sda1 /dev/sdb1 /dev/sdc1 /dev/sdd1


cat /proc/mdstat

mdadm -r /dev/md0 /dev/sdb1
mdadm -a /dev/md0 /dev/sdb1
mdadm --detail /dev/md0



Next step: try to copy raid-files (not that important) to another hdd:

Cannot start LVM

root@ned ~ #  /etc/init.d/raid2 start
root@ned ~ # /etc/init.d/lvm start
Setting up LVM Volume Groups...
  Reading all physical volumes.  This may take a while...
  Incorrect metadata area header checksum
  /dev/sdc: read failed after 0 of 4096 at 0: Input/output error
  /dev/sdc: read failed after 0 of 4096 at 0: Input/output error
  /dev/sdc1: read failed after 0 of 2048 at 0: Input/output error
  Incorrect metadata area header checksum
  /dev/sdc: read failed after 0 of 4096 at 0: Input/output error
  /dev/sdc1: read failed after 0 of 2048 at 0: Input/output error
root@ned ~ #

It seems to me that "/etc/init.d/raid2 start" stopped working

root@ned ~ # /etc/init.d/raid2 start
root@ned ~ # date;cat /proc/mdstat  
Sun Oct  9 13:40:30 CEST 2005
Personalities : [linear] [raid0] [raid1] [raid5] [multipath] [raid6] [raid10] 
unused devices: <none>
root@ned ~ # scsiinfo -l          
/dev/sda /dev/sdb /dev/sdc /dev/sdd 
root@ned ~ # 

Trying mdadm instead:

Failing in using mdadm to start raid

root@ned ~ # mdadm --assemble --verbose /dev/md0 --level=raid5 --raid-devices=3 /dev/sda1 /dev/sdb1 /dev/sdc1
mdadm: option l not valid in assemble mode
2 root@ned ~ # mdadm --assemble --verbose /dev/md0
mdadm: /dev/md0 not identified in config file.
1 root@ned ~ # mdadm --assemble --verbose /dev/md0 --raid-devices=3 /dev/sda1 /dev/sdb1 /dev/sdc1
mdadm: option n not valid in assemble mode
2 root@ned ~ # 

Querying

root@ned ~ # mdadm -Q /dev/sda1 /dev/sdb1 /dev/sdc1
/dev/sda1: is not an md array
/dev/sda1: device 0 in 3 device undetected raid5 md0.  Use mdadm --examine for more detail.
/dev/sdb1: is not an md array
/dev/sdb1: device 1 in 3 device undetected raid5 md0.  Use mdadm --examine for more detail.
<it took at least 10 minutes here>
/dev/sdc1: is not an md array
/dev/sdc1: Cannot read md superblock.
root@ned ~ # 

sdc has definetely problems

root@ned ~ # mdadm -A /dev/md0 /dev/sda1 /dev/sdb1 /dev/sdc1
mdadm: no RAID superblock on /dev/sdc1
mdadm: /dev/sdc1 has no superblock - assembly aborted
1 root@ned ~ #   

root@ned ~ # mdadm -A /dev/md0 /dev/sda1 /dev/sdb1 /dev/sdc1 --force
mdadm: no RAID superblock on /dev/sdc1
mdadm: /dev/sdc1 has no superblock - assembly aborted
1 root@ned ~ #

I can start at least the two other disks

root@ned ~ # mdadm -A /dev/md0 /dev/sda1 /dev/sdb1
mdadm: /dev/md0 has been started with 2 drives (out of 3).
root@ned ~ #

root@ned ~ # /etc/init.d/lvm start                                                             
Setting up LVM Volume Groups...
  Reading all physical volumes.  This may take a while...
  /dev/sdc: read failed after 0 of 4096 at 0: Input/output error
  /dev/sdc: read failed after 0 of 4096 at 0: Input/output error
  /dev/sdc1: read failed after 0 of 2048 at 0: Input/output error
  Found volume group "datavg" using metadata type lvm2
  /dev/sdc: read failed after 0 of 4096 at 0: Input/output error
  /dev/sdc1: read failed after 0 of 2048 at 0: Input/output error
  1 logical volume(s) in volume group "datavg" now active
root@ned ~ #

I copied the data to another disk and then I wanted to add sdc to the
raid again:

Cannot shut down the LVM

root@ned ~ # umount /data
root@ned ~ # /etc/init.d/lvm stop
Shutting down LVM Volume Groups... 
  /dev/sdc: read failed after 0 of 4096 at 0: Input/output error
  /dev/sdc1: read failed after 0 of 2048 at 0: Input/output error
  0 logical volume(s) in volume group "datavg" now active
root@ned ~ #

root@ned ~ # mdadm -A /dev/md0 /dev/sdc1
mdadm: device /dev/md0 already active - cannot assemble it
1 root@ned ~ # 

OK, trying a reboot.

Purging raidtools to avoid parallel usage of raidtools and mdadm

root@ned ~ # dpkg -P raidtools2
(Reading database ... 133169 files and directories currently installed.)
Removing raidtools2 ...
Purging configuration files for raidtools2 ...
dpkg -P raidtools2  10.69s user 3.53s system 30% cpu 46.957 total
root@ned ~ #

sdc active but unusable?

root@ned ~ # mdadm -A /dev/md0 /dev/sdc1
mdadm: device /dev/md0 already active - cannot assemble it
1 root@ned ~ # mdadm -r /dev/md0 /dev/sdc1
mdadm: hot remove failed for /dev/sdc1: No such device or address
1 root@ned ~ #

root@ned ~ # date;cat /proc/mdstat
Sun Oct  9 16:26:08 CEST 2005
Personalities : [linear] [raid0] [raid1] [raid5] [multipath] [raid6] [raid10] 
md0 : active raid5 sdb1[1] sda1[0]
      488279296 blocks level 5, 4k chunk, algorithm 0 [3/2] [UU_]
      
unused devices: <none>
root@ned ~ # 

Jimmy told me to try booting from Live-CD and test there.

I rather want to delete the current raid and LVM and make a new one
from scratch with all 4 hdds and with the configuration I want for
productive usage (4x250GB in 1 RAID5 with 750GB).


Cannot remove disks

root@ned ~ # mdadm --create --verbose /dev/md0 --level=raid5 --raid-devices=4 /dev/sda1 /dev/sdb1 /dev/sdc1 /dev/sdd1
mdadm: layout defaults to left-symmetric
mdadm: chunk size defaults to 64K
mdadm: Cannot open /dev/sda1: Device or resource busy
mdadm: Cannot open /dev/sdb1: Device or resource busy
mdadm: /dev/sdc1 appears to be part of a raid array:
    level=5 devices=3 ctime=Wed Sep 28 22:05:58 2005
mdadm: create aborted
root@ned ~ # mdadm -r /dev/md0 /dev/sda1 /dev/sdb1 /dev/sdc1
mdadm: hot remove failed for /dev/sda1: Device or resource busy
1 root@ned ~ #

sda is being used but by whom?

root@ned ~ # lsof|grep sda
xfsdatad/   120    root  cwd       DIR        3,2     4096          2 /
xfsdatad/   120    root  rtd       DIR        3,2     4096          2 /
xfsdatad/   120    root  txt   unknown                                /proc/120/exe
multipath  2815    root    4r      BLK        8,0                4009 /dev/sda
root@ned ~ # fuser /dev/sda
/dev/sda:             2815
root@ned ~ #

lvm is not running any more but raid-disk seems to be in usage

mdadm: hot remove failed for /dev/sda1: Device or resource busy
1 root@ned ~ # /etc/init.d/lvm stop 
Shutting down LVM Volume Groups... 
  0 logical volume(s) in volume group "datavg" now active
root@ned ~ # mdadm -r /dev/md0 /dev/sda1
mdadm: hot remove failed for /dev/sda1: Device or resource busy
1 root@ned ~ #

set to faulty before removing

root@ned ~ # mdadm --manage -f /dev/md0 /dev/sda1
mdadm: set /dev/sda1 faulty in /dev/md0
root@ned ~ # mdadm --manage -f /dev/md0 /dev/sdb1 
mdadm: set /dev/sdb1 faulty in /dev/md0
root@ned ~ # mdadm -r /dev/md0 /dev/sda1         
mdadm: hot removed /dev/sda1
root@ned ~ # mdadm -r /dev/md0 /dev/sdb1
mdadm: hot removed /dev/sdb1
root@ned ~ # 

Creating does still not work

root@ned ~ # mdadm --create --verbose /dev/md0 --level=raid5 --raid-devices=4 /dev/sda1 /dev/sdb1 /dev/sdc1 /dev/sdd1
mdadm: layout defaults to left-symmetric
mdadm: chunk size defaults to 64K
mdadm: /dev/sda1 appears to be part of a raid array:
    level=5 devices=3 ctime=Wed Sep 28 22:05:58 2005
mdadm: /dev/sdb1 appears to be part of a raid array:
    level=5 devices=3 ctime=Wed Sep 28 22:05:58 2005
mdadm: /dev/sdc1 appears to be part of a raid array:
    level=5 devices=3 ctime=Wed Sep 28 22:05:58 2005
mdadm: size set to 244139648K
Continue creating array? (y/n) y
mdadm: SET_ARRAY_INFO failed for /dev/md0: Invalid argument
1 root@ned ~ # 

man mdadm

--run  insist on running the array even if some devices look like they might be in use.

Does not help either

root@ned ~ # mdadm --create --run --verbose /dev/md0 --level=raid5 --raid-devices=4 /dev/sda1 /dev/sdb1 /dev/sdc1 /dev/sdd1
mdadm: layout defaults to left-symmetric
mdadm: chunk size defaults to 64K
mdadm: /dev/sda1 appears to be part of a raid array:
    level=5 devices=3 ctime=Wed Sep 28 22:05:58 2005
mdadm: /dev/sdb1 appears to be part of a raid array:
    level=5 devices=3 ctime=Wed Sep 28 22:05:58 2005
mdadm: /dev/sdc1 appears to be part of a raid array:
    level=5 devices=3 ctime=Wed Sep 28 22:05:58 2005
mdadm: size set to 244139648K
mdadm: creation continuing despite oddities due to --run
mdadm: SET_ARRAY_INFO failed for /dev/md0: Invalid argument
1 root@ned ~ #  

There is still something left from old md0

root@ned ~ # mdadm -Ds
ARRAY /dev/md0 level=raid5 num-devices=3
root@ned ~ #

deleting did not help

root@ned ~ # rm /dev/md0
root@ned ~ # mdadm --create --run --verbose /dev/md0 --level=raid5 --raid-devices=4 /dev/sda1 /dev/sdb1 /dev/sdc1 /dev/sdd1
mdadm: error opening /dev/md0: No such file or directory
1 root@ned ~ #

OK, maybe just deleting was no good idea at all

root@ned ~ # mdadm --stop /dev/md0                                                                                         
mdadm: error opening /dev/md0: No such file or directory
root@ned ~ #

Just one more reboot ...

Works like charm, if you do it properly *g*

root@ned ~ # date;cat /proc/mdstat  
Sun Oct  9 21:20:57 CEST 2005
Personalities : [linear] [raid0] [raid1] [raid5] [multipath] [raid6] [raid10] 
md0 : active raid5 sdb1[1] sda1[0]
      488279296 blocks level 5, 4k chunk, algorithm 0 [3/2] [UU_]
      
unused devices: <none>
root@ned ~ # mdadm --stop /dev/md0
root@ned ~ # date;cat /proc/mdstat
Sun Oct  9 21:21:07 CEST 2005
Personalities : [linear] [raid0] [raid1] [raid5] [multipath] [raid6] [raid10] 
unused devices: <none>
root@ned ~ #

After stopping and recreating the raid, the raid tried to recover but
with 4 disks. It lasted almost forever.

Better to start from the scratch and repartitioning the disks.

"mdadm --stop /dev/md0" did not finish -> another reboot

Setting all disks to faulty, creating ext2fs on all four of them to
definitely remove any raid-informations on them, creating raid-volumes
again and starting all over again.

Creating raid from scratch

root@ned ~ # mdadm --create --verbose /dev/md0 --level=raid5 --raid-devices=4 /dev/sda1 /dev/sdb1 /dev/sdc1 /dev/sdd1
mdadm: layout defaults to left-symmetric
mdadm: chunk size defaults to 64K
mdadm: /dev/sda1 appears to contain an ext2fs file system
    size=244139772K  mtime=Thu Jan  1 01:00:00 1970
mdadm: /dev/sdb1 appears to contain an ext2fs file system
    size=244139772K  mtime=Thu Jan  1 01:00:00 1970
mdadm: /dev/sdc1 appears to contain an ext2fs file system
    size=244139772K  mtime=Thu Jan  1 01:00:00 1970
mdadm: /dev/sdd1 appears to contain an ext2fs file system
    size=244139772K  mtime=Thu Jan  1 01:00:00 1970
mdadm: size set to 244139648K
Continue creating array? y
mdadm: array /dev/md0 started.
root@ned ~ #

Takes forever, cancelling and asking Jimmy for help

root@ned ~ # date;cat /proc/mdstat
Mon Oct 10 00:06:12 CEST 2005
Personalities : [linear] [raid0] [raid1] [raid5] [multipath] [raid6] [raid10] 
md0 : active raid5 sdd1[4](F) sdc1[2] sdb1[1] sda1[0]
      732418944 blocks level 5, 64k chunk, algorithm 2 [4/3] [UUU_]
      [=>...................]  recovery =  6.4% (15814644/244139648) finish=12732.2min speed=298K/sec
      
unused devices: <none>
root@ned ~ #

deleting superblocks

root@ned ~ # mdadm --misc --zero-superblock /dev/md0 /dev/sda1 /dev/sdb1 /dev/sdc1 /dev/sdd1
mdadm: /dev/md0 is too small for md.
mdadm: cannot access superblock on /dev/sdd1.
6 root@ned ~ #

check superblocks

root@ned ~ # mdadm --misc --query /dev/sda1 /dev/sdb1 /dev/sdc1 /dev/sdd1
/dev/sda1: is not an md array
/dev/sda1: No md super block found, not an md component.
/dev/sdb1: is not an md array
/dev/sdb1: No md super block found, not an md component.
/dev/sdc1: is not an md array
/dev/sdc1: No md super block found, not an md component.
<here, the tool waited/worked for a long time>
/dev/sdd1: is not an md array
/dev/sdd1: Cannot read md superblock.
root@ned ~ #

Creating raid (again)

root@ned ~ # mdadm --create --verbose /dev/md0 --level=raid5 --raid-devices=4 /dev/sda1 /dev/sdb1 /dev/sdc1 /dev/sdd1
mdadm: layout defaults to left-symmetric
mdadm: chunk size defaults to 64K
mdadm: /dev/sda1 appears to contain an ext2fs file system
    size=244139772K  mtime=Thu Jan  1 01:00:00 1970
mdadm: /dev/sdb1 appears to contain an ext2fs file system
    size=244139772K  mtime=Thu Jan  1 01:00:00 1970
mdadm: /dev/sdc1 appears to contain an ext2fs file system
    size=244139772K  mtime=Thu Jan  1 01:00:00 1970
<here, the tool waited/worked for a long time>
mdadm: size set to 244139648K
Continue creating array? y
mdadm: array /dev/md0 started.
root@ned ~ #

Why is disk sdd1 set to fail?

root@ned ~ # date;cat /proc/mdstat
Mon Oct 10 11:00:44 CEST 2005
Personalities : [linear] [raid0] [raid1] [raid5] [multipath] [raid6] [raid10]
md0 : active raid5 sdd1[4](F) sdc1[2] sdb1[1] sda1[0]
      732418944 blocks level 5, 64k chunk, algorithm 2 [4/3] [UUU_]

unused devices: <none>
root@ned ~ #

cfdisk /dev/sdd

FATAL ERROR: Cannot read disk drive

There seems to be a problem with the 4th disk.

I shut down the computer, checked all canbles (they were OK) and
booted again.

"cfdisk /dev/sdd" works now. Probably there was a loose cable?

sdd1 cannot be added to the raid

root@ned ~ # date;cat /proc/mdstat 
Mon Oct 10 22:41:11 CEST 2005
Personalities : [linear] [raid0] [raid1] [raid5] [multipath] [raid6] [raid10] 
md0 : active raid5 sdc1[2] sdb1[1] sda1[0]
      732418944 blocks level 5, 64k chunk, algorithm 2 [4/3] [UUU_]
      
unused devices: <none>
root@ned ~ # mdadm -A /dev/md0 /dev/sdd1
mdadm: device /dev/md0 already active - cannot assemble it
1 root@ned ~ # mdadm --stop /dev/md0    
root@ned ~ # mdadm -A /dev/md0 /dev/sdd1
mdadm: /dev/md0 assembled from 0 drives and 1 spare - not enough to start the array.
1 root@ned ~ #

Maybe all disks have to be added at once?

root@ned ~ # mdadm -A /dev/md0 /dev/sda1 /dev/sdb1 /dev/sdc1 /dev/sdd1
mdadm: superblock on /dev/sdd1 doesn't match others - assembly aborted
1 root@ned ~ # mdadm --misc --zero-superblock /dev/md0 /dev/sda1 /dev/sdb1 /dev/sdc1 /dev/sdd1
mdadm: /dev/md0 is too small for md.
2 root@ned ~ #

20051101: next try (after a couple of weeks in between)

Checking disk temperatures in idle (before I start)

root@ned ~ # date; hddtemp /dev/sda; hddtemp /dev/sdb; hddtemp /dev/sdc; hddtemp /dev/sdd
Tue Nov  1 21:34:33 CET 2005
/dev/sda: SAMSUNG SP2504C: 36°C
/dev/sdb: SAMSUNG SP2504C: 36°C
/dev/sdc: SAMSUNG SP2504C: 36°C
/dev/sdd: SAMSUNG SP2504C: 36°C
root@ned ~ #

Note: I installed a Zalman Fan Mate 2 (Fan speed controller) which I
am using at the lowest voltage (about 5V).

Make sure, that all hdds have one partition with 250000MB with type
"Linux raid autodetect" (sda did not have, since it was used in
another computer in between).

Creating the RAID (once more, again *g*)

root@ned ~ # mdadm --create --verbose /dev/md0 --level=raid5 --raid-devices=4 /dev/sda1 /dev/sdb1 /dev/sdc1 /dev/sdd1
mdadm: layout defaults to left-symmetric
mdadm: chunk size defaults to 64K
mdadm: /dev/sdb1 appears to contain an ext2fs file system
    size=244139772K  mtime=Thu Jan  1 01:00:00 1970
mdadm: /dev/sdc1 appears to contain an ext2fs file system
    size=244139772K  mtime=Thu Jan  1 01:00:00 1970
mdadm: /dev/sdd1 appears to contain an ext2fs file system
    size=244139772K  mtime=Thu Jan  1 01:00:00 1970
mdadm: size set to 244139648K
Continue creating array? y
mdadm: array /dev/md0 started.
root@ned ~ # 

Creating the LVM

root@ned ~ # pvcreate /dev/md0
  Physical volume "/dev/md0" successfully created
root@ned ~ # vgcreate datavg /dev/md0
  Volume group "datavg" successfully created
root@ned ~ # lvcreate -L750G -ndatalv datavg
  Insufficient free extents (178813) in volume group datavg: 192000 required
root@ned ~ #

OK, seems to me that the RAID has not 750G in terms of those GB that
lvcreate means.

Lazy try and error method to get the max out of the RAID

root@ned ~ # lvcreate -L735G -ndatalv datavg
  Insufficient free extents (178813) in volume group datavg: 188160 required
5 root@ned ~ # lvcreate -L730G -ndatalv datavg                               
  Insufficient free extents (178813) in volume group datavg: 186880 required
5 root@ned ~ # lvcreate -L725G -ndatalv datavg                               
  Insufficient free extents (178813) in volume group datavg: 185600 required
5 root@ned ~ # lvcreate -L715G -ndatalv datavg                               
  Insufficient free extents (178813) in volume group datavg: 183040 required
5 root@ned ~ # lvcreate -L710G -ndatalv datavg                               
  Insufficient free extents (178813) in volume group datavg: 181760 required
5 root@ned ~ # lvcreate -L700G -ndatalv datavg                               
  Insufficient free extents (178813) in volume group datavg: 179200 required
5 root@ned ~ # lvcreate -L695G -ndatalv datavg                               
  Logical volume "datalv" created
root@ned ~ # 

695GB? Is this a correct value instead of the 750GB I had to pay?

root@ned ~ # mdadm --detail /dev/md0
/dev/md0:
        Version : 00.90.02
  Creation Time : Tue Nov  1 21:44:51 2005
     Raid Level : raid5
     Array Size : 732418944 (698.49 GiB 750.00 GB)
    Device Size : 244139648 (232.83 GiB 250.00 GB)
   Raid Devices : 4
  Total Devices : 4
Preferred Minor : 0
    Persistence : Superblock is persistent
    Update Time : Tue Nov  1 22:06:42 2005
          State : clean, degraded, recovering
 Active Devices : 3
Working Devices : 3
 Failed Devices : 1
  Spare Devices : 0
         Layout : left-symmetric
     Chunk Size : 64K
 Rebuild Status : 11% complete
           UUID : 3c232082:2c8e4a51:5c283b06:49662b29
         Events : 0.12
    Number   Major   Minor   RaidDevice State
       0       8        1        0      active sync   /dev/sda1
       1       8       17        1      active sync   /dev/sdb1
       2       8       33        2      active sync   /dev/sdc1
       3       0        0        -      removed
       4       8       49        3      faulty   /dev/sdd1
root@ned ~ #

... seems to me that 698.49 is the correct size for my RAID5.

root@ned ~ # date;cat /proc/mdstat                                                       
Tue Nov  1 21:55:50 CET 2005
Personalities : [linear] [raid0] [raid1] [raid5] [multipath] [raid6] [raid10] 
md0 : active raid5 sdd1[4] sdc1[2] sdb1[1] sda1[0]
      732418944 blocks level 5, 64k chunk, algorithm 2 [4/3] [UUU_]
      [=>...................]  recovery =  6.0% (14841216/244139648) finish=163.7min speed=23335K/sec
      
unused devices: <none>
root@ned ~ #

... still a faulty fourth disk? What the hell ...

checking temperature while recovering

root@ned ~ # date; hddtemp /dev/sda; hddtemp /dev/sdb; hddtemp /dev/sdc; hddtemp /dev/sdd
Tue Nov  1 22:00:37 CET 2005
/dev/sda: SAMSUNG SP2504C: 38°C
/dev/sdb: SAMSUNG SP2504C: 38°C
/dev/sdc: SAMSUNG SP2504C: 39°C
/dev/sdd: SAMSUNG SP2504C: 39°C
root@ned ~ #

Recovering is crawling again: 811K/sec

root@ned ~ # date;cat /proc/mdstat
Tue Nov  1 22:20:28 CET 2005
Personalities : [linear] [raid0] [raid1] [raid5] [multipath] [raid6] [raid10]
md0 : active raid5 sdd1[4](F) sdc1[2] sdb1[1] sda1[0]
      732418944 blocks level 5, 64k chunk, algorithm 2 [4/3] [UUU_]
      [==>..................]  recovery = 11.8% (28898796/244139648) finish=4420.5min speed=811K/sec

unused devices: <none>
root@ned ~ #

Aaaargh!

all hddtemp-jobs on sdd keep hanging

root@ned ~ # any hddtemp
root      6486  0.0  0.0   3652   464 ?        D    22:10   0:00 /usr/sbin/hddtemp /dev/sdd -n
root      6694  0.0  0.0   3652   460 ?        D    22:20   0:00 /usr/sbin/hddtemp /dev/sdd -n
root      6700  0.0  0.0   3648   456 pts/6    D+   22:20   0:00 hddtemp /dev/sdd
root      6949  0.0  0.0   3652   460 ?        D    22:30   0:00 /usr/sbin/hddtemp /dev/sdd -n
root      7151  0.0  0.0   3652   464 ?        D    22:40   0:00 /usr/sbin/hddtemp /dev/sdd -n
root      7348  0.0  0.0   3652   460 ?        D    22:50   0:00 /usr/sbin/hddtemp /dev/sdd -n
root      7563  0.0  0.0   3648   460 ?        D    23:00   0:00 /usr/sbin/hddtemp /dev/sdd -n
root      7768  0.0  0.0   3648   456 ?        D    23:10   0:00 /usr/sbin/hddtemp /dev/sdd -n
root      7983  0.0  0.0   3652   460 ?        D    23:20   0:00 /usr/sbin/hddtemp /dev/sdd -n
root      8191  0.0  0.0   3648   460 ?        D    23:30   0:00 /usr/sbin/hddtemp /dev/sdd -n
root      8197  0.0  0.0   3652   460 pts/8    D+   23:30   0:00 hddtemp /dev/sdd
root      8520  0.0  0.0   3652   464 ?        D    23:40   0:00 /usr/sbin/hddtemp /dev/sdd -n
root@ned ~ # 

kill -9 does not seem to kill them at all :-(

Is disk sdd gone for good?

root@ned ~ # smartctl -a /dev/sdd
smartctl version 5.34 [i686-pc-linux-gnu] Copyright (C) 2002-5 Bruce Allen
Home page is http://smartmontools.sourceforge.net/



... and still waiting.

Trying to stop md0

root@ned ~ # mdadm -f /dev/md0 /dev/sda1 /dev/sdb1 /dev/sdc1 /dev/sdd1
mdadm: set /dev/sda1 faulty in /dev/md0
mdadm: set /dev/sdb1 faulty in /dev/md0
mdadm: set /dev/sdc1 faulty in /dev/md0
mdadm: set /dev/sdd1 faulty in /dev/md0
root@ned ~ # mdadm --stop /dev/md0
mdadm: fail to stop array /dev/md0: Device or resource busy
1 root@ned ~ # 

Rebooting.

smartctl of sdd

root@ned ~ # smartctl -a /dev/sdd
smartctl version 5.34 [i686-pc-linux-gnu] Copyright (C) 2002-5 Bruce Allen
Home page is http://smartmontools.sourceforge.net/

Device: ATA      SAMSUNG SP2504C  Version: VT10

In Linux, SATA disks accessed via libata are not currently supported
by smartmontools. By the time you read this, support may have been added
in recent kernels. Try an additional '-d ata' argument.
root@ned ~ # smartctl -a /dev/sdd -d ata
smartctl version 5.34 [i686-pc-linux-gnu] Copyright (C) 2002-5 Bruce Allen
Home page is http://smartmontools.sourceforge.net/

=== START OF INFORMATION SECTION ===
Device Model:     SAMSUNG SP2504C
Serial Number:    S09QJ10Y726921
Firmware Version: VT100-33
User Capacity:    250,059,350,016 bytes
Device is:        In smartctl database [for details use: -P show]
ATA Version is:   7
ATA Standard is:  ATA/ATAPI-7 T13 1532D revision 4a
Local Time is:    Wed Nov  2 00:17:37 2005 CET
SMART support is: Available - device has SMART capability.
SMART support is: Enabled

=== START OF READ SMART DATA SECTION ===
SMART overall-health self-assessment test result: PASSED

General SMART Values:
Offline data collection status:  (0x82) Offline data collection activity
                                        was completed without error.
                                        Auto Offline Data Collection: Enabled.
Self-test execution status:      (   0) The previous self-test routine completed
                                        without error or no self-test has ever
                                        been run.
Total time to complete Offline
data collection:                 (4866) seconds.
Offline data collection
capabilities:                    (0x5b) SMART execute Offline immediate.
                                        Auto Offline data collection on/off support.
                                        Suspend Offline collection upon new
                                        command.
                                        Offline surface scan supported.
                                        Self-test supported.
                                        No Conveyance Self-test supported.
                                        Selective Self-test supported.
SMART capabilities:            (0x0003) Saves SMART data before entering
                                        power-saving mode.
                                        Supports SMART auto save timer.
Error logging capability:        (0x01) Error logging supported.
                                        General Purpose Logging supported.
Short self-test routine
recommended polling time:        (   1) minutes.
Extended self-test routine
recommended polling time:        (  81) minutes.

SMART Attributes Data Structure revision number: 16
Vendor Specific SMART Attributes with Thresholds:
ID# ATTRIBUTE_NAME          FLAG     VALUE WORST THRESH TYPE      UPDATED  WHEN_FAILED RAW_VALUE
  1 Raw_Read_Error_Rate     0x000f   100   100   051    Pre-fail  Always       -       0
  3 Spin_Up_Time            0x0007   100   100   025    Pre-fail  Always       -       3392
  4 Start_Stop_Count        0x0032   100   100   000    Old_age   Always       -       57
  5 Reallocated_Sector_Ct   0x0033   253   253   010    Pre-fail  Always       -       0
  7 Seek_Error_Rate         0x000f   253   253   051    Pre-fail  Always       -       0
  8 Seek_Time_Performance   0x0025   253   253   015    Pre-fail  Offline      -       0
  9 Power_On_Half_Minutes   0x0032   100   100   000    Old_age   Always       -       4h+29m
 10 Spin_Retry_Count        0x0033   253   253   051    Pre-fail  Always       -       0
 11 Calibration_Retry_Count 0x0012   253   002   000    Old_age   Always       -       0
 12 Power_Cycle_Count       0x0032   100   100   000    Old_age   Always       -       57
190 Unknown_Attribute       0x0022   127   121   000    Old_age   Always       -       37
194 Temperature_Celsius     0x0022   127   121   000    Old_age   Always       -       37
195 Hardware_ECC_Recovered  0x001a   100   100   000    Old_age   Always       -       4284358
196 Reallocated_Event_Count 0x0032   253   253   000    Old_age   Always       -       0
197 Current_Pending_Sector  0x0012   253   253   000    Old_age   Always       -       0
198 Offline_Uncorrectable   0x0030   253   253   000    Old_age   Offline      -       0
199 UDMA_CRC_Error_Count    0x003e   200   200   000    Old_age   Always       -       0
200 Multi_Zone_Error_Rate   0x000a   253   100   000    Old_age   Always       -       0
201 Soft_Read_Error_Rate    0x000a   253   253   000    Old_age   Always       -       0
202 TA_Increase_Count       0x0032   253   253   000    Old_age   Always       -       0

SMART Error Log Version: 1
No Errors Logged

SMART Self-test log structure revision number 1
No self-tests have been logged.  [To run self-tests, use: smartctl -t]


SMART Selective Self-Test Log Data Structure Revision Number (0) should be 1
SMART Selective self-test log data structure revision number 0
Warning: ATA Specification requires selective self-test log data structure revision number = 1
 SPAN  MIN_LBA  MAX_LBA  CURRENT_TEST_STATUS
    1        0        0  Not_testing
    2        0        0  Not_testing
    3        0        0  Not_testing
    4        0        0  Not_testing
    5        0        0  Not_testing
Selective self-test flags (0x0):
  After scanning selected spans, do NOT read-scan remainder of disk.
If Selective self-test is pending on power-up, resume after 0 minute delay.

root@ned ~ # 

doing a long test

root@ned ~ # smartctl /dev/sdd -d ata -t long
smartctl version 5.34 [i686-pc-linux-gnu] Copyright (C) 2002-5 Bruce Allen
Home page is http://smartmontools.sourceforge.net/

=== START OF OFFLINE IMMEDIATE AND SELF-TEST SECTION ===
Sending command: "Execute SMART Extended self-test routine immediately in off-line mode".
Drive command "Execute SMART Extended self-test routine immediately in off-line mode" successful.
Testing has begun.
Please wait 81 minutes for test to complete.
Test will complete after Wed Nov  2 01:43:39 2005

Use smartctl -X to abort test.
root@ned ~ # 

(will take long, going to sleep meanwhile *g*)

Result of the self test

root@ned ~ # smartctl -a /dev/sdd -d ata
smartctl version 5.34 [i686-pc-linux-gnu] Copyright (C) 2002-5 Bruce Allen
Home page is http://smartmontools.sourceforge.net/

=== START OF INFORMATION SECTION ===
Device Model:     SAMSUNG SP2504C
Serial Number:    S09QJ10Y726921
Firmware Version: VT100-33
User Capacity:    250,059,350,016 bytes
Device is:        In smartctl database [for details use: -P show]
ATA Version is:   7
ATA Standard is:  ATA/ATAPI-7 T13 1532D revision 4a
Local Time is:    Wed Nov  2 09:51:38 2005 CET
SMART support is: Available - device has SMART capability.
SMART support is: Enabled

=== START OF READ SMART DATA SECTION ===
SMART overall-health self-assessment test result: PASSED

General SMART Values:
Offline data collection status:  (0x82) Offline data collection activity
                                        was completed without error.
                                        Auto Offline Data Collection: Enabled.
Self-test execution status:      (   0) The previous self-test routine completed
                                        without error or no self-test has ever
                                        been run.
Total time to complete Offline
data collection:                 (4866) seconds.
Offline data collection
capabilities:                    (0x5b) SMART execute Offline immediate.
                                        Auto Offline data collection on/off support.
                                        Suspend Offline collection upon new
                                        command.
                                        Offline surface scan supported.
                                        Self-test supported.
                                        No Conveyance Self-test supported.
                                        Selective Self-test supported.
SMART capabilities:            (0x0003) Saves SMART data before entering
                                        power-saving mode.
                                        Supports SMART auto save timer.
Error logging capability:        (0x01) Error logging supported.
                                        General Purpose Logging supported.
Short self-test routine
recommended polling time:        (   1) minutes.
Extended self-test routine
recommended polling time:        (  81) minutes.

SMART Attributes Data Structure revision number: 16
Vendor Specific SMART Attributes with Thresholds:
ID# ATTRIBUTE_NAME          FLAG     VALUE WORST THRESH TYPE      UPDATED  WHEN_FAILED RAW_VALUE
  1 Raw_Read_Error_Rate     0x000f   100   100   051    Pre-fail  Always       -       0
  3 Spin_Up_Time            0x0007   100   100   025    Pre-fail  Always       -       3392
  4 Start_Stop_Count        0x0032   100   100   000    Old_age   Always       -       57
  5 Reallocated_Sector_Ct   0x0033   253   253   010    Pre-fail  Always       -       0
  7 Seek_Error_Rate         0x000f   253   253   051    Pre-fail  Always       -       0
  8 Seek_Time_Performance   0x0025   253   253   015    Pre-fail  Offline      -       0
  9 Power_On_Half_Minutes   0x0032   100   100   000    Old_age   Always       -       4h+34m
 10 Spin_Retry_Count        0x0033   253   253   051    Pre-fail  Always       -       0
 11 Calibration_Retry_Count 0x0012   253   002   000    Old_age   Always       -       0
 12 Power_Cycle_Count       0x0032   100   100   000    Old_age   Always       -       57
190 Unknown_Attribute       0x0022   130   121   000    Old_age   Always       -       36
194 Temperature_Celsius     0x0022   130   121   000    Old_age   Always       -       36
195 Hardware_ECC_Recovered  0x001a   100   100   000    Old_age   Always       -       159338524
196 Reallocated_Event_Count 0x0032   253   253   000    Old_age   Always       -       0
197 Current_Pending_Sector  0x0012   253   253   000    Old_age   Always       -       0
198 Offline_Uncorrectable   0x0030   253   253   000    Old_age   Offline      -       0
199 UDMA_CRC_Error_Count    0x003e   200   200   000    Old_age   Always       -       0
200 Multi_Zone_Error_Rate   0x000a   253   100   000    Old_age   Always       -       0
201 Soft_Read_Error_Rate    0x000a   100   100   000    Old_age   Always       -       0
202 TA_Increase_Count       0x0032   253   253   000    Old_age   Always       -       0

SMART Error Log Version: 1
No Errors Logged

SMART Self-test log structure revision number 1
Num  Test_Description    Status                  Remaining  LifeTime(hours)  LBA_of_first_error
# 1  Extended offline    Completed without error       00%       538         -

SMART Selective Self-Test Log Data Structure Revision Number (0) should be 1
SMART Selective self-test log data structure revision number 0
Warning: ATA Specification requires selective self-test log data structure revision number = 1
 SPAN  MIN_LBA  MAX_LBA  CURRENT_TEST_STATUS
    1        0        0  Not_testing
    2        0        0  Not_testing
    3        0        0  Not_testing
    4        0        0  Not_testing
    5        0        0  Not_testing
Selective self-test flags (0x0):
  After scanning selected spans, do NOT read-scan remainder of disk.
If Selective self-test is pending on power-up, resume after 0 minute delay.

root@ned ~ #

"No Errors Logged", "Completed without error": seems to be OK.

Checking sdd on its own:

Repartitioning to sdd1 (primary partition, type linux native)

Creating ext3-filesystem: mkfs.ext3 /dev/sdd1

root@ned /mnt # mount ./sdd1
root@ned /mnt # chmod a+w sdd1

bonnie on the sdd1

vk@ned /mnt/sdd1 % bonnie -s 2048 -d /mnt/sdd1
Writing with putc()...done
Writing intelligently...done
Rewriting...done
Reading with getc()...done
Reading intelligently...done
start 'em...done...done...done...
Create files in sequential order...done.
Stat files in sequential order...done.
Delete files in sequential order...done.
Create files in random order...done.
Stat files in random order...done.
Delete files in random order...done.
Version  1.03       ------Sequential Output------ --Sequential Input- --Random-
                    -Per Chr- --Block-- -Rewrite- -Per Chr- --Block-- --Seeks--
Machine        Size K/sec %CP K/sec %CP K/sec %CP K/sec %CP K/sec %CP  /sec %CP
ned              2G  9022  94 49140  63 23314  25 10936  95 65072  45 160.5   1
                    ------Sequential Create------ --------Random Create--------
                    -Create-- --Read--- -Delete-- -Create-- --Read--- -Delete--
              files  /sec %CP  /sec %CP  /sec %CP  /sec %CP  /sec %CP  /sec %CP
                 16   322  98 +++++ +++ 32576 100   332  94 +++++ +++  1814  98
ned,2G,9022,94,49140,63,23314,25,10936,95,65072,45,160.5,1,16,322,98,+++++,+++,32576,100,332,94,+++++,+++,1814,98
bonnie -s 2048 -d /mnt/sdd1  369.65s user 206.46s system 75% cpu 12:40.73 total
vk@ned /mnt/sdd1 %

No error, reasonable figures.

What the ... is going on here?

Repartitioning sdd to 250GB of raid device.

Doing the RAID once more

root@ned ~ # mdadm --create --verbose /dev/md0 --level=raid5 --raid-devices=4 /dev/sda1 /dev/sdb1 /dev/sdc1 /dev/sdd1
mdadm: layout defaults to left-symmetric
mdadm: chunk size defaults to 64K
mdadm: /dev/sda1 appears to be part of a raid array:
    level=5 devices=4 ctime=Tue Nov  1 21:44:51 2005
mdadm: /dev/sdb1 appears to contain an ext2fs file system
    size=244139772K  mtime=Thu Jan  1 01:00:00 1970
mdadm: /dev/sdb1 appears to be part of a raid array:
    level=5 devices=4 ctime=Tue Nov  1 21:44:51 2005
mdadm: /dev/sdc1 appears to contain an ext2fs file system
    size=244139772K  mtime=Thu Jan  1 01:00:00 1970
mdadm: /dev/sdc1 appears to be part of a raid array:
    level=5 devices=4 ctime=Tue Nov  1 21:44:51 2005
mdadm: /dev/sdd1 appears to contain an ext2fs file system
    size=244196000K  mtime=Wed Nov  2 12:15:45 2005
mdadm: /dev/sdd1 appears to be part of a raid array:
    level=5 devices=4 ctime=Tue Nov  1 21:44:51 2005
mdadm: size set to 244139648K
Continue creating array? y
mdadm: array /dev/md0 started.
root@ned ~ # pvcreate /dev/md0
  Can't initialize physical volume "/dev/md0" of volume group "datavg" without -ff
5 root@ned ~ # pvcreate /dev/md0 -ff                                                                                                                       :(
Really INITIALIZE physical volume "/dev/md0" of volume group "datavg" [y/n]? y
  WARNING: Forcing physical volume creation on /dev/md0 of volume group "datavg"
  Physical volume "/dev/md0" successfully created
root@ned ~ # vgcreate datavg /dev/md0
  Volume group "datavg" successfully created
root@ned ~ # lvcreate -L698G -ndatalv datavg
  Logical volume "datalv" created
root@ned ~ # date;cat /proc/mdstat
Wed Nov  2 14:00:34 CET 2005
Personalities : [linear] [raid0] [raid1] [raid5] [multipath] [raid6] [raid10]
md0 : active raid5 sdd1[4] sdc1[2] sdb1[1] sda1[0]
      732418944 blocks level 5, 64k chunk, algorithm 2 [4/3] [UUU_]
      [>....................]  recovery =  0.6% (1538560/244139648) finish=169.9min speed=23789K/sec

unused devices: <none>
root@ned ~ #

sdd still not working.

Again: stopping the whole thing

root@ned ~ # mdadm -f /dev/md0 /dev/sda1 /dev/sdb1 /dev/sdc1 /dev/sdd1
mdadm: set /dev/sda1 faulty in /dev/md0
mdadm: set /dev/sdb1 faulty in /dev/md0
mdadm: set /dev/sdc1 faulty in /dev/md0
mdadm: set /dev/sdd1 faulty in /dev/md0
root@ned ~ # mdadm --stop /dev/md0
mdadm: fail to stop array /dev/md0: Device or resource busy
1 root@ned ~ # date;cat /proc/mdstat                                                                                                                       :(
Wed Nov  2 14:02:05 CET 2005
Personalities : [linear] [raid0] [raid1] [raid5] [multipath] [raid6] [raid10]
md0 : active raid5 sdd1[4](F) sdc1[5](F) sdb1[6](F) sda1[7](F)
      732418944 blocks level 5, 64k chunk, algorithm 2 [4/0] [____]

unused devices: <none>
root@ned ~ # /etc/init.d/lvm stop
Shutting down LVM Volume Groups...
  /dev/md0: read failed after 0 of 4096 at 0: Input/output error
  Found duplicate PV rhqRSu9V3ZvONJDXWZCEpDWGLEOFt6A3: using /dev/sdd1 not /dev/sda1
  0 logical volume(s) in volume group "datavg" now active
root@ned ~ # mdadm --stop /dev/md0
root@ned ~ #

"Found duplicate PV rhqRSu9V3ZvONJDXWZCEpDWGLEOFt6A3: using /dev/sdd1
not /dev/sda1" -> Wow, could this be the problem?

Check with raid6:

root@ned ~ # date;cat /proc/mdstat
Wed Nov  2 17:25:15 CET 2005
Personalities : [linear] [raid0] [raid1] [raid5] [multipath] [raid6] [raid10]
unused devices: <none>
root@ned ~ # mdadm --create --verbose /dev/md0 --level=raid6 --raid-devices=4 /dev/sda1 /dev/sdb1 /dev/sdc1 /dev/sdd1
mdadm: layout defaults to left-symmetric
mdadm: chunk size defaults to 64K
mdadm: /dev/sda1 appears to be part of a raid array:
    level=5 devices=4 ctime=Wed Nov  2 17:23:30 2005
mdadm: /dev/sdb1 appears to contain an ext2fs file system
    size=244139772K  mtime=Thu Jan  1 01:00:00 1970
mdadm: /dev/sdb1 appears to be part of a raid array:
    level=5 devices=4 ctime=Wed Nov  2 17:23:30 2005
mdadm: /dev/sdc1 appears to contain an ext2fs file system
    size=244139772K  mtime=Thu Jan  1 01:00:00 1970
mdadm: /dev/sdc1 appears to be part of a raid array:
    level=5 devices=4 ctime=Wed Nov  2 17:23:30 2005
mdadm: /dev/sdd1 appears to be part of a raid array:
    level=5 devices=4 ctime=Wed Nov  2 17:23:30 2005
mdadm: size set to 244139648K
Continue creating array? y
mdadm: array /dev/md0 started.
root@ned ~ # date;cat /proc/mdstat
Wed Nov  2 17:49:01 CET 2005
Personalities : [linear] [raid0] [raid1] [raid5] [multipath] [raid6] [raid10]
md0 : active raid6 sdd1[3] sdc1[2] sdb1[1] sda1[0]
      488279296 blocks level 6, 64k chunk, algorithm 2 [4/4] [UUUU]
      [>....................]  resync =  0.0% (68992/244139648) finish=235.8min speed=17248K/sec

unused devices: <none>
root@ned ~ #

(28% of the CPU is occupied while resyncing)

Speed is constantly going down

root@ned ~ # date;cat /proc/mdstat
Wed Nov  2 17:50:32 CET 2005
Personalities : [linear] [raid0] [raid1] [raid5] [multipath] [raid6] [raid10]
md0 : active raid6 sdd1[3] sdc1[2] sdb1[1] sda1[0]
      488279296 blocks level 6, 64k chunk, algorithm 2 [4/4] [UUUU]
      [>....................]  resync =  0.4% (1116352/244139648) finish=452.9min speed=8940K/sec

unused devices: <none>
root@ned ~ # date;cat /proc/mdstat
Wed Nov  2 17:50:46 CET 2005
Personalities : [linear] [raid0] [raid1] [raid5] [multipath] [raid6] [raid10]
md0 : active raid6 sdd1[3] sdc1[2] sdb1[1] sda1[4](F)
      488279296 blocks level 6, 64k chunk, algorithm 2 [4/3] [_UUU]
      [>....................]  resync =  0.4% (1116356/244139648) finish=570.7min speed=7095K/sec

unused devices: <none>
root@ned ~ # date;cat /proc/mdstat
Wed Nov  2 17:50:47 CET 2005
Personalities : [linear] [raid0] [raid1] [raid5] [multipath] [raid6] [raid10]
md0 : active raid6 sdd1[3] sdc1[2] sdb1[1] sda1[4](F)
      488279296 blocks level 6, 64k chunk, algorithm 2 [4/3] [_UUU]
      [>....................]  resync =  0.4% (1116356/244139648) finish=588.8min speed=6877K/sec

unused devices: <none>
root@ned ~ # date;cat /proc/mdstat
Wed Nov  2 17:50:48 CET 2005
Personalities : [linear] [raid0] [raid1] [raid5] [multipath] [raid6] [raid10]
md0 : active raid6 sdd1[3] sdc1[2] sdb1[1] sda1[4](F)
      488279296 blocks level 6, 64k chunk, algorithm 2 [4/3] [_UUU]
      [>....................]  resync =  0.4% (1116356/244139648) finish=597.9min speed=6773K/sec

unused devices: <none>
root@ned ~ #

-> sda seems to be faulty now: (you can see it above between 17:50:32 and 17:50:46)

root@ned ~ # mdadm --detail /dev/md0
/dev/md0:
        Version : 00.90.02
  Creation Time : Wed Nov  2 17:48:56 2005
     Raid Level : raid6
     Array Size : 488279296 (465.66 GiB 500.00 GB)
    Device Size : 244139648 (232.83 GiB 250.00 GB)
   Raid Devices : 4
  Total Devices : 4
Preferred Minor : 0
    Persistence : Superblock is persistent

    Update Time : Wed Nov  2 17:50:42 2005
          State : clean, degraded, resyncing
 Active Devices : 3
Working Devices : 3
 Failed Devices : 1
  Spare Devices : 0

     Chunk Size : 64K

 Rebuild Status : 0% complete

           UUID : fcd75da1:b5cb99f9:90fa0a11:4a8dca88
         Events : 0.35

    Number   Major   Minor   RaidDevice State
       0       0        0        -      removed
       1       8       17        1      active sync   /dev/sdb1
       2       8       33        2      active sync   /dev/sdc1
       3       8       49        3      active sync   /dev/sdd1

       4       8        1        0      faulty   /dev/sda1
root@ned ~ #

Probably a hardware-based raid would be a better idea? :-(

This sucks.

What I also found

root@ned ~ # hddtemp /dev/sd[abcd]
WARNING: Drive /dev/sda doesn't seem to have a temperature sensor.
WARNING: This doesn't mean it hasn't got one.
WARNING: If you are sure it has one, please contact me (hddtemp@guzu.net).
WARNING: See --help, --debug and --drivebase options.
/dev/sda::  no sensor
/dev/sdb: SAMSUNG SP2504C: 36°C
/dev/sdc: SAMSUNG SP2504C: 36°C
/dev/sdd: SAMSUNG SP2504C: 37°C
root@ned ~ #

Now sda seems to have a problem. It drives me crazy!!!

After some while ...

root@ned ~ # hddtemp /dev/sd[abcd]
WARNING: Drive /dev/sda doesn't seem to have a temperature sensor.
WARNING: This doesn't mean it hasn't got one.
WARNING: If you are sure it has one, please contact me (hddtemp@guzu.net).
WARNING: See --help, --debug and --drivebase options.
/dev/sda: :  no sensor
WARNING: Drive /dev/sdb doesn't seem to have a temperature sensor.
WARNING: This doesn't mean it hasn't got one.
WARNING: If you are sure it has one, please contact me (hddtemp@guzu.net).
WARNING: See --help, --debug and --drivebase options.
/dev/sdb: :  no sensor
WARNING: Drive /dev/sdc doesn't seem to have a temperature sensor.
WARNING: This doesn't mean it hasn't got one.
WARNING: If you are sure it has one, please contact me (hddtemp@guzu.net).
WARNING: See --help, --debug and --drivebase options.
/dev/sdc: :  no sensor
WARNING: Drive /dev/sdd doesn't seem to have a temperature sensor.
WARNING: This doesn't mean it hasn't got one.
WARNING: If you are sure it has one, please contact me (hddtemp@guzu.net).
WARNING: See --help, --debug and --drivebase options.
/dev/sdd: :  no sensor
root@ned ~ # 

OK, there IS some serious problem. Someone gotta give me a hug!!!

root@ned ~ # uname -a
Linux ned 2.6.13-grml #1 Tue Oct 4 18:24:46 CEST 2005 i686 GNU/Linux
root@ned ~ #

Should some kind of upgrade give me relieve?


20060106: Jimmy and Mika are going to rise my mood and try to get it work

RAID5 with 8GB works flawlessly.

RAID5 with 250GB: old problem: RAID resyncs and after 0.4% it slows down to zero with:

syslog

Jan  7 13:58:52 ned kernel: ata4: command 0x35 timeout, stat 0xd1 host_stat 0x1
Jan  7 13:58:52 ned kernel: ata4: translated ATA stat/err 0x35/00 to SCSI SK/ASC/ASCQ 0x4/00/00
Jan  7 13:58:52 ned kernel: ata4: status=0x35 { DeviceFault SeekComplete CorrectedError Error }
Jan  7 13:58:52 ned kernel: SCSI error : <3 0 0 0> return code = 0x8000002
Jan  7 13:58:52 ned kernel: sdd: Current: sense key: Hardware Error
Jan  7 13:58:52 ned kernel: Additional sense: No additional sense information
Jan  7 13:58:52 ned kernel: end_request: I/O error, dev sdd, sector 4814151
Jan  7 13:58:52 ned kernel: ATA: abnormal status 0xD1 on port 0xD89DC2C7
Jan  7 13:58:52 ned kernel: ATA: abnormal status 0xD1 on port 0xD89DC2C7
Jan  7 13:58:52 ned kernel: ATA: abnormal status 0xD1 on port 0xD89DC2C7

Changing the SATA-cable of sdd and exchanging sdd with sdc:

new test with 120GB RAID5:

root@ned ~ # date;cat /proc/mdstat
Sat Jan  7 13:56:14 CET 2006
Personalities : [linear] [raid0] [raid1] [raid5] [multipath] [raid6] [raid10]
unused devices: <none>
root@ned ~ # mdadm -C -l 5 -n 4 -v /dev/md0 /dev/sda1 /dev/sdb1 /dev/sdc1 /dev/sdd1
mdadm: layout defaults to left-symmetric
mdadm: chunk size defaults to 64K
mdadm: /dev/sda1 appears to contain an ext2fs file system
    size=4891760K  mtime=Thu Jan  1 01:00:00 1970
mdadm: /dev/sdb1 appears to contain an ext2fs file system
    size=244139772K  mtime=Thu Jan  1 01:00:00 1970
mdadm: /dev/sdc1 appears to contain an ext2fs file system
    size=4891760K  mtime=Thu Jan  1 01:00:00 1970
mdadm: /dev/sdd1 appears to contain an ext2fs file system
    size=244139772K  mtime=Thu Jan  1 01:00:00 1970
mdadm: size set to 117185984K
Continue creating array? y
mdadm: array /dev/md0 started.
root@ned ~ # date;cat /proc/mdstat
Sat Jan  7 13:56:38 CET 2006
Personalities : [linear] [raid0] [raid1] [raid5] [multipath] [raid6] [raid10]
md0 : active raid5 sdd1[4] sdc1[2] sdb1[1] sda1[0]
      351557952 blocks level 5, 64k chunk, algorithm 2 [4/3] [UUU_]
      [>....................]  recovery =  0.1% (223232/117185984) finish=61.1min speed=31890K/sec

unused devices: <none>
root@ned ~ # date;cat /proc/mdstat
Sat Jan  7 13:56:50 CET 2006
Personalities : [linear] [raid0] [raid1] [raid5] [multipath] [raid6] [raid10]
md0 : active raid5 sdd1[4] sdc1[2] sdb1[1] sda1[0]
      351557952 blocks level 5, 64k chunk, algorithm 2 [4/3] [UUU_]
      [>....................]  recovery =  0.5% (596336/117185984) finish=65.1min speed=29816K/sec

unused devices: <none>
root@ned ~ # date;cat /proc/mdstat
Sat Jan  7 13:56:58 CET 2006
Personalities : [linear] [raid0] [raid1] [raid5] [multipath] [raid6] [raid10]
md0 : active raid5 sdd1[4] sdc1[2] sdb1[1] sda1[0]
      351557952 blocks level 5, 64k chunk, algorithm 2 [4/3] [UUU_]
      [>....................]  recovery =  0.6% (818176/117185984) finish=63.9min speed=30302K/sec

unused devices: <none>
root@ned ~ # date;cat /proc/mdstat
Sat Jan  7 13:59:18 CET 2006
Personalities : [linear] [raid0] [raid1] [raid5] [multipath] [raid6] [raid10] 
md0 : active raid5 sdd1[4](F) sdc1[2] sdb1[1] sda1[0]
      351557952 blocks level 5, 64k chunk, algorithm 2 [4/3] [UUU_]
      [>....................]  recovery =  2.0% (2407176/117185984) finish=245.9min speed=7778K/sec
      
unused devices: <none>
root@ned ~ # 

Again troubles with sdd -> I guess it's the Dawicontrol SATA adapter
that has a problem with its forth device interface.

20060121: I put in another Dawicontrol host adapter (a new one)

after booting

root@ned ~ # date;cat /proc/mdstatSat Jan 21 20:58:22 CET 2006
Personalities : [linear] [raid0] [raid1] [raid5] [multipath] [raid6] [raid10] 
md0 : active raid5 sdd1[4](F) sdc1[2] sdb1[1] sda1[0]
      351557952 blocks level 5, 64k chunk, algorithm 2 [4/3] [UUU_]
      [>....................]  recovery =  4.1% (4822368/117185984) finish=550.6min speed=3400K/sec
      
unused devices: <none>
root@ned ~ # date;cat /proc/mdstat
Sat Jan 21 20:58:44 CET 2006
Personalities : [linear] [raid0] [raid1] [raid5] [multipath] [raid6] [raid10] 
md0 : active raid5 sdd1[4](F) sdc1[2] sdb1[1] sda1[0]
      351557952 blocks level 5, 64k chunk, algorithm 2 [4/3] [UUU_]
      [>....................]  recovery =  4.1% (4822372/117185984) finish=595.5min speed=3144K/sec
      
unused devices: <none>
root@ned ~ # 

Oh no, not again!

8 GB RAID5 worked. So I will test the border, at which the RAID fails:

Partition sizes: (Device sizes)
10GB
50GB
100GB

echo -e "d\nn\np\n1\n\n+2000M\nt\nfd\nw\n" | fdisk /dev/sda
-> /root/repartition_raid_disks.sh

But when doing the partitioning, I already get:

Jan 21 23:17:10 ned kernel: ata4: command 0x25 timeout, stat 0xd1 host_stat 0x1
Jan 21 23:17:10 ned kernel: ata4: translated ATA stat/err 0x25/00 to SCSI SK/ASC/ASCQ 0x4/00/00
Jan 21 23:17:10 ned kernel: ata4: status=0x25 { DeviceFault CorrectedError Error }
Jan 21 23:17:10 ned kernel: SCSI error : <3 0 0 0> return code = 0x8000002
Jan 21 23:17:10 ned kernel: sdd: Current: sense key: Hardware Error
Jan 21 23:17:10 ned kernel: Additional sense: No additional sense information
Jan 21 23:17:10 ned kernel: end_request: I/O error, dev sdd, sector 32
Jan 21 23:17:10 ned kernel: Buffer I/O error on device sdd, logical block 4
Jan 21 23:17:10 ned kernel: ATA: abnormal status 0xD1 on port 0xE8B042C7
Jan 21 23:17:10 ned kernel: ATA: abnormal status 0xD1 on port 0xE8B042C7
Jan 21 23:17:10 ned kernel: ATA: abnormal status 0xD1 on port 0xE8B042C7
Jan 21 23:17:40 ned kernel: ata4: command 0x25 timeout, stat 0xd1 host_stat 0x1
Jan 21 23:17:40 ned kernel: ata4: translated ATA stat/err 0x25/00 to SCSI SK/ASC/ASCQ 0x4/00/00
Jan 21 23:17:40 ned kernel: ata4: status=0x25 { DeviceFault CorrectedError Error }
Jan 21 23:17:40 ned kernel: SCSI error : <3 0 0 0> return code = 0x8000002
Jan 21 23:17:40 ned kernel: sdd: Current: sense key: Hardware Error
Jan 21 23:17:40 ned kernel: Additional sense: No additional sense information
Jan 21 23:17:40 ned kernel: end_request: I/O error, dev sdd, sector 40
Jan 21 23:17:40 ned kernel: Buffer I/O error on device sdd, logical block 5
Jan 21 23:17:40 ned kernel: ATA: abnormal status 0xD1 on port 0xE8B042C7
Jan 21 23:17:40 ned kernel: ATA: abnormal status 0xD1 on port 0xE8B042C7
Jan 21 23:17:40 ned kernel: ATA: abnormal status 0xD1 on port 0xE8B042C7

Changing disk 4 (sdd) with disk 2 (sdb) and disk 1 (sda) with disk 3 (sdc):

Creating one RAID5 with 5 GB per partition and initialze it

root@ned ~ # repartition_raid_disks.sh 5
[...]
root@ned ~ # mdadm --create --verbose /dev/md0 --level=raid5 --raid-devices=4 /dev/sda1 /dev/sdb1 /dev/sdc1 /dev/sdd1
mdadm: layout defaults to left-symmetric
mdadm: chunk size defaults to 64K
mdadm: /dev/sda1 appears to contain an ext2fs file system
    size=4891760K  mtime=Thu Jan  1 01:00:00 1970
mdadm: /dev/sda1 appears to be part of a raid array:
    level=5 devices=4 ctime=Fri Jan  6 23:33:37 2006
mdadm: /dev/sdb1 appears to contain an ext2fs file system
    size=244139772K  mtime=Thu Jan  1 01:00:00 1970
mdadm: /dev/sdb1 appears to be part of a raid array:
    level=5 devices=4 ctime=Fri Jan  6 23:33:37 2006
mdadm: /dev/sdc1 appears to contain an ext2fs file system
    size=4891760K  mtime=Thu Jan  1 01:00:00 1970
mdadm: /dev/sdd1 appears to contain an ext2fs file system
    size=244139772K  mtime=Thu Jan  1 01:00:00 1970
mdadm: /dev/sdd1 appears to be part of a raid array:
    level=5 devices=4 ctime=Fri Jan  6 23:33:37 2006
mdadm: size set to 4891648K
Continue creating array? y
mdadm: array /dev/md0 started.
root@ned ~ # mdadm --detail /dev/md0
/dev/md0:
        Version : 00.90.02
  Creation Time : Mon Jan 23 13:28:23 2006
     Raid Level : raid5
     Array Size : 14674944 (14.00 GiB 15.03 GB)
    Device Size : 4891648 (4.67 GiB 5.01 GB)
   Raid Devices : 4
  Total Devices : 4
Preferred Minor : 0
    Persistence : Superblock is persistent

    Update Time : Mon Jan 23 13:28:23 2006
          State : clean, degraded, recovering
 Active Devices : 3
Working Devices : 4
 Failed Devices : 0
  Spare Devices : 1

         Layout : left-symmetric
     Chunk Size : 64K

 Rebuild Status : 9% complete

           UUID : 1bd7a9b6:d5ff094a:1f64d327:8a429991
         Events : 0.46

    Number   Major   Minor   RaidDevice State
       0       8        1        0      active sync   /dev/sda1
       1       8       17        1      active sync   /dev/sdb1
       2       8       33        2      active sync   /dev/sdc1
       3       0        0        -      removed

       4       8       49        3      spare rebuilding   /dev/sdd1
root@ned ~ # date;cat /proc/mdstat
Mon Jan 23 13:28:42 CET 2006
Personalities : [linear] [raid0] [raid1] [raid5] [multipath] [raid6] [raid10]
md0 : active raid5 sdd1[4] sdc1[2] sdb1[1] sda1[0]
      14674944 blocks level 5, 64k chunk, algorithm 2 [4/3] [UUU_]
      [==>..................]  recovery = 11.3% (553600/4891648) finish=2.4min speed=29136K/sec

unused devices: <none>
root@ned ~ # date;cat /proc/mdstat
Mon Jan 23 13:29:47 CET 2006
Personalities : [linear] [raid0] [raid1] [raid5] [multipath] [raid6] [raid10]
md0 : active raid5 sdd1[4] sdc1[2] sdb1[1] sda1[0]
      14674944 blocks level 5, 64k chunk, algorithm 2 [4/3] [UUU_]
      [==========>..........]  recovery = 50.7% (2482280/4891648) finish=1.3min speed=30678K/sec

unused devices: <none>
root@ned ~ #

finished RAID5 (no errors were logged in syslog)

root@ned ~ # date;cat /proc/mdstat
Mon Jan 23 13:31:09 CET 2006
Personalities : [linear] [raid0] [raid1] [raid5] [multipath] [raid6] [raid10]
md0 : active raid5 sdd1[3] sdc1[2] sdb1[1] sda1[0]
      14674944 blocks level 5, 64k chunk, algorithm 2 [4/4] [UUUU]

unused devices: <none>
root@ned ~ #

Checking the filesystem with bonnie (without LVM!):

root@ned ~ # mkfs.ext3 /dev/md0
[...]
root@ned ~ # mkdir testraid
root@ned ~ # mount /dev/md0 ./testraid
root@ned ~ # chown vk.users -R testraid
root@ned ~ # bonnie -s 2048 -d /root/testraid -u vk:users
[...]

bonnie-Test

root@ned ~ # bonnie -s 2048 -d /root/testraid -u vk:users
Using uid:1000, gid:100.
Writing with putc()...done
Writing intelligently...done
Rewriting...done
Reading with getc()...done
Reading intelligently...done
start 'em...done...done...done...
Create files in sequential order...done.
Stat files in sequential order...done.
Delete files in sequential order...done.
Create files in random order...done.
Stat files in random order...done.
Delete files in random order...done.
Version  1.03       ------Sequential Output------ --Sequential Input- --Random-
                    -Per Chr- --Block-- -Rewrite- -Per Chr- --Block-- --Seeks--
Machine        Size K/sec %CP K/sec %CP K/sec %CP K/sec %CP K/sec %CP  /sec %CP
ned              2G 10215  79 40062  35 24509  25 13042  88 52345  33 295.4   1
                    ------Sequential Create------ --------Random Create--------
                    -Create-- --Read--- -Delete-- -Create-- --Read--- -Delete--
              files  /sec %CP  /sec %CP  /sec %CP  /sec %CP  /sec %CP  /sec %CP
                 16   464  99 +++++ +++ +++++ +++   456  99 +++++ +++  2352  96
ned,2G,10215,79,40062,35,24509,25,13042,88,52345,33,295.4,1,16,464,99,+++++,+++,+++++,+++,456,99,+++++,+++,2352,96
bonnie -s 2048 -d /root/testraid -u vk:users  278.96s user 161.53s system 66% cpu 10:59.15 total
root@ned ~ #

clean up before next run

root@ned ~ # umount /root/testraid
root@ned ~ # mdadm --stop /dev/md0

SUMMARY of the previous run

/root/repartition_raid_disks.sh 5
mdadm --create --verbose /dev/md0 --level=raid5 --raid-devices=4 /dev/sda1 /dev/sdb1 /dev/sdc1 /dev/sdd1
mkfs.ext3 /dev/md0
mount /dev/md0 /root/testraid
chown vk.users -R /root/testraid
bonnie -s 2048 -d /root/testraid -u vk:users
umount /root/testraid
mdadm --stop /dev/md0

Next run: ./repartition_raid_disks.sh 50

This time trying XFS as filesystem

root@ned ~ # mkfs.xfs /dev/md0 -f
meta-data=/dev/md0               isize=256    agcount=16, agsize=2289248 blks
         =                       sectsz=4096
data     =                       bsize=4096   blocks=36627968, imaxpct=25
         =                       sunit=16     swidth=48 blks, unwritten=1
naming   =version 2              bsize=4096
log      =internal log           bsize=4096   blocks=17884, version=2
         =                       sectsz=4096  sunit=1 blks
realtime =none                   extsz=196608 blocks=0, rtextents=0
root@ned ~ #

bonnie with 50GB partitions for the RAID5

root@ned ~ # bonnie -s 2048 -d /root/testraid -u vk:users
Using uid:1000, gid:100.
Writing with putc()...done
Writing intelligently...done
Rewriting...done
Reading with getc()...done
Reading intelligently...done
start 'em...done...done...done...
Create files in sequential order...done.
Stat files in sequential order...done.
Delete files in sequential order...done.
Create files in random order...done.
Stat files in random order...done.
Delete files in random order...done.
Version  1.03       ------Sequential Output------ --Sequential Input- --Random-
                    -Per Chr- --Block-- -Rewrite- -Per Chr- --Block-- --Seeks--
Machine        Size K/sec %CP K/sec %CP K/sec %CP K/sec %CP K/sec %CP  /sec %CP
ned              2G 10866  82 42004  27 24902  27 13393  92 52972  35 332.1   1
                    ------Sequential Create------ --------Random Create--------
                    -Create-- --Read--- -Delete-- -Create-- --Read--- -Delete--
              files  /sec %CP  /sec %CP  /sec %CP  /sec %CP  /sec %CP  /sec %CP
                 16  1699  41 +++++ +++  1609  32  1665  39 +++++ +++  1033  25
ned,2G,10866,82,42004,27,24902,27,13393,92,52972,35,332.1,1,16,1699,41,+++++,+++,1609,32,1665,39,+++++,+++,1033,25
bonnie -s 2048 -d /root/testraid -u vk:users  281.53s user 90.74s system 62% cpu 9:59.31 total
root@ned ~ #


Scripts for automatical testing

root@ned ~ # cat raidtest1_repartition_mkraid.sh
#!/bin/sh

[ "x${1}" == "x" ] && exit

GBSIZE=${1}

/root/repartition_raid_disks.sh ${GBSIZE} && \
mdadm --create --verbose /dev/md0 --level=raid5 --raid-devices=4 /dev/sda1 /dev/sdb1 /dev/sdc1 /dev/sdd1 && \

root@ned ~ # cat raidtest2_mkfs_mount_bonnie_umount_stopraid.sh
#!/bin/sh

mkfs.xfs /dev/md0 -f && \
mount /dev/md0 /root/testraid && \
chown vk.users -R /root/testraid && \
bonnie -s 2048 -d /root/testraid -u vk:users && \
umount /root/testraid && \
mdadm --stop /dev/md0


root@ned ~ #

--> "./raidtest1_repartition_mkraid.sh 100"

bonnie with 100G partition sizes

root@ned ~ # ./raidtest2_mkfs_mount_bonnie_umount_stopraid.sh
meta-data=/dev/md0               isize=256    agcount=16, agsize=4578128 blks
         =                       sectsz=4096
data     =                       bsize=4096   blocks=73250048, imaxpct=25
         =                       sunit=16     swidth=32 blks, unwritten=1
naming   =version 2              bsize=4096
log      =internal log           bsize=4096   blocks=32768, version=2
         =                       sectsz=4096  sunit=1 blks
realtime =none                   extsz=131072 blocks=0, rtextents=0
Using uid:1000, gid:100.
Writing with putc()...done
Writing intelligently...done
Rewriting...done
Reading with getc()...done
Reading intelligently...done
start 'em...done...done...done...
Create files in sequential order...done.
Stat files in sequential order...done.
Delete files in sequential order...done.
Create files in random order...done.
Stat files in random order...done.
Delete files in random order...done.
Version  1.03       ------Sequential Output------ --Sequential Input- --Random-
                    -Per Chr- --Block-- -Rewrite- -Per Chr- --Block-- --Seeks--
Machine        Size K/sec %CP K/sec %CP K/sec %CP K/sec %CP K/sec %CP  /sec %CP
ned              2G 10361  79 46518  33 24729  26 13362  87 53973  33 246.8   1
                    ------Sequential Create------ --------Random Create--------
                    -Create-- --Read--- -Delete-- -Create-- --Read--- -Delete--
              files  /sec %CP  /sec %CP  /sec %CP  /sec %CP  /sec %CP  /sec %CP
                 16  1972  49 +++++ +++  1706  37  1841  48 +++++ +++  1228  30
ned,2G,10361,79,46518,33,24729,26,13362,87,53973,33,246.8,1,16,1972,49,+++++,+++,1706,37,1841,48,+++++,+++,1228,30
./raidtest2_mkfs_mount_bonnie_umount_stopraid.sh  273.15s user 94.87s system 57% cpu 10:44.89 total
root@ned ~ #

Still no errors in logs.

--> "./raidtest1_repartition_mkraid.sh 150"

Again problems!

root@ned ~ # date;cat /proc/mdstat
Mon Jan 23 23:39:43 CET 2006
Personalities : [linear] [raid0] [raid1] [raid5] [multipath] [raid6] [raid10]
md0 : active raid5 sdd1[4] sdc1[2] sdb1[1] sda1[0]
      439465728 blocks level 5, 64k chunk, algorithm 2 [4/3] [UUU_]
      [>....................]  recovery =  0.5% (735616/146488576) finish=165.0min speed=14712K/sec

unused devices: <none>
root@ned ~ # date;cat /proc/mdstat
Mon Jan 23 23:39:47 CET 2006
Personalities : [linear] [raid0] [raid1] [raid5] [multipath] [raid6] [raid10]
md0 : active raid5 sdd1[4] sdc1[2] sdb1[1] sda1[0]
      439465728 blocks level 5, 64k chunk, algorithm 2 [4/3] [UUU_]
      [>....................]  recovery =  0.5% (735616/146488576) finish=178.2min speed=13622K/sec

unused devices: <none>
root@ned ~ # date;cat /proc/mdstat
Mon Jan 23 23:39:59 CET 2006
Personalities : [linear] [raid0] [raid1] [raid5] [multipath] [raid6] [raid10]
md0 : active raid5 sdd1[4](F) sdc1[2] sdb1[1] sda1[0]
      439465728 blocks level 5, 64k chunk, algorithm 2 [4/3] [UUU_]
      [>....................]  recovery =  0.5% (735748/146488576) finish=217.8min speed=11147K/sec

unused devices: <none>
root@ned ~ #

Problem occurs between 100G and 150G. Where ist the border?

--> "./raidtest1_repartition_mkraid.sh 125"

tlog

Jan 24 08:32:05 ned kernel: ata4: translated ATA stat/err 0x25/00 to SCSI SK/ASC/ASCQ 0x4/00/00
Jan 24 08:32:05 ned kernel: ata4: status=0x25 { DeviceFault CorrectedError Error }
Jan 24 08:32:05 ned kernel: SCSI error : <3 0 0 0> return code = 0x8000002
Jan 24 08:32:05 ned kernel: sdd: Current: sense key: Hardware Error
Jan 24 08:32:05 ned kernel: Additional sense: No additional sense information
Jan 24 08:32:05 ned kernel: end_request: I/O error, dev sdd, sector 24
Jan 24 08:32:05 ned kernel: Buffer I/O error on device sdd, logical block 3
Jan 24 08:32:05 ned kernel: ATA: abnormal status 0xD1 on port 0xE8B042C7
Jan 24 08:32:05 ned kernel: ATA: abnormal status 0xD1 on port 0xE8B042C7
Jan 24 08:32:05 ned kernel: ATA: abnormal status 0xD1 on port 0xE8B042C7

--> "./raidtest1_repartition_mkraid.sh 125" (without rebooting)

Again those errors on sdd.

--> "./raidtest1_repartition_mkraid.sh 5" (after rebooting)

Works.

--> "./raidtest1_repartition_mkraid.sh 110"

Speed decreasing but without any logged errors

root@ned ~ # date;cat /proc/mdstat
Tue Jan 24 09:46:35 CET 2006
Personalities : [linear] [raid0] [raid1] [raid5] [multipath] [raid6] [raid10] 
md0 : active raid5 sdd1[4] sdc1[2] sdb1[1] sda1[0]
      322279488 blocks level 5, 64k chunk, algorithm 2 [4/3] [UUU_]
      [>....................]  recovery =  1.1% (1250944/107426496) finish=59.9min speed=29501K/sec
      
unused devices: <none>
root@ned ~ # date;cat /proc/mdstat
Tue Jan 24 09:46:37 CET 2006
Personalities : [linear] [raid0] [raid1] [raid5] [multipath] [raid6] [raid10] 
md0 : active raid5 sdd1[4] sdc1[2] sdb1[1] sda1[0]
      322279488 blocks level 5, 64k chunk, algorithm 2 [4/3] [UUU_]
      [>....................]  recovery =  1.2% (1309876/107426496) finish=60.0min speed=29433K/sec
      
unused devices: <none>
root@ned ~ # date;cat /proc/mdstat
Tue Jan 24 09:46:38 CET 2006
Personalities : [linear] [raid0] [raid1] [raid5] [multipath] [raid6] [raid10] 
md0 : active raid5 sdd1[4] sdc1[2] sdb1[1] sda1[0]
      322279488 blocks level 5, 64k chunk, algorithm 2 [4/3] [UUU_]
      [>....................]  recovery =  1.2% (1343488/107426496) finish=59.7min speed=29568K/sec
      
unused devices: <none>
root@ned ~ # date;cat /proc/mdstat
Tue Jan 24 09:46:40 CET 2006
Personalities : [linear] [raid0] [raid1] [raid5] [multipath] [raid6] [raid10] 
md0 : active raid5 sdd1[4] sdc1[2] sdb1[1] sda1[0]
      322279488 blocks level 5, 64k chunk, algorithm 2 [4/3] [UUU_]
      [>....................]  recovery =  1.2% (1396316/107426496) finish=60.4min speed=29253K/sec
      
unused devices: <none>
root@ned ~ # date;cat /proc/mdstat
Tue Jan 24 09:46:42 CET 2006
Personalities : [linear] [raid0] [raid1] [raid5] [multipath] [raid6] [raid10] 
md0 : active raid5 sdd1[4] sdc1[2] sdb1[1] sda1[0]
      322279488 blocks level 5, 64k chunk, algorithm 2 [4/3] [UUU_]
      [>....................]  recovery =  1.3% (1443584/107426496) finish=61.1min speed=28902K/sec
      
unused devices: <none>
root@ned ~ # date;cat /proc/mdstat
Tue Jan 24 09:46:45 CET 2006
Personalities : [linear] [raid0] [raid1] [raid5] [multipath] [raid6] [raid10] 
md0 : active raid5 sdd1[4] sdc1[2] sdb1[1] sda1[0]
      322279488 blocks level 5, 64k chunk, algorithm 2 [4/3] [UUU_]
      [>....................]  recovery =  1.4% (1526956/107426496) finish=61.6min speed=28629K/sec
      
unused devices: <none>
root@ned ~ # 

Speed increasing again up to 29.7MB/s

Speed going down again

root@ned ~ # date;cat /proc/mdstat
Tue Jan 24 10:24:55 CET 2006
Personalities : [linear] [raid0] [raid1] [raid5] [multipath] [raid6] [raid10]
md0 : active raid5 sdd1[4](F) sdc1[2] sdb1[1] sda1[0]
      322279488 blocks level 5, 64k chunk, algorithm 2 [4/3] [UUU_]
      [>....................]  recovery =  3.6% (3906956/107426496) finish=10773.1min speed=160K/sec

unused devices: <none>
root@ned ~ #

--> "./raidtest1_repartition_mkraid.sh 100" (after reboot; again)

normal messages during raid init before resync

Jan 24 15:55:03 ned kernel: SCSI device sdb: 488397168 512-byte hdwr sectors (250059 MB)
Jan 24 15:55:03 ned kernel: SCSI device sdb: drive cache: write back
Jan 24 15:55:03 ned kernel: sdb: sdb1
Jan 24 15:55:08 ned multipathd: sdb1: failed to store path info
Jan 24 15:55:10 ned kernel: SCSI device sdc: 488397168 512-byte hdwr sectors (250059 MB)
Jan 24 15:55:10 ned kernel: SCSI device sdc: drive cache: write back
Jan 24 15:55:10 ned kernel: sdc: sdc1
Jan 24 15:55:12 ned kernel: SCSI device sdc: 488397168 512-byte hdwr sectors (250059 MB)
Jan 24 15:55:12 ned kernel: SCSI device sdc: drive cache: write back
Jan 24 15:55:12 ned kernel: sdc: sdc1
Jan 24 15:55:12 ned multipathd: sdb1: failed to store path info
Jan 24 15:55:17 ned multipathd: sdc1: failed to store path info
Jan 24 15:55:18 ned kernel: SCSI device sdd: 488397168 512-byte hdwr sectors (250059 MB)
Jan 24 15:55:18 ned kernel: SCSI device sdd: drive cache: write back
Jan 24 15:55:18 ned kernel: sdd: sdd1
Jan 24 15:55:20 ned kernel: SCSI device sdd: 488397168 512-byte hdwr sectors (250059 MB)
Jan 24 15:55:20 ned kernel: SCSI device sdd: drive cache: write back
Jan 24 15:55:20 ned kernel: sdd: sdd1
Jan 24 15:55:22 ned multipathd: sdc1: failed to store path info
Jan 24 15:55:27 ned multipathd: sdd1: failed to store path info
Jan 24 15:55:32 ned multipathd: sdd1: failed to store path info
Jan 24 15:56:24 ned kernel: md: bind<sda1>
Jan 24 15:56:24 ned kernel: md: bind<sdb1>
Jan 24 15:56:24 ned kernel: md: bind<sdc1>
Jan 24 15:56:24 ned kernel: md: bind<sdd1>
Jan 24 15:56:24 ned kernel: raid5: device sdc1 operational as raid disk 2
Jan 24 15:56:24 ned kernel: raid5: device sdb1 operational as raid disk 1
Jan 24 15:56:24 ned kernel: raid5: device sda1 operational as raid disk 0
Jan 24 15:56:24 ned kernel: raid5: allocated 4206kB for md0
Jan 24 15:56:24 ned kernel: raid5: raid level 5 set md0 active with 3 out of 4 devices, algorithm 2
Jan 24 15:56:24 ned kernel: RAID5 conf printout:
Jan 24 15:56:24 ned kernel: --- rd:4 wd:3 fd:1
Jan 24 15:56:24 ned kernel: disk 0, o:1, dev:sda1
Jan 24 15:56:24 ned kernel: disk 1, o:1, dev:sdb1
Jan 24 15:56:24 ned kernel: disk 2, o:1, dev:sdc1
Jan 24 15:56:24 ned kernel: RAID5 conf printout:
Jan 24 15:56:24 ned kernel: --- rd:4 wd:3 fd:1
Jan 24 15:56:24 ned kernel: disk 0, o:1, dev:sda1
Jan 24 15:56:24 ned kernel: disk 1, o:1, dev:sdb1
Jan 24 15:56:24 ned kernel: disk 2, o:1, dev:sdc1
Jan 24 15:56:24 ned kernel: disk 3, o:1, dev:sdd1
Jan 24 15:56:24 ned kernel: md: syncing RAID array md0
Jan 24 15:56:24 ned kernel: md: minimum _guaranteed_ reconstruction speed: 1000 KB/sec/disc.
Jan 24 15:56:24 ned kernel: md: using maximum available idle IO bandwith (but not more than 200000 KB/sec) for reconstruction.
Jan 24 15:56:24 ned kernel: md: using 128k window, over a total of 97667072 blocks.

root@ned ~ # date;cat /proc/mdstat
Tue Jan 24 14:59:09 CET 2006
Personalities : [linear] [raid0] [raid1] [raid5] [multipath] [raid6] [raid10]
md0 : active raid5 sdd1[4] sdc1[2] sdb1[1] sda1[0]
      293001216 blocks level 5, 64k chunk, algorithm 2 [4/3] [UUU_]
      [=>...................]  recovery =  6.5% (6360960/97667072) finish=51.0min speed=29790K/sec

unused devices: <none>
root@ned ~ # date;cat /proc/mdstat
Tue Jan 24 15:00:38 CET 2006
Personalities : [linear] [raid0] [raid1] [raid5] [multipath] [raid6] [raid10]
md0 : active raid5 sdd1[4] sdc1[2] sdb1[1] sda1[0]
      293001216 blocks level 5, 64k chunk, algorithm 2 [4/3] [UUU_]
      [=>...................]  recovery =  9.2% (9023744/97667072) finish=48.1min speed=30669K/sec

unused devices: <none>
root@ned ~ # date;cat /proc/mdstat
Tue Jan 24 15:01:55 CET 2006
Personalities : [linear] [raid0] [raid1] [raid5] [multipath] [raid6] [raid10]
md0 : active raid5 sdd1[4](F) sdc1[2] sdb1[1] sda1[0]
      293001216 blocks level 5, 64k chunk, algorithm 2 [4/3] [UUU_]
      [=>...................]  recovery =  9.5% (9362696/97667072) finish=152.1min speed=9673K/sec

unused devices: <none>
root@ned ~ #

Jan 24 15:01:20 ned kernel: ata4: command 0x35 timeout, stat 0xd1 host_stat 0x1
Jan 24 15:01:20 ned kernel: ata4: translated ATA stat/err 0x35/00 to SCSI SK/ASC/ASCQ 0x4/00/00
Jan 24 15:01:20 ned kernel: ata4: status=0x35 { DeviceFault SeekComplete CorrectedError Error }
Jan 24 15:01:20 ned kernel: SCSI error : <3 0 0 0> return code = 0x8000002
Jan 24 15:01:20 ned kernel: sdd: Current: sense key: Hardware Error
Jan 24 15:01:20 ned kernel: Additional sense: No additional sense information
Jan 24 15:01:20 ned kernel: end_request: I/O error, dev sdd, sector 18725439
Jan 24 15:01:20 ned kernel: raid5: Disk failure on sdd1, disabling device. Operation continuing on 3 devices
Jan 24 15:01:20 ned kernel: ATA: abnormal status 0xD1 on port 0xE8B042C7
Jan 24 15:01:20 ned kernel: ATA: abnormal status 0xD1 on port 0xE8B042C7
Jan 24 15:01:20 ned kernel: ATA: abnormal status 0xD1 on port 0xE8B042C7

-> also errors with 100GB

Next try with 3x100GB into RAID5:

Errors after 4%

root@ned ~ # date;cat /proc/mdstat
Tue Jan 24 18:12:43 CET 2006
Personalities : [linear] [raid0] [raid1] [raid5] [multipath] [raid6] [raid10]
md0 : active raid5 sdc1[3] sdb1[1] sda1[0]
      195334144 blocks level 5, 64k chunk, algorithm 2 [3/2] [UU_]
      [>....................]  recovery =  3.3% (3238656/97667072) finish=42.2min speed=37236K/sec

unused devices: <none>
root@ned ~ # date;cat /proc/mdstat
Tue Jan 24 18:22:16 CET 2006
Personalities : [linear] [raid0] [raid1] [raid5] [multipath] [raid6] [raid10]
md0 : active raid5 sdc1[3](F) sdb1[1] sda1[0]
      195334144 blocks level 5, 64k chunk, algorithm 2 [3/2] [UU_]
      [>....................]  recovery =  4.1% (4011488/97667072) finish=791.7min speed=1971K/sec

unused devices: <none>
root@ned ~ #

This time: sdc

Jan 24 18:22:34 ned kernel: ata3: command 0x35 timeout, stat 0xd1 host_stat 0x1
Jan 24 18:22:34 ned kernel: ata3: translated ATA stat/err 0x35/00 to SCSI SK/ASC/ASCQ 0x4/00/00
Jan 24 18:22:34 ned kernel: ata3: status=0x35 { DeviceFault SeekComplete CorrectedError Error }
Jan 24 18:22:34 ned kernel: SCSI error : <2 0 0 0> return code = 0x8000002
Jan 24 18:22:34 ned kernel: sdc: Current: sense key: Hardware Error
Jan 24 18:22:34 ned kernel: Additional sense: No additional sense information
Jan 24 18:22:34 ned kernel: end_request: I/O error, dev sdc, sector 8023039
Jan 24 18:22:34 ned kernel: ATA: abnormal status 0xD1 on port 0xE8B04287
Jan 24 18:22:34 ned kernel: ATA: abnormal status 0xD1 on port 0xE8B04287
Jan 24 18:22:34 ned kernel: ATA: abnormal status 0xD1 on port 0xE8B04287

--> always the last hdd is the bad one

Controller seems to be the problem.

Changed from Dawicontrol 154 to FastTrack 150 -> see other entry
comment this entry
go to top of page

GnuPG: encrypting, verifying, decrypring, list-keys lasts forever

solved at 20051105
Solution: gpg --rebuild-keydb-caches
comment this entry
go to top of page

10.4: suspend to sleep-mode

solved at 20050913

Message-ID: <9158.9206.1126611362@news.jors.net>

Ein AppleScript. Oeffne den AppleScript Script Editor und tippe ein:

        tell application "System Events"
                sleep
        end tell

Und speichere das als Application (file -> save as).

Das kannst du dann einfach starten: /pfad/zum/sleepscript.app

(wenn du das als Script speicherst, musst du es mit osascript
starten: osascript sleepscript.scpt)

vk@marge:~$ l bin/suspend.app
-rwxr-xr-x 1 vk wheel 13780 13 Sep 21:43 bin/suspend.app
vk@marge:~$

works.
comment this entry
go to top of page

LaTeX2e: things that reach into margin space

solved at 20050831
(in den Rand hineinragende Woerter)

solution:

\sloopy in the preambel and/or \begin{sloppypar}paragraph\end{sloppypar}
comment this entry
go to top of page

Terminal.app with correct german umlauts

solved at 20050826
Problem: connection from Tiger to a Debian-box; no umlauts in Terminal.app (and no colors either).

http://kaiser-edv.de/news/MacOS/UmlauteShell.html

Hier ist natürlich dann ebenfalls auf UTF-8 umzustellen. Dazu einmal
via Menü die »Fenstereinstellungen« öffnen und in der Sektion
»Monitor« die Zeichensatz-Codierung auf »UTF-8« setzen und das dann am
Besten gleich als Standard speichern.

... or 1-1885-15
comment this entry
go to top of page

slrn: "Group tu-graz.[...] is bogus - ignoring it."

solved at 20050717

Screen output while starting slrn

[...]
/home/vk/.slrn/scoring has expired score on line 7046
/home/vk/.slrn/scoring has expired score on line 7059
/home/vk/.slrn/scoring has expired score on line 7072
Using newsrc file /home/vk/.newsrc.localhost for server localhost.
Connecting to host localhost ...
Connected to host.  Posting ok.
Checking for new groups ...
1 new newsgroup(s) found.
Checking news via active file ...
Group tu-graz.lv.unglueck is bogus - ignoring it.
Group tu-graz.lv.cadkonstr is bogus - ignoring it.
Group tu-graz.studium.outgoing is bogus - ignoring it.
Group tu-graz.studium.incoming is bogus - ignoring it.
Group tu-graz.lv.erstellen-schriftlicher-arbeiten is bogus - ignoring it.
Group tu-graz.kultur is bogus - ignoring it.
Group tu-graz.cancel-reports is bogus - ignoring it.
Group tu-graz.anzeigen.computer is bogus - ignoring it.
Group tu-graz.anzeigen.telekom is bogus - ignoring it.
[...]

Without modification of news-configuration (leafnode, slrn), slrn
ignores the groups from the local news-server and has no problem with
other servers.

In the file ~/.newsrc.localhost the entries of the groups starting
with tu-graz.* and vc-graz.* (bouth are the only groups from the local
newsserver) were deleted.

The logfile of leafnode is not showing any ununusal information to my
eyes:

last successful fetched article from tu-graz.* at 12:42

[...]
Jul 14 12:32:08 lisa fetchnews[4036]: connecting to news.gmane.org:nntp: cannot connect: Connection refused
Jul 14 12:42:02 lisa fetchnews[4072]: erased stale pid 4036 host lisa.homeunix.net lockfile /var/lock/news/fetchnews.lck
Jul 14 12:42:05 lisa fetchnews[4072]: news.tu-graz.ac.at: checking for new newsgroups
Jul 14 12:42:05 lisa fetchnews[4072]: news.tu-graz.ac.at: found 0 new newsgroups
Jul 14 12:42:06 lisa fetchnews[4072]: tu-graz.anzeigen.mitfahren: 1 articles fetched (to 1916), 0 killed
Jul 14 12:42:06 lisa fetchnews[4072]: aconews.univie.ac.at: checking for new newsgroups
Jul 14 12:42:06 lisa fetchnews[4072]: aconews.univie.ac.at: found 0 new newsgroups
Jul 14 12:42:06 lisa fetchnews[4072]: de.comp.sys.mac.misc: 1 articles fetched (to 28225), 0 killed
Jul 14 12:42:07 lisa fetchnews[4072]: linux.debian.ports.powerpc: 1 articles fetched (to 24327), 0 killed
Jul 14 12:42:07 lisa fetchnews[4072]: connecting to news.gmane.org:nntp: cannot connect: Connection refused
Jul 14 12:52:03 lisa fetchnews[4099]: erased stale pid 4072 host lisa.homeunix.net lockfile /var/lock/news/fetchnews.lck
Jul 14 12:52:06 lisa fetchnews[4099]: news.tu-graz.ac.at: checking for new newsgroups
Jul 14 12:52:06 lisa fetchnews[4099]: news.tu-graz.ac.at: found 0 new newsgroups
Jul 14 12:52:06 lisa fetchnews[4099]: aconews.univie.ac.at: checking for new newsgroups
Jul 14 12:52:06 lisa fetchnews[4099]: aconews.univie.ac.at: found 0 new newsgroups
Jul 14 12:52:07 lisa fetchnews[4099]: connecting to news.gmane.org:nntp: cannot connect: Connection refused
Jul 14 13:02:13 lisa fetchnews[4166]: erased stale pid 4099 host lisa.homeunix.net lockfile /var/lock/news/fetchnews.lck
Jul 14 13:02:22 lisa fetchnews[4166]: news.tu-graz.ac.at: checking for new newsgroups
Jul 14 13:02:22 lisa fetchnews[4166]: news.tu-graz.ac.at: found 0 new newsgroups
Jul 14 13:02:23 lisa fetchnews[4166]: aconews.univie.ac.at: checking for new newsgroups
Jul 14 13:02:23 lisa fetchnews[4166]: aconews.univie.ac.at: found 0 new newsgroups
Jul 14 13:02:24 lisa fetchnews[4166]: de.comp.sys.mac.misc: 5 articles fetched (to 28230), 0 killed
Jul 14 13:02:25 lisa fetchnews[4166]: connecting to news.gmane.org:nntp: cannot connect: Connection refused
Jul 14 13:12:04 lisa fetchnews[4231]: news.tu-graz.ac.at: checking for new newsgroups
Jul 14 13:12:04 lisa fetchnews[4231]: news.tu-graz.ac.at: found 0 new newsgroups
Jul 14 13:12:04 lisa fetchnews[4231]: aconews.univie.ac.at: checking for new newsgroups
Jul 14 13:12:04 lisa fetchnews[4231]: aconews.univie.ac.at: found 0 new newsgroups
Jul 14 13:12:04 lisa fetchnews[4231]: at.linux: 1 articles fetched (to 124812), 0 killed
Jul 14 13:12:05 lisa fetchnews[4231]: de.comp.sys.mac.misc: 7 articles fetched (to 28237), 0 killed
Jul 14 13:12:05 lisa fetchnews[4231]: connecting to news.gmane.org:nntp: cannot connect: Connection refused
Jul 14 13:22:01 lisa fetchnews[4275]: news.tu-graz.ac.at: checking for new newsgroups
Jul 14 13:22:01 lisa fetchnews[4275]: news.tu-graz.ac.at: found 0 new newsgroups
Jul 14 13:22:02 lisa fetchnews[4275]: aconews.univie.ac.at: checking for new newsgroups
Jul 14 13:22:02 lisa fetchnews[4275]: aconews.univie.ac.at: found 0 new newsgroups
Jul 14 13:22:02 lisa fetchnews[4275]: de.alt.sysadmin.recovery: 1 articles fetched (to 53074), 0 killed
Jul 14 13:22:02 lisa fetchnews[4275]: de.comp.text.tex: 1 articles fetched (to 88949), 0 killed
Jul 14 13:22:02 lisa fetchnews[4275]: connecting to news.gmane.org:nntp: cannot connect: Connection refused
Jul 14 13:32:01 lisa fetchnews[4310]: news.tu-graz.ac.at: checking for new newsgroups
Jul 14 13:32:01 lisa fetchnews[4310]: news.tu-graz.ac.at: found 0 new newsgroups
Jul 14 13:32:01 lisa fetchnews[4310]: aconews.univie.ac.at: checking for new newsgroups
[...]

I can't see something weird.

20050717:

playing around with "telnet localhost 119" showed that no
tu-graz-newsgroups were found. So the problem ist my leafnode.


strange notification email

From root@lisa.homeunix.net Sun Jul 17 12:35:46 2005
From: Anacron <root@lisa.homeunix.net>
To: root@lisa.homeunix.net
Subject: Anacron job 'cron.daily'
Date: Sun, 17 Jul 2005 12:35:46 +0200

/etc/cron.daily/leafnode:
Some articles posted via Leafnode have been placed in the
failed.postings directory.  This typically means that they were
rejected by one or more of the upstream news servers.  Examining the
news log files should provide some indication as to why.

To retry the posting move the queue files into /var/spool/news/out.going
and run /usr/sbin/fetchnews.

/etc/cron.daily/leafnode: line 48: /usr/bin/newsq: No such file or directory
run-parts: /etc/cron.daily/leafnode exited with return code 127


leafnode doesnt seems to be installed at all!!!

lisa:~# apt-get install leafnode
Reading Package Lists... Done
Building Dependency Tree... Done
The following NEW packages will be installed:
  leafnode
0 upgraded, 1 newly installed, 0 to remove and 1384 not upgraded.
Need to get 317kB of archives.
After unpacking 881kB of additional disk space will be used.
Get:1 http://ftp.tu-graz.ac.at unstable/main leafnode 1.11.3.rel-2 [317kB]
Fetched 317kB in 0s (854kB/s) 
Reading package fields... Done
Reading package status... Done
Retrieving bug reports... Done    
Preconfiguring packages ...
Selecting previously deselected package leafnode.
(Reading database ... 172414 files and directories currently installed.)
Unpacking leafnode (from .../leafnode_1.11.3.rel-2_i386.deb) ...
Setting up leafnode (1.11.3.rel-2) ...
Installing new version of config file /etc/logcheck/ignore.d.paranoid/leafnode ...
Installing new version of config file /etc/logcheck/ignore.d.server/leafnode ...

lisa:~# 

Non-tu-graz-groups are working properly (getting postings and active
posting).

Still no tu-graz.* newsgroups.

removing leafnode

lisa:/etc/cron.d# dpkg -r leafnode
(Reading database ... 172454 files and directories currently installed.)
Removing leafnode ...

WARNING!!!!!! /etc/inetd.conf contains multiple entries for 
the `.*leafnode.*' service. You're about to remove these entries.
Do you want to continue? [n] y

Ok, I'll continue ...
lisa:/etc/cron.d# 

re-installing

lisa:/etc/cron.d# apt-get install leafnode 
Reading Package Lists... Done
Building Dependency Tree... Done
The following NEW packages will be installed:
  leafnode
0 upgraded, 1 newly installed, 0 to remove and 1384 not upgraded.
Need to get 0B/317kB of archives.
After unpacking 881kB of additional disk space will be used.
Reading package fields... Done
Reading package status... Done
Retrieving bug reports... Done    
Preconfiguring packages ...
Selecting previously deselected package leafnode.
(Reading database ... 172415 files and directories currently installed.)
Unpacking leafnode (from .../leafnode_1.11.3.rel-2_i386.deb) ...
Setting up leafnode (1.11.3.rel-2) ...

lisa:/etc/cron.d# 

after reinstalling, more newsgroups vanished!

[...]
/home/vk/.slrn/scoring has expired score on line 7046
/home/vk/.slrn/scoring has expired score on line 7059
/home/vk/.slrn/scoring has expired score on line 7072
/home/vk/.slrn/scoring has expired score on line 7099
/home/vk/.slrn/scoring has expired score on line 7112
/home/vk/.slrn/scoring has expired score on line 7125
/home/vk/.slrn/scoring has expired score on line 7151
Using newsrc file /home/vk/.newsrc.localhost for server localhost.
Connecting to host localhost ...
Connected to host.  Posting ok.
Checking for new groups ...
Checking news via active file ...
Group gmane.comp.handhelds.zaurus.announce is bogus - ignoring it.
Group de.org.ccc is bogus - ignoring it.
Group alt.sysadmin.recovery is bogus - ignoring it.
Group gmane.comp.gnu.screen.user is bogus - ignoring it.
Group gmane.comp.gnu.screen is bogus - ignoring it.
Group gmane.mail.mutt.user is bogus - ignoring it.
Group alt.security.pgp is bogus - ignoring it.
Group gmane.comp.encryption.gpg.user is bogus - ignoring it.
Group comp.sys.palmtops is bogus - ignoring it.
Group gmane.comp.handhelds.general is bogus - ignoring it.
Group gmane.comp.handhelds.openzaurus.user is bogus - ignoring it.
Group gmane.comp.handhelds.opie is bogus - ignoring it.
Group gmane.comp.handhelds.zaurus.general is bogus - ignoring it.
Group gmane.comp.security.linux is bogus - ignoring it.
Group gmane.linux.debian.user.testing is bogus - ignoring it.
Group comp.graphics.apps.gimp is bogus - ignoring it.
Group comp.lang.ruby is bogus - ignoring it.
Group comp.sys.handhelds is bogus - ignoring it.
Group gmane.linux.file-systems.hfsplus.cvs is bogus - ignoring it.
Group de.comp.os.unix.linux.hardware is bogus - ignoring it.
Group gmane.linux.linux-wlan.user is bogus - ignoring it.
Group de.rec.tv.lindenstrasse is bogus - ignoring it.
Group gmane.network.leafnode is bogus - ignoring it.
Group de.alt.folklore.urban-legends is bogus - ignoring it.
[...starting slrn...]

Leafnode sucks!

Remaining groups in slrn

     157  at.gesellschaft.humor              Sachen zum Lachen.
       4  at.usenet.schmankerl               Das Beste aus dem oesterreichischen Usenet. (Moderated)
     285  de.alt.netdigest                   Aktueller und klassischer Humor aus allen Netzen und IRC.
   43884  de.alt.sysadmin.recovery           Alles, was Systembetreuer aufmuntert.
     305  de.rec.film.kritiken               Filmkritiken. <tln@zedat.fu-berlin.de> (Moderated)
       6  gmane.mail.mutt.announce           The MUTT announce mailing list (Moderated)
     228  comp.os.linux.powerpc              Linux systems running on PowerPC microprocessors.
       4  gmane.comp.handhelds.openzaurus.sofOpenZaurus Software/Application Discussion (Moderated)
     107  gmane.comp.handhelds.tungsten-t    The discussion covers all things pertaining to any of Pal
     630  de.comp.os.unix.shell              Shell, Skripte und Tools.

Hm. Thinking of replacing leafnode with something other like inn ...

funny message in /var/log/news/news.err

lisa:/var/log/news# o news.err
Jul 17 13:11:17 lisa leafnode[3406]: Groupinfo file possibly truncated or damaged: 24hoursupport.helpd
esk^Iy^I1^I1^I0^Ino
Jul 17 13:11:28 lisa last message repeated 5 times
news.err (END) 

/var/log/news/news.notice

lisa:/var/log/news# o news.notice
Jul 17 12:42:04 lisa fetchnews[2768]: news.tu-graz.ac.at: checking for new newsgroups
Jul 17 12:42:04 lisa fetchnews[2768]: news.tu-graz.ac.at: found 0 new newsgroups
Jul 17 12:42:04 lisa fetchnews[2768]: aconews.univie.ac.at: checking for new newsgroups
Jul 17 12:42:04 lisa fetchnews[2768]: aconews.univie.ac.at: found 0 new newsgroups
Jul 17 12:42:05 lisa fetchnews[2768]: de.talk.liebesakt: 1 articles fetched (to 6590), 0 killed
Jul 17 12:42:05 lisa fetchnews[2768]: news.gmane.org: checking for new newsgroups
Jul 17 12:42:05 lisa fetchnews[2768]: news.gmane.org: found 0 new newsgroups
Jul 17 12:52:01 lisa fetchnews[2999]: news.tu-graz.ac.at: checking for new newsgroups
Jul 17 12:52:01 lisa fetchnews[2999]: news.tu-graz.ac.at: found 0 new newsgroups
Jul 17 12:52:01 lisa fetchnews[2999]: aconews.univie.ac.at: checking for new newsgroups
Jul 17 12:52:01 lisa fetchnews[2999]: aconews.univie.ac.at: found 0 new newsgroups
Jul 17 12:52:02 lisa fetchnews[2999]: de.comp.sys.mac.misc: 1 articles fetched (to 28469), 0 killed
Jul 17 12:52:02 lisa fetchnews[2999]: de.comp.text.tex: 2 articles fetched (to 89058), 0 killed
Jul 17 12:52:02 lisa fetchnews[2999]: de.talk.liebesakt: 2 articles fetched (to 6592), 0 killed
Jul 17 12:52:02 lisa fetchnews[2999]: news.gmane.org: checking for new newsgroups
Jul 17 12:52:02 lisa fetchnews[2999]: news.gmane.org: found 0 new newsgroups
Jul 17 13:02:02 lisa fetchnews[3116]: news.tu-graz.ac.at: checking for new newsgroups
Jul 17 13:02:02 lisa fetchnews[3116]: news.tu-graz.ac.at: found 0 new newsgroups
Jul 17 13:02:02 lisa fetchnews[3116]: aconews.univie.ac.at: checking for new newsgroups
Jul 17 13:02:02 lisa fetchnews[3116]: aconews.univie.ac.at: found 0 new newsgroups
Jul 17 13:02:02 lisa fetchnews[3116]: de.comp.text.tex: 1 articles fetched (to 89059), 0 killed
Jul 17 13:02:03 lisa fetchnews[3116]: news.gmane.org: checking for new newsgroups
Jul 17 13:02:03 lisa fetchnews[3116]: news.gmane.org: found 0 new newsgroups
Jul 17 13:08:48 lisa leafnode[3199]: Warning: premature EOF in client input.
Jul 17 13:11:17 lisa leafnode[3406]: Groupinfo file possibly truncated or damaged: 24hoursupport.helpd
esk^Iy^I1^I1^I0^Ino
Jul 17 13:11:28 lisa last message repeated 5 times
Jul 17 13:12:02 lisa fetchnews[3410]: news.tu-graz.ac.at: checking for new newsgroups
Jul 17 13:12:02 lisa fetchnews[3410]: news.tu-graz.ac.at: found 0 new newsgroups
Jul 17 13:12:02 lisa fetchnews[3410]: aconews.univie.ac.at: checking for new newsgroups
Jul 17 13:12:02 lisa fetchnews[3410]: aconews.univie.ac.at: found 0 new newsgroups
Jul 17 13:12:02 lisa fetchnews[3410]: de.alt.sysadmin.recovery: 1 articles fetched (to 53371), 0 kille
d
Jul 17 13:12:03 lisa fetchnews[3410]: news.gmane.org: checking for new newsgroups
Jul 17 13:12:03 lisa fetchnews[3410]: news.gmane.org: found 0 new newsgroups
lisa:/var/log/news# 

Doing some google-research for alternatives to leafnode. Found Noffle,
CNews, and INN and giving Noffle a try.
comment this entry
go to top of page

WindowsXP: changing network configurations

solved at 20050402
Adding new LAN-configuration: not possible!

Alternative Network Configuration is only visible, if first one is DHCP.

Toshiba-Tool does not seem to be a solution either or I can't find it.

Help does not help.

Solution:

http://is-it-true.org/nt/nt2000/utips/utips46.shtml

you need to plug your laptop into different networks, you can save and
restore the appropriate network configuration using the netsh.exe
utility which ships with W2K and XP. When you have your laptop
correctly configured for your office network, you can save the network
configuration for later restoration.

netsh -c interface dump > c:\configs\officeinterface.txt 

Now lets say you take it home and reconfigure it correctly for you
home network. To save you home network configuration for later use:

netsh -c interface dump > c:\configs\homeinterface.txt 

OK. Now you take the laptop back to the office and you need to
reconfigure for the office environment: nic address, wins, gateway
address... Use the following command to restore your office network
interface:

netsh -f c:\configs\officeinterface.txt 

At end of day, you take it home. To setup for home, run:

netsh -f c:\configs\homeinterface.txt
comment this entry
go to top of page

Excel: Sum with WHERE-statement: SUMIF()

solved at 20050322
Newsgroups: tu-graz.software
From: Karl Voit <devnull@Karl-Voit.at>
Subject: Excel: "Summe mit WHERE-Klausel"
Date: Mon, 21 Mar 2005 16:34:59 +0100
Message-ID: <slrnd3tqd3.582.devnull@lisa.homeunix.net>

,----[ Ich habe folgende Daten ]
| Wurst    5
| Käse     2
| Schinken 1
| Wurst    2
| Wurst    7
| Käse     4
`----

Davon will ich die jeweiligen Summen zu den Produkten ermitteln:

Wurst     14 (=5+2+7)
Schinken   1
Käse       6 (=2+4)

Ich habe mich einwenig mit SVERWEIS und SUMME herumgespielt. Konnte
aber keine elegante Lösung finden.

From: Joerg Spoettl <spoejoe@sbox.tugraz.at>
Newsgroups: tu-graz.software
Subject: Re: Excel: "Summe mit WHERE-Klausel"
Date: Mon, 21 Mar 2005 17:27:19 +0100
Message-ID: <1wka4d6b6ocxj$.by28jv3b2p07.dlg@40tude.net>

Am Mon, 21 Mar 2005 17:01:38 +0100 schrieb Joachim Reiter:
>
> =SUMMEWENN(A1:A6;"Wurst";B1:B6) ergibt bei mir 14

Soweit so gut. Nur dass die Wurst ja nicht in der Formel zu stehen braucht,
sondern ihrerseits referenziert werden kann.
=SUMMEWENN(A1:A6;A20;B1:B6) wenn die Formel in B20 steht z.B.
comment this entry
go to top of page

OS X iSync and Palm Tungsten T3 over bluetooth

solved at 20050110
Bluetooth:

http://www.inluminent.com/weblog/archives/2003/03/10/

Setting up a Palm Tungsten T to sync with OS X via Bluetooth 

Getting a Palm Tungsten T to sync via Bluetooth to sync with a Mac
isn't the most intuitive process in the world, so I'm spelling out the
steps for those looking to sync a Palm Tungsten T with iCal (calendar
and todo info) and Address Book on Mac OS X via Bluetooth:

1. Install Palm Desktop Software 4.0 or higher (should come via a CD
   in your Palm box.

2. Install iSync and then the iSync Palm Conduit.

3. Goto the "connections" button in the "Prefs" application on your
   Palm Device. Add a new "connection" to connect to a PC using
   Bluetooth. Name it what you'd like to name it (I called mine
   'bluetooth to iBook'.)

4. Go to the "HotSync" app on your Palm and sync.

Finding the "add a connection option to the Hotsync options on the
Palm" (#3 above) took me the longest time to figure out, and these
instructions aren't exactly the most detailed, but will hopefully get
you to the right places when you can't figure out what else to do...

So I made such a connection in the preference-dialog to sync with a PC
over bluetooth.

In the bluetooth-dialoge, I could search for BT devices and pair the
two devices using a common PIN.

Syncing:

After installing, Palm HotSync wanted to sync with Palm Desktop
instead of iSync (iCal & Adressbook).

In the HotSync-tool, I had to set all conduits to "do nothing" AND
"set this as default". Only the iSync-conduit had to be activated!

There, in the conduit dialoge of iSync-conduit, there was the button
to let the palm appear in iSync.

After that, iSync was capable of syncing with the Tungsten via
Bluetooth.
comment this entry
go to top of page

connect Tungsten T3 with Linux to replace my old Palm m100

solved at 20050109
modprobe visor
rm /dev/pilot
ln -s /dev/ttyUSB1 /dev/pilot
chmod o+r+w /dev/ttyUSB1

-> jpilot can connect and pilot-xfer install

How did I handle the init phase?

Pilot needs an ID

install-user -p /dev/ttyUSB1 -u "Karl Voit" -i 9370

(9370 was my ID on the m100 too)

Execute "Restore Palm" in J-Pilot

-> everything works fine

Installing Keyring and its libraries, Vexed v1.3a and feeling happy.
comment this entry
go to top of page

S55 connecting for Bluetooth-Emailnotifier

solved at 20050108
Message-ID: <5o95b2-qqb.ln1@ID-104681.user.uni-berlin.de>
gnokii --playringtone nokiatune.mid

lisa:~# apt-get -su install gnokii
Reading Package Lists... Done
Building Dependency Tree... Done
The following extra packages will be installed:
  timeout
The following NEW packages will be installed:
  gnokii timeout
0 upgraded, 2 newly installed, 0 to remove and 1284 not upgraded.
Inst timeout (1.11-6.1 Debian:unstable)
Inst gnokii (0.6.3-3 Debian:unstable)
Conf timeout (1.11-6.1 Debian:unstable)
Conf gnokii (0.6.3-3 Debian:unstable)
lisa:~# 

Kernel module for BT is missing. Updating to newest Debian kernel
kernel-image-2.4.27-2-k6 (see seperate entry).

[rebooting new kernel]

[inserting bluetooth-dongle]

which kernelmodules are loaded

lisa:~# lsmod >20050108_lsmod_vor_BT
lisa:~# lsmod >20050108_lsmod_nach_BT
lisa:~# diff 20050108_lsmod_nach_BT 20050108_lsmod_vor_BT
2,3d1
< hci_usb                 8120   0  (unused)
< bluez                  27556   1  [hci_usb]
36c34
< usbcore                58252   1  [hci_usb usb-storage usbkbd usbmouse hid usb-ohci]
---
> usbcore                58252   1  [usb-storage usbkbd usbmouse hid usb-ohci]
lisa:~# 

Jan  8 17:41:12 lisa kernel: hub.c: new USB device 00:02.0-2.1, assigned address 6
Jan  8 17:41:12 lisa kernel: usb.c: USB device 6 (vend/prod 0xa12/0x1) is not claimed by any active driver.
Jan  8 17:41:17 lisa kernel: BlueZ Core ver 2.4 Copyright (C) 2000,2001 Qualcomm Inc
Jan  8 17:41:17 lisa kernel: Written 2000,2001 by Maxim Krasnyansky <maxk@qualcomm.com>
Jan  8 17:41:17 lisa insmod: insmod: a module named bluez already exists
Jan  8 17:41:17 lisa insmod: insmod: insmod /lib/modules/2.4.27-2-k6/kernel/net/bluetooth/bluez.o failed
Jan  8 17:41:17 lisa insmod: insmod: insmod hci_usb failed
Jan  8 17:41:17 lisa usb.agent[1939]: ... can't load module hci_usb
Jan  8 17:41:17 lisa usb.agent[1939]: missing kernel or user mode driver hci_usb
Jan  8 17:41:17 lisa kernel: BlueZ HCI USB driver ver 2.7 Copyright (C) 2000,2001 Qualcomm Inc
Jan  8 17:41:17 lisa kernel: Written 2000,2001 by Maxim Krasnyansky <maxk@qualcomm.com>
Jan  8 17:41:17 lisa kernel: usb.c: registered new driver hci_usb
Jan  8 17:41:17 lisa insmod: insmod: a module named hci_usb already exists
Jan  8 17:41:17 lisa insmod: insmod: insmod /lib/modules/2.4.27-2-k6/kernel/drivers/bluetooth/hci_usb.o failed
Jan  8 17:41:17 lisa insmod: insmod: insmod hci_usb failed
Jan  8 17:41:17 lisa usb.agent[1941]: ... can't load module hci_usb
Jan  8 17:41:17 lisa usb.agent[1941]: missing kernel or user mode driver hci_usb

not enough rights as user

vk@lisa:~$ gnokii --getringtonelist
GNOKII Version 0.6.3
Couldn't open /home/vk/.gnokiirc config file,
Lockfile /var/lock/LCK..ttyS0 is stale. Overriding it..
Overriding failed, please check the permissions.
Cannot lock device.
Lock file error. Exiting.
vk@lisa:~$

second try as root

lisa:/var/log# gnokii --getringtonelist
GNOKII Version 0.6.3
Couldn't open /root/.gnokiirc config file,
Lockfile /var/lock/LCK..ttyS0 is stale. Overriding it..
Timeout: aborting command ``/usr/lib/gnokii/gnokii'' with signal 9
/usr/bin/gnokii: line 16:  2250 Killed                  timeout $TIMEOUT $BINARY "$@"
lisa:/var/log#

-> you have to get a rc-file! /usr/share/doc/gnokii/Docs/sample


http://linuxgazette.net/109/oregan3.html

The first thing you'll need to do is install Bluez. You may need to
patch your kernel, but I didn't, so I'm not going to go into that. As
well as whatever 'libbluez' packages your distro has, you'll also need
the 'bluez-utils', 'bluez-bluefw', and 'bluez-pin' packages (though
the 'bluez-pin' package will probably not be necessary if you're using
KDE).

To transfer files to and from your phone, you'll also need
OpenOBEX. Even if you never use the command line, the libraries
supplied by this project are used by both GNOME and KDE.

ObexFTP is really useful from the command line, and from scripts. I
have a short script that grabs what my phone is seeing using Gammu and
ObexFTP.

install bluez-utils

lisa:/usr/share/doc/gnokii/Docs/sample# apt-get install bluez-utils
Reading Package Lists... Done
Building Dependency Tree... Done
The following extra packages will be installed:
  bluez-pin dbus-1 dbus-glib-1 libbluetooth1 libexpat1 libexpat1-dev
Suggested packages:
  bluez-firmware
The following NEW packages will be installed:
  bluez-pin bluez-utils dbus-1 dbus-glib-1
The following packages will be upgraded:
  libbluetooth1 libexpat1 libexpat1-dev
3 upgraded, 4 newly installed, 0 to remove and 1281 not upgraded.
Need to get 784kB of archives.
After unpacking 1851kB of additional disk space will be used.
Do you want to continue? [Y/n]

lisa:~# hciconfig
hci0:   Type: USB
        BD Address: 00:00:00:00:00:00 ACL MTU: 0:0  SCO MTU: 0:0
        DOWN 
        RX bytes:0 acl:0 sco:0 events:0 errors:0
        TX bytes:0 acl:0 sco:0 commands:0 errors:0

lisa:~# hciconfig hci0 down && hciconfig hci0 up
lisa:~# hciconfig
hci0:   Type: USB
        BD Address: 00:09:DD:10:3F:31 ACL MTU: 192:8  SCO MTU: 64:8
        UP RUNNING PSCAN ISCAN 
        RX bytes:204 acl:0 sco:0 events:27 errors:0
        TX bytes:599 acl:0 sco:0 commands:26 errors:0

lisa:~#

no connection

lisa:~# hcitool info 00:09:DD:10:3F:31
Device is not available or not connected.
lisa:~# hcitool inq
Inquiring ...
lisa:~# hcitool scan                  
Scanning ...
lisa:~# l2ping 00:09:DD:10:3F:31
Can't connect.: No route to host
lisa:~# 

-> activate "visibe to all" on cellphone (Siemens S55)

first connection

lisa:~# hcitool scan
Scanning ...
        00:01:E3:31:B8:C6       Handy
lisa:~# 

Bingo!

can ping my cellphone

lisa:~# l2ping 00:01:E3:31:B8:C6
Ping: 00:01:E3:31:B8:C6 from 00:09:DD:10:3F:31 (data size 20) ...
0 bytes from 00:01:E3:31:B8:C6 id 200 time 34.89ms
0 bytes from 00:01:E3:31:B8:C6 id 201 time 33.16ms
0 bytes from 00:01:E3:31:B8:C6 id 202 time 40.03ms
0 bytes from 00:01:E3:31:B8:C6 id 203 time 33.83ms
0 bytes from 00:01:E3:31:B8:C6 id 204 time 32.64ms
5 sent, 5 received, 0% loss
lisa:~# 

hcitool shows informations about my cellphone

lisa:~# hcitool info 00:01:E3:31:B8:C6
Requesting information ...
        BD Address:  00:01:E3:31:B8:C6
        Device Name: Handy
        LMP Version: 1.1 (0x1) LMP Subversion: 0x555
        Manufacturer: Infineon Technologies AG (9)
        Features: 0xef 0xea 0x19 0x00 0x00 0x00 0x00 0x00
                <3-slot packets> <5-slot packets> <encryption> <slot offset> 
                <role switch> <hold mode> <sniff mode> <RSSI> <SCO link> 
                <HV3 packets> <u-law log> <A-law log> <CVSD> <transparent SCO> 
lisa:~# 

http://linuxgazette.net/109/oregan3.html

"hcid, the daemon that provides the above, requires D-Bus to be
running; dbus-daemon-1 --system works for me. You also need to have
sdpd running: this lets other devices know which services your
computer provides."

check running dbus

lisa:~# any dbus
message   2964  0.0  0.2  2068  952 ?        S    18:36   0:00 /usr/bin/dbus-daemon-1 --system
lisa:~#

wrote ~/.gnokiirc

lisa:/etc/bluetooth# gnokii --identify
GNOKII Version 0.6.3
Telephone interface init failed: Model specified isn't known/supported.
Quitting.
lisa:/etc/bluetooth#

-> wrote "model = S55"
testing "model = AT"

lisa:/etc/bluetooth# gnokii --identify
GNOKII Version 0.6.3
Can't connect: No route to host
Telephone interface init failed: Command failed.
Quitting.
lisa:/etc/bluetooth#

lisa:/etc/bluetooth# l2ping 00:09:DD:10:3F:31
Can't connect.: No route to host
lisa:/etc/bluetooth# 

lisa:/etc/bluetooth# hcitool inq
Inquiring ...
        00:01:E3:31:B8:C6       clock offset: 0x7eee    class: 0x720204
lisa:/etc/bluetooth# hcitool scan
Scanning ...
        00:01:E3:31:B8:C6       Handy
lisa:/etc/bluetooth#

-> wrote new ID string to .gnokiirc

"gnokii --identify" -> cellphone asks for PIN! :-)
... and a window appears on my desk, asking for the PIN too.

SUCCESS!

lisa:/etc/bluetooth# gnokii --identify
GNOKII Version 0.6.3
Lockfile /var/lock/LCK..00:01:E3:31:B8:C6 is stale. Overriding it..
IMEI         : 351083538550428
Manufacturer : SIEMENS
Model        : S55
Revision     : 16
lisa:/etc/bluetooth#

can't get list of ringtones :-(

lisa:~# gnokii --getringtonelist
GNOKII Version 0.6.3
Failed to get the list of ringtones
lisa:~#

lisa:~# gnokii --getdisplaystatus
GNOKII Version 0.6.3
lisa:~# gnokii --displayoutput
GNOKII Version 0.6.3
Error: Command called isn't implemented in model.
lisa:~# gnokii --playringtone Canon
GNOKII Version 0.6.3
Failed to load ringtone: Command failed.
lisa:~#

playringtone seems not to be implemented for AT-cellphones.
comment this entry
go to top of page

scp: Troubles when copying files with special characters to vfat32

solved at 20041210
scp: /mnt/usbstick/music//Worf/Pink Floyd/Is There Anybody Out There/24 MC:Atmos.ogg: Invalid argument

Characters, that cause problems:

<>"&!:

Workaround: tar -cf - local_directory | ssh user@other_computer tar -xf - -C /dest/ination/dir/
(from: at.linux)

Reason: vfat32 cannot handle those characters -> can not create those files
comment this entry
go to top of page

Performance of sftp, fish and scp in comparison

solved at 20041031
Host A: Debian GNU/Linux sid x86, K6-2+ 450MHz, 100MBit/s

Host B: Debian GNU/Linux sid PPC, PowerPC G3 600MHz, 100MBit/s

Connected using a 100MBit/s-Switch (WLINX SW-005CM) with no other
computers attached to it.

Speed and %CPU is determined using gkrellm2, the computers weren't
doing anything else that matters.

scp from A to B

approx. 3.1 MB/s
CPUs: A: 100%, B: 70%
-> bottleneck is CPU A

fish from A to B (Konqueror v3.2.3)

approx. 600 kB/s
CPUs: A: 60%, B: 20%

sftp from A to B (Konqueror v3.2.3)

approx. 800 kB/s
CPUs: A: 50%, B: 20%

Result:

Konqueror provides a decent user inferface that abstracts the border
between computers using the ssh-protocol. The user does not have to
handle command line options and she gets the directory listings as
working on the local host.

When it comes to performance, scp is working far more faster than the
fish- or the sftp-protocol that konqueror has implemented.

For myself, I'll start using the scp-protocol more often for small
file transfers and I'll use scp (as usual) for big files when the time
matters.
comment this entry
go to top of page

build: evolution2

solved at 20041025
http://gnome.org/projects/evolution/stable.shtml

libgnomecanvas2-dev libbonobo-dev libbonoboui2-dev gnome-icon-theme orbit libsoup2.2-dev evolution-data-server gtkhtml3.2 gnome-spell
gal?

root@vifpc80:~# apt-get -su install libgnomecanvas2-dev libbonobo2-dev gnome-icon-theme orbit
      libsoup2.2-dev evolution-data-server gtkhtml3.2 gnome-spell libgtk2.0-dev libpango1.0-dev libpango1.0-0
[...]
gnome-icon-theme is already the newest version.
evolution-data-server is already the newest version.
gnome-spell is already the newest version.
libpango1.0-0 is already the newest version.
[...]
The following packages have unmet dependencies:
  libpango1.0-dev: Depends: libpango1.0-0 (= 1.4.1-4) but 1.6.0-1 is to be installed
E: Broken packages
root@vifpc80:~#

Aaargh!

Forget it.

20041025: evolution2 (binary) was avaliable in Debian/sid and could be
installed without problems.


maggie:~# backup2l
backup2l v1.3 by Gundolf Kiefer

Tue Oct 26 23:33:40 CEST 2004

Running pre-backup procedure...
writing dpkg selections to /root/dpkg-selections.log...

Removing old backups...

Preparing differential level-3 backup <maggie.1003> based on <maggie.1002>...
1299 / 45388 file(s), 124 / 4514 dir(s), 46.1MB / 3.7GB (uncompressed)
skipping: 4391 file(s), 487 dir(s), 1.5GB (uncompressed)

Creating archive using 'DRIVER_TAR_GZ'...
Checking TOC of archive file (< real file, > archive entry)...
Creating check file for <maggie.1003>...

Running post-backup procedure...
post-backup: nothing to do

Tue Oct 26 23:35:06 CEST 2004


Summary
=======

Backup Date Time | Size | Skipped Files+D | New Obs. | Err.
------------------------------------------------------------------------------
maggie.1 2004-10-04 08:30 | 2515.0M | 4571 48231 |48231 0 | 4
maggie.1001 2004-10-04 13:34 | 2.7M | 4571 48245 | 45 31 | 0
maggie.1002 2004-10-13 00:34 | 367.3M | 4693 48880 | 1306 671 | 0
maggie.1003 2004-10-26 23:34 | 19.9M | 4878 49902 | 1423 401 | 0

Filesystem Size Used Avail Use% Mounted on
/dev/sda5 146G 145G 1.3G 100% /data
maggie:~#
comment this entry
go to top of page

inst: evolution 2.0

solved at 20041025

sources.list

[...]
## http://www.linuxforen.de/forums/showthread.php?t=152372
deb ftp://ftp.us.debian.org/debian/ experimental main
deb http://pkg-gnome.alioth.debian.org/debian experimental main
[...]

root@vifpc80:~# apt-get -t experimental install evolution
Reading Package Lists... Done
Building Dependency Tree... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.

Since you only requested a single operation it is extremely likely that
the package is simply not installable and a bug report against
that package should be filed.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
  evolution: Depends: libebook8 (>= 1.0.2) but 1.0.1-1 is to be installed
             Depends: libecal6 (>= 1.0.2) but 1.0.1-1 is to be installed
             Depends: libedataserver3 (>= 1.0.2) but 1.0.1-1 is to be installed
             Depends: libegroupwise6 (>= 1.0.2) but it is not installable
E: Broken packages
root@vifpc80:~#

-> at.linux posting
-> problems with packages -> wait for a fix

meanwhile: inst: evolution1.?

root@vifpc80:~# apt-get install evolution gnome-spell
Reading Package Lists... Done
Building Dependency Tree... Done
The following extra packages will be installed:
  aspell aspell-bin aspell-en gconf2 gnome-icon-theme gnome-keyring gnome-mime-data gtkhtml3.0 libasn1-6-heimdal libbonobo2-0 libbonobo2-common
  libbonoboui2-0 libbonoboui2-common libgail-common libgail17 libgal2.0-6 libgal2.0-common libgconf2-4 libgnome-keyring0 libgnome-pilot2 libgnome2-0
  libgnome2-common libgnomecanvas2-0 libgnomecanvas2-common libgnomecups1.0-1 libgnomeprint2.2-0 libgnomeprint2.2-data libgnomeprintui2.2-0
  libgnomeprintui2.2-common libgnomeui-0 libgnomeui-common libgnomevfs2-0 libgnomevfs2-common libgssapi1-heimdal libgtkhtml3.0-4 libidl0
  libkrb-1-kerberos4kth libkrb5-17-heimdal libnspr4 libnss3 liborbit2 libpisync0 libroken16-kerberos4kth libsoup2.0-0 shared-mime-info
Suggested packages:
  aspell-doc spellutils ca-certificates gnome-pilot
Recommended packages:
  mozilla-psm gnome-pilot-conduits gnome-desktop-data spamassassin
The following NEW packages will be installed:
  aspell aspell-bin aspell-en evolution gconf2 gnome-icon-theme gnome-keyring gnome-mime-data gnome-spell gtkhtml3.0 libasn1-6-heimdal libbonobo2-0
  libbonobo2-common libbonoboui2-0 libbonoboui2-common libgail-common libgail17 libgal2.0-6 libgal2.0-common libgconf2-4 libgnome-keyring0
  libgnome-pilot2 libgnome2-0 libgnome2-common libgnomecanvas2-0 libgnomecanvas2-common libgnomecups1.0-1 libgnomeprint2.2-0 libgnomeprint2.2-data
  libgnomeprintui2.2-0 libgnomeprintui2.2-common libgnomeui-0 libgnomeui-common libgnomevfs2-0 libgnomevfs2-common libgssapi1-heimdal libgtkhtml3.0-4
  libidl0 libkrb-1-kerberos4kth libkrb5-17-heimdal libnspr4 libnss3 liborbit2 libpisync0 libroken16-kerberos4kth libsoup2.0-0 shared-mime-info
0 upgraded, 47 newly installed, 0 to remove and 17 not upgraded.
Need to get 25.2MB of archives.
After unpacking 83.9MB of additional disk space will be used.
Do you want to continue? [Y/n]

... no exchange-compatibility!

root@vifpc80:~# apt-get install evolution-exchange evolution-data-server libgconf2-4
Reading Package Lists... Done
Building Dependency Tree... Done
libgconf2-4 is already the newest version.
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
  evolution-exchange: Depends: evolution1.5 (>= 1.5.94.1) but it is not going to be installed
                      Depends: libgconf2-4 (>= 2.7.92) but 2.6.4-2 is to be installed
                      Depends: libgnomevfs2-0 (>= 2.7.91) but 2.6.2-2 is to be installed
                      Depends: libpango1.0-0 (>= 1.5.2) but 1.4.1-4 is to be installed
E: Broken packages
root@vifpc80:~# 

oot@vifpc80:~# apt-get -t experimental install libgconf2-4 libpango1.0-0 ttf-kochi-mincho ttf-thryomanes ttf-baekmuk ttf-arphic-gbsn00lp ttf-arphic-bsmi00lp ttf-arphic-gkai00mp ttf-arphic-bkai00mp
Reading Package Lists... Done
Building Dependency Tree... Done
The following extra packages will be installed:
  gconf2 libpango1.0-common
Suggested packages:
  tfm-arphic-bkai00mp tfm-arphic-bsmi00lp tfm-arphic-gbsn00lp tfm-arphic-gkai00mp
The following NEW packages will be installed:
  ttf-arphic-bkai00mp ttf-arphic-bsmi00lp ttf-arphic-gbsn00lp ttf-arphic-gkai00mp ttf-baekmuk ttf-kochi-mincho ttf-thryomanes
The following packages will be upgraded:
  gconf2 libgconf2-4 libpango1.0-0 libpango1.0-common
4 upgraded, 7 newly installed, 0 to remove and 56 not upgraded.
Need to get 35.8MB of archives.
After unpacking 72.7MB of additional disk space will be used.
Do you want to continue? [Y/n]

apt-get -t experimental install libgnomevfs2-0

root@vifpc80:~# apt-get install evolution-exchange

The following packages have unmet dependencies:
  evolution-exchange: Depends: evolution1.5 (>= 1.5.94.1) but it is not going to be installed
E: Broken packages
root@vifpc80:~#

... evolution-exchange requires evolution1.5

root@vifpc80:~# apt-get install evolution-exchange evolution1.5

The following packages have unmet dependencies:
  evolution-exchange: Depends: evolution-data-server (>= 0.0.99) but it is not going to be installed
  evolution1.5: Depends: evolution-data-server (>= 0.0.99) but it is not going to be installed
                Depends: evolution-data-server (>= 0.0.99) but it is not going to be installed
E: Broken packages
root@vifpc80:~#

... but adding evolution1.5 results in a conflict!

root@vifpc80:~# apt-get -t experimental install evolution-data-server
Reading Package Lists... Done
Building Dependency Tree... Done
The following extra packages will be installed:
  libebook8 libecal6 libedata-book1 libedata-cal5 libedataserver3 libegroupwise4 libsoup2.2-7
The following NEW packages will be installed:
  evolution-data-server libebook8 libecal6 libedata-book1 libedata-cal5 libedataserver3 libegroupwise4 libsoup2.2-7
0 upgraded, 8 newly installed, 0 to remove and 54 not upgraded.
Need to get 1309kB of archives.
After unpacking 6685kB of additional disk space will be used.
Do you want to continue? [Y/n]

evolution-data-server is installed for now.
but still no exchange-option :-(

oot@vifpc80:~# apt-get install evolution-exchange

The following packages have unmet dependencies:
  evolution-exchange: Depends: evolution1.5 (>= 1.5.94.1) but it is not going to be installed
E: Broken packages
root@vifpc80:~# 

ok, it wants evolution1.5 instead of the currently used evolution1.4

root@vifpc80:~# apt-get -t experimental install evolution1.5

The following packages have unmet dependencies:
  evolution1.5: Depends: evolution-data-server (>= 0.0.99) but it is not going to be installed
                Depends: evolution-data-server (>= 0.0.99) but it is not going to be installed
E: Broken packages
root@vifpc80:~# 

evolution1.5 has a conflict with the evolution-data-server which should be installed above!

Forget it.

20041025: evolution2 (binary) was avaliable in Debian sid and could be
installed properly.
comment this entry
go to top of page

burning an audio-cd using a mp3 and cue-file

solved at 20041017
cue2toc
cdrdao write --device 1,1,0 --driver generic-mmc album.toc

WARNING: Track 20: Length is shorter than 4 seconds.
WARNING: Track 26: Length is shorter than 4 seconds.
ERROR: The toc check function detected at least one warning.
ERROR: If you record this toc the resulting CD might be unusable
ERROR: or the recording process might abort with error.
ERROR: Use option --force to ignore the warnings.

OK, the album HAS that short tracks on it; using force:

WARNING: Track 20: Length is shorter than 4 seconds.
WARNING: Track 26: Length is shorter than 4 seconds.
Using libscg version 'schily-0.8'

1,1,0: HL-DT-ST DVDRAM GSA-4040B        Rev: A302
Using driver: Generic SCSI-3/MMC - Version 2.0 (options 0x0000)

Burning entire 74 mins disc.
Starting write at speed 24...
Pausing 10 seconds - hit CTRL-C to abort.
Process can be aborted with QUIT signal (usually CTRL-\).
Turning BURN-Proof on
Executing power calibration...
Power calibration successful.
ERROR: Drive does not accept any cue sheet variant - please report.
ERROR: Writing failed.

according to Google Groups: http://makeashorterlink.com/?P1CF51C89
this is the picky burner (LG4040).

Solution: delete the two offending tracks out of the toc-file and
cdrdao burns like charm.
comment this entry
go to top of page

inst: ccgo on linux-ppc

I could not find a binary-package for linux-ppc (Apple iBook), so I
try to install from src:

src-entry in sources.list

## ccGo from: http://ccdw.org/~cjj/prog/ccgo/
deb-src http://ccdw.org/~cjj/files/debs/ ./

failed to build due to missing tool

maggie:~# apt-get --compile source ccgo
Reading Package Lists... Done
Building Dependency Tree... Done
Need to get 522kB of source archives.
Get:1 http://ccdw.org ./ ccgo 0.3.5-2 (dsc) [554B]
Get:2 http://ccdw.org ./ ccgo 0.3.5-2 (tar) [518kB]
Get:3 http://ccdw.org ./ ccgo 0.3.5-2 (diff) [4239B]
Fetched 522kB in 28s (18.6kB/s)
sh: dpkg-source: command not found
Unpack command 'dpkg-source -x ccgo_0.3.5-2.dsc' failed.
E: Child process failed
maggie:~#

installing dpkg-dev in order to get dpkg-source

maggie:~# apt-get install dpkg-dev
Reading Package Lists... Done
Building Dependency Tree... Done
Suggested packages:
  debian-keyring
The following NEW packages will be installed:
  dpkg-dev
0 upgraded, 1 newly installed, 0 to remove and 447 not upgraded.
4 not fully installed or removed.
Need to get 166kB of archives.
After unpacking 561kB of additional disk space will be used.

another error message

maggie:~# apt-get --compile source ccgo
Reading Package Lists... Done
Building Dependency Tree... Done
Need to get 522kB of source archives.
Get:1 http://ccdw.org ./ ccgo 0.3.5-2 (dsc) [554B]
Get:2 http://ccdw.org ./ ccgo 0.3.5-2 (tar) [518kB]
Get:3 http://ccdw.org ./ ccgo 0.3.5-2 (diff) [4239B]
Fetched 522kB in 0s (4390kB/s)
dpkg-source: extracting ccgo in ccgo-0.3.5
dpkg-buildpackage: source package is ccgo
dpkg-buildpackage: source version is 0.3.5-2
dpkg-buildpackage: source maintainer is Chun-Chung Chen <cjj@u.washington.edu>
dpkg-buildpackage: host architecture is powerpc
dpkg-checkbuilddeps: Unmet build dependencies: debhelper (>> 3.0.0)
dpkg-buildpackage: Build dependencies/conflicts unsatisfied; aborting.
dpkg-buildpackage: (Use -d flag to override.)
Build command 'cd ccgo-0.3.5 && dpkg-buildpackage -b -uc' failed.
E: Child process failed
maggie:~# 

apt-cache show debhelper

Description: helper programs for debian/rules
 A collection of programs that can be used in a debian/rules file to
 automate common tasks related to building debian packages. Programs
 are included to install various files into your package, compress
 files, fix file permissions, integrate your package with the debian
 menu system, debconf, doc-base, etc. Most debian packages use debhelper
 as part of their build process.

installing debhelper

maggie:~# apt-get install debhelper
Reading Package Lists... Done
Building Dependency Tree... Done
The following extra packages will be installed:
  debconf-utils gettext html2text intltool-debian po-debconf
Suggested packages:
  dh-make
The following NEW packages will be installed:
  debconf-utils debhelper gettext html2text intltool-debian po-debconf
0 upgraded, 6 newly installed, 0 to remove and 447 not upgraded.
4 not fully installed or removed.
Need to get 2161kB of archives.
After unpacking 6644kB of additional disk space will be used.
Do you want to continue? [Y/n]

next unmet dependency

configure: error: Library requirements (gtkmm-2.0 gconfmm-2.0) not met; 

installing gtkmm

maggie:~# apt-get install libgconfmm2.0-1c102 libgtkmm2.0-1c102
Reading Package Lists... Done
Building Dependency Tree... Done
The following NEW packages will be installed:
  libgconfmm2.0-1c102 libgtkmm2.0-1c102
0 upgraded, 2 newly installed, 0 to remove and 447 not upgraded.
4 not fully installed or removed.
Need to get 988kB of archives.
After unpacking 3703kB of additional disk space will be used.
Get:1 http://ftp.tu-graz.ac.at unstable/main libgtkmm2.0-1c102 2.2.12-1 [958kB]
Get:2 http://ftp.tu-graz.ac.at unstable/main libgconfmm2.0-1c102 2.0.1-6 [29.3kB]
Fetched 988kB in 1s (749kB/s)

next error, path not correct?

[...]
checking for ranlib... ranlib
checking for pkg-config... /usr/bin/pkg-config
checking for gtkmm-2.0 gconfmm-2.0... Package gtkmm-2.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `gtkmm-2.0.pc'
to the PKG_CONFIG_PATH environment variable
No package 'gtkmm-2.0' found

configure: error: Library requirements (gtkmm-2.0 gconfmm-2.0) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them.
make: *** [config.status] Error 1
Build command 'cd ccgo-0.3.5 && dpkg-buildpackage -b -uc' failed.
E: Child process failed
maggie:~# 

seems to be the default location

maggie:~# locate gtkmm-2.0
/usr/lib/libgtkmm-2.0.so.1
/usr/lib/libgtkmm-2.0.so.1.5.11
maggie:~# 

PKG_CONFIG_PATH=/usr/lib/ apt-get --compile source ccgo
... did not solve the problem

search for "gtkmm-2.0.pc" and install package

maggie:~# apt-file search gtkmm-2.0.pc
libgtkmm2.0-dev: usr/lib/pkgconfig/gtkmm-2.0.pc
maggie:~# apt-get install libgtkmm2.0-dev
Reading Package Lists... Done
Building Dependency Tree... Done
The following extra packages will be installed:
  libsigc++-1.2-dev
Suggested packages:
  libgtkmm2.0-doc
The following NEW packages will be installed:
  libgtkmm2.0-dev libsigc++-1.2-dev
0 upgraded, 2 newly installed, 0 to remove and 447 not upgraded.
4 not fully installed or removed.
Need to get 1969kB of archives.
After unpacking 11.8MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://ftp.tu-graz.ac.at unstable/main libsigc++-1.2-dev 1.2.5-1 [64.5kB]
Get:2 http://ftp.tu-graz.ac.at unstable/main libgtkmm2.0-dev 2.2.12-1 [1904kB]
Fetched 1969kB in 2s (842kB/s) 

another error message

[...]
checking for pkg-config... /usr/bin/pkg-config
checking for gtkmm-2.0 gconfmm-2.0... Package gconfmm-2.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `gconfmm-2.0.pc'
to the PKG_CONFIG_PATH environment variable
No package 'gconfmm-2.0' found

configure: error: Library requirements (gtkmm-2.0 gconfmm-2.0) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them.
make: *** [config.status] Error 1
Build command 'cd ccgo-0.3.5 && dpkg-buildpackage -b -uc' failed.
E: Child process failed
maggie:~# 

where ist that file?

maggie:~# cd /usr/
maggie:/usr# find . -name gconfmm-2.0.pc
maggie:/usr# find . -name "gconfmm-2.0.pc*"
maggie:/usr#

here it is...

maggie:~# apt-file search gconfmm-2.0.pc
libgconfmm2.0-dev: usr/lib/pkgconfig/gconfmm-2.0.pc
maggie:~# 

install a lot of other stuff...

maggie:~# apt-get install libgconfmm2.0-dev 
Reading Package Lists... Done
Building Dependency Tree... Done
The following extra packages will be installed:
  gconf2 indent libgconf2-4 libgconf2-dev libidl-dev liborbit2-dev libpopt-dev libpopt0
Suggested packages:
  libgtkmm2.0-doc libgnomemm1.3-dev
Recommended packages:
  orbit2
The following NEW packages will be installed:
  indent libgconf2-dev libgconfmm2.0-dev libidl-dev liborbit2-dev libpopt-dev
The following packages will be upgraded:
  gconf2 libgconf2-4 libpopt0
3 upgraded, 6 newly installed, 0 to remove and 444 not upgraded.
4 not fully installed or removed.
Need to get 2195kB of archives.
After unpacking 4977kB of additional disk space will be used.
Do you want to continue? [Y/n]

OK, configure does not complain any more and make compiles the package.

[compiles for at least 15 minutes ...]
if powerpc-linux-g++ -DHAVE_CONFIG_H -I. -I. -I..     -g -O2 -MT nc.o -MD -MP -MF ".deps/nc.Tpo" -c -o nc.o nc.cc; \
then mv -f ".deps/nc.Tpo" ".deps/nc.Po"; else rm -f ".deps/nc.Tpo"; exit 1; fi
nc.cc:12:21: ncurses.h: No such file or directory
nc.cc: In member function `void Nc::Entry::draw_buf()':
nc.cc:77: error: `move' undeclared (first use this function)
nc.cc:77: error: (Each undeclared identifier is reported only once for each
   function it appears in.)
nc.cc:80: error: `addch' undeclared (first use this function)
[... a lot of error messages following ...]

ccgo, kiss my shiny ass.

dpkg -P ccgo indent libgconf2-dev libgconfmm2.0-dev libidl-dev liborbit2-dev libpopt-dev libgtkmm2.0-dev libsigc++-1.2-dev libgconfmm2.0-1c102 libgtkmm2.0-1c102

apt-get install gnugo suggests qgo or cgoban, so let's have a try:

maggie:~# apt-get install qgo gnugo
Reading Package Lists... Done
Building Dependency Tree... Done
Suggested packages:
  cgoban
The following NEW packages will be installed:
  gnugo qgo
0 upgraded, 2 newly installed, 0 to remove and 444 not upgraded.
4 not fully installed or removed.
Need to get 2071kB of archives.
After unpacking 6566kB of additional disk space will be used.
Get:1 http://ftp.tu-graz.ac.at unstable/main gnugo 3.5.10-2 [1221kB]
Get:2 http://ftp.tu-graz.ac.at unstable/main qgo 0.2.1-2 [849kB]
Fetched 2071kB in 2s (999kB/s)

qgo is very nice with a qt-design and more features than ccgo...
comment this entry
go to top of page

inst: a Go client for gnugo

solved at 20041005
http://www.gnu.org/software/gnugo/free_go_software.html
http://ccdw.org/~cjj/prog/ccgo/

added to sources.list

## ccGo from: http://ccdw.org/~cjj/prog/ccgo/
deb http://ccdw.org/~cjj/files/debs/ ./

lisa:~# apt-get install ccgo
Reading Package Lists... Done
Building Dependency Tree... Done
The following extra packages will be installed:
  libgconfmm2.0-1c102 libgtkmm2.0-1c102
The following NEW packages will be installed:
  ccgo libgconfmm2.0-1c102 libgtkmm2.0-1c102
0 upgraded, 3 newly installed, 0 to remove and 1189 not upgraded.
Need to get 1738kB of archives.
After unpacking 5353kB of additional disk space will be used.
Do you want to continue? [Y/n] 

ccGo seems to be a nice frontend for gnugo.

What is missing:
* smaller board AND handycap
* save/restore a game

removing ccgo

lisa:~# dpkg -P ccgo libgconfmm2.0-1c102 libgtkmm2.0-1c102

testing qgo. Seems to be the client I was searching for.
comment this entry
go to top of page

testing the backup-script "backup2l"

solved at 20041004

test with target-directory not mounted

maggie:~# backup2l
backup2l v1.3 by Gundolf Kiefer

Mon Oct  4 08:29:51 CEST 2004

ERROR: /data/backup2l-repository not present (mount failed?)
maggie:~# 

output of the first full-backup

maggie:~# backup2l
backup2l v1.3 by Gundolf Kiefer

Mon Oct  4 08:30:04 CEST 2004

Running pre-backup procedure...
  writing dpkg selections to /root/dpkg-selections.log...

Removing old backups...

Preparing full backup <maggie.1>...
  43771 / 43771 file(s), 4460 / 4460 dir(s), 3.6GB / 3.6GB (uncompressed)
  skipping: 4091 file(s), 480 dir(s), 1.4GB (uncompressed)

Creating archive using 'DRIVER_TAR_GZ'...
  tar: .desktop: Cannot stat: No such file or directory
  tar: /home/vk/.kde/share/apps/RecentDocuments/konsole.png: Cannot stat: No such file or directory
  tar: Error exit delayed from previous errors
Checking TOC of archive file (< real file, > archive entry)...
  1d0
  < .desktop
  5358d5356
  < /home/vk/.kde/share/apps/RecentDocuments/konsole.png
  36226c36224
  < /home/vk/zaurus/mnt/card/2inst/ipkg-output_opera?\.zip.log
  ---
  > /home/vk/zaurus/mnt/card/2inst/ipkg-output_opera?\\.zip.log
  39241c39239
  < /home/vk/zaurus/mnt/card/root-symlinked/Documents/text/Broccoliauflauf mit Schinken?sehr gut?.txt
  ---
  > /home/vk/zaurus/mnt/card/root-symlinked/Documents/text/Broccoliauflauf mit Schinken\tsehr gut?.txt
Creating check file for <maggie.1>...

Running post-backup procedure...
  post-backup: nothing to do

Mon Oct  4 09:11:17 CEST 2004


Summary
=======

Backup       Date       Time  |  Size   | Skipped  Files+D |  New  Obs. | Err.
------------------------------------------------------------------------------
maggie.1     2004-10-04 08:30 | 2515.0M |    4571    48231 |48231     0 |    4

Filesystem            Size  Used Avail Use% Mounted on
/dev/sda5             146G  132G   14G  91% /data
maggie:~#

Seems to have a problem with filenames containing a question mark...

OK, then I worked a couple of hours (new emails, downloaded my daily comic strips, ...):

unison-log of changes

[...]
[END] Updating file .slrn/My_Posts
[END] Updating file .slrn/scoring
[END] Updating file .vk/rc/opera/opera6.adr
[END] Copying Maildir/cur/msg.mBog:2,RS
[END] Copying Maildir/cur/msg.xBog:2,RS
[END] Copying Maildir/freunde/dapi/cur/1096878156.1952_4.lisa:2,S
[END] Copying Maildir/freunde/dapi/cur/1096887643.1952_21.lisa:2,S
[END] Copying Maildir/mailinglists/wist/cur/1096878205.1952_9.lisa:2,S
[END] Copying Maildir/mailinglists/wist/cur/1096881751.1952_16.lisa:2,S
[END] Copying Maildir/spam_automatically/new/msg.GBkb
[END] Copying Maildir/spam_automatically/new/msg.HBkb
[END] Copying Maildir/spam_automatically/new/msg.JBkb
[END] Updating file www/karl-voit.at/local/accesslogs/access_logs
[END] Copying zaurus/mnt/card/root-symlinked/Documents/html/mirrors/nerd/Calvin and Hobbes/2004.10.04.gif
[END] Copying zaurus/mnt/card/root-symlinked/Documents/html/mirrors/nerd/Dilbert/2004.10.04.gif
[END] Copying zaurus/mnt/card/root-symlinked/Documents/html/mirrors/nerd/Garfield/2004.10.04.gif
[END] Copying zaurus/mnt/card/root-symlinked/Documents/html/mirrors/nerd/Touche/2004.10.04.d,1096884000
[END] Copying zaurus/mnt/card/root-symlinked/Documents/html/mirrors/nerd/User Friendly/2004.10.04.gif
[END] Updating file zaurus/mnt/card/root-symlinked/Documents/html/mirrors/nerd/archive.html
[END] Updating file zaurus/mnt/card/root-symlinked/Documents/html/mirrors/nerd/dailystrips-2004.10.03.html
[END] Copying zaurus/mnt/card/root-symlinked/Documents/html/mirrors/nerd/dailystrips-2004.10.04.html
[BGN] Deleting zaurus/mnt/card/root-symlinked/Documents/html/mirrors/nerd/dailystrips-2004.09.20.html
  from //maggie//home/vk
[END] Deleting zaurus/mnt/card/root-symlinked/Documents/html/mirrors/nerd/dailystrips-2004.09.20.html
UNISON finished propagating changes at 13:32:14 on 04 Oct 2004

...and initiated a new backup:

incremental backup

maggie:~# backup2l
backup2l v1.3 by Gundolf Kiefer

Mon Oct  4 13:33:55 CEST 2004

Running pre-backup procedure...
  writing dpkg selections to /root/dpkg-selections.log...

Removing old backups...

Preparing differential level-3 backup <maggie.1001> based on <maggie.1>...
  30 / 43785 file(s), 15 / 4460 dir(s), 7.0MB / 3.6GB (uncompressed)
  skipping: 4091 file(s), 480 dir(s), 1.4GB (uncompressed)

Creating archive using 'DRIVER_TAR_GZ'...
Checking TOC of archive file (< real file, > archive entry)...
Creating check file for <maggie.1001>...

Running post-backup procedure...
  post-backup: nothing to do

Mon Oct  4 13:34:54 CEST 2004


Summary
=======

Backup       Date       Time  |  Size   | Skipped  Files+D |  New  Obs. | Err.
------------------------------------------------------------------------------
maggie.1     2004-10-04 08:30 | 2515.0M |    4571    48231 |48231     0 |    4
maggie.1001  2004-10-04 13:34 |    2.7M |    4571    48245 |   45    31 |    0

Filesystem            Size  Used Avail Use% Mounted on
/dev/sda5             146G  132G   14G  91% /data
maggie:~#

Scanning for changed files in 3.6GB data _and_ doing the backup in 49 seconds?
Wow, I'm deeply impressed!

the repository after the first full backup

maggie:/data/backup2l-repository# l
total 2577404
drwxr-xr-x  2 root root       4096 Oct  4 09:11 .
drwxr-xr-x  9 vk   vk         4096 Oct  3 23:41 ..
-rw-r--r--  1 root root        312 Oct  4 09:11 maggie.1.check
-rw-r--r--  1 root root        241 Oct  4 09:08 maggie.1.error.gz
-rw-r--r--  1 root root     544201 Oct  4 08:30 maggie.1.list.gz
lrwxrwxrwx  1 root root         16 Oct  4 09:08 maggie.1.new.gz -> maggie.1.list.gz
-rw-r--r--  1 root root         40 Oct  4 08:30 maggie.1.obsolete.gz
-rw-r--r--  1 root root      64682 Oct  4 08:30 maggie.1.skipped.gz
-rw-r--r--  1 root root 2636042140 Oct  4 09:03 maggie.1.tar.gz
maggie:/data/backup2l-repository# 

the repository after the incremental backup

maggie:/data/backup2l-repository# l
total 2580176
drwxr-xr-x  2 root root       4096 Oct  4 13:34 .
drwxr-xr-x  9 vk   vk         4096 Oct  3 23:41 ..
-rw-r--r--  1 root root        312 Oct  4 09:11 maggie.1.check
-rw-r--r--  1 root root        241 Oct  4 09:08 maggie.1.error.gz
-rw-r--r--  1 root root     544201 Oct  4 08:30 maggie.1.list.gz
lrwxrwxrwx  1 root root         16 Oct  4 09:08 maggie.1.new.gz -> maggie.1.list.gz
-rw-r--r--  1 root root         40 Oct  4 08:30 maggie.1.obsolete.gz
-rw-r--r--  1 root root      64682 Oct  4 08:30 maggie.1.skipped.gz
-rw-r--r--  1 root root 2636042140 Oct  4 09:03 maggie.1.tar.gz
-rw-r--r--  1 root root        381 Oct  4 13:34 maggie.1001.check
-rw-r--r--  1 root root         37 Oct  4 13:34 maggie.1001.error.gz
-rw-r--r--  1 root root     544382 Oct  4 13:34 maggie.1001.list.gz
-rw-r--r--  1 root root        861 Oct  4 13:34 maggie.1001.new.gz
-rw-r--r--  1 root root        717 Oct  4 13:34 maggie.1001.obsolete.gz
-rw-r--r--  1 root root      64682 Oct  4 13:34 maggie.1001.skipped.gz
-rw-r--r--  1 root root    2197746 Oct  4 13:34 maggie.1001.tar.gz
maggie:/data/backup2l-repository# 

After 9 days, I started another backup:

incremental backup with approx. 415MB changed data

maggie:~# time backup2l 
backup2l v1.3 by Gundolf Kiefer

Wed Oct 13 00:33:18 CEST 2004

Running pre-backup procedure...
  writing dpkg selections to /root/dpkg-selections.log...

Removing old backups...

Preparing differential level-3 backup <maggie.1002> based on <maggie.1001>...
  1164 / 44383 file(s), 142 / 4497 dir(s), 415.7MB / 3.7GB (uncompressed)
  skipping: 4210 file(s), 483 dir(s), 1.4GB (uncompressed)

Creating archive using 'DRIVER_TAR_GZ'...
Checking TOC of archive file (< real file, > archive entry)...
Creating check file for <maggie.1002>...

Running post-backup procedure...
  post-backup: nothing to do

Wed Oct 13 00:39:32 CEST 2004


Summary
=======

Backup       Date       Time  |  Size   | Skipped  Files+D |  New  Obs. | Err.
------------------------------------------------------------------------------
maggie.1     2004-10-04 08:30 | 2515.0M |    4571    48231 |48231     0 |    4
maggie.1001  2004-10-04 13:34 |    2.7M |    4571    48245 |   45    31 |    0
maggie.1002  2004-10-13 00:34 |  367.3M |    4693    48880 | 1306   671 |    0

Filesystem            Size  Used Avail Use% Mounted on
/dev/sda5             146G  138G  8.6G  95% /data

real    6m16.134s
user    3m59.777s
sys     0m28.781s
maggie:~# 
comment this entry
go to top of page

convert an HTML-message (from mutt) into ASCII-output

solved at 20040930
Pipe to command: links -dump -stdin|less
comment this entry
go to top of page

Linux backup-solutions: a quick investigation

solved at 20040929
Google-search for linux & backup:
http://www.linux-backup.net/App/

long list of solutions:
http://directory.fsf.org/sysadmin/backup/

for Debian: get-selection and chosen directories (and ignorelists) using rsync:
http://www.linux-backup.net/scripts/aaron.sh.txt

http://www.togaware.com/linux/survivor/Backup_Other.shtml
Solution suggested by "GNU/Linux Desktop Survival Guide":
-> rsync with include- and ignore-lists

http://directory.fsf.org/sysadmin/backup/glastree.html
glastree - Builds live backup trees with branches for each day:

The poor man's daily snapshot, 'glastree' builds live backup trees,
with branches for each day. Users directly browse the past to recover
older documents or retrieve lost files. Hard links compress out
unchanged files; modified files are copied verbatim. A prune utility
effects a constant, sliding window.

http://www.namazu.org/~satoru/pdumpfs/
similar to glastree but written in ruby:

pdumpfs is a simple daily backup system similar to Plan9's dumpfs
which preserves every daily snapshot. pdumpfs is written in Ruby. You
can access the past snapshots at any time for retrieving a certain
day's file. Let's backup your home directory with pdumpfs! pdumpfs
constructs the snapshot YYYY/MM/DD in the destination directory. All
source files are copied to the snapshot directory for the first
time. On and after the second time, pdumpfs copies only updated or
newly created files and stores unchanged files as hard links to the
files of the previous day's snapshot for saving a disk space.

http://www.rsnapshot.org/
rsnapshot - Makes periodic snapshots of local machines and remote machines:

'rsnapshot' is a filesystem snapshot utility based on rsync. It makes
it easy to make periodic snapshots of local machines, and remote
machines over ssh. It uses hard links whenever possible, to greatly
reduce the disk space required.

http://linux.maruhn.com/sec/afbackup.html

several servers per client configurable (user transparent)
a copy_tape command for duplicating tapes ("cloning")
backup levels of (nearly) arbitrary number
xafrestore GUI frontend for restore (requires Tcl-Tk), can
also be used by normal users for restoring their own files
Install script supports change of service name
automatic switching to full backup for new entries in the to-store-list

http://backup2l.sourceforge.net/

backup2l is a lightweight command
line tool for generating, maintaining and restoring backups on a
mountable file system (e. g. hard disk). The main design goals are are
low maintenance effort, efficiency, transparency and robustness. In a
default installation, backups are created autonomously by a cron
script.

backup2l supports hierarchical differential backups with a
user-specified number of levels and backups per level. With this
scheme, the total number of archives that have to be stored only
increases logarithmically with the number of differential backups
since the last full backup. Hence, small incremental backups can be
generated at short intervals while time- and space-consuming full
backups are only sparsely needed.

The restore function allows to easily restore the state of the file
system or arbitrary directories/files of previous points in time. The
ownership and permission attributes of files and directories are
correctly restored.

An integrated split-and-collect function allows to comfortably
transfer all or selected archives to a set of CDs or other removable
media.

All control files are stored together with the archives on the backup
device, and their contents are mostly self-explaining. Hence, in the
case of an emergency, a user does not only have to rely on the restore
functionality of backup2l, but can - if necessary - browse the files
and extract archives manually.

For deciding whether a file is new or modified, backup2l looks at its
name, modification time, size, ownership and permissions. Unlike other
backup tools, the i-node is not considered in order to avoid problems
with non-Unix file systems like FAT32.

http://www.bacula.org/html-manual/state.html

rather complex and huge
comment this entry
go to top of page

USB Serial Cable "Digitus DA-70119 Rev2.1" and linux (to sync with a palm-PDA)

solved at 20040919

http://www.linuxhardware.net/board/read.php?f=2&i=112&t=112

In case someone needs to know it, Digitus (http:/www.digitus.de)
DA-70119 USB 1.1 to serial converter works great with Prolific PL2303
USB-serial driver included (at least) in Linux kernel 2.4.21.

-> added pl2303 to the kernel

configured jpilot to check ttyS0 for a palm

works with no problem at all.
comment this entry
go to top of page

WinAmp 5.04: Ripping to WAV-files aborts with "error ripping track" "can't open decoder"

solved at 20040907
http://forums.winamp.com/showthread.php?postid=1223065#post1223065

-> install a file called WNASPI32.DLL and restart WinAmp
comment this entry
go to top of page

WinXP: create a PDF-Printer using GhostScript and RedMon

solved at 20040903
Use this very good HowTo at:
http://stat.tamu.edu/~henrik/GSWriter/GSWriter.html
comment this entry
go to top of page

inst: LaTeX-environment using native-Win32-emacs21, LaTeX (miktex), AUCTeX (v11.52), Cygwin

solved at 20040825

installed Software

GNU emacs 21.3.1 native Win32 -> C:\Programme\emacs-21.3 (german default location)
current miktex (Win32) -> C:\texmf (default location)
current GhostScript v8.14 -> C:\gs (default location)
current GhostView v4.6 -> C:\Programme\GhostGum (german default location)
Acrobat Reader v6.0.1 (default)  Below, I'll write "Acroreader" instead of "Acrobat Reader v6"
Cygwin -> C:\cygwin (default location):
  make, GNU tools, ... but no emacs, latex, X11, C/C++ or whatever

I want to have in emacs: AUCTeX, preview-latex, reftex, flyspell (with aspell)

First, there will be a detailed installation report of mine with all
backdraws and errors. Then, I'll try to give you a step-by-step
description, how you should install the packages.

DETAIL INSTALLATION REPORT
==========================

downloaded:
auctex-11.52.zip

Install-HowTo for a rough overview:
http://www.gnu.org/software/auctex/manual/html_node/Installation-under-MS-Windows.html

Some minor informations:
http://www.stat.iastate.edu/compguide/latex_install.html


Unpacked auctex-11.52.zip in a temp-dir C:\temp\auctex
Change to Cygwin-environment and after "cd /cygdrive/c/temp/auctex" do:

installing AUCTeX

./configure --prefix="/cygdrive/c/Programme\emacs-21.3" --with-emacs="/cygdrive/c/Programme/emacs-21.3/bin/emacs"
make
make install

Added line "(require 'tex-site)" in file c:\.emacs
Associated file extension tex with runemacs.exe
Associated file extension dvi with C:\texmf\miktex\bin\yap.exe (Yet another previewer)

Created testfile test.tex containing a minimal LaTeX-document (header, heading, one line text)

Opened the testfile called Testfile.tex in emacs

Changed to PDFLaTeX: C-c C-t C-p

Compiled using C-c C-c

Viewed using viewer-command:
"c:\Programme\Adobe\Acrobat 6.0\Reader\AcroRd32.exe" Testfile.pdf

No worries :-)

My C:\.emacs after some modifications

(require 'tex-site)
(setq tex-dvi-view-command "C:\texmf\miktex\bin\yap.exe")
(custom-set-variables
  ;; custom-set-variables was added by Custom -- don't edit or cut/paste it!
  ;; Your init file should contain only one such instance.
 '(TeX-output-view-style (quote (("^dvi$" "^pstricks$\\|^pst-\\|^psfrag$" "%(o?)dvips %d -o && gv %f") ("^dvi$" "^a4\\(?:dutch\\|paper\\|wide\\)?\\|sem-a4$" "%(o?)xdvi %dS -paper a4 %d") ("^dvi$" ("^a5\\(?:comb\\|paper\\)?$" "^landscape$") "%(o?)xdvi %dS -paper a5r -s 0 %d") ("^dvi$" "^a5\\(?:comb\\|paper\\)?$" "%(o?)xdvi %dS -paper a5 %d") ("^dvi$" "^b5paper$" "%(o?)xdvi %dS -paper b5 %d") ("^dvi$" ("^landscape$" "^pstricks$\\|^psfrag$") "%(o?)dvips -t landscape %d -o && gv %f") ("^dvi$" "^letterpaper$" "%(o?)xdvi %dS -paper us %d") ("^dvi$" "^legalpaper$" "%(o?)xdvi %dS -paper legal %d") ("^dvi$" "^executivepaper$" "%(o?)xdvi %dS -paper 7.25x10.5in %d") ("^dvi$" "^landscape$" "%(o?)xdvi %dS -paper a4r -s 0 %d") ("^dvi$" "." "%(o?)xdvi %dS %d") ("^pdf$" "." "\"c:\\Programme\\Adobe\\Acrobat 6.0\\Reader\\AcroRd32.exe\" %o") ("^html?$" "." "netscape %o")))))
(custom-set-faces
  ;; custom-set-faces was added by Custom -- don't edit or cut/paste it!
  ;; Your init file should contain only one such instance.
 )

reftex is included in emacs21, so no seperate install procedure necessary.


There are some problems using Acrobat Reader as a viewer in emacs
which are mentioned as seperate entry here.


INSTALLING preview-latex:

voit@vifpc80 /cygdrive/c/temp/preview-latex-0.8
$ ./configure --with-texmf-dir="/cygdrive/c/texmf" --with-emacs="/cygdrive/c/Programme/emacs-21.3/bin/emacs"
checking whether make sets $(MAKE)... yes
checking for a BSD-compatible install... /usr/bin/install -c
checking for /cygdrive/c/Programme/emacs-21.3/bin/emacs... /cygdrive/c/Programme/emacs-21.3/bin/emacs
checking if /cygdrive/c/Programme/emacs-21.3/bin/emacs is XEmacs... no
checking if /cygdrive/c/Programme/emacs-21.3/bin/emacs supports images... cat: ./conftest-1128: No such file or directory
configure: error: "You need an Emacs that supports images"

http://www.emacswiki.org/cgi-bin/wiki?action=browse;id=PreviewLaTeX;revision=8

Use C-h v image-types to confirm that your NTEmacs supports images image-types's value is (png tiff jpeg xpm xbm pbm)

emacs: "image-types's value is nil"
:-(

So I had to install an precompiled version of emacs21 _with_ image-support:
http://www.crasseux.com/emacs/

unpack in cygwin

tar xvvjf emacs_bin_cvs_2004_07_09.tar.bz2

Replaced already installed directory C:\Programme\emacs-21.3 with this version and
executed the "make install" of auctex (in Cygwin-environment) again.

no lisp directory given

voit@vifpc80 /cygdrive/c/temp/preview-latex-0.8
$ ./configure --with-texmf-dir="/cygdrive/c/texmf" --with-emacs="/cygdrive/c/Programme/emacs-21.3/bin/emacs"
checking whether make sets $(MAKE)... yes
checking for a BSD-compatible install... /usr/bin/install -c
checking for /cygdrive/c/Programme/emacs-21.3/bin/emacs... /cygdrive/c/Programme/emacs-21.3/bin/emacs
checking if /cygdrive/c/Programme/emacs-21.3/bin/emacs is XEmacs... no
checking if /cygdrive/c/Programme/emacs-21.3/bin/emacs supports images... yes
checking where lisp files go... configure: error: Cannot locate lisp directory,
use  --with-lispdir, --with-packagedir (xemacs), --datadir (emacs),
--libdir (xemacs), or possibly --prefix to rectify this

Added:
--with-lispdir="/cygdrive/c/Programme/emacs-21.3/site-lisp"

configure [...]
make
(without problems)

make install

[...]
/usr/bin/install -c -m 644 images/preverr.xbm /cygdrive/c/Programme/emacs-21.3/site-lisp
/usr/bin/install -c -m 644 images/preview-cap-up.xpm /cygdrive/c/Programme/emacs-21.3/site-lisp
(cd doc ; /usr/bin/make DESTDIR= install)
make[1]: Entering directory `/cygdrive/c/temp/preview-latex-0.8/doc'
/usr/bin/makeinfo  preview-latex.texi
./preview-dtxdoc.texi:452: Misplaced {.
./preview-dtxdoc.texi:452: Misplaced }.
./preview-dtxdoc.texi:453: Misplaced {.
./preview-dtxdoc.texi:453: Misplaced }.
makeinfo: Removing output file `/cygdrive/c/temp/preview-latex-0.8/doc/preview-latex.info' due to errors; use --force to preserve.
make[1]: [preview-latex.info] Error 2 (ignored)
../mkinstalldirs /usr/local/info
mkdir -p -- /usr/local/info
for x in preview-latex.info* ; do \
        /usr/bin/install -c -m 644 $x /usr/local/info ; \
done
/usr/bin/install: cannot stat `preview-latex.info*': No such file or directory
make[1]: *** [install] Error 1
make[1]: Leaving directory `/cygdrive/c/temp/preview-latex-0.8/doc'
make: *** [install-docs] Error 2

lines 452 and 453 of preview-dtxdoc.texi

\DescribeMacro{\PreviewOpen}
\DescribeMacro{\PreviewClose}

modified those lines to:

lines 452 and 453 of preview-dtxdoc.texi after modification

\PreviewOpen
\PreviewClose

(OK, I know that this is a dirty workaround!)

"make install" works now without any error.

This problem has been approved with preview-latex v0.8.1 too.


Added following lines to C:\.emacs

;; hier liegen alle meine Emacs- und Gnus-Einstellungen
(defvar vk-elisp-dir "~/.emacs.d/autostart/")

;; Datei laden, wenn vorhanden, sonst Warnung
(defun vk-load-part (part)
  (let ((fullname (concat vk-elisp-dir part)))
    (if (file-exists-p fullname)
(load fullname)
      (message (format "Loading %s (source)...failed" fullname)))))

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;; Ganz wichtige Dinge...
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

(vk-load-part "preview-latex.el")

copy file "preview-latex.el" from install-directory to C:\.emacs.d\autostart\

loaded circ.tex (from preview-latex install-dir) into emacs and
started preview-buffer

error-message when started preview

Type `C-c C-l' to display results of compilation.
error in process sentinel: preview-reraise-error: Searching for program: no such file or directory, gs
error in process sentinel: Searching for program: no such file or directory, gs
scroll-bar-toolkit-scroll: End of buffer [4 times]
Type `C-c C-l' to display results of compilation.
locating previews...
Type `C-c C-l' to display results of compilation.
error in process sentinel: preview-reraise-error: Searching for program: no such file or directory, gs
error in process sentinel: Searching for program: no such file or directory, gs

Seems to me that gs.exe in C:\cygwin\bin is not found by
emacs21. Verified this in a Windows command-shell.

Added ";C:\cygwin\bin" to PATH environment variable in the Windows
system preferences


preview-latex works now!


C:\.emacs by now

(require 'tex-site)
(setq tex-dvi-view-command "C:\texmf\miktex\bin\yap.exe")
(custom-set-variables
  ;; custom-set-variables was added by Custom -- don't edit or cut/paste it!
  ;; Your init file should contain only one such instance.
 '(TeX-output-view-style (quote (("^dvi$" "^pstricks$\\|^pst-\\|^psfrag$" "%(o?)dvips %d -o && gv %f") ("^dvi$" "^a4\\(?:dutch\\|paper\\|wide\\)?\\|sem-a4$" "%(o?)xdvi %dS -paper a4 %d") ("^dvi$" ("^a5\\(?:comb\\|paper\\)?$" "^landscape$") "%(o?)xdvi %dS -paper a5r -s 0 %d") ("^dvi$" "^a5\\(?:comb\\|paper\\)?$" "%(o?)xdvi %dS -paper a5 %d") ("^dvi$" "^b5paper$" "%(o?)xdvi %dS -paper b5 %d") ("^dvi$" ("^landscape$" "^pstricks$\\|^psfrag$") "%(o?)dvips -t landscape %d -o && gv %f") ("^dvi$" "^letterpaper$" "%(o?)xdvi %dS -paper us %d") ("^dvi$" "^legalpaper$" "%(o?)xdvi %dS -paper legal %d") ("^dvi$" "^executivepaper$" "%(o?)xdvi %dS -paper 7.25x10.5in %d") ("^dvi$" "^landscape$" "%(o?)xdvi %dS -paper a4r -s 0 %d") ("^dvi$" "." "%(o?)xdvi %dS %d") ("^pdf$" "." "\"c:\\Programme\\Adobe\\Acrobat 6.0\\Reader\\AcroRd32.exe\" %o") ("^html?$" "." "netscape %o")))))
(custom-set-faces
  ;; custom-set-faces was added by Custom -- don't edit or cut/paste it!
  ;; Your init file should contain only one such instance.
 )


;;(load "preview-latex.el" nil t t)

;; hier liegen alle meine Emacs- und Gnus-Einstellungen
(defvar vk-elisp-dir "~/.emacs.d/autostart/")

;; Datei laden, wenn vorhanden, sonst Warnung
(defun vk-load-part (part)
  (let ((fullname (concat vk-elisp-dir part)))
    (if (file-exists-p fullname)
(load fullname)
      (message (format "Loading %s (source)...failed" fullname)))))

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;; Ganz wichtige Dinge...
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

(vk-load-part "preview-latex.el")


flyspell does not work

Starting new Ispell process...
ispell-check-version: Searching for program: no such file or directory, ispell

OK, true. Native Win32-emacs21 cannot use the Cygwin aspell I installed. Right.

http://aspell.net/win32/
-> native Win32 aspell and german dictionary

Install to default location in C:\Programme\aspell and then install
the german package too.

http://lists.gnu.org/archive/html/help-gnu-emacs/2004-01/msg00835.html

I don't use Mac, but the following lines in my .emacs work well both
on Windows and on Linux:
;;; Spelling
(setq ispell-program-name "aspell")
(autoload 'flyspell-mode "flyspell" "On-the-fly spelling." t)
(require 'ispell)

I removed all ispell-customisations concerning the dictionary (I used
my .emacs-files from home where I am using Debian GNU/Linux and
ispell) and then I could change the dictionary in emacs by
"M-X change-ispell-dictionary"

see also http://lists.gnu.org/archive/html/help-gnu-emacs/2004-01/msg00247.html

my flyspell-mode.el in my C:\.emacs.d\autostart\

;; User-Dictionary ohne Nachfrage speichern
(setq ispell-silently-savep t)
(autoload 'flyspell-mode "flyspell" "On-the-fly spelling checking" t)
(autoload 'flyspell-mode "flyspell" "On-the-fly ispell." t)
(setq ispell-program-name "aspell")

;; Initialize spell checking
(setq-default ispell-program-name "aspell")
(set-default 'ispell-change-directory "ndeutsch8-15")
(set-default 'ispell-local-dictionary "ndeutsch8-15")
;; ========================
;; ISPELL
;; ========================
(require 'ispell)
(add-to-list 'ispell-dictionary-alist
      '("ndeutsch8-15"
        "[a-zA-Z\304\326\334\344\366\337\374]"
        "[^a-zA-Z\304\326\334\344\366\337\374]"
        "[']" t
       ("-C" "-d" "german")
        "~latin1" iso-8859-15))

;; ========================
;; ISPELL End
;; ========================

;; ========================
;; FLYSPELL
;; ========================
(add-hook 'flyspell-mode-hook
   (function (lambda ()
	         (setq ispell-local-dictionary "ndeutsch8-15")
        )))

So flyspell is working even with german umlauts.

additionally added to my .emacs

(setq inhibit-startup-message t) ; remove splash screen (http://list.nmlug.org/nmlug/2004-February/msg00140.html)



INSTALLATION HOWTO
==================

file to download

emacs_bin_cvs_2004_07_09.tar.bz2
auctex-11.52.zip
preview-latex-0.8.1.tar.gz
Aspell-0-50-3-3-Setup.exe
Aspell-de-0.50-2-3.exe
gs814w32.exe (GhostScript)
gsv46w32.exe (GhostView)

Install in default directories:
cygwin, emacs, aspell, ghostview, ghostscript

Unpacked auctex-11.52.zip in a temp-dir (e.g. C:\temp\auctex)

Change to Cygwin-environment and after "cd /cygdrive/c/temp/auctex" do:

installing AUCTeX

./configure --prefix="/cygdrive/c/Programme\emacs-21.3" --with-emacs="/cygdrive/c/Programme/emacs-21.3/bin/emacs"
make
make install

if you want: associate file extension tex with runemacs.exe
if you want: associate file extension dvi with C:\texmf\miktex\bin\yap.exe (Yet another previewer)

(reftex is included in emacs21, so no seperate install procedure necessary)

There are some problems using Acrobat Reader as a viewer in emacs
which are mentioned as seperate entry here.

preview-latex:

compile preview-latex

voit@vifpc80 /cygdrive/c/temp/preview-latex-0.8.1
$ ./configure --with-texmf-dir="/cygdrive/c/texmf" --with-emacs="/cygdrive/c/Programme/emacs-21.3/bin/emacs" --with-lispdir="/cygdrive/c/Programme/emacs-21.3/site-lisp"
[...]
$ make

edit lines 452 and 453 of doc\review-dtxdoc.texi

\DescribeMacro{\PreviewOpen}
\DescribeMacro{\PreviewClose}

and modify those lines to:

lines 452 and 453 of preview-dtxdoc.texi after modification

\PreviewOpen
\PreviewClose

"make install" should work without any error.

copy file "preview-latex.el" from install-directory to C:\.emacs.d\autostart\

Add ";C:\cygwin\bin" to PATH environment variable in the Windows system preferences

C:\.emacs by now

(require 'tex-site)
(setq tex-dvi-view-command "C:\texmf\miktex\bin\yap.exe")
(custom-set-variables
  ;; custom-set-variables was added by Custom -- don't edit or cut/paste it!
  ;; Your init file should contain only one such instance.
 '(TeX-output-view-style (quote (("^dvi$" "^pstricks$\\|^pst-\\|^psfrag$" "%(o?)dvips %d -o && gv %f") ("^dvi$" "^a4\\(?:dutch\\|paper\\|wide\\)?\\|sem-a4$" "%(o?)xdvi %dS -paper a4 %d") ("^dvi$" ("^a5\\(?:comb\\|paper\\)?$" "^landscape$") "%(o?)xdvi %dS -paper a5r -s 0 %d") ("^dvi$" "^a5\\(?:comb\\|paper\\)?$" "%(o?)xdvi %dS -paper a5 %d") ("^dvi$" "^b5paper$" "%(o?)xdvi %dS -paper b5 %d") ("^dvi$" ("^landscape$" "^pstricks$\\|^psfrag$") "%(o?)dvips -t landscape %d -o && gv %f") ("^dvi$" "^letterpaper$" "%(o?)xdvi %dS -paper us %d") ("^dvi$" "^legalpaper$" "%(o?)xdvi %dS -paper legal %d") ("^dvi$" "^executivepaper$" "%(o?)xdvi %dS -paper 7.25x10.5in %d") ("^dvi$" "^landscape$" "%(o?)xdvi %dS -paper a4r -s 0 %d") ("^dvi$" "." "%(o?)xdvi %dS %d") ("^pdf$" "." "\"c:\\Programme\\Adobe\\Acrobat 6.0\\Reader\\AcroRd32.exe\" %o") ("^html?$" "." "netscape %o")))))
(custom-set-faces
  ;; custom-set-faces was added by Custom -- don't edit or cut/paste it!
  ;; Your init file should contain only one such instance.
 )


;;(load "preview-latex.el" nil t t)

;; hier liegen alle meine Emacs- und Gnus-Einstellungen
(defvar vk-elisp-dir "~/.emacs.d/autostart/")

;; Datei laden, wenn vorhanden, sonst Warnung
(defun vk-load-part (part)
  (let ((fullname (concat vk-elisp-dir part)))
    (if (file-exists-p fullname)
(load fullname)
      (message (format "Loading %s (source)...failed" fullname)))))

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;; Ganz wichtige Dinge...
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

(vk-load-part "preview-latex.el")

Install aspell to default location (if not done yet) in
C:\Programme\aspell and then install the german package too.

my flyspell-mode.el in my C:\.emacs.d\autostart\

;; User-Dictionary ohne Nachfrage speichern
(setq ispell-silently-savep t)
(autoload 'flyspell-mode "flyspell" "On-the-fly spelling checking" t)
(autoload 'flyspell-mode "flyspell" "On-the-fly ispell." t)
(setq ispell-program-name "aspell")

;; Initialize spell checking
(setq-default ispell-program-name "aspell")
(set-default 'ispell-change-directory "ndeutsch8-15")
(set-default 'ispell-local-dictionary "ndeutsch8-15")
;; ========================
;; ISPELL
;; ========================
(require 'ispell)
(add-to-list 'ispell-dictionary-alist
      '("ndeutsch8-15"
        "[a-zA-Z\304\326\334\344\366\337\374]"
        "[^a-zA-Z\304\326\334\344\366\337\374]"
        "[']" t
       ("-C" "-d" "german")
        "~latin1" iso-8859-15))

;; ========================
;; ISPELL End
;; ========================

;; ========================
;; FLYSPELL
;; ========================
(add-hook 'flyspell-mode-hook
   (function (lambda ()
	         (setq ispell-local-dictionary "ndeutsch8-15")
        )))

So flyspell is working even with german umlauts.

if you want: additionally add to .emacs

(setq inhibit-startup-message t) ; remove splash screen (http://list.nmlug.org/nmlug/2004-February/msg00140.html)

Now, all mentioned things should work fine.
comment this entry
go to top of page

Windows XP: some nice "modifications" to gain more comfort

solved at 20040820
Me Windows XP? Yes, I do have to admit that I'm working since monday and I have to use a XP Pro :-(

I'm already fed up with it again.

But to get a certain level of comfort, I installed some things that might be of interest to you too:

* GNU Tools for Windows
http://unxutils.sourceforge.net/

* Windows XP Powertoys
http://www.microsoft.com/windowsxp/downloads/powertoys/xppowertoys.mspx

my favourite MS PowerToys for XP

Open Command Window Here
AAlt-Tab Replacement
Tweak UI
Virtual Desktop Manager

* GNU emacs 21.3
http://www.gnu.org/software/emacs/windows/ntemacs.html

* Opera v7 as Webbrowser
www.opera.com

* putty for connecting to my homebox (icq, email, ...)
http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html
comment this entry
go to top of page

larger resolution on the console

solved at 20040816

/etc/console-tools/config:

SCREEN_FONT=iso01.f08  (instead of iso01.f16)

aand finally:

/etc/init.d/console-screen.sh restart
comment this entry
go to top of page

cannot log in on the console directly after running Bastille

solved at 20040816

/etc/security/access.conf

-:ALL EXCEPT root vk:LOCAL
                  ^^

The user vk was missing here.
comment this entry
go to top of page

OS X-like environment on Debian PPC

solved at 20040813

currently using on my x86 desktop

baghira 0.5a as KDE theme (brushed=default)
transparent, big KDE-panel (K-menu, Klipper, running apps and pager, icons for mostly used things)
gkrellm with adopted skin (ModernII: brighter, more contrast)
opera with adopted skin (Sofa King: brighter background, blue highlighted acrtive tabs)
icons: KDE standard (Crystal SVG beta1 mixed with Iconset from http://www.kde-look.org/content/show.php?content=13462)
       additional: SNOWE2-Rade8-Template

already installed: baghira, gkrellm, opera & skin, icons
comment this entry
go to top of page

apt-get: package lists could not be parsed

solved at 20040812

Posting auf at.linux

Debian powerpc unstable/sid here :-)                                                                                                  
                                                                                                                                      
Die letzte systemweite Aktualisierung ist wohl schon ein Zeiterl                                                                      
(ca. 2 Monate) her.                                                                                                                   
                                                                                                                                      
btw, etwaige backslashes sind zwecks Zeilenlaengenbeschraekung von mir                                                                
gesetzt worden.                                                                                                                       
                                                                                                                                      
,----[ Was ich im apt-Cache habe ]                                                                                                    
| maggie:/var/lib/apt/lists# l                                                                                                        
| [...]                                                                                                                               
| -rw-r--r--     61420 ftp.tu-graz.ac.at_debian_dists_unstable\                                                                       
| _contrib_binary-powerpc_Packages                                                                                                    
| -rw-r--r--        88 ftp.tu-graz.ac.at_debian_dists_unstable\                                                                       
| _contrib_binary-powerpc_Release                                                                                                     
| -rw-r--r--   3085174 ftp.tu-graz.ac.at_debian_dists_unstable\                                                                       
| _main_binary-powerpc_Packages                                                                                                       
| -rw-r--r--        85 ftp.tu-graz.ac.at_debian_dists_unstable\                                                                       
| _main_binary-powerpc_Release                                                                                                        
| -rw-r--r--    184721 ftp.tu-graz.ac.at_debian_dists_unstable\                                                                       
| _non-free_binary-powerpc_Packages                                                                                                   
| -rw-r-----         0 lock                                                                                                           
| drwxr-xr-x      4096 partial                                                                                                        
`----                                                                                                                                 
                                                                                                                                      
Und die Datei ftp...unstable_main_binary-powerpc_Packages musste ich                                                                  
per wget holen, da "apt-get update" Fehler meldete:                                                                                   
                                                                                                                                      
,----[ "apt-get update" Fehlermeldung ]                                                                                               
| maggie:/var/lib/apt/lists# apt-get update                                                                                           
| Get:1 http://ftp.tu-graz.ac.at unstable/main Packages                                                                               
| Err http://ftp.tu-graz.ac.at unstable/main Packages                                                                                 
|   Error reading from server Remote end closed connection                                                                            
| Get:2 http://ftp.tu-graz.ac.at unstable/main Release                                                                                
| Get:3 http://ftp.tu-graz.ac.at unstable/contrib Packages                                                                            
| Err http://ftp.tu-graz.ac.at unstable/contrib Packages                                                                              
|   Error reading from server Remote end closed connection                                                                            
| Get:4 http://ftp.tu-graz.ac.at unstable/contrib Release                                                                             
| Get:5 http://ftp.tu-graz.ac.at unstable/non-free Packages                                                                           
| Get:6 http://ftp.tu-graz.ac.at unstable/non-free Release                                                                            
| Err http://ftp.tu-graz.ac.at unstable/non-free Release                                                                              
|   Error reading from server Remote end closed connection                                                                            
| Fetched 53.0kB in 3s (15.0kB/s)                                                                                                     
| Failed to fetch http://ftp.tu-graz.ac.at/debian/dists/\                                                                             
| unstable/main/binary-powerpc/Packages.gz  Error reading\                                                                            
|  from server Remote end closed connection                                                                                           
| Failed to fetch http://ftp.tu-graz.ac.at/debian/dists/\                                                                             
| unstable/contrib/binary-powerpc/Packages.gz  Error reading\                                                                         
|  from server Remote end closed connection                                                                                           
| Failed to fetch http://ftp.tu-graz.ac.at/debian/dists/\                                                                             
| unstable/non-free/binary-powerpc/Release  Error reading\                                                                            
|  from server Remote end closed connection                                                                                           
| Reading Package Lists... Error!                                                                                                     
| E: Unable to parse package file /var/lib/apt/lists/ftp.tu-graz\                                                                     
| .ac.at_debian_dists_unstable_main_binary-powerpc_Packages (1)                                                                       
| E: The package lists or status file could not be parsed or opened.                                                                  
| maggie:/var/lib/apt/lists#                                                                                                          
`----                                                                                                                                 
                                                                                                                                      
OK, also besagte Datei(en) vom selben Server per wget geholt und:                                                                     

,----[ Fehlermeldung von "apt-get check" ]                                                                                            
| maggie:/var/lib/apt/lists# apt-get check                                                                                            
| Reading Package Lists... Error!                                                                                                     
| E: Unable to parse package file /var/lib/apt/lists/ftp.tu-graz.\                                                                    
| ac.at_debian_dists_unstable_main_binary-powerpc_Packages (1)                                                                        
| E: The package lists or status file could not be parsed or opened.                                                                  
`----                                                                                                                                 
                                                                                                                                      
Zumindest die Filesize wird vom ftp-Server als gleich                                                                                 
angezeigt. MD5-Summen konnte ich am ftp-Server leider nicht entdecken.                                                                
                                                                                                                                      
,----                                                                                                                                 
| maggie:/var/lib/apt/lists# md5sum ftp.tu-graz.ac.at_debian_dists_\                                                                  
| unstable_main_binary-powerpc_Packages                                                                                               
| 1d7eb8d47d0eb6d2e4452562b7099d02  ftp.tu-graz.ac.at_debian_dists_\                                                                  
| unstable_main_binary-powerpc_Packages                                                                                               
| maggie:/var/lib/apt/lists#                                                                                                          
`----                                                                                                                                 
                                                                                                                                      
Tja, was kann es da wohl haben?                                              

Loesung

begin  followup to Karl Voit <devnull@Karl-Voit.at>:
>
> Debian powerpc unstable/sid here :-)
>
> ,----[ "apt-get update" Fehlermeldung ]
>| maggie:/var/lib/apt/lists# apt-get update
>| Get:1 http://ftp.tu-graz.ac.at unstable/main Packages
>| Err http://ftp.tu-graz.ac.at unstable/main Packages
>|   Error reading from server Remote end closed connection
[...]
> `----

Fiese Fehlerquelle :-)

Das besagte PPC-Notebook hat (noch) keinen VPN-Client und haengt somit
nur per WWW-Proxy im Web. Darueber mache ich auch die apt-Geschichten.

Laut [1] sollte man im wwwoffle die Optionen zu *-chunked-data seit
der Version 2.8c-1 nicht unbedingt auf yes setzen, da dann apt-get
Probleme machen kann *g*.

Nun ja. Das war's auch.

[1] http://groups.google.com/groups?hl=de&lr=&ie=UTF-8&selm=27JAD-4bd-13%40gated-at.bofh.it
comment this entry
go to top of page

inst: baghira on Debian PPC

solved at 20040810
(already installed: kdebase-dev)

./configure [...]

[...]
checking for gmsgfmt... msgfmt
found msgfmt program is not GNU msgfmt; ignore it
checking for xgettext... :
checking if C++ programs can be compiled... no
configure: error: Your Installation isn't able to compile simple C++ programs.
Check config.log for details - if you're using a Linux distribution you might miss
a package named similiar to libstd++-dev.
vk@maggie:/data/src/ppc/baghira-0.5a$

maggie:~# apt-cache search libstd|grep dev
libgmp3-dev - Multiprecision arithmetic library developers tools
libstdc++2.10-dev - The GNU stdc++ library (development files)
libstdc++5-3.3-dev - The GNU Standard C++ Library v3 (development files)
libstdc++5-dev - The GNU Standard C++ Library v3 (development files)
libstdc++6-dev - The GNU Standard C++ Library v3 (development files)
maggie:~# 

But libstdc++5-3.3-dev is installed! So there must be another error:

Out of config.log:

"g++: command not found"

creating a symlink for g++

maggie:~# cd /usr/bin/
maggie:/usr/bin# ln -s g++-3.3 g++
maggie:/usr/bin# 

-> configure does not complain any more *g*

make

[...]
g++: /usr/lib/libkdecorations.so: No such file or directory

maggie:/usr/bin# apt-file search libkdecorations.so
kdebase-dev: usr/lib/libkdecorations.so
kwin: usr/lib/libkdecorations.so.1
kwin: usr/lib/libkdecorations.so.1.0.0
maggie:/usr/bin#

maggie:/usr/bin# l /usr/lib/libkdeco*
-rw-r--r--    1 root     root         1052 Apr 14 12:10 /usr/lib/libkdecorations.la
lrwxrwxrwx    1 root     root           24 Aug 10 00:51 /usr/lib/libkdecorations.so -> libkdecorations.so.1.0.0
-rw-r--r--    1 root     root          999 Aug  3 08:14 /usr/lib/libkdecore.la
lrwxrwxrwx    1 root     root           19 Aug 10 00:51 /usr/lib/libkdecore.so -> libkdecore.so.4.2.0
lrwxrwxrwx    1 root     root           19 Aug 10 00:50 /usr/lib/libkdecore.so.4 -> libkdecore.so.4.2.0
-rw-r--r--    1 root     root      2044988 Aug  3 09:29 /usr/lib/libkdecore.so.4.2.0
maggie:/usr/bin# cd ../lib
maggie:/usr/lib# l libkdecorations.so.1.0.0
ls: libkdecorations.so.1.0.0: No such file or directory
maggie:/usr/lib#

-> broken link!

maggie:/usr/lib# apt-file search libkdecorations.so.1.0.0
kwin: usr/lib/libkdecorations.so.1.0.0
maggie:/usr/lib#

OK, kwin has to be installed:

maggie:/usr/lib# apt-get install kwin ksplash
Reading Package Lists... Done
Building Dependency Tree... Done
Suggested packages:
  kpersonalizer
The following NEW packages will be installed:
  ksplash kwin
0 upgraded, 2 newly installed, 0 to remove and 562 not upgraded.
Need to get 1447kB of archives.
After unpacking 3596kB of additional disk space will be used.

-> make finished without further errors.
comment this entry
go to top of page

OS X like theme for my KDE 3.2 (baghira, superkaramba, icons)

solved at 20040809
testing: superkaramba
testing: aqua-theme from KDE-themes
testing: tray-theme for superkaramba

Found Theme baghira v0.5a on http://www.kde-look.org/content/show.php?content=8692

./configure

[...]
checking if Qt needs -ljpeg... no
checking for rpath... yes
checking for KDE... configure: error:
in the prefix, you've chosen, are no KDE headers installed. This will fail.
So, check this please and use another prefix!
vk@lisa:~/tmp/2del/20040804_osxlike/baghira-0.5a$ 

solved: "apt-get install kdelibs4-dev"

Kompilierfehler

alles normal
[...]
make[3]: Leaving directory `/home/vk/tmp/2del/20040804_osxlike/baghira-0.5a/deco/config'
make[3]: Entering directory `/home/vk/tmp/2del/20040804_osxlike/baghira-0.5a/deco'
/usr/share/qt3/bin/moc ./baghiraclient.h -o baghiraclient.moc
source='baghiraclient.cc' object='baghiraclient.lo' libtool=yes \
depfile='.deps/baghiraclient.Plo' tmpdepfile='.deps/baghiraclient.TPlo' \
depmode=gcc3 /bin/sh ../admin/depcomp \
/bin/sh ../libtool --silent --mode=compile --tag=CXX g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include/kde -I/usr/share/qt3/include -I/usr/X11R6/include  -I/usr/include/kde/kwin  -DQT_THREAD_SUPPORT  -D_REENTRANT  -Wnon-virtual-dtor -Wno-long-long -Wundef -Wall -W -Wpointer-arith -Wwrite-strings -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -Wchar-subscripts -DNDEBUG -DNO_DEBUG -O2 -Wformat-security -Wmissing-format-attribute -fno-exceptions -fno-check-new -fno-common -DQT_PLUGIN -c -o baghiraclient.lo `test -f 'baghiraclient.cc' || echo './'`baghiraclient.cc
In file included from baghiraclient.cc:29:
baghiraclient.h:32:25: kdecoration.h: No such file or directory
baghiraclient.h:33:32: kdecorationfactory.h: No such file or directory
In file included from baghiraclient.cc:29:
baghiraclient.h:112: error: parse error before `{' token
baghiraclient.h:115: error: destructors must be member functions
baghiraclient.h:115: error: virtual outside class declaration
baghiraclient.h:116: error: syntax error before `*' token
baghiraclient.h:117: error: virtual outside class declaration
baghiraclient.h:118: error: `BorderSize' was not declared in this scope
baghiraclient.h:118: error: template argument 1 is invalid
baghiraclient.h:118: error: ISO C++ forbids declaration of `borderSizes' with
   no type
baghiraclient.h:118: error: virtual outside class declaration
baghiraclient.h:118: error: non-member function `int Baghira::borderSizes()'
   cannot have `const' method qualifier
baghiraclient.h:119: error: invalid use of undefined type `class
   Baghira::BaghiraFactory'
baghiraclient.h:111: error: forward declaration of `class
   Baghira::BaghiraFactory'
baghiraclient.h:119: error: cannot declare member function `QPixmap&
   Baghira::BaghiraFactory::ButtonPixmap(Baghira::WindowState,
   Baghira::ButtonType, Baghira::ButtonState, int)' to have static linkage
baghiraclient.h:120: error: invalid use of undefined type `class
   Baghira::BaghiraFactory'
baghiraclient.h:111: error: forward declaration of `class
   Baghira::BaghiraFactory'
baghiraclient.h:150: error: parse error before `private'
baghiraclient.h:155: error: non-member function `QImage*
   Baghira::tintBrush(const QImage&, const QColor&)' cannot have `const' method
   qualifier
baghiraclient.h:156: error: non-member function `QImage*
   Baghira::tintGlossy(const QImage&, const QColor&)' cannot have `const'
   method qualifier
baghiraclient.h:158: error: parse error before `private'
baghiraclient.h:190: error: syntax error before `::' token
baghiraclient.h:192: error: syntax error before `::' token
baghiraclient.h:194: error: syntax error before `::' token
baghiraclient.h:196: error: syntax error before `::' token
baghiraclient.h:199: error: syntax error before `::' token
[...]

missing: kdebase-dev

lisa:~# apt-file search kdecorationfactory.h
kdebase-dev: usr/include/kde/kdecorationfactory.h
lisa:~#

once again ...

lisa:~# apt-get install kdebase-dev
Reading Package Lists... Done
Building Dependency Tree... Done
The following extra packages will be installed:
  kate kdesktop kicker konqueror konqueror-nsplugins ksysguard ksysguardd libkonq4 libsensors3
Suggested packages:
  lm-sensors lm-sensors-mod-2.7 kernel-image-2.6
The following NEW packages will be installed:
  kdebase-dev
The following packages will be upgraded:
  kate kdesktop kicker konqueror konqueror-nsplugins ksysguard ksysguardd libkonq4 libsensors3
9 upgraded, 1 newly installed, 0 to remove and 1070 not upgraded.
Need to get 6411kB of archives.
After unpacking 455kB of additional disk space will be used.
Do you want to continue? [Y/n]

no with baghira problems afterwards.

GREAT theme with LOTS of adjustments possible!

Iconset for Baghira: http://www.kde-look.org/content/show.php?content=13462
Additional Icons: http://www.kde-look.org/content/show.php?content=13506&forummode=2&forumpage=1&forumexplevel=all


currently using

baghira 0.5a as KDE theme (brushed=default)
transparent, big KDE-panel (K-menu, Klipper, running apps and pager, icons for mostly used things)
gkrellm with adopted skin (ModernII: brighter, more contrast)
opera with adopted skin (Sofa King: brighter background, blue highlighted acrtive tabs)
icons: KDE standard (Crystal SVG beta1 mixed with Iconset from http://www.kde-look.org/content/show.php?content=13462)
       additional: SNOWE2-Rade8-Template

20040812: found Debian-Package of Baghira :-)
http://wfmh.org.pl/carlos

http://www.kde-look.org/content/show.php?content=12498

This is debian package for Baghira Theme /Style: http://www.kde-look.org/content/show.php?content=8692 
To install it on your Debian box add the following:

deb http://mentors.debian.net/debian unstable main contrib non-free

to your /etc/apt/sources.list and then install the package:

apt-get install kwin-style-baghira

Or use dselect (or other frontend) and browse my repository for other
KDE themes, splashes and goodies...

All bugs and issues related to the theme/style shall be reported to
its original author. Debian package issues shall be reported to me.

RATING: Please DO NOT rate the theme, style or window decoration
here. This project is just for Debian package as such, not for its
content. If you like/dislike the content go to the page of origin (URL
given above and vote there). Thanks.

Enjoy ;)
comment this entry
go to top of page

screen: Display some informations on CRT and change the content through remote ssh

solved at 20040804
man screen: search for "multiuser mode" or "multi user session"

vk@lisa:~$ cat /home/dagmar//.screenrc

hardstatus alwayslastline "%{rk}%H %{gk}%c %{yk}%M%d %{wk}%?%-Lw%?%{kw}%n*%f %t%?(%u)%?%{wk}%?%+Lw%?"

# provide access rights
addacl vk,root

# enable multiuser-mode
multiuser on

Command for attach to a multiuser-session

screen -r sessionowner/[pid.tty.host]

first try

vk@lisa:~$ screen -r dagmar/9923.pts-9.lisa
Must run suid root for multiuser support.
vk@lisa:~$

OK, don't want to do suid for now. Trying it with user root.

Works fine.

Change the default command-key C-a for user dagmar in order to be able
to connect within a screen-session without problems:

man screen

defescape xy

Set the default command characters. This is equivalent to the "escape"
except that it is useful multiuser sessions only.  In a multiuser
session "escape" changes the command character of the calling user,
where "defescape" changes the default command characters for users
that will be added later.

-> "defescape ^Bb"
-> "escape ^Bb"

escape changes the command character for the first user only and
defescape does nothing.
comment this entry
go to top of page

screen in multiuser mode for showing a slideshow in console

solved at 20040804
new user "exhibitionist" added for screen-display purposes (only)

~exhibitionist/.screenrc

# who is allowed to connect via multiuser-mode?
addacl vk,root

# allow multiuser-mode
multiuser on

# redefine C-a
defescape ^Bb
escape ^Bb

# no nag-screen, please
startup_message off

#end

Displaying jpeg-images in ASCII:

Package: hasciicam

Description: ascii for the masses
 Hasciicam makes it possible to have live ASCII video on the web. It
 captures video from a tv card and renders it into ascii, formatting the
 output into an html page with a refresh tag or in a live ASCII window or
 in a simple text file as well, giving the possibility to anybody that has a
 bttv card. a linux box and a cheap modem line to show a live ASCII video
 feed that can be browsable without any need for plugin, java etc.

-> only for HTML

man aview - A high quality ASCII art image viewer

aview can only show files in the PNM file format. But asciiview
automatically converts the file formats to PNM (with extern programs
like NetPBM and ImageMagic) and then runs aview.

Testing asciiview with a jpeg of my digicam: approx. 30sec waiting for
conversion and displaying! -> way too slow

cacaview displays directly and in color:

"apt-get install caca-utils" for getting cacaview, an aalib-imageviewer:

not yet in debian/stable (aka Woody) but found a deb-source:

http://sam.zoy.org/projects/libcaca/

deb http://sam.zoy.org/projects/debian woody main
deb-src http://sam.zoy.org/projects/debian woody main

"setterm -blank 0" in startup-file to disable the console screensaver
for user "exhibitionist"

command to get a current snapshot of the webcam

wget http://cam4.kunstlabor.at/jpg/image.jpg

cacaview in slideshow-mode? nothing found.

generating slideshow through shell-script:

slideshowcam.sh

#!/bin/bash
## define it here for viewing
IMAGENAME="image.jpg"

## define it here for pinging
SERVER="cam4.kunstlabor.at"

## this is the URL that will be fetched
URL="http://${SERVER}/jpg/${IMAGENAME}"

## description that is displayed in screen hardstatusline
DESCRIPTION="Webcam vom Kunstlabor auf die Strasse"

## this name will be used for displaying
TEMPIMAGENAME="currentimage.jpg"

##this time (in seconds) will be used to display the image
SHOWIMAGEINTERVAL=10

report()
{
    echo `date +%Y%m%d-%H.%M:%S`: $* >>$0.log
}


debug()
{
    #report $*
    echo "do nothing" >/dev/null
}


handle_cam_not_reachable()
{
    report "Sorry, cannot reach the web-cam. exiting."
    exit 1
}


show_image()
{
    debug "starting viewer"
    mv ${IMAGENAME} ${TEMPIMAGENAME}
    cacaview ${TEMPIMAGENAME} &
    CURRENTCACAVIEWPID=$!
    debug started view backgroundjob as ${CURRENTCACAVIEWPID}
}


delete_imagefile()
{
    debug "deleting old image file"
    [ -f ${IMAGENAME} ] && rm ${IMAGENAME}
}


handle_stuck_wget()
{
    report "wget job ${CURRENTWGETPID} was stuck after ${SHOWIMAGEINTERVAL} seconds, killing it now"
    kill ${CURRENTWGETPID}
}


get_new_image()
{
    debug "fetching new image ..."
    wget -q ${URL} &
    CURRENTWGETPID=$!

    debug started wget backgroundjob as ${CURRENTWGETPID}

    sleep ${SHOWIMAGEINTERVAL}
    RUNNINGWGETS=`ps xauwww|grep -v grep|grep wget`
    [ -n "${RUNNINGWGETS}" ] && handle_stuck_wget
}


handle_no_screen_found()
{
    report "no screen was found! some session sharing is not possible though!"
}


config_screen()
{
    ## start screen, if no session was found
    screen -ls|grep -q "No Sockets found" && handle_no_screen_found| 

    ## set the hardstatusline to time and window-title only
    screen -X hardstatus alwayslastline "%c %t"

    ## set the window-title to DESCRIPTION
    screen -X title "${DESCRIPTION}"
}


main_cycle()
{
    ping -q -c 1 cam4.kunstlabor.at >/dev/null || handle_cam_not_reachable
    
    [ -f ${IMAGENAME} ] && show_image
    
    ## in order to give the viewer a chance to load the image
    sleep 5
    
    delete_imagefile

    get_new_image
    
    debug "killing the viewer"
    kill ${CURRENTCACAVIEWPID}
    
    debug ${CURRENTCACAVIEWPID} killed
    
    debug "----------------------------------------------------"
}

config_screen

while true ; do main_cycle ; done

#end
comment this entry
go to top of page

DVD playback (ogle) balking

solved at 20040802
Sometimes, the CD-ROM (hdb) is not initialized using DMA

Correkt it using: hdparm -d1 -X /dev/hdb
comment this entry
go to top of page

disable the console screensaver (text-mode only)

solved at 20040802
http://www.linuxquestions.org/questions/archive/1/2003/02/4/39699
"setterm -blank 0"

... works only in current session (not permanent)

man setterm

[...]
-blank [0-60] (virtual consoles only)
   Sets the interval of inactivity, in minutes, after which
   the screen will be automatically blanked (using APM if
   available).  Without an argument, defaults to 0 (disable
   console blanking).
[...]
comment this entry
go to top of page

centericq: jabber-Account aktivieren

solved at 20040709

neues centericq-Account erstellt

Server : jabber.at:5222
Secured : no
Login : Karl
Password : *****
Priority : 4

centericq-log

+ 16:15 [jab] connecting to the server
+ 16:15 [jab] error 401: Unauthorized
+ 16:15 [jab] disconnected

amessage.info geht auch nicht. (erster Blog-Tipp! von Stefan Sollerer)

Sven: eventuell hat centericq nicht alles fuer eine erfolgreiche Accounterstellung implementiert
-> mal mit gabber Account erstellen, einloggen und danach wieder per cicq probieren:

lisa:~# apt-get install gabber
Reading Package Lists... Done
Building Dependency Tree... Done
The following extra packages will be installed:
  libdb3 libdb3-dev
Suggested packages:
  db3-doc
The following NEW packages will be installed:
  gabber
The following packages will be upgraded:
  libdb3 libdb3-dev
2 upgraded, 1 newly installed, 0 to remove and 913 not upgraded.
Need to get 2261kB of archives.
After unpacking 4878kB of additional disk space will be used.
Do you want to continue? [Y/n]

Account erfolgreich erstellt: Karl.Voit@amessage.at
Mit centericq geht es auch :-)

(dpkg -P gabber)
comment this entry
go to top of page

osdsh: after two-line-output, a short output shows the last second line

solved at 20040705
Jimmy: man-page:
it expects two line in any case, seperated by a comma.

so delete the old output by using e.g. "newmessage,"

-> verify this

OK, this solves the problem.

Good information avaliable from:
http://michael-prokop.at/blog/index.php?m=200407#174

Sniplet from ~/.centericq/external

%action display-message-via-X
event msg
proto all
status online
options nowait
%exec
~/bin/showosd.sh "centericq: `head -n 46 $CONTACT_INFODIR/info | tail -n 1`"

vk@lisa:~$ cat bin/showosd.sh

#!/bin/bash

## if no X11 found, exit
if [[ -z $(ps aux | grep "[X]11/X") ]] ; then exit 0; fi

## if a running xawtv-application found, exit
if [[ $(ps aux | grep "[x]awtv") ]] ; then exit 0; fi


## if no osdsh-server was found, start one
if [[ -z `ps aux | grep "[o]sdsh"` ]] ; then
    DISPLAY=:0.0 /usr/bin/osdsh -d 15 -p 1 -c white -n 19 -o 1 --a 1 && /bin/sleep 3 && /usr/bin/osdctl -s "centericq: $@,"
else
    /usr/bin/osdctl -s "$@,"
fi

#end
vk@lisa:~$

That does the whole thing perfectly! ... You might THINK!

BUT: if osdsh is not started yet, it wount be started by the script above.

The if-statement works as a testline above and below the line starting
with 'DISPLAY' shows. The testline afterwards is also executed, so the
line with "DISPLAY" returns (without an error message).

When I execute this "DISPLAY"-line in my bash, osdsh starts properly!

I don't have any clue, what's wrong with it...
comment this entry
go to top of page

inst: osdsh (um beliebige Msg anzeigen zu lassen)

solved at 20040630

icq-Message von Michael

$ sudo apt-get install osdsh
$ osdctl -s hui

vor dem osdctl noch "osdsh" starten

lisa:~# apt-get install osdsh
Reading Package Lists... Done
Building Dependency Tree... Done
The following extra packages will be installed:
libapm1 libxosd2 powermgmt-base
The following NEW packages will be installed:
libapm1 libxosd2 osdsh powermgmt-base
0 upgraded, 4 newly installed, 0 to remove and 907 not upgraded.
Need to get 93.9kB of archives.
After unpacking 524kB of additional disk space will be used.
Do you want to continue? [Y/n]

icq-Message von Michael

$ osdh -h                                                                               
[...]                                                                                   
-p <0|1>   position of the osd, 0 for bottom,                                           
             1 for top. Default 1 (top).                                                
  -a <0|1|2> align of the osd. left,center or right.                                    
  -n number  set the nice number so osdsh won't eat your cpu                            
                                                                                        
$ osdsh -p 1                                                                            
$ osdctl -s wuaaaaah                                                                    
                                                                                        
das sind vielleicht koffer, die haben top und bottom tatsächlich vertauscht ;-)         
und  "-a" geht bei mir überhaupt nicht, da kommt nur fehlermeldung:                     
                                                                                        
$ osdsh -a 1                                                                            
osdsh: invalid option -- a                                                              
osdsh 0.7.0                                                                             
[...]                                                                                   
                                                                                        
aber an sich tut das ganz fein

icq-Message von Michael

$ osdsh -p 0 -f -adobe-helvetica-*-*-*-*-34-*-*-*-*-*-*-* -c yellow                     
$ osdctl -s wuaaaaah                                                                    
                                                                                        
ich würds halt gerne nach rechts oben bringen z.B. - grml

~/.centericq/external

%action X11-Notification on messages
event msg
proto all
status all
options stdin stdout
%exec
osdctl -s "message from $CONTACT_NICK"
comment this entry
go to top of page

inst: elizatalk

solved at 20040630
http://elizatalk.sourceforge.net/

http://download.sourceforge.net/elizatalk/elizatalk-0.4-i386.tar.gz
downgeladen und als root install-* ausgefuehrt
hat nur ein paar dateien kopiert:

vk@lisa:~$ cat tmp/2del/elizatalk/elizatalk/install-elizatalk 
#!/bin/sh
echo Installing Elizatalk...
install -m 775 -s elizatalk /usr/bin
install -d /usr/share/elizatalk/words
install -m 666 main.dict syn.dict /usr/share/elizatalk
install -m 666 words/* /usr/share/elizatalk/words
echo Done...vk@lisa:~$

centericq konfiguriert (von Mika):

%action Eliza
event msg
proto icq
status dnd
options stdin stdout
%exec
msg=`cat`
echo $msg | elizatalk

%action eliza
event msg
proto icq
status ffc
options stdin stdout
%exec
msg=`cat`
echo $msg | elizatalk

Bin schon gespannt...
comment this entry
go to top of page

.xsession wird von GDM nicht aufgerufen (gkrellm und xterms starten)

solved at 20040628
man gdm
-> /etc/gdm/Sessions/Xfce4

Dort hinzufeguegt und gut ist:

## vk 200406: added because ~/.xsession did not work out
xterm -geometry 157x56+0+5 -bg black -fg green -T vk  -e /usr/local/bin/s &
xmodmap -e "keycode 115 = Mode_switch"
gkrellm --geometry +960+5 -w &
xterm -geometry 157x56+0+5 -bg white -fg black -T root -e su - -c s &
comment this entry
go to top of page

X-Chat: auto-identify bei Verbindung

solved at 20040623
http://www.freelug.org/impression.php3?id_article=75

bei den Servereinstellungen:
Verbindungskommando: /msg NickServ IDENTIFY <MYPASSWORD>

... und die Meldung, dass man sich gefaelligst identifizieren soll, ist weg:
"If this is your nickname, type /msg NickServ IDENTIFY"
comment this entry
go to top of page

inst: ifplugd

solved at 20040623

apt-cache show

Description: A configuration daemon for ethernet devices
 ifplugd is a daemon which will automatically configure your
 ethernet device when a cable is plugged in and automatically
 unconfigure it if the cable is pulled. This is useful on laptops with
 onboard network adapters, since it will only configure the interface
 when a cable is really connected.
 .
 Some features:
  * May beep when the cable is unplugged, plugged, the interface
    configuration succeeded or failed.
  * Syslog support
  * small
  * Multiple ethernet interface support
  * Support for wireless networking. Whenever an association to an AP
    is detected the network is configured. Have a look on waproamd
    if you need a facility to configure WEP keys before AP
    associations succeed.
  * Compatibility mode for network devices which do not support cable
    detection

maggie:~# apt-get install ifplugd 
Reading Package Lists... Done
Building Dependency Tree... Done
The following extra packages will be installed:
  libdaemon0
The following NEW packages will be installed:
  ifplugd libdaemon0
0 upgraded, 2 newly installed, 0 to remove and 514 not upgraded.
Need to get 64.1kB of archives.
After unpacking 348kB of additional disk space will be used.
Do you want to continue? [Y/n]

Installiert & funktioniert problemlos mit eth0 und DHCP (VC-Graz)

(Das Ding ruft einfach "ifup %INTERFACE" auf)
comment this entry
go to top of page

GIMP2.0 red-eye-plugin crasht

solved at 20040616
http://groups.google.com/groups?hl=de&lr=&ie=UTF-8&threadm=1MroT-6Nh-17%40gated-at.bofh.it&rnum=3&prev=/groups%3Fhl%3Dde%26lr%3D%26ie%3DUTF-8%26q%3Dgimp%2Bred-eye%26btnG%3DSuche

Vorteil: bei attachfw.sh wurden die Kernelmodule immer neu gestartet (urspr. wegen Manhattan-Chipsatzbug)

-> Perl kann irgendwie fehlen

apt-get install gimp-nonfree gimp-python

gimp wurde auch upgedated:

lisa:/data/tmp# apt-get install gimp-nonfree gimp-python
Reading Package Lists... Done
Building Dependency Tree... Done
The following extra packages will be installed:
  gimp gimp-data libgsf-1
The following NEW packages will be installed:
  gimp-python
The following packages will be upgraded:
  gimp gimp-data gimp-nonfree libgsf-1
4 upgraded, 1 newly installed, 0 to remove and 715 not upgraded.
Need to get 9351kB of archives.
After unpacking 36.9kB disk space will be freed.
Do you want to continue? [Y/n] y

Weiterhin crasht das Plugin.

http://gimpguru.org/download/red-eye.scm
... wurde da auch empfohlen

In das Plugin-Verzeichnis (wie auch redeye) downgeladen
-> ich kann's in gimp nicht finden

Anscheinend gibt's zwei Methoden:

http://gimpguru.org/Tutorials/RedEye2/

Das red-eye-Script macht aber die Fotos generell unschoen, indem ueberall Rot fehlt.
Eventuell habe ich die Parameter falsch eingestellt?

http://fmg-www.cs.ucla.edu/fmg-members/geoff/digicam/

Funktioniert leider nicht mehr.

-> Profis fragen:

Posting in Newsgroup: comp.graphics.apps.gimp

Hi!

I am not a GIMP-pro and I just want to reduce/remove the red eyes on
my digicam-photos.

With GIMP v1.2, I used a red-eye-plugin from [1] and it worked
GREAT. I just had to select the eye roughly and the plugin (which I
associated with a nice keyboard shortcut) did the rest.

Fast, easy, no pain.

Unfortunately, this script (using perl) does not work any more with my
GIMP 2.0.1-2:

"The Plugin 'redeye' has crashed." (translated from german by myself)

I have no idea how to correct this :-(

Therefore I did some google-research which ended up in three things:
1) select the eye and reduce the red channel
2) use [1]
3) use the method or the script provided at [2]

ad 1) is too complicated for me because I would have to play around
approx. 2-3 minutes per photo. Sadly I am used to quick select and
press my shortcut for the script, which doesn't work any more :-(

ad 2) haha.

ad 3) The method is too complicated for me (see 1):

The script provided at this page (Script-Fu/Selection/Red Eye*) messes
up the whole picture.

I don't know, if I choose the wrong parameters (default and/or
smaller) or something else. I couldn't figure out :-(

Anyway.

The most preferable thing would be, if someone could explain me how I
get [1] to work again...

Or another similar and equal simple method?

Thank you very much!


[1] http://fmg-www.cs.ucla.edu/fmg-members/geoff/digicam/  (redeye)
[2] http://gimpguru.org/Tutorials/RedEye2/

-> Keine Reaktion.

TUG.software: Hinweis auf

http://registry.gimp.org/file/redeye.c?action=download&id=4215

redeye.c
ohne Kompilieren ins Plugin-Verzeichnis: nix.
gcc redeye.c -o redeye -> Fehler

kein Hinweis zum Installieren im src oder am Server

Posting von Mika:
$ gimptool-2.0 --install redeye.c

-> apt-cache search -> libgimp2.0-dev

lisa:/etc/network# apt-get install libgimp2.0-dev
Reading Package Lists... Done
Building Dependency Tree... Done
The following extra packages will be installed:
  libatk1.0-0 libatk1.0-dev libgimp2.0 libglib2.0-0 libglib2.0-data libglib2.0-dev libgtk2.0-0 libgtk2.0-bin libgtk2.0-common
  libgtk2.0-dev libpango1.0-0 libpango1.0-common libpango1.0-dev
Suggested packages:
  libglib2.0-doc libgtk2.0-doc ttf-kochi-gothic ttf-kochi-mincho ttf-thryomanes ttf-baekmuk ttf-arphic-gbsn00lp ttf-arphic-bsmi00lp
  ttf-arphic-gkai00mp ttf-arphic-bkai00mp libpango1.0-doc
Recommended packages:
  libatk1.0-data
The following NEW packages will be installed:
  libatk1.0-dev libgimp2.0-dev libgtk2.0-bin libgtk2.0-dev libpango1.0-dev
The following packages will be upgraded:
  libatk1.0-0 libgimp2.0 libglib2.0-0 libglib2.0-data libglib2.0-dev libgtk2.0-0 libgtk2.0-common libpango1.0-0 libpango1.0-common
9 upgraded, 5 newly installed, 0 to remove and 827 not upgraded.
Need to get 9388kB of archives.
After unpacking 14.3MB of additional disk space will be used.
Do you want to continue? [Y/n] 

14,3MB mehr fuer den Sch****? Na, was soll's...

gimptool --install redeye.c

-> funktioniert!

aNa dann auch gleich orange-eye.c installieren.
comment this entry
go to top of page

inst: bastille

solved at 20040616
lisa:~# apt-get install bastille 
Reading Package Lists... Done
Building Dependency Tree... Done
The following extra packages will be installed:
  libcurses-perl libperl5.8 perl perl-base perl-modules perl-suid
Suggested packages:
  acct libterm-readline-perl-perl
Recommended packages:
  psad
The following packages will be REMOVED:
  perl-5.005-doc perl-doc
The following NEW packages will be installed:
  bastille libcurses-perl
The following packages will be upgraded:
  libperl5.8 perl perl-base perl-modules perl-suid
5 upgraded, 2 newly installed, 2 to remove and 836 not upgraded.
Need to get 7193kB of archives.
After unpacking 10.2MB disk space will be freed.
Do you want to continue? [Y/n]
[...]
WARNING: Bastille-firewall is not configured yet
Please create /etc/Bastille/bastille-firewall.cfg to enable it.
(HINT: use InteractiveBastille)

lisa:~#

Infos am Ende von InteractiveBastille

Completing the configuration portion of Bastille will not apply
changes to your system.  You will be asked if you would like to save
the configuration changes you have made, which will not affect your
system in any way except to write out the Bastille config file.
You will then be asked if you would like to apply the configuration to
your system.  At no point will you be forced to make the configuration
apply to your system.

If you should choose to apply the configuration to your system then
Bastille will make changes to your system and create a TODO list in
/var/log/Bastille/TODO of remaining steps which you should do to secure
your system, based on your answers to the questions.
After you have run the Bastille backend, you should review the list
and make the necessary changes to your system.  You should also
look at the Error log created in /var/log/Bastille/error-log
to make sure that Bastille did not fail unexpectedly in any of its tasks.

Answer NO if you want to go back and make changes to the configuration!

/etc/security/limits.conf

## vk 200406: guessed values:
@users           soft    nofiles         1000
@users           hard    nofiles         1500
@users           soft    nproc           50
@users           hard    nproc           75

# End of file
# prevent core dumps
*       hard    core    0

Kann nicht mehr slrn -> leafnode starten

[...]
/home/vk/.slrn/scoring has expired score on line 5329
/home/vk/.slrn/scoring has expired score on line 5342
/home/vk/.slrn/scoring has expired score on line 7830
Using newsrc file /home/vk/.jnewsrc for server localhost.
Connecting to host localhost ...
Failed to initialize server
Reason:
slrn fatal error:
Failed to initialize server.
vk@lisa:~$

strace slrn

[...]
select(5, [4], NULL, NULL, {120, 0})    = 1 (in [4], left {119, 990000})
read(4, "", 8192)                       = 0
close(4)                                = 0
write(2, "\n", 1
)                       = 1
write(2, "Failed to initialize server", 27Failed to initialize server) = 27
write(2, "\n", 1
)                       = 1
write(2, "Reason: ", 8Reason: )                 = 8
write(2, "\n", 1
)                       = 1
rt_sigprocmask(SIG_BLOCK, [INT QUIT TSTP TTIN TTOU WINCH], [RTMIN], 8) = 0
rt_sigprocmask(SIG_SETMASK, [RTMIN], NULL, 8) = 0
write(2, "slrn fatal error:", 17slrn fatal error:)       = 17
write(2, "\n", 1
)                       = 1
write(2, "Failed to initialize server.", 28Failed to initialize server.) = 28
rt_sigprocmask(SIG_BLOCK, [INT QUIT TSTP TTIN TTOU WINCH], [RTMIN], 8) = 0
rt_sigprocmask(SIG_SETMASK, [RTMIN], NULL, 8) = 0
unlink("/home/vk/.jnewsrc-lock")        = 0
write(2, "\n", 1
)                       = 1
munmap(0x4032b000, 4096)                = 0
munmap(0x40319000, 4096)                = 0
exit_group(1)                           = ?
vk@lisa:~$

chmod 0755 /usr/sbin/tcpd
... hat geholfen.
comment this entry
go to top of page

leafnode auf leafnode-2.0b8_ma9 (tarball) updaten

solved at 20040616
apt-get install leafnode-

/data/src/x86/leafnode-2.0b8_ma9:
./configure
./make
(root:)
make install-strip

lisa:/data/src/x86/leafnode-2.0b8_ma9# make install-strip
make  INSTALL_PROGRAM="/bin/sh /data/src/x86/leafnode-2.0b8_ma9/install-sh -c -s" \
  `test -z 'strip' || \
    echo "INSTALL_PROGRAM_ENV=STRIPPROG='strip'"` install
make[1]: Entering directory `/data/src/x86/leafnode-2.0b8_ma9'
make[2]: Entering directory `/data/src/x86/leafnode-2.0b8_ma9'
/bin/sh ./mkinstalldirs /usr/local/bin
 STRIPPROG='strip' /bin/sh /data/src/x86/leafnode-2.0b8_ma9/install-sh -c -s leafnode-version /usr/local/bin/leafnode-version
 STRIPPROG='strip' /bin/sh /data/src/x86/leafnode-2.0b8_ma9/install-sh -c -s newsq /usr/local/bin/newsq
/bin/sh ./mkinstalldirs /usr/local/sbin
 STRIPPROG='strip' /bin/sh /data/src/x86/leafnode-2.0b8_ma9/install-sh -c -s applyfilter /usr/local/sbin/applyfilter
 STRIPPROG='strip' /bin/sh /data/src/x86/leafnode-2.0b8_ma9/install-sh -c -s checkgroups /usr/local/sbin/checkgroups
 STRIPPROG='strip' /bin/sh /data/src/x86/leafnode-2.0b8_ma9/install-sh -c -s fetchnews /usr/local/sbin/fetchnews
 STRIPPROG='strip' /bin/sh /data/src/x86/leafnode-2.0b8_ma9/install-sh -c -s leafnode /usr/local/sbin/leafnode
 STRIPPROG='strip' /bin/sh /data/src/x86/leafnode-2.0b8_ma9/install-sh -c -s lsort /usr/local/sbin/lsort
 STRIPPROG='strip' /bin/sh /data/src/x86/leafnode-2.0b8_ma9/install-sh -c -s texpire /usr/local/sbin/texpire
/bin/sh ./mkinstalldirs /etc/leafnode
mkdir /etc/leafnode
 /usr/bin/install -c -m 644 config.example /etc/leafnode/config.example
/bin/sh ./mkinstalldirs /usr/local/man/man1
 /usr/bin/install -c -m 644 ./newsq.1 /usr/local/man/man1/newsq.1
/bin/sh ./mkinstalldirs /usr/local/man/man5
 /usr/bin/install -c -m 644 ./filterfile.5 /usr/local/man/man5/filterfile.5
/bin/sh ./mkinstalldirs /usr/local/man/man8
mkdir /usr/local/man/man8
 /usr/bin/install -c -m 644 ./applyfilter.8 /usr/local/man/man8/applyfilter.8
 /usr/bin/install -c -m 644 ./checkgroups.8 /usr/local/man/man8/checkgroups.8
 /usr/bin/install -c -m 644 ./fetchnews.8 /usr/local/man/man8/fetchnews.8
 /usr/bin/install -c -m 644 ./leafnode.8 /usr/local/man/man8/leafnode.8
 /usr/bin/install -c -m 644 ./texpire.8 /usr/local/man/man8/texpire.8
make  install-data-hook
make[3]: Entering directory `/data/src/x86/leafnode-2.0b8_ma9'
/usr/bin/install -c -d -m 750 /var/spool/news
/usr/bin/install -c -d -m 750 /var/spool/news/leaf.node
./amiroot && chown news /var/spool/news
./amiroot && chown news /var/spool/news/leaf.node
./amiroot && chgrp news /var/spool/news
./amiroot && chgrp news /var/spool/news/leaf.node
p=/var/spool/news/leaf.node/groupinfo ; \
test -f $p || cp /dev/null $p
p=`dirname /var/lock/news/fetchnews.lck` ; \
if test ! -d $p ; then \
  /usr/bin/install -c -d -m 750 $p ; \
  ./amiroot && chown news $p ; \
  ./amiroot && chgrp news $p ; true ; \
        fi
p=/etc/leafnode/local.groups ; \
test -f $p || cp /dev/null $p
rm -f /usr/local/sbin/leafnode-version
./amiroot && p=/usr/local/bin/newsq && chown 0 $p \
        && chgrp news $p && chmod 2755 $p  ; true

*** DO MAKE SURE THAT YOU RUN texpire -r IF YOU HAVE ARTICLES IN THE SPOOL ***

Then edit /etc/inetd.conf to start /usr/local/sbin/leafnode
and restart inetd. Also read the instructions on updating in the README file.
make[3]: Leaving directory `/data/src/x86/leafnode-2.0b8_ma9'
make[2]: Leaving directory `/data/src/x86/leafnode-2.0b8_ma9'
make[1]: Leaving directory `/data/src/x86/leafnode-2.0b8_ma9'
lisa:/data/src/x86/leafnode-2.0b8_ma9#

cp /etc/news/leafnode/config /etc/leafnode/

lisa:/etc/leafnode# texpire -r
config: "expire=50" found in section of server news.gmane.org, please move it in front of any server declaration
Unknown config line "groupexpire tu-graz.anzeigen.*=60" ignored
Unknown config line "groupexpire tu-graz.diverses=50" ignored
Unknown config line "groupexpire tu-graz.sbox=100" ignored
Unknown config line "groupexpire tu-graz.lv.*=365" ignored
Unknown config line "groupexpire tu-graz.telematik=100" ignored
Unknown config line "groupexpire tu-graz.studienplan.*=400" ignored
Unknown config line "groupexpire tu-graz.test=60" ignored
Unknown config line "groupexpire tu-graz.cancel-reports=10" ignored
Unknown config line "groupexpire vc-graz=30" ignored
Unknown config line "groupexpire comp.sys.palmtops.*=20" ignored
Unknown config line "groupexpire at.*=60" ignored
Unknown config line "groupexpire comp.*=30" ignored
Unknown config line "groupexpire alt.comp.sys.*=30" ignored
Unknown config line "groupexpire alt.*=60" ignored
Unknown config line "groupexpire de.comp.*=30" ignored
Unknown config line "groupexpire de.*=60" ignored
Unknown config line "groupexpire microsoft.*=60" ignored
Unknown config line "groupexpire linux.*=60" ignored
config: "initialfetch=7000" found in section of server news.gmane.org, please move it in front of any server declaration
config: "maxage=30" found in section of server news.gmane.org, please move it in front of any server declaration
maxage is obsolete: use filterfile instead
config: "maxlines=1000" found in section of server news.gmane.org, please move it in front of any server declaration
maxlines is obsolete: use filterfile instead
config: "minlines=2" found in section of server news.gmane.org, please move it in front of any server declaration
minlines is obsolete: use filterfile instead
config: "maxbytes=50000" found in section of server news.gmane.org, please move it in front of any server declaration
maxbytes is obsolete: use filterfile instead
config: "timeout_short=2" found in section of server news.gmane.org, please move it in front of any server declaration
config: "timeout_long=200" found in section of server news.gmane.org, please move it in front of any server declaration
config: "hostname=lisa.homeunix.net" found in section of server news.gmane.org, please move it in front of any server declaration
reading /var/spool/news/leaf.node/groupinfo and /etc/leafnode/local.groups
found 0 articles in in.coming.
message.id: 4251 articles deleted, 0 kept
lisa:/etc/leafnode#

-> config anpassen

[erledigt]

fetchnews -fvvv

lisa:/etc/network# fetchnews -fvvv
fetchnews: version 2.0b8_ma9; verbosity level is 3; debugging level is 0
found 0 articles in in.coming.
expiring interesting.groups
news.tu-graz.ac.at: connecting to port nntp
  trying address 129.27.3.22 port 119...
  connected: address 129.27.3.22 port 119.
news.tu-graz.ac.at: connected (200), banner: "200 news.tugraz.at InterNetNews NNRP server INN 2.4.1 ready (posting ok)."
news.tu-graz.ac.at: TCP send buffer size is 16384
news.tu-graz.ac.at: getting newsgroups list
news.tu-graz.ac.at: read 186 newsgroups
news.tu-graz.ac.at: getting newsgroup descriptions
tu-graz.anzeigen.arbeitsmarkt: no new articles
tu-graz.anzeigen.computer: no new articles
tu-graz.anzeigen.diverses: considering 2 articles 21494 - 21495, using XOVER
tu-graz.anzeigen.diverses: will fetch 2 articles
sent ARTICLE 21494 command, in pipe: 1
sent ARTICLE 21495 command, in pipe: 2
received article, in pipe: 1
received article, in pipe: 0
tu-graz.anzeigen.diverses: 2 articles fetched (to 12875), 0 killed
[...]

Canceltest:

fetchnews -vvv

[...]
found 2 articles in out.going.
Posting /var/spool/news/out.going/9310-1087388123-1
Unable to post /var/spool/news/out.going/9310-1087388123-1: "441 435 Duplicate", moving to /var/spool/news//failed.postings/
Posting /var/spool/news/out.going/9497-1087388779-1
news.tu-graz.ac.at: 1 articles posted
[...]

lisa:/var/spool/news/failed.postings# cat 9310-1087388123-1

From: Karl Voit <devnull@Karl-Voit.at>
Newsgroups: tu-graz.test
Subject: cmsg cancel <slrncd0ed2.8r1.devnull@lisa.homeunix.net>
Control: cancel <slrncd0ed2.8r1.devnull@lisa.homeunix.net>
Path: lisa.homeunix.net!not-for-mail
Date: Wed, 16 Jun 2004 14:15:23 +0200
Message-ID: <rkdpac.u29.ln@lisa.homeunix.net>

ignore
Article cancelled by slrn 0.9.8.0

Mist. Canceln geht leider nicht.

Laut feedback aus tug-test wird am Server erfolgreich gecancelt.
Die Msg-ID meines Testpostings wird nicht mehr gefunden.
In meinem lokalen slrn kann ich das Posting aber sehr wohl noch lesen.

Cancel-Msg vom Server werden aber passend behandelt.
comment this entry
go to top of page

Kopierperformance IceCube -&gt; IceCube

solved at 20040610
vk@maggie:~$ time cp -a /data/music/ripped /mnt/fw/backups/data/music/
real 44m6.453s
user 0m3.907s
sys 7m58.835s
vk@maggie:~$

du -> 23860724 /data/music/ripped

-> 9038 MB/s

Aber:

kern.log

Jun  9 18:37:23 maggie kernel: ieee1394: sbp2: Reconnected to SBP-2 device
Jun  9 18:37:23 maggie kernel: ieee1394: unsolicited response packet received - np
Jun  9 18:37:23 maggie kernel: ieee1394: contents: ffc23520 ffc00000 00000000 7a6a5194
Jun  9 18:37:23 maggie kernel: ieee1394: sbp2: Node 0-00:1023: Max speed [S400] - Max payload [2048]
Jun  9 18:37:23 maggie kernel: ieee1394: unsolicited response packet received - np
Jun  9 18:37:23 maggie kernel: ieee1394: contents: ffc23920 ffc00000 00000000 7c6a5194
Jun  9 18:37:24 maggie kernel: ieee1394: ConfigROM quadlet transaction error for node 0-01:1023
Jun  9 18:37:24 maggie kernel: ieee1394: Node removed: ID:BUS[0-01:1023]  GUID[0001d20000214b21]
Jun  9 18:37:25 maggie kernel: ieee1394: sbp2: Logged out of SBP-2 device
Jun  9 18:40:42 maggie kernel: ieee1394: sbp2: Reconnected to SBP-2 device
Jun  9 18:40:42 maggie kernel: ieee1394: unsolicited response packet received - np
Jun  9 18:40:42 maggie kernel: ieee1394: contents: ffc25520 ffc00000 00000000 05595194
Jun  9 18:40:42 maggie kernel: ieee1394: sbp2: Node 0-00:1023: Max speed [S400] - Max payload [2048]
Jun  9 18:40:42 maggie kernel: ieee1394: unsolicited response packet received - np
Jun  9 18:40:42 maggie kernel: ieee1394: contents: ffc25920 ffc00000 00000000 07595194
Jun  9 18:40:43 maggie kernel: ieee1394: ConfigROM quadlet transaction error for node 0-01:1023
Jun  9 18:40:49 maggie kernel: ieee1394: sbp2: Reconnected to SBP-2 device
Jun  9 18:40:49 maggie kernel: ieee1394: sbp2: Node 0-00:1023: Max speed [S400] - Max payload [2048]
Jun  9 18:40:49 maggie kernel: ieee1394: sbp2: Logged into SBP-2 device
Jun  9 18:40:49 maggie kernel: ieee1394: sbp2: Node 0-01:1023: Max speed [S400] - Max payload [2048]
Jun  9 18:40:49 maggie kernel: ieee1394: Node added: ID:BUS[0-01:1023]  GUID[0001d20000214b21]
Jun  9 18:40:49 maggie kernel: scsi singledevice 0 0 0 0
Jun  9 18:40:49 maggie kernel: scsi singledevice 0 0 1 0
Jun  9 18:40:50 maggie kernel: scsi singledevice 0 0 2 0
Jun  9 18:40:50 maggie kernel: scsi singledevice 0 0 3 0
Jun  9 18:40:50 maggie kernel: scsi singledevice 0 0 4 0
Jun  9 18:40:50 maggie kernel: scsi singledevice 0 0 5 0
Jun  9 18:40:50 maggie kernel: scsi singledevice 0 0 6 0
Jun  9 18:40:50 maggie kernel: scsi singledevice 0 0 7 0
Jun  9 18:40:50 maggie kernel: scsi singledevice 1 0 0 0
Jun  9 18:40:50 maggie kernel: scsi singledevice 1 0 1 0
Jun  9 18:40:50 maggie kernel: scsi singledevice 1 0 2 0
Jun  9 18:40:50 maggie kernel: scsi singledevice 1 0 3 0
Jun  9 18:40:50 maggie kernel: scsi singledevice 1 0 4 0
Jun  9 18:40:50 maggie kernel: scsi singledevice 1 0 5 0
Jun  9 18:40:50 maggie kernel: scsi singledevice 1 0 6 0
Jun  9 18:40:50 maggie kernel: scsi singledevice 1 0 7 0
Jun  9 18:41:20 maggie kernel: ieee1394: sbp2: aborting sbp2 command
Jun  9 18:41:20 maggie kernel: Read (10) 00 00 00 00 3f 00 00 08 00 
Jun  9 18:41:30 maggie kernel: ieee1394: sbp2: aborting sbp2 command
Jun  9 18:41:30 maggie kernel: Test Unit Ready 00 00 00 00 00 
Jun  9 18:41:30 maggie kernel: ieee1394: sbp2: reset requested
Jun  9 18:41:30 maggie kernel: ieee1394: sbp2: Generating sbp2 fetch agent reset
Jun  9 18:41:40 maggie kernel: ieee1394: sbp2: aborting sbp2 command
Jun  9 18:41:40 maggie kernel: Test Unit Ready 00 00 00 00 00 
Jun  9 18:41:40 maggie kernel: ieee1394: sbp2: reset requested
Jun  9 18:41:40 maggie kernel: ieee1394: sbp2: Generating sbp2 fetch agent reset
[...]
comment this entry
go to top of page

CD-ROM laesst sich nicht mehr oeffnen

solved at 20040601
maggie:/etc/hotplug/ieee1394# eject
eject: unable to open `/dev/cdrom'
maggie:/etc/hotplug/ieee1394# l /dev/cdrom
lrwxrwxrwx 1 root root 8 Jul 1 2003 /dev/cdrom -> /dev/sr0
maggie:/etc/hotplug/ieee1394# eject /dev/sr0
eject: unable to open `/dev/scd0'
maggie:/etc/hotplug/ieee1394# l /dev/sr0
lrwxrwxrwx 1 root root 4 Oct 25 2002 /dev/sr0 -> scd0
maggie:/etc/hotplug/ieee1394# eject /dev/scd0
eject: unable to open `/dev/scd0'
maggie:/etc/hotplug/ieee1394#

maggie:~# rm /dev/cdrom
maggie:~# ln -s /dev/hdb /dev/cdrom
maggie:~# rm /dev/dvd
maggie:~# ln -s /dev/hdb /dev/dvd
maggie:~# eject
maggie:~#
(funktioniert wieder)

~/.abcde -> auf hdb umgestellt
comment this entry
go to top of page

ALT_R geht nach KDE322 installieren nicht mehr

solved at 20040505
ALT_R+g -> Gradzeichen
ALT_R+o -> oe
usw.

Newsgroups: tu-graz.betriebssysteme.linux                                                                                            
Subject: Re: KDE und eigene xmodmap (HHKB)                                                                                           
Date: Wed, 5 May 2004 15:37:50 +0200                                                                                                 
Organization: www.karl-voit.at                                                                                                       
Reply-To: news@Karl-Voit.at                                                                                                          
X-No-Archive: no                                                                                                                     
X-GPG-Key: http://www.Karl-Voit.at/Karl_Voit_GnuPG_public_key.gpg                                                                    
X-Registered-Linux-User: 224337                                                                                                      
X-Confession: church of TUX                                                                                                          
User-Agent: slrn/0.9.8.0 (Linux)                                                                                                     
                                                                                                                                     
begin  followup to Michael Prokop <devnull@michael-prokop.at>:                                                                       
>                                                                                                                                    
> Auswendig, ungetestet und ohne Gewähr (aber daheim selbst im                                                                       
> identischen Setup im Einsatz):                                                                                                     
>                                                                                                                                    
> Unter kcontrol -> Regional... -> Keyboard-Layout -> "Xkb Options"                                                                  
> die Xkb-Options aktivieren.                                                                                                        
                                                                                                                                     
Die waren schon aktiviert.                                                                                                           
                                                                                                                                     
Die Einstellungen dort sind mir aber nicht ganz intuitiv vorgekommen,                                                                
da ich nicht weiss, wie meine Modifier sein sollten.                                                                                 
                                                                                                                                     
Derzeit: alles deaktiviert bis auf "Alt and Meta on the Alt keys"                                                                    
                                                                                                                                     
Darunter steht dann:                                                                                                                 
-> command: "setxkbmap -option altwin:meta_alt"                                                                                      
                                                                                                                                     
> Und check dann sicherheitshalber auch                                                                                              
> mal die Modifier-Keys in kcontrol.                                       

KDE neustarten, alles geht.
comment this entry
go to top of page

nach KDE322 geht emacs nicht mehr: No fonts match `-*-*-medium-r-normal--14-*-*-*-c-*-iso8859-15'

solved at 20040505
http://groups.google.com/groups?hl=de&lr=&ie=UTF-8&oe=UTF-8&threadm=20021227193224.GB8672%40qno.de&rnum=3&prev=/groups%3Fq%3Dkde%2B%2522No%2Bfonts%2Bmatch%2522%26sourceid%3Dopera%26num%3D0%26ie%3Dutf-8%26oe%3Dutf-8

lisa:~# apt-get install xfonts-terminus

Reading Package Lists... Done
Building Dependency Tree... Done
The following NEW packages will be installed:
  xfonts-terminus
0 upgraded, 1 newly installed, 0 to remove and 663 not upgraded.
Need to get 556kB of archives.
After unpacking 967kB of additional disk space will be used.
Get:1 http://ftp.tu-graz.ac.at unstable/main xfonts-terminus 4.06-1 [556kB]
Fetched 556kB in 1s (460kB/s)

Brachte auch nix.

in .Xresources gefunden

! ---- language-env DON'T MODIFY THIS LINE!
! ISO-8859-15 (Latin-9) fonts for XTerm
XTerm*Font: -misc-fixed-medium-r-normal--13-*-*-*-*-*-iso8859-15
XTerm*Font2: -misc-fixed-medium-r-normal--8-*-*-*-*-*-iso8859-15
XTerm*Font3: -misc-fixed-medium-r-normal--10-*-*-*-*-*-iso8859-15
XTerm*Font4: -misc-fixed-medium-r-normal--13-*-*-*-*-*-iso8859-15
XTerm*Font5: -misc-fixed-medium-r-normal--18-*-*-*-*-*-iso8859-15
XTerm*Font6: -misc-fixed-medium-r-normal--20-*-*-*-*-*-iso8859-15
! ISO-8859-15 (Latin-9) fonts for Rxvt
Rxvt*font: -misc-fixed-medium-r-normal--13-*-*-*-*-*-iso8859-15
Rxvt*font2: -misc-fixed-medium-r-normal--8-*-*-*-*-*-iso8859-15
Rxvt*font3: -misc-fixed-medium-r-normal--10-*-*-*-*-*-iso8859-15
Rxvt*font4: -misc-fixed-medium-r-normal--13-*-*-*-*-*-iso8859-15
Rxvt*font5: -misc-fixed-medium-r-normal--18-*-*-*-*-*-iso8859-15
Rxvt*font6: -misc-fixed-medium-r-normal--20-*-*-*-*-*-iso8859-15
! ISO-8859-15 fonts for many softwares
*font:-*-*-medium-r-normal--14-*-*-*-c-*-iso8859-15
! ---- language-env end DON'T MODIFY THIS LINE!

Auskommentieren der Zeile mit "*font:-*-*-medium-r-normal--14-*-*-*-c-*-iso8859-15" brachte nichts
.Xresources neu einlesen?

-> Michael Prokop fragen:
xrdb -merge ~/.Xresources

findet noch immer nicht

.emacs.../main.el:
(set-default-font "-xos4-terminus-medium-r-normal--20-200-72-72-c-100-iso8859-15")

noch immer nicht gefunden

->X11 komplett neu starten

Fonts gefunden.

xfontsel praktisch zum Schriftensuchen
comment this entry
go to top of page

Verbindung per USB herstellen und per AQPkg updaten

solved at 20040428
modprobe usbserial
ifup usb0
-> geht scho

am Zaurus im AQPkg proxy und aktiver Server geupdated und los ging's

beim Paket "opie-update" wird OPIE unsanft beendet
-> muss irgendwie von konsole aus updaten...

-> ipkg [update,install,remove,files,search,info]

ipkg install opie-update
-> deinstalliert alles und installiert neu
beim Paket "opie-language" gab's einen WWWOFFLE Remote Host Error

(weiterlaufen ueber Nacht)

Z war ausgeschalten und hat offenbar mittendrin abgebrochen :-(
opie-todo zB hat gefehlt.

-> alles Kaese
OZ3.3.5 downgeladen und neu geflasht!
zImage-SL-5500-2_4_18-40memory-24storage.bin
initrd.bin

inst (Notizen)

kismet
less
libvorbisdec1
opie-mediaplayer2
opie-tabmanager
opie-wellenreiter
rsync
comment this entry
go to top of page

X11/XFree86: Aufloesung interaktiv per xvidtune aendern

solved at 20040426
vk@lisa:~$ asroot xvidtune -prev
non-network local connections being added to access control list
Password:
Vendor: , Model:
Num hsync: 1, Num vsync: 1
hsync range 0: 27.00 - 102.00
vsync range 0: 50.00 - 160.00
vk@lisa:~$
comment this entry
go to top of page

exakte Duplikate suchen (/data/music/downloaded)

solved at 20040424
Tipps aus at.linux:
Für exakte Kopien kann ich Dir das da ans Herz legen, hat bei mir                                                                   
ziemlich gut aufgeräumt:                                                                                                            
             http://freshmeat.net/projects/fdupes/
Möglicherweise:                                                                                                                     
http://midori.shacknet.nu/dff/index.php                                                                                             
                                                                                                                                    
Zumindest hat Ian mal davon geredet, dass er "unscharfe" Vergleiche                                                                 
einbauen will.                                                                                                                      
                                                                                                                                    
> Hat hier jemand Tipps parat?                                                                                                      
>                                                                                                                                   
> Fuer's erste wuerde mir auch mal ein Tool reichen, dass _exakte_                                                                  
> Kopien aufstoebern kann.                                                                                                          
                                                                                                                                    
http://www.landfield.com/software/comp.sources.misc/packages/finddup/
Für Bilder: gqview                                                                                                                  
Kann nach ähnlichen Bildern suchen.

im Debian d'rinnen: fdupes
... schaut recht gut aus fuer idente Kopien (Name && Groesse)


vk@maggie:/data/music/downloaded$ fdupes -r -n -S .


vk@maggie:/data/music/downloaded$ l
total 60
drwxr-sr-x 10 vk vk 4096 Apr 24 02:49 .
drwxr-xr-x 4 vk vk 4096 Feb 20 01:11 ..
drwxr-sr-x 3 vk vk 4096 Apr 23 18:26 classic
drwxr-sr-x 23 vk vk 4096 Apr 24 02:25 fun
drwxr-sr-x 19 vk vk 4096 Apr 24 03:44 jazz
drwxr-sr-x 7 vk vk 4096 Apr 24 04:23 misc
drwxr-sr-x 4 vk vk 20480 Apr 24 02:48 pop
drwxr-sr-x 56 vk vk 4096 Apr 24 02:44 sampler
drwxr-sr-x 60 vk vk 8192 Apr 24 03:11 soundtracks
drwxr-xr-x 8 vk vk 4096 Apr 24 03:10 unsorted
vk@maggie:/data/music/downloaded$
du:
58580 ./classic/Grieg - The Best Of
87608 ./classic
1368236 ./fun
1084660 ./jazz
467660 ./misc
3470332 ./soundtracks
4 ./unsorted/error/mp3cd09_ERROR
648816 ./unsorted/error/mp3cd13_error_at_eagles_long_run_7-10
646748 ./unsorted/error/mp3cd16
647660 ./unsorted/error/mp3cd22
548688 ./unsorted/error/mp3cd24
622776 ./unsorted/error/mp3cd27
658272 ./unsorted/error/mp3cd28
294080 ./unsorted/error/mp3cd34
4067048 ./unsorted/error
55120 ./unsorted/knapster
64108 ./unsorted/Neue deutsche Reimkultur
69796 ./unsorted/Beach Boys - Pet Sounds
275688 ./unsorted/Projekt X
107704 ./unsorted/finished_but_not_heard
4639468 ./unsorted
23956848 ./pop/unsorted_songs
29375896 ./pop/complete_CDs
53332764 ./pop
4920212 ./sampler

vor dem Ausmisten

69371076	.
Und nach dem Ausmisten:
67846144	.
comment this entry
go to top of page

Uebertragungstests Map-H31x Series USB/FW

solved at 20040423
von IceCube -> Map
/data/music/ripped (23423768 Bytes)
in 38m15s
-> 10206 B/s

iBook-HDD -> Map: 12 MB/s
Map -> iBook-HDD: 12 MB/s

I/O-Error nach zig GBs (Backup von IceCube -> Map)
comment this entry
go to top of page

Maus geht nicht anzusprechen

solved at 20040422
modprobe mousedev
modprobe psmouse
comment this entry
go to top of page

url_handler.sh auf FireFox umschreiben

solved at 20040407

man firefox

-remote command
   Execute command in an already running Mozilla process.  For more
   info, see: http://www.mozilla.org/unix/remote.html

mozilla -remote "openurl(http://www.mozilla.org)"
openURL (URL, new-tab)

Loesung

## Opera v6:
## /usr/bin/opera -newpage "$1"

## FireFox 0.8:
/usr/bin/firefox -remote "openurl($1, new-tab)"
comment this entry
go to top of page

DVD-RAM einrichten und testen

solved at 20040405
Date: Tue, 9 Mar 2004 8:21:7 +0100
From: Albert Steiner
To: Karl Voit
Subject: DVD-RAM
X-mailer: FoxMail 4.0 beta 2 [z.B.]
Content-Type: text/plain;
      charset="us-ascii"

Hi,
falls es Dich interessiert:

 ln -s /dev/hdc /dev/dvdram

 mkdir /media/dvdram

in der Datei /etc/fstab hinzuf?gen
/dev/dvdram     /media/dvdram           auto    rw,noauto,user,exec  0 0

dannach :

fdisk /dev/hdc

mke2fs -j /dev/hdc

mount /media/dvdram

und man hat ein super wechsellaufwerk, einfach genial das teil:-))

hat sich 100% rentiert der LG Brenner !

lg
albert

Besser:
mke2fs -L dvdram1 -m 0 /dev/dvdram

Journal auf DVDRAM sehr fraglich, reservierte Bloecke eher unnoetig und mountbar per Label wie zB:

/etc/fstab

LABEL=dvdram1       /mnt/dvdram   ext2    rw,user,noauto    0    0

tune2fs -c 0 -i 0 /dev/dvdram
comment this entry
go to top of page

In ein gesichertes LAN per ssh einen Tunnel nach innen aufbauen (c't 7/2004 S.198f)

solved at 20040404
Client in einem LAN (hinter Firewall, die ssh nach aussen zulaesst)
pollt dauernd einen host (trigger.dnsalias.net) und macht Verbindung,
falls gefunden.

Diese Verbindung wird dann in einen Remote Tunnel umgewandelt, den
der Rechner ausserhalb des LANs fuer Verbindungszwecke zum Client
im LAN nehmen kann.

zB: "ssh -p 50022 127.0.0.1" startet eine ssh-Session zum Rechner im LAN.
http://127.0.0.1:50088 greift per http auf den Rechner im LAN zu.

Wichtig ist, dass die ssh-Session ohne PW-Abfrage und ohne Passphrase-Abfrage
zustandekommen muss. Also ssh-agent mit authorized keys benutzen:

ssh-keygen -N '' -t dsa -f ~/.ssh/vpn.id_dsa
cat vpn.id_dsa >> ssh/authorized_keys
ssh -i .ssh/vpn.id_dsa trigger.dnsalias.net

extern.sh

#!/bin/bash

# Hier muss der DynDNS-Name hinein, für das Beispiel im Aritkel
# DDHOST=trigger.dnsalias.net
DDHOST=

# Hier muss ein Port stehen, der in einer R-Tunnel-Definition
# auf dem Rechner im LAN auftritt
PORT=50080

# Alle Skripte aus dem Verzeichnis /etc/ppp/ip-up.d werden 
# aufgerufen, sobald die PPP-Verbindung steht.
# Wenn Sie dieses Skript in das
# Verzeichnis kopieren, setzt es bei jedem Verbindungs-
# aufbau die VPN-Verbindung zurück.
if [[ $0 == /etc/ppp/ip-up.d/* ]]
then
	ddclient -quiet -host "$DDHOST" -ip 127.0.0.1
else

	# Hier kommt der interaktive Aufruf	
	case "$1" in
		up|start|on)
			ddclient -quiet -host "$DDHOST"
			echo "Verbindung angestoßen, bitte warten"
			until fuser -sn tcp "$PORT" 
			do
				echo -n .
				sleep 1
			done
			echo
		;;

		down|stop|off)
			ddclient -quiet -host "$DDHOST" -ip 127.0.0.1
			fuser -sk -n tcp "$PORT"
		;;

		status)
			if fuser -sn tcp "$PORT" 
			then
				echo VPN aufgebaut.
			else
				echo VPN nicht aufgebaut.
			fi
		;;

		*)
			echo "Aufruf: $0 [up|down|status]"
		;;
	esac
fi

intern.sh

#!/bin/sh

# Hier muss der DynDNS-Name hinein, für das Beispiel im Aritkel
# DDHOST=trigger.dnsalias.net
DDHOST=

while true
do
	host "$DDHOST" | grep -q -v 127.0.0.1 && ssh -nN vpn

	sleep 60
done

ssh_config

#  Die Einträge, deren Kommentar mit #* beginnt, müssen geändert werden
#  Name des Eintrags
Host vpn
#* Name des SSH-Servers, muss geändert werden
HostName trigger.dnsalias.net
#  Timeouts einstellen und Ausgaben unterdrücken
BatchMode yes
#  Die IP-Adresse des Servers ändert sich ständig
CheckHostIP no
#  Nur mit dem richtigen Server verbinden, der sich mit seinem Key ausweist
StrictHostKeyChecking yes
#  Per Public Key anmelden
PreferredAuthentications publickey
#* Und zwar mit dem aus dieser Datei
IdentityFile /home/je/.ssh/vpn.id_dsa
#  Ein R-Tunnel für SSH auf den Client
RemoteForward 50022 127.0.0.1:22
#* Ein R-Tunnel auf einen Intranet-Server
RemoteForward 50080 intern.lan.net:80
comment this entry
go to top of page

mailfilter: "Speicherzugriffsfehler"

solved at 20040322

fetchmail.log

fetchmail: awakened at Mon Mar 22 04:39:30 2004
mailfilter: 0.6 querying pop.pronet.at on Mon Mar 22 04:39:30 2004
mailfilter: Examining 0 message(s).
fetchmail: Server CommonName mismatch: localhost != imap.pronet.at
fetchmail: Server CommonName mismatch: localhost != imap.pronet.at
fetchmail: awakened at Mon Mar 22 04:41:37 2004
fetchmail: pre-connection command failed with status 11
fetchmail: Query status=5 (SYNTAX)

vk@lisa:~$ /usr/bin/mailfilter -M ~/.mailfilterrc
mailfilter: 0.6 querying pop.pronet.at on Mon Mar 22 15:27:50 2004
mailfilter: Examining 16 message(s).
Speicherzugriffsfehler
vk@lisa:~$ 

-> Upgrade:

vk@lisa:~$ /usr/bin/mailfilter -M ~/.mailfilterrc
mailfilter: 0.6.1 querying pop.pronet.at on Mon Mar 22 15:30:44 2004
mailfilter: Examining 16 message(s).
Speicherzugriffsfehler
vk@lisa:~$ 

fetchmail.log

fetchmail: awakened at Mon Mar 22 10:38:19 2004
fetchmail: pre-connection command failed with status 11
fetchmail: Query status=5 (SYNTAX)

mailfilter deaktiviert:
-> Alle Mails geholt:

vk@lisa:~$ /usr/bin/mailfilter -M ~/.mailfilterrc
mailfilter: 0.6.1 querying pop.pronet.at on Mon Mar 22 15:59:58 2004
mailfilter: Examining 1 message(s).
Speicherzugriffsfehler
vk@lisa:~$ 

fetchmail.log

fetchmail: awakened at Mon Mar 22 15:56:45 2004
fetchmail: Server CommonName mismatch: localhost != imap.pronet.at
fetchmail: Server CommonName mismatch: localhost != imap.pronet.at
fetchmail: 1 message for web164p1 at imap.pronet.at.
fetchmail: reading message web164p1@imap.pronet.at:1 of 1 (750 header octets) fetchmail: incorrect header line found while scanning 
fetchmail:  retained

Mail an Prokop

Das musst du dir mal geben! Folgendes habe ich genau so nacheinander
eingetippt:

vk@lisa:~$ /usr/bin/mailfilter -M ~/.mailfilterrc
mailfilter: 0.6.1 querying pop.pronet.at on Mon Mar 22 23:04:39 2004
mailfilter: Examining 1 message(s).
Speicherzugriffsfehler
vk@lisa:~$

-> OK, also mit der einen Msg gibt's Probleme.
manpage zeigt, dass "--verbose=LEVEL" existiert, schweigt sich aber
ueber den Maximallevel aus.

vk@lisa:~$ /usr/bin/mailfilter --verbose=9 -M ~/.mailfilterrc
mailfilter: Error: The level of verbosity must contain values between 0 and 6.
vk@lisa:~$

Aha, also probieren wir es mit der 6:

vk@lisa:~$ /usr/bin/mailfilter --verbose=6 -M ~/.mailfilterrc
mailfilter: 0.6.1 querying web164p1@pop.pronet.at on Mon Mar 22 23:05:40 2004
mailfilter: Server responded: +OK <28585.1079993185@baldrian.doppelherz.de>
mailfilter: Sending USER web164p1
mailfilter: Server responded: +OK
mailfilter: Sending PASS *****
mailfilter: Server responded: +OK
mailfilter: Sending STAT
mailfilter: Server responded: +OK 1 47474
mailfilter: Examining 1 message(s).
mailfilter: Sending LIST 1
mailfilter: Server responded: +OK 1 47474
mailfilter: Sending TOP 1 0
mailfilter: Server responded: +OK
Return-Path: <Alert@microsoft.at>
Delivered-To: web164p1@de.need.at
Received: (qmail 30246 invoked by uid 761); 22 Mar 2004 03:41:42 -0000
Delivered-To: confixxfw_any-karl-voit:at-devnull@Karl-Voit.at
Received: (qmail 30242 invoked from network); 22 Mar 2004 03:41:40 -0000
Received: from dsl-213-023-232-005.arcor-ip.net (HELO deeffac.at) (213.23.232.5)
  by de.need.at with SMTP; 22 Mar 2004 03:41:40 -0000
Date: Mon, 22 Mar 2004 04:40:06
From: Alert@microsoft.at
To: devnull@Karl-Voit.at
Subject: Microsoft Alarm: Bitte Lesen!
Message-ID: <c3f4ec0b0b1f21.b188c.qmail@microsoft.at>
X-Priority: 3 (Normal)
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="===dbecaeedccdcbbfd"
This is a multi-part message in MIME format.


.
mailfilter: Sending DELE 1
mailfilter: Server responded: +OK
mailfilter: Deleted Alert@microsoft.at: Microsoft Alarm: Bitte Lesen!, Mon, 22 Mar 2004 04:40:06. [Score: 305]
mailfilter: Sending QUIT
mailfilter: Server responded: +OK
vk@lisa:~$

Damit hatte er also Probleme?

Weshalb dann nicht mit VERBOSE?

Und wieso hat das fetchmail (das ich in der Zwischenzeit ohne
Mailfilter laufen habe lassen) nicht einfach diese eine Mail mit
abgeholt wie alle anderen Mails heute?

Letzter Test ohne VERBOSE:

vk@lisa:~$ /usr/bin/mailfilter -M ~/.mailfilterrc
mailfilter: 0.6.1 querying pop.pronet.at on Mon Mar 22 23:06:00 2004
mailfilter: Examining 0 message(s).
vk@lisa:~$

Ich glaub', ich habe einen Bug gefunden. Was meinst du?

To: joerg@debian.org
Subject: Bug in Mailfilter (?)

Hi!

Ich schreib' mal beinhart auf deutsch, weil ich schon mal meine
Notizen auch so habe.

,----[ Daten ]
| Debian unstable/sid
| lisa:~# uname -a
| Linux lisa 2.4.22 #5 Wed Jan 14 14:58:26 CET 2004 i586 GNU/Linux
`----

Sorry fuer die langen Zeilen. Aber umgebrochen schaut's dumm aus.

Heute vormittag bekam ich keine Mails:

,----[ fetchmail.log ]
| [fetchmail funktionierte]
| fetchmail: awakened at Mon Mar 22 04:39:30 2004
| mailfilter: 0.6 querying pop.pronet.at on Mon Mar 22 04:39:30 2004
| mailfilter: Examining 0 message(s).
| fetchmail: Server CommonName mismatch: localhost != imap.pronet.at
| fetchmail: Server CommonName mismatch: localhost != imap.pronet.at
| fetchmail: awakened at Mon Mar 22 04:41:37 2004
| fetchmail: pre-connection command failed with status 11
| fetchmail: Query status=5 (SYNTAX)
| [fetchmail funktionierte nicht mehr]
`----

OK, da stimmt etwas nicht. Mailfilter mal per Hand starten:

vk@lisa:~$ /usr/bin/mailfilter -M ~/.mailfilterrc
mailfilter: 0.6 querying pop.pronet.at on Mon Mar 22 15:27:50 2004
mailfilter: Examining 16 message(s).
Speicherzugriffsfehler
vk@lisa:~$

-> Upgrade auf mailfilter 0.6.1

vk@lisa:~$ /usr/bin/mailfilter -M ~/.mailfilterrc
mailfilter: 0.6.1 querying pop.pronet.at on Mon Mar 22 15:30:44 2004
mailfilter: Examining 16 message(s).
Speicherzugriffsfehler
vk@lisa:~$

Da habe ich einmal das pre-connection auskommentiert und voila, holte 
fetchmail meine Mails vom Server. Daraufhin kam aber noch das:

,----[ fetchmail.log ]
| fetchmail: awakened at Mon Mar 22 15:56:45 2004
| fetchmail: Server CommonName mismatch: localhost != imap.pronet.at
| fetchmail: Server CommonName mismatch: localhost != imap.pronet.at
| fetchmail: 1 message for web164p1 at imap.pronet.at.
| fetchmail: reading message web164p1@imap.pronet.at:1 of 1 (750 header octets) fetchmail: incorrect header line found while scannig
| fetchmail:  retained
`----

-> OK, also mit der einen Msg gibt's Probleme.  manpage von mailfilter
zeigt, dass "--verbose=LEVEL" existiert, schweigt sich aber ueber den
Maximallevel aus.

vk@lisa:~$ /usr/bin/mailfilter --verbose=9 -M ~/.mailfilterrc
mailfilter: Error: The level of verbosity must contain values between 0 and 6.
vk@lisa:~$

Aha, also probieren wir es mit der 6:

vk@lisa:~$ /usr/bin/mailfilter --verbose=6 -M ~/.mailfilterrc
mailfilter: 0.6.1 querying web164p1@pop.pronet.at on Mon Mar 22 23:05:40 2004
mailfilter: Server responded: +OK <28585.1079993185@baldrian.doppelherz.de>
mailfilter: Sending USER web164p1
mailfilter: Server responded: +OK
mailfilter: Sending PASS *****
mailfilter: Server responded: +OK
mailfilter: Sending STAT
mailfilter: Server responded: +OK 1 47474
mailfilter: Examining 1 message(s).
mailfilter: Sending LIST 1
mailfilter: Server responded: +OK 1 47474
mailfilter: Sending TOP 1 0
mailfilter: Server responded: +OK
Return-Path: <Alert@microsoft.at>
Delivered-To: web164p1@de.need.at
Received: (qmail 30246 invoked by uid 761); 22 Mar 2004 03:41:42 -0000
Delivered-To: confixxfw_any-karl-voit:at-devnull@Karl-Voit.at
Received: (qmail 30242 invoked from network); 22 Mar 2004 03:41:40 -0000
Received: from dsl-213-023-232-005.arcor-ip.net (HELO deeffac.at) (213.23.232.5)
  by de.need.at with SMTP; 22 Mar 2004 03:41:40 -0000
Date: Mon, 22 Mar 2004 04:40:06
From: Alert@microsoft.at
To: devnull@Karl-Voit.at
Subject: Microsoft Alarm: Bitte Lesen!
Message-ID: <c3f4ec0b0b1f21.b188c.qmail@microsoft.at>
X-Priority: 3 (Normal)
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="===dbecaeedccdcbbfd"
This is a multi-part message in MIME format.


.
mailfilter: Sending DELE 1
mailfilter: Server responded: +OK
mailfilter: Deleted Alert@microsoft.at: Microsoft Alarm: Bitte Lesen!, Mon, 22 Mar 2004 04:40:06. [Score: 305]
mailfilter: Sending QUIT
mailfilter: Server responded: +OK
vk@lisa:~$

Mit diesem Email hatte mailfilter also Probleme!

Weshalb dann nicht mit VERBOSE?

Und wieso hat das fetchmail (das ich in der Zwischenzeit ohne
Mailfilter laufen habe lassen) nicht einfach diese eine Mail mit
abgeholt wie alle anderen Mails heute?

Letzter Test ohne VERBOSE:

vk@lisa:~$ /usr/bin/mailfilter -M ~/.mailfilterrc
mailfilter: 0.6.1 querying pop.pronet.at on Mon Mar 22 23:06:00 2004
mailfilter: Examining 0 message(s).
vk@lisa:~$

Jetzt rennt alles wieder normal.

Ich glaub', ich habe einen Bug gefunden. Was meinst du?
comment this entry
go to top of page

PPower4 bricht beim Kompilieren ab: Undefined control sequence

solved at 20040316
[...]
! Undefined control sequence.
<argument> ...l {%mbackground \pppp@colortostring
                                                  {blue}}
l.35 \pagecolor{blue}

? X
No pages of output.
Transcript written on temp.log.

http://www.mail-archive.com/ppower4@iti.informatik.tu-darmstadt.de/msg00700.html

-> Loesung:
lisa:/usr/share/texmf/tex/latex/pdfslide# mv pause.sty pause_old.sty
comment this entry
go to top of page

DVD-Brennen unter Linux

solved at 20040315
maggie:/usr/share/doc/cdrecord# o README.DVD.Debian

http://216.239.59.104/linux?q=cache:CIgnEANfYe0J:linuxfromscratch.org/pipermail/blfs-support/2004-January/047088.html+vamps/&hl=de&ie=UTF-8
aka http://makeashorterlink.com/?A3E312E17

-> k3b ist ziemlich cool
comment this entry
go to top of page

Batterielebensdauer per OS-Konfiguration verbessern

solved at 20040314
http://bulma.net/body.phtml?nIdNoticia=1511
-> gespeichert unter 20040314_Extending_iBook_battery_with_Linux-bulma-1511.pdf

http://groups.google.com/groups?hl=de&lr=&ie=UTF-8&oe=UTF-8&threadm=linux.kernel.3D5464CF.DCD510D6%40zip.com.au&rnum=1&prev=/groups%3Fhl%3Dde%26ie%3DUTF-8%26oe%3DUTF-8%26q%3Dext3%2Bcommit%2Bseconds%26sa%3DN%26tab%3Dwg
-> /etc/fstab: commit=30 -> commit-Intervall von ext3 von 5sek auf 30 erhoehen

vorher: ca. 44 Grad Celsius

FIXXME: bei AC commit auf weniger setzen, bei BATT auf mehr...
comment this entry
go to top of page

Verzeichniseinteilung neu

solved at 20040312
Partitioning in /data and $HOME

Intentions (in order of importance):

* keep $HOME small for backups

* all important things in $HOME[1]

* $HOME (mainly) for own things

* /data (mainly) for things not done by me

------
[1] notebook has only $HOME 'built in' and /data is located
on an external hard drive


Hierarchy overview

/data
|-> fun
| |-> pictures
| | |-> it-related
| | `-> non-it
| |-> movies
| | |-> it-related
| | `-> non-it
| |-> text
| | |-> it-related
| | |-> non-it
| | `-> signatures
| `-> unsorted
|-> movies
|-> music
| |-> ripped
| `-> downloaded
|-> src
`-> tmp
|-> 4burning
| |-> audio-cd
| |-> backup
| `-> software
| |-> cellphones
| |-> dos
| |-> floppyimages
| |-> java
| |-> latex
| |-> linux-ppc
| |-> linux-src
| |-> linux-x86
| |-> osx
| |-> palmOS
| |-> programming
| |-> win9x
| |-> winnt
| |-> winxp
| `-> zaurus
|-> fromcds
| |-> movies
| |-> backups
| `-> music
|-> ripping
| |-> music
| `-> movies
|-> mnt
|-> mntfw
`-> mnthda5


$HOME
|-> correspondence
| `-> cv
|-> dagmar
|-> doc
| |-> man
| |-> security
| |-> standards
| |-> webdesign
| | |-> selfHTML
| | `-> css-specs
| `-> zaurus
|-> incoming
| |-> (symlnk) $HOME/dagmar
| |-> (symlnk) $HOME/pictures
| |-> (symlnk) $HOME/music/lyrics
| |-> (symlnk) $HOME/tmp/2del
| |-> (symlnk) $HOME/tmp/4printing
| |-> (symlnk) $HOME/doc
| |-> (symlnk) /data/music/downloaded
| |-> (symlnk) /data/tmp/4burning/software
| `-> (symlnk) /data/fun
|-> freelancing
|-> indexfiles
|-> jobs
|-> music
| |-> covers
| |-> lyrics
| `-> mdl
|-> pictures
| |-> digicam
| | |-> 2003
| | `-> 2004
| |-> desktops
| |-> misc
| `-> screenshots
|-> src
| `-> scripts
|-> templates
| |-> bash
| `-> latex
|-> tmp
| |-> 2del
| |-> 4printing
| |-> digicam
| `-> frombackups
|-> wist
|-> zaurus
|-> usenet
`-> www
|-> karl-voit.at
`-> home.pages.at


Details (unordered)

4backup (copy/move things here to backup next time)

doc (locally mirrored or stored documentations)
doc/man (e.g. downloaded LaTeX-manuals, ...)
doc/papers
doc/standards
doc/zaurus
doc/security

fun/IT-related
fun/non-IT
fun/signatures
fun/unsorted

indexfiles (txt-files of directories and files from backups,
music-CDRs, ... to be 'grep'ed easily)

music/ripped (my own audio-CDs ripped in ogg)
music/downloaded (music from internet)
music/covers (covers from CDs, pdf)
music/lyrics (ASCII-lyrics)
music/mdl (MiniDisc-label-lists)

pictures/digicam (my own pictures)
pictures/other (pictures from others or misc pictures)
pictures/screenshots

software (downloaded binaries and compressed src-programs)
software/cellphones
software/dos
software/floppyimages
software/java
software/latex
software/linux-ppc
software/linux-src
software/linux-x86
software/osx
software/palmOS
software/programming
software/win9x
software/winnt
software/winxp
software/zaurus

src (extracted sources from downloads; configure/make/make install)

tmp/2del (not important, can be deleted anytime)
tmp/2print (print it out sometime, done-directory included)

tmp/digicam (temporary download and manipulation directory
for digicam pictures)

tmp/burning (temp. directory for CDR-images and CDR-data;
choose good directory-names for each CDR)
tmp/burn/music (copy(!) music in here that should be placed
on next personal Audio-CD)

tmp/fromCDs (things that are copied temporarily from my
own CDRs/DVDs)
tmp/fromCDs/movies
tmp/fromCDs/backups
tmp/fromCDs/music

tmp/frombackups/ (things already on backups, same hierarchy)

tmp/ripping/music
tmp/ripping/movies

tmp/mnt (temporary mounts from user)
tmp/mntfw (temp. ieee1394-drives)
tmp/mnthda5 (spare partition hda5)


usenet (saved usenet-postings)

www (locally mirrored websites such as my homepage(s), SelfHTML, ...)

-----------------------

dagmar (concerning girlfriend, no symlink *g*)

incoming/ (various things downloaded from internet/www)
symlinks to:
~/dagmar
/data/pictures/other
/data/music/downloaded
/data/music/lyrics
/data/tmp/2del
/data/tmp/2print
/data/software
/data/doc
/data/www
/data/fun

correspondence (letters, complaints, insurances, ...)
correspondence/cv (current and old resumes)

freelancing (companies I work(ed) for from time to time)

job (companies I work(ed) for)

src (own programs)
src/scripts (beta-bashscripts)

wist (things concerning my dormitory)

templates (my own templates)
templates/bash (shellscript templates)
templates/latex (LaTeX templates)

zaurus (an almost complete syncronized tree of my PDA)

-----------------------


Anpassungen

cronjobs
systemstart
.bashrc
.screen/default_bind
.screen/default_bindkey
Zget.sh
.unison/*
www/karl-voit.at/local/accesslogs/fetchlogs + mergelogs
/etc/fstab

du nach Aufteilung auf lisa

/data: 10 674 460
$HOME: 12 912 016

vk@lisa:~$ duu

      292  Desktop
  337 444  Maildir
       48  andreas
    7 076  bin
        4  cdsafe
    2 780  correspondence
  169 744  dagmar
  505 292  doc
        4  downloads
  276 416  freelancing
        8  incoming
   42 616  indexfiles
   25 860  jobs
    1 584  misc
   27 616  music
2 288 036  pictures
        4  safe
      636  src
      388  templates
7 375 252  tmp
  877 468  uni
    1 652  usenet
    1 964  wist
    9 544  www
   44 132  zaurus

vk@lisa:/data$ duu

  460 308  fun
1 098 804  movies
  273 316  music
  861 948  software
  146 372  src
7 833 708  tmp

Kopieren von /DATA (lisa) auf IceCube (maggie) per 'scp -rp'

16 913 332kB (ca. 17GB!)

real    188m51.484s
user    0m53.690s
sys     5m27.790s

-> 1 550 kB/s = 1.5 MB/s

\data excluding

downloads/s 4.2G
tmp/s 5.2G
movies 37G
music 27G
symlinks 90M
comment this entry
go to top of page

emacs: Timestamps automatisch einfuegen

solved at 20040310
%% Time-stamp: <>

http://www.gnu.org/software/emacs/manual/html_node/emacs_120.html
comment this entry
go to top of page

unison: externe Konfigrationsfiles inkludieren

solved at 20040309
file://localhost/usr/share/doc/unison/unison-manual.html#profile
-> include = file
-> label = name
-> key = i
-> addprefsto = common
comment this entry
go to top of page

keine Umlaute in XTerm

solved at 20040301
Testdatei:
vk@maggie:~$ l Umlauttest* (<- nach Umlauttest stehen die drei Umlaute)
-rw-r--r-- 1 vk vk 4 Feb 25 13:01 Umlauttest???.txt
vk@maggie:~$

"l Umlautte"+Tab-Completion: Umlaute werden korrekt vervollstaendigt!!!
-> kein Problem der Font
ls macht bei der Ausgabe statt Umlaute Fragezeichen
Umlaute copy&paste per X11 (mittl. Maustaste) in XTerm geht nicht
Umlaute copy&paste per screen (Strag-]) in XTerm geht nicht
Eingeben der Umlaute im XTerm geht nicht
Eingeben in Console (ohne X11) geht
X11-Programme haben keine Umlautprobleme
-> kein Problem von xmodmap oder XF86Config-4

Probiert und nicht geholfen
===========================

export LC_CTYPE=de_AT

export LC_CTYPE=iso_8859_15

stty -parenb cs8 -istrip

/etc/inputrc

set input-meta on
set output-meta on
set convert-meta on

vk@maggie:~$ locale
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
LANG=POSIX
LC_CTYPE=de_AT
LC_NUMERIC="POSIX"
LC_TIME="POSIX"
LC_COLLATE="POSIX"
LC_MONETARY="POSIX"
LC_MESSAGES=en_US
LC_PAPER="POSIX"
LC_NAME="POSIX"
LC_ADDRESS="POSIX"
LC_TELEPHONE="POSIX"
LC_MEASUREMENT="POSIX"
LC_IDENTIFICATION="POSIX"
LC_ALL=
vk@maggie:~$

zum Vergleich (funktionierende lisa)

vk@lisa:~$ locale
LANG=POSIX
LC_CTYPE=de_AT@euro
LC_NUMERIC="POSIX"
LC_TIME="POSIX"
LC_COLLATE="POSIX"
LC_MONETARY="POSIX"
LC_MESSAGES=en_US
LC_PAPER="POSIX"
LC_NAME="POSIX"
LC_ADDRESS="POSIX"
LC_TELEPHONE="POSIX"
LC_MEASUREMENT="POSIX"
LC_IDENTIFICATION="POSIX"
LC_ALL=
vk@lisa:~$

Test mit --show-control-chars und LANG

vk@maggie:~$ l Umlauttestöäü.txt
-rw-r--r--    1 vk       vk              4 Feb 25 13:01
Umlauttest???.txt
vk@maggie:~$ l --show-control-chars Uml*
-rw-r--r--    1 vk       vk              4 Feb 25 13:01
Umlauttestöäü.txt
vk@maggie:~$ set|grep LANG
LANG=de_AT
LANGUAGE=en_US
vk@maggie:~$ export LANG=en_US.iso88591
vk@maggie:~$ l Umlauttestöäü.txt
-rw-r--r--    1 vk       vk              4 Feb 25 13:01
Umlauttest???.txt
vk@maggie:~$

Loesung:
apt-get install locales
mit
Generating locales...
  de_AT.ISO-8859-15@euro... done
  en_US.ISO-8859-15... done
Generation complete.

;-)
comment this entry
go to top of page

ieee1394: Node 0-00:1023 has non-standard ROM format (0 quads), cannot parse

solved at 20040303
Newsgroups: linux.debian.ports.powerpc
From: Karl Voit <devnull@Karl-Voit.at>
Subject: ieee1394: Cannot access my IceCube-harddrive any more
Date: Tue, 2 Mar 2004 17:21:37 +0100
Message-ID: <slrnc49d4h.6ji.devnull@lisa.homeunix.net>

Hi!

background-story:

I bought a noname-IEEE/USB2-case with a Samsung SP1604N. Using the
sbp2-option "sbp2_serialize_io=1" I could access it from my iBook2
(600MHz) without any problems. Fine.

Last week, I bought an IceCube400 (ieee1394+USB2) and a Samsung
SP1614N (the same as in the old one but with 8MB cache instead of
2MB).

I could access it (cfdisk, mkfs.ext3) and already copied about 110 GB
from my other ieee1394-HDD to it (very slow, approx. 5MB/s, the two
drives only worked alternating - I guessed because of the
"sbp2_serialize_io=1"). Everything in one "session", which means only
once plugged in and did the jobs (from partitioning to copying).

Yesterday, I wanted to access the new drive once again (for the 2nd
time) but the rescan-scsi-bus.sh did not show any new ieee-drive. I
plugged in the other ieee-hdd (in the second ieee1394-port of the new
one) and after a rescan-scsi-bus.sh (using the sbp2-option
"sbp2_serialize_io=1") I can access this other drive, but not the new
(IceCube) one.

maggie:~# rmmod ohci1394 sbp2 ieee1394
maggie:~# modprobe sbp2
... results in:
,----[ kern.log ]
| Mar  2 17:11:09 maggie kernel: ieee1394: Node removed: ID:BUS[0-01:1023]  GUID[000393fffe8ee1e0]
| Mar  2 17:11:23 maggie kernel: sbp2: $Rev: 1010 $ Ben Collins <bcollins@debian.org>
`----

maggie:~# modprobe ohci1394
... results in:
,----[ kern.log ]
| Mar  2 17:12:19 maggie kernel: ohci1394: $Rev: 1010 $ Ben Collins <bcollins@debian.org>
| Mar  2 17:12:19 maggie kernel: ohci1394_0: Unexpected PCI resource length of 1000!
| Mar  2 17:12:19 maggie kernel: ohci1394_0: OHCI-1394 1.0 (PCI): IRQ=[40]  MMIO=[f5000000-f50007ff]  Max Packet=[2048]
| Mar  2 17:12:20 maggie kernel: ieee1394: Host added: ID:BUS[0-00:1023]  GUID[000393fffe8ee1e0]
`----

pluggin in the IceCube-drive (ieee1394) results in:
,----[ kern.log ]
| Mar  2 17:13:16 maggie kernel: ieee1394: Node 0-00:1023 has non-standard ROM format (0 quads), cannot parse
| Mar  2 17:13:16 maggie kernel: ieee1394: Node changed: 0-00:1023 -> 0-01:1023
`----

So I already accessed that drive but now it has a non-standard ROM
format? Why? (No, the harddisk is jumped for Master)

How can I access it once again?

I thought the IceCube-cases are very good supported cases...


System-informations: (after above commands)

,----[ maggie:~# uname -a ]
| Linux maggie 2.4.23-pre5-ben0 #3 Wed Dec 31 10:22:15 CET 2003 ppc GNU/Linux
`----

,----[ maggie:~# cat  /proc/bus/ieee1394/devices ]
| Node[0-01:1023]  GUID[000393fffe8ee1e0]:
|   Vendor ID: `Linux OHCI-1394' [0x000000]
|   Capabilities: 0x0083c0
|   Bus Options:
|     IRMC(1) CMC(1) ISC(1) BMC(0) PMC(0) GEN(0)
|     LSPD(2) MAX_REC(2048) CYC_CLK_ACC(0)
|   Host Node Status:
|     Host Driver     : ohci1394
|     Nodes connected : 2
|     Nodes active    : 2
|     SelfIDs received: 2
|     Irm ID          : [0-01:1023]
|     BusMgr ID       : [0-63:1023]
|     In Bus Reset    : no
|     Root            : yes
|     Cycle Master    : yes
|     IRM             : yes
|     Bus Manager     : no
`----

,----[ maggie:~# lspci ]
| 00:0b.0 Host bridge: Apple Computer Inc. UniNorth/Pangea AGP
| 00:10.0 VGA compatible controller: ATI Technologies Inc Rage Mobility M3 AGP 2x (rev 02)
| 10:0b.0 Host bridge: Apple Computer Inc. UniNorth/Pangea PCI
| 10:17.0 Class ff00: Apple Computer Inc. KeyLargo/Pangea Mac I/O
| 10:18.0 USB Controller: Apple Computer Inc. KeyLargo/Pangea USB
| 10:19.0 USB Controller: Apple Computer Inc. KeyLargo/Pangea USB
| 20:0b.0 Host bridge: Apple Computer Inc. UniNorth/Pangea Internal PCI
| 20:0e.0 FireWire (IEEE 1394): Apple Computer Inc. UniNorth/Pangea FireWire
| 20:0f.0 Ethernet controller: Apple Computer Inc. UniNorth/Pangea GMAC (Sun GEM)
`----

Loesung:
Das Netzteil von der Platte war nicht am Strom angeschlossen!

-> Die Platte zog ihren Strom von der IEEE1394-Schnittstelle, ermoeglichte
das Durchschleifen der zweiten Platte dahinter, weigerte sich jedoch zu
einem aktiven Betrieb.

Haha!
comment this entry
go to top of page

centericq von externer Quelle

solved at 20040302

sources.list

## 20040303 Michael Prokop: http://www.michael-prokop.at/computer/tools_icq.html#centericq
## centericq (with Quote-Patch) by Marc Thoben:
deb  http://ipxserver.dyndns.org/debian unstable centericq

lisa:~# apt-get -su install centericq
Reading Package Lists... Done
Building Dependency Tree... Done
The following extra packages will be installed:
  libgcrypt7 libgnutls10 libopencdk8 libtasn1-2
Suggested packages:
  gnutls-bin
The following NEW packages will be installed:
  libgcrypt7 libgnutls10 libopencdk8 libtasn1-2
The following packages will be upgraded:
  centericq
1 upgraded, 4 newly installed, 0 to remove and 345 not upgraded.
1 not fully installed or removed.
Inst libgcrypt7 (1.1.90-1.1 Debian:unstable)
Inst libopencdk8 (0.5.3-1 Debian:unstable)
Inst libtasn1-2 (0.2.6-1 Debian:unstable)
Inst libgnutls10 (1.0.4-3 Debian:unstable)
Inst centericq [4.9.9-3] (4.9.10-8 CICQ:unstable)
Conf jde (2.3.3-1 Debian:unstable)
Conf libgcrypt7 (1.1.90-1.1 Debian:unstable)
Conf libopencdk8 (0.5.3-1 Debian:unstable)
Conf libtasn1-2 (0.2.6-1 Debian:unstable)
Conf libgnutls10 (1.0.4-3 Debian:unstable)
Conf centericq (4.9.10-8 CICQ:unstable)
lisa:~# 
comment this entry
go to top of page

mounten einer FW-Platte aufgrund vom Label und nicht per Device

solved at 20040302

man fstab

[...]
The first field, (fs_spec), describes the block special device or
remote filesystem to be mounted.

For ordinary mounts it will hold (a link to) a block special device
node (as created by mknod(8)) for the device to be mounted, like
`/dev/cdrom' or `/dev/sdb7'.  For NFS mounts one will have
<host>:<dir>, e.g., `knuth.aeb.nl:/'.  For procfs, use `proc'.

Instead of giving the device explicitly, one may indicate the (ext2 or
xfs) filesystem that is to be mounted by its UUID or volume label (cf.
e2label(8) or xfs_admin(8)), writing LABEL=<label> or UUID=<uuid>,
e.g., `LABEL=Boot' or `UUID=3e6be9de-8139-11d1-9106-a43f08d823a6'.
This will make the system more robust: adding or removing a SCSI disk
changes the disk device name but not the filesystem volume label.
[...]

e2label /dev/sda6 "tv"

grep tv /etc/fstab

LABEL=tv  /home/daten/fw  ext3  rw,user,noauto  0  0
comment this entry
go to top of page

118GB Daten von einer FW-Platte auf die andere kopieren

solved at 20040224
maggie:/mnt/temp# time cp -a /home/vk/daten/fw/ .

real 343m2.256s
user 0m19.984s
sys 39m54.430s
maggie:/mnt/temp# df
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/hda4 13114104 11062672 1385260 89% /
tmpfs 192208 0 192208 0% /dev/shm
/dev/sda6 139413904 118026820 19970716 86% /home/vk/daten/fw
/dev/sdf5 152855268 118026820 34828448 78% /mnt/temp
maggie:/mnt/temp#

-> 5 3/4 Stunden
-> 5734 Bytes/s = 5.6 MB/s
comment this entry
go to top of page

scp-Service laesst per WinSCP (Roy) Durchstoebern der Platte zu!

solved at 20040217
Loesung: scponlyc (chroot-Version)
mit lisa:/usr/share/doc/scponly/setup_chroot# ./setup_chroot.sh
comment this entry
go to top of page

user not authorized to run the X server

solved at 20040211
/etc/X11/Xwrapper.config: allowed_users=anybody
comment this entry
go to top of page

sshd auf mehreren Ports lauschen lassen

solved at 20040120
/etc/ssh/sshd_config:
ListenAddress 0.0.0.0:22
ListenAddress 0.0.0.0:443
comment this entry
go to top of page

ssh ohne Passworteingabe/Passphraseeingabe ermoeglichen

solved at 20040120

http://www.csua.berkeley.edu/ssh-howto.html#nopasswd

Enabling Secure Remote Access Without Passwords
-----------------------------------------------
  As noted above, SSH RSA authentication relies on a broker known
  as the ssh-agent. The most convenient place I have found to start
  your ssh-agent is in your .xsession, at the beginning of the
  initialization of your X11 desktop.

  You will need to start two programs: the ssh-agent itself, and
  ssh-add, which authenticates you (the person sitting at the
  console) to the ssh-agent, in effect, authorizing it to act in
  your stead for authentication purposes (until you kill it.)
  
  ssh-agent writes a couple of commands to standard output so that
  it can edit your environment; in this way it is somewhat similar
  to tset -s. The preferred way to run it is in a command of the
  form
    eval `ssh-agent `
  The pertinent options in this case are "-c" if you are using the
  C-shell in your .xsession, or "-s" if you are using the Bourne
  shell. This has NOTHING TO DO WITH YOUR LOGIN SHELL; it pertains
  only to the shell which is interpreting your .xsession (the #!
  line at the beginning.) To summarize, note that the ssh-agent on
  the CSUA systems is located in /usr/local/bin:
  
   If your .xsession starts with:   |   Add the line:
  ----------------------------------+------------------------------------
    #!/bin/sh                       |   eval `/usr/local/bin/ssh-agent -s`
    #!/bin/csh                      |   eval `/usr/local/bin/ssh-agent -c`

  After you have started the ssh-agent, you can add a line to
  authenticate yourself. This does not depend on your shell, and
  is a command of the form "ssh-add". However, in order for ssh-add
  to realize that it ought to bring up an X window to authenticate
  you, you have to redirect its standard input to /dev/null;
  otherwise, it will ask you for your passphrase on your terminal,
  which might fail if you haven't started it on a terminal!  (Note
  that you can run ssh-add on your terminal if you want, but if it
  isn't obviously what you want, it probably isn't what you want.)
  
  In most cases, then, you will want to add the line
    /usr/local/bin/ssh-add < /dev/null
  after starting the ssh-agent.



An Example .xsession for Use with SSH-Agent
-------------------------------------------
  To summarize, here is an example .xsession that can be used to start the
  ssh-agent and unlock your SSH public key:
  
  -------------------------------------------------------------------------
  #!/bin/sh
  
  # Start ssh agent.
  eval `/usr/local/bin/ssh-agent -s`
  /usr/local/bin/ssh-add < /dev/null
  
  # Start normal X clients.
  twm &
  exec xterm -name 'Exit this shell to log out.' -ls -geometry 80x24+191+61
  -------------------------------------------------------------------------

  Basically, once you have enabled the ssh-agent in your .xsession,
  all you have to do is copy your ~/.ssh/identity.pub file (generated
  in the above process) to the file ~/.ssh/authorized_keys on the
  host(s) you wish to be able to access without a password.
  ~/.ssh/authorized_keys serves the same function as a .rhosts
  file; however, instead of requiring the username and hostname
  listed, it requires that the ssh-agent of the connecting user be
  authorized using the private key which matches the public key
  listed.
comment this entry
go to top of page

Pakete fuer kernel2.6/IPsec @ Securitystammtisch

solved at 20040113

<btueq4$4pf$2@fstgss02.tu-graz.ac.at>

racoon          IKE-server
ipsec-tools     Kerneleinstellungen
openssl         für die Zertifikate
libc6           ;)
iptables        wenn ma das ganze mit iptables auch behandeln wollen
comment this entry
go to top of page

Firmware-Update von DVD-Brenner LG 4040B

solved at 20040115
derzeitige Firmware (lt. Aufdruck): A301

http://www.lgservice.com/

firmware Ver A300 for GSA-4040B

Enhanced recording Speed of LG 4X DVD-R Media

firmware Ver A301 for GSA-4040B

Enhanced recording Speed of some DVD-R media;Princo and SKC co, LTD

noch zu installieren:

firmware Ver A302 for only GSA-4040B

Improvement Point:Enhanced recording Speed of some DVD-R media

¡Ø Media Brand & Manufacturer ID
MEMOREX 4x CMCMAG.AF1
PRINCO 4x PRINCO
VERBATIM 4X MCC01 RG20
ULTRON 4x RITEKG04
SPEER 4x RITEKG04
FRODYE PRINCO
ULTRON RITEKG03
TRAXDATA RITEKG04
OCTRON - RITEKG03

* Vorgangsweise

Brenner als hdc (secondary master!)
Windows XP, 2000, ME and 98
exe starten

* Medienempfehlung (Handbuch)

CD-R: LG, Mitsubishi Chemical, Verbatim, Taiyo Yuden, TDK, SKC
CD-RW: LG, Ricoh, Mitsubishi Chemical, Verbatim
DVD-R: Pioneer, FujiFilm, Maxell, TDK
DVD-RW: JVC, Mitsubishi Chemical, Pioneer
DVD+R: Taiyo Yuden, Ricoh
DVD+RW: Ricoh, Mitsubishi Chemical
DVD-RAM: Maxell, Panasonic
comment this entry
go to top of page

Emacs und "Local variables"

solved at 20040107
Wie geht das und wie muessen die Kommentare davor gemacht werden?
(HTML, LaTeX, txt, ...)

http://www.gnu.org/software/emacs/manual/html_chapter/emacs_33.html#SEC486
comment this entry
go to top of page

'line XX in /etc/fastab is bad' wegen Leerzeichen in mountpoint

solved at 20040107
man fstab:
If the name of the mount point contains spaces these can be escaped as `\040'.
comment this entry
go to top of page

unison diff und merge per emacs

solved at 20040107
** unison-Aufruf

unison-gtk -merge2 "emacs"
-> FIXXME: in ein shell-alias uebernehmen?

* Wie bekommt unison die gemergte Datei mit?

Loesung:

http://www.cis.upenn.edu/~bcpierce/unison/manual.html#merge


** emacs-Funktion: emerge-files emerge-buffers

in emacs interaktiv aufrufen:
n/p ... next/prev. difference
a/b ... von buffer links/rechts uebernehmen
q ... quit/beenden


* emacs zum Mergen von Kommandozeile starten

emacs eins/file zwei/file ./outputfile -f "emerge-files"
-> Wrong number of arguments: (lambda (arg file-A file-B file-out &optional startup-hooks quit-hooks) "Run Emerge on two files."[...]

emacs eins/file zwei/file ./outputfile -f "emerge-files file file<2> outputfile"
-> "Symbol's function definition is void: emerge-files\ file\ file<2>\ outputfile"

Wie muss man emacs aus der Kommandozeile zum Mergen starten?

** Loesung

Google-Groups-URL: http://makeashorterlink.com/?S264155F6

http://mail.gnu.org/archive/html/help-gnu-emacs/2003-01/msg00805.html

Re: ediff-files from command line ?
From:		Who indeed?  
Subject:	Re: ediff-files from command line ?	
Date:		Mon, 27 Jan 2003 22:10:18 GMT	  
User-agent:	Xnews/5.04.25	 

Bogdan,

Here is a shell script I use for ediff and emerge:

#!/bin/sh
SCRIPTNAME=`basename $0`
if [ $# -lt 2 ]
then
   echo "usage: $SCRIPTNAME FILE1 FILE2"
   exit 1
fi
#
if [ ! -f "$1" ]
then
   echo file $1 does not exist
   exit 1
fi
#
if [ ! -f "$2" ]
then
   echo file $2 does not exist
   exit 1
fi
if [ "$SCRIPTNAME" = "ediff" ]
then
    emacs --eval "(ediff-files \"$1\" \"$2\")"
elif [ "$SCRIPTNAME" = "emerge" ]
then
    emacs --eval "(mlw-emerge-files-command)" $1 $2
else
    echo Unknown script name: $SCRIPTNAME
    exit 1
fi
exit 0

Also, here is a relevant portion of my .emacs file:

(require 'emerge)
(defun mlw-emerge-files-command ()
  (let ((file-a (nth 0 command-line-args-left))
        (file-b (nth 1 command-line-args-left)))
    (setq command-line-args-left (nthcdr 2 command-line-args-left))
    (emerge-files-internal
     file-a file-b nil nil nil)))

I hope this helps.
Mike W.

Bogdan Hlevca <bhlevca@bogus.example.com> wrote in
news:zqgZ9.248016$C8.834913
@nnrp1.uunet.ca:

> Hi,
> 
> I'd like to automate an ediff process for a post run test analysis.
> Apparently with -f command line argument you can pass only functions 
> without arguments.
> 
> ediff-files requires arguments and  it will fail when trying to do:
>   $ emacs -f ediff-files "file1" "file2"
> 
> I could do: $ emacs "file1" "file2" and then issue the command M-x 
> ediff-buffers  and followed by 2 other key strokes, but this is not 
much 
> of an automation.
> 
> Any help/ideea would be appreciated.
> Thanks,
> Bogdan
> 
> 

ebenfalls eine Loesung (allerding per ediff und nicht emerge):
http://www.fuw.edu.pl/~pliszka/hints/Linux/Linux.html

Mit obiger (ersterer) Loesung "emerge eins/file zwei/file" gestartet, ergibt
dann als Ergebnis:

vk@lisa:~/temp/2del/20031229_emacsmergetest$ l eins/
total 24
drwxr-xr-x    2 vk       users        4096 2004-01-03 22:48 .
drwxr-xr-x    4 vk       users        4096 2004-01-03 22:46 ..
-rw-r--r--    1 vk       users         774 2004-01-03 22:46 file
-rw-r--r--    1 vk       users          55 2004-01-03 22:46 file~
-rw-r--r--    1 vk       users         774 2004-01-03 22:49 #*merge*#225169hz#
-rw-r--r--    1 vk       users         844 2004-01-03 22:46 #*merge*#759k7j#
vk@lisa:~/temp/2del/20031229_emacsmergetest$ grep zwei eins/*
eins/#*merge*#225169hz#:zwei
eins/#*merge*#225169hz#:fjksdlö fjksdlfö jsdklf sdjkflsdj fklsdö zwei fjklsdf jklsf jksdlfj
vk@lisa:~/temp/2del/20031229_emacsmergetest$

Ergo: Wie kann man die Ergebnisdatei gezielt dem unison als Ergebnis mitteilen?

Loesung:

http://www.cis.upenn.edu/~bcpierce/unison/manual.html#merge

The actual merging is performed by an external program. The
preferences merge and merge2 control how this program is invoked. If a
backup exists for this file (see the backup preference), then the
merge preference is used for this purpose; otherwise merge2 is
used. In both cases, the value of the preference should be a string
representing the command that should be passed to a shell to invoke
the merge program. Within this string, the special substrings
CURRENT1, CURRENT2, NEW, and OLD may appear at any point. Unison will
substitute these substrings as follows before invoking the command:
[...]

Aber die NEW-Datei wird per Shellscript und Emacs-Funktion NICHT
uebergeben :-(

* Test, was unison dem mergetool als Parameter uebergibt

cat testscript

#!/bin/bash
echo Testscript: called with parameters: $@
#end

Ausgabe

vk@maggie:~/temp/2del/20031229_emacsmergetest$ unison-gtk -merge2 "./testscript"
Testscript: called with parameters:
vk@maggie:~/temp/2del/20031229_emacsmergetest$

-> unison uebergibt keine Parameter!

Loesung:

Da unison ja nur die speziellen Stickwoerter CURRENT1 bis OLD ersetzt,
wird auch hier nichts uebergeben ;-)

* Gesamtloesung fuer das Problem:

in der .unison/*.prf kommt folgende Zeile dazu:
merge2 = /home/vk/bin/emerge "CURRENT1" "CURRENT2" "NEW"

im Script emerge steht hauptsaechlich:
emacs --eval "(emerge-files-command)" $@

fertig.

Wenn man Textdateien (und keine C-Programme o.ae.) mergen will, dann
sollte man die Variable 'emerge-combine-versions-template' auf zB
"%a\n%b" setzen, damit man nicht sowas bekommt:

Standard fuer emerge-combine-versions-template

#ifdef NEW
version from A buffer
#else /* not NEW */
version from B buffer
#endif /* not NEW */
comment this entry
go to top of page

Kopieren von 11 GB per scp auf safedata

solved at 20040106
vk@maggie:~/safedata-fw/[...]$ time scp -r vk@other:daten/additional/[...]/* . ; du ..
2003-07-21_23h17_[...]                100%  680MB 991.9KB/s   11:42
2003-07-30_03h46_[...]                100%  688MB 986.9KB/s   11:54
2003-08-01_17h10_[...]                100%  694MB 987.5KB/s   12:00
2003-08-03_04h31_[...]                100%  695MB 985.5KB/s   12:02
2003-11-29_16h37_[...]                100%  638MB 962.2KB/s   11:19
2003-12-03_01h48_[...]                100%  655MB 969.4KB/s   11:32
2003-12-04_15h53_[...]                100%  763MB 987.4KB/s   13:11
2003-12-05_14h08_[...]                100%  615MB 973.1KB/s   10:47
2003-12-11_13h49_[...]                  100%  698MB 980.7KB/s   12:08
2003-12-12_21h08_[...]                100% 1520MB 964.5KB/s   26:54
2003-12-24_01h32_[...]                100%  504MB 977.3KB/s   08:49
2003-12-24_11h19_[...]                100%  691MB 979.0KB/s   12:03
2003-12-28_02h55_[...]                100%  664MB 984.2KB/s   11:31
2004-01-04_12h22_[...]                100%  700MB 965.6KB/s   12:22
2004-01-06_00h08_[...]                100%  650MB 949.3KB/s   11:41

real    190m6.943s
user    21m8.164s
sys     7m27.412s

11136828        ../[..]

vk@maggie:~/safedata-fw/[...]$

-> 976 Bytes/s
comment this entry
go to top of page

Erstellung eines 40GB-Safedata

solved at 20040105
maggie:/home/vk/daten/fw# time dd if=/dev/zero of=./safedata_new bs=1M
count=40000
40000+0 records in
40000+0 records out
41943040000 bytes transferred in 5361.960830 seconds (7822332
bytes/sec)

real 89m22.003s
user 0m0.459s
sys 5m53.262s
maggie:/home/vk/daten/fw# losetup -e aes /dev/loop0 ./safedata_new
Password:
maggie:/home/vk/daten/fw# time mkfs.ext2 -m 0 -t /dev/loop0 ; alarm
mke2fs 1.35-WIP (21-Aug-2003)
Filesystem label=
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
5128192 inodes, 10240000 blocks
0 blocks (0.00%) reserved for the super user
First data block=0
313 block groups
32768 blocks per group, 32768 fragments per group
16384 inodes per group
Superblock backups stored on blocks:
32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632,
2654208,
4096000, 7962624
Checking for bad blocks (read-only test): done
Writing inode tables: done
Writing superblocks and filesystem accounting information: done

This filesystem will be automatically checked every 35 mounts or
180 days, whichever comes first. Use tune2fs -c or -i to override.

real 99m15.061s
user 0m5.130s
sys 1m4.207s
maggie:/home/vk/daten/fw#
comment this entry
go to top of page

ext. FW-HDD: Infos suchen und in FW-Comapt.-list aufnehmen

solved at 20040105
Beim MediaMarkt Voesendorf ausserlich gleiches Gehaeuse gefunden.
Aufschrift:
Manhattan USB 2.0 external enclosure for 3.5" IDE harddrive
701594
Aufkleber: 172671


innen am Interface:

Chip GL811E / 03440MH83T-02
Chip AGERE / FW801A / 5762543 / 0346T


Eintrag auf http://linux1394.sourceforge.net/

wner-Email: 337-combo@Karl-Voit.at
wner-Password: XXXXXXXXX
On the wrapping:
"MS-HD337
3.5" Aluminium HDD External Case"

On the case itself:
front: "MOBILE DISK
External Data Storage"
back: "Model No. HD-337-COMBO"

Device must be a cheap reproduction or something like that beause
there doesn't seem to be such a manufacturer. Found a Manhattan-Case
that looked the same.

The hard-disk which was in the case (SAMSUNG SP1604N) was not
partitioned but was no problem to access using ohci1394 and sbp2
(Kernel 2.4.23).

I got problems when I tried to transfer big files (several MBs):
10-50s of nothing and some kernel-messages like:
"kernel: Write (10) 00 06 cb 6a e7 00 00 f8 00"
or
"kernel: Read (10) 00 02 48 2a 07 00 00 f8 00"
or (more seldom)
"kernel: attempt to access beyond end of device"
"kernel: 08:06: rw=0, want=282956000, limit=141637041"

Problems vanished, when I loaded the sbp2-driver with:
"modprobe sbp2 sbp2_serialize_io=1"

This doesn't seem to result in lower performance.

"cat /proc/bus/ieee1394/devices" shows "Vendor ID: `337 COMBO'
[0x0001a3]"
"Capabilities: 0x0083c0" and
"Vendor/Model ID: 337 COMBO [0001a3] / Unknown [008034]
Software Specifier ID: 00609e
Software Version: 010483
Driver: SBP2 Driver
Length (in quads): 5"

On the two chips inside, I read:
"GL811E / 03440MH83T-02"
and second
"AGERE / FW801A / 5762543 / 0346T"

Using the sbp2-option above, the drive works great here.
comment this entry
go to top of page

externe FW-Platte laesst sich nicht mehr ansprechen

solved at 20031231

/var/log/kern.log beim Anstecken:

Dec 21 13:05:22 maggie kernel: ohci1394_0: SelfID is inconsistent [0x7e807b3d/0x7e807b3d]
Dec 21 13:05:22 maggie kernel: ohci1394_0: SelfID is inconsistent [0x7e807b3d/0x7e807b3d]
Dec 21 13:05:22 maggie kernel: ieee1394: impossible ack_complete from node 65535 (tcode 4)
Dec 21 13:05:22 maggie kernel: ieee1394: Current remote IRM is not 1394a-2000 compliant, resetting...
Dec 21 13:05:22 maggie kernel: ohci1394_0: SelfID is inconsistent [0x7e80773d/0x7e80773d]
Dec 21 13:05:22 maggie kernel: ohci1394_0: SelfID is inconsistent [0x7e80773d/0x7e80773d]
Dec 21 13:05:22 maggie kernel: ieee1394: impossible ack_complete from node 65535 (tcode 4)
Dec 21 13:05:22 maggie kernel: ieee1394: Current remote IRM is not 1394a-2000 compliant, resetting...
Dec 21 13:05:22 maggie kernel: ohci1394_0: SelfID is inconsistent [0x7e80773d/0x7e80773d]
Dec 21 13:05:22 maggie kernel: ohci1394_0: SelfID is inconsistent [0x7e80773d/0x7e80773d]
Dec 21 13:05:22 maggie kernel: ieee1394: impossible ack_complete from node 65535 (tcode 4)
Dec 21 13:05:22 maggie kernel: ieee1394: Current remote IRM is not 1394a-2000 compliant, resetting...
Dec 21 13:05:22 maggie kernel: ohci1394_0: SelfID is inconsistent [0x7e80773d/0x7e80773d]
Dec 21 13:05:22 maggie kernel: ohci1394_0: SelfID is inconsistent [0x7e80773d/0x7e80773d]
Dec 21 13:05:23 maggie kernel: ieee1394: impossible ack_complete from node 65535 (tcode 4)
Dec 21 13:05:23 maggie kernel: ieee1394: Current remote IRM is not 1394a-2000 compliant, resetting...
Dec 21 13:05:23 maggie kernel: ohci1394_0: SelfID is inconsistent [0x7e80773d/0x7e80773d]
Dec 21 13:05:23 maggie kernel: ohci1394_0: SelfID is inconsistent [0x7e80773d/0x7e80773d]
Dec 21 13:05:23 maggie kernel: ieee1394: impossible ack_complete from node 65535 (tcode 4)
Dec 21 13:05:23 maggie kernel: ieee1394: Current remote IRM is not 1394a-2000 compliant, resetting...
Dec 21 13:05:23 maggie kernel: ohci1394_0: SelfID is inconsistent [0x7e80773d/0x7e80773d]
Dec 21 13:05:23 maggie kernel: ohci1394_0: SelfID is inconsistent [0x7e80773d/0x7e80773d]
Dec 21 13:05:23 maggie kernel: ieee1394: impossible ack_complete from node 65535 (tcode 4)
Dec 21 13:05:23 maggie kernel: ieee1394: Current remote IRM is not 1394a-2000 compliant, resetting...
Dec 21 13:05:23 maggie kernel: ieee1394: Stopping reset loop for IRM sanity

/var/log/kern.log beim Abstecken:

Dec 21 13:05:51 maggie kernel: ieee1394: SelfIDs failed monotony check with 63/0
Dec 21 13:05:51 maggie kernel: ieee1394: Error in SelfID stage, resetting
Dec 21 13:05:51 maggie kernel: ohci1394_0: SelfID is inconsistent [0x7f8077bd/0x7f8077bd]
Dec 21 13:05:52 maggie kernel: ieee1394: impossible ack_complete from node 65535 (tcode 4)
Dec 21 13:05:52 maggie kernel: ieee1394: Current remote IRM is not 1394a-2000 compliant, resetting...
Dec 21 13:05:52 maggie kernel: ohci1394_0: SelfID is inconsistent [0x7f8077bd/0x7f8077bd]
Dec 21 13:05:52 maggie kernel: ieee1394: impossible ack_complete from node 65535 (tcode 4)
Dec 21 13:05:52 maggie kernel: ieee1394: Current remote IRM is not 1394a-2000 compliant, resetting...
Dec 21 13:05:52 maggie kernel: ohci1394_0: SelfID is inconsistent [0x7f8077bd/0x7f8077bd]
Dec 21 13:05:52 maggie kernel: ieee1394: impossible ack_complete from node 65535 (tcode 4)
Dec 21 13:05:52 maggie kernel: ieee1394: Current remote IRM is not 1394a-2000 compliant, resetting...
Dec 21 13:05:52 maggie kernel: ieee1394: SelfIDs failed monotony check with 63/0
Dec 21 13:05:52 maggie kernel: ieee1394: Error in SelfID stage, resetting
Dec 21 13:05:52 maggie kernel: ohci1394_0: SelfID is inconsistent [0x7f8077bd/0x7f8077bd]
Dec 21 13:05:52 maggie kernel: ieee1394: impossible ack_complete from node 65535 (tcode 4)
Dec 21 13:05:52 maggie kernel: ieee1394: Current remote IRM is not 1394a-2000 compliant, resetting...
Dec 21 13:05:52 maggie kernel: ohci1394_0: SelfID is inconsistent [0x807f8842/0x807f8842]
Dec 21 13:05:53 maggie kernel: ieee1394: impossible ack_complete from node 65535 (tcode 4)
Dec 21 13:05:53 maggie kernel: ieee1394: Current remote IRM is not 1394a-2000 compliant, resetting...
Dec 21 13:05:53 maggie kernel: ohci1394_0: SelfID is inconsistent [0x7f8077bd/0x7f8077bd]
Dec 21 13:05:53 maggie kernel: ieee1394: impossible ack_complete from node 65535 (tcode 4)
Dec 21 13:05:53 maggie kernel: ieee1394: Current remote IRM is not 1394a-2000 compliant, resetting...
Dec 21 13:05:53 maggie kernel: ieee1394: Stopping reset loop for IRM sanity

cdrecord -scanbus

Cdrecord-Clone 2.01a19 (powerpc-unknown-linux-gnu) Copyright (C) 1995-2003 J
Linux sg driver version: 3.1.25
Using libscg version 'schily-0.7'
scsibus0:
        0,0,0     0) 'TOSHIBA ' 'DVD-ROM SD-R2002' '1C30' Removable CD-ROM
        0,1,0     1) *
        0,2,0     2) *
        0,3,0     3) *
        0,4,0     4) *
        0,5,0     5) *
        0,6,0     6) *
        0,7,0     7) *
scsibus1:
        1,0,0   100) '' '' '' NON CCS Removable Disk
        1,1,0   101) *
        1,2,0   102) *
        1,3,0   103) *
        1,4,0   104) *
        1,5,0   105) *
        1,6,0   106) *
        1,7,0   107) *
scsibus2:
        2,0,0   200) '' '' '' Removable not present Disk
        2,1,0   201) *
        2,2,0   202) *
        2,3,0   203) *
        2,4,0   204) *
        2,5,0   205) *
        2,6,0   206) *
        2,7,0   207) *
maggie:~#

maggie:~# /usr/sbin/scsiinfo -l
/dev/sda /dev/sdb 
maggie:~# 

* nach Reboot geht's wieder:

Dec 21 13:10:44 maggie kernel: ieee1394: sbp2: Logged into SBP-2 device
Dec 21 13:10:44 maggie kernel: ieee1394: sbp2: Node 0-00:1023: Max speed [S400] - Max payload [2048]
Dec 21 13:10:44 maggie kernel: ieee1394: NodeMgr: hotplug policy returned -2
Dec 21 13:10:44 maggie kernel: ieee1394: Node added: ID:BUS[0-00:1023]  GUID[0001a3500002949a]
Dec 21 13:10:44 maggie kernel: ieee1394: Host added: ID:BUS[0-01:1023]  GUID[000393fffe8ee1e0]

* Kernelmodule neu starten hilft auch

maggie:~# rmmod sbp2 
maggie:~# rmmod ohci1394 
maggie:~# modprobe ohci1394 
maggie:~# modprobe sbp2 sbp2_serialize_io=1
maggie:~# ./rescan-scsi-bus.sh
comment this entry
go to top of page

Nachdenkpausen bei externern FW-Platte

solved at 20031231
* Kopieren von einer grossen Datei

vk@maggie:~/daten/fw/download$ time cp one_hour_photo.avi /home/vk/temp/2del/movies/

real    8m36.766s
user    0m0.078s
sys     0m13.007s
vk@maggie:~/daten/fw/download$ du one_hour_photo.avi
627012  one_hour_photo.avi
vk@maggie:~/daten/fw/download$

Ab und zu gibt's beim Kopieren von grossen Dateien einen I-O-Error

Kernelinfo

#
# Protocol Drivers
#
CONFIG_IEEE1394_VIDEO1394=m
CONFIG_IEEE1394_SBP2=y
# CONFIG_IEEE1394_SBP2_PHYS_DMA is not set
CONFIG_IEEE1394_ETH1394=m
CONFIG_IEEE1394_DV1394=m
CONFIG_IEEE1394_RAWIO=m
# CONFIG_IEEE1394_CMP is not set
# CONFIG_IEEE1394_VERBOSEDEBUG is not set
# CONFIG_IEEE1394_OUI_DB is not set

maggie:~/vk/daten# uname -a
Linux maggie 2.4.23-pre5-ben0 #1 Tue Nov 18 20:43:07 CET 2003 ppc GNU/Linux
maggie:~/vk/daten#

/proc-Infos

maggie:/proc/bus/ieee1394# cat devices 
Node[0-01:1023]  GUID[000393fffe8ee1e0]:
  Vendor ID: `Linux OHCI-1394' [0x000000]
  Capabilities: 0x0083c0
  Bus Options:
    IRMC(1) CMC(1) ISC(1) BMC(0) PMC(0) GEN(8)
    LSPD(2) MAX_REC(2048) CYC_CLK_ACC(0)
  Host Node Status:
    Host Driver     : ohci1394
    Nodes connected : 2
    Nodes active    : 2
    SelfIDs received: 2
    Irm ID          : [0-01:1023]
    BusMgr ID       : [0-63:1023]
    In Bus Reset    : no
    Root            : yes
    Cycle Master    : yes
    IRM             : yes
    Bus Manager     : no
Node[0-00:1023]  GUID[0001a3500002949a]:
  Vendor ID: `337 COMBO' [0x0001a3]
  Capabilities: 0x0083c0
  Bus Options:
    IRMC(0) CMC(0) ISC(0) BMC(0) PMC(0) GEN(0)
    LSPD(2) MAX_REC(64) CYC_CLK_ACC(255)
  Unit Directory 0:
    Vendor/Model ID: 337 COMBO [0001a3] / Unknown [008034]
    Software Specifier ID: 00609e
    Software Version: 010483
    Driver: SBP2 Driver
    Length (in quads): 5
maggie:/proc/bus/ieee1394# 

maggie:/proc# cat scsi/sbp2_0/1 
Host scsi1             : SBP-2 IEEE-1394 (ohci1394)

Module options         :
  max_speed            : S800
  max_sectors          : 255
  serialize_io         : no
  exclusive_login      : yes

Attached devices       : 
  [Channel: 00, Id: 00, Lun: 00]  Direct-Access     SAMSUNG  SP1604N         

maggie:/proc# 

* /var/log/messages

Dec 17 06:11:43 maggie kernel: Write (10) 00 06 cb 6a e7 00 00 f8 00
Dec 17 06:13:53 maggie kernel: Write (10) 00 06 cb 8b 57 00 00 f8 00
Dec 17 06:15:13 maggie kernel: Write (10) 00 06 cb 9d b7 00 00 f8 00
Dec 17 06:17:03 maggie kernel: Write (10) 00 06 cb b7 c7 00 00 f8 00
Dec 17 06:17:43 maggie kernel: Write (10) 00 06 cb c1 ef 00 00 f8 00
Dec 17 06:18:13 maggie kernel: Write (10) 00 06 cb c3 ff 00 00 f8 00
Dec 17 06:19:03 maggie kernel: Write (10) 00 06 cb d5 97 00 00 f8 00
Dec 17 06:19:53 maggie kernel: Write (10) 00 06 cb e2 37 00 00 f8 00
Dec 17 06:20:33 maggie kernel: Write (10) 00 06 cb eb ff 00 00 f8 00
Dec 17 06:21:03 maggie kernel: Write (10) 00 06 cb ee 2f 00 00 f8 00
Dec 17 06:22:13 maggie kernel: Write (10) 00 06 cc 05 37 00 00 f8 00
Dec 17 06:23:23 maggie kernel: Write (10) 00 06 cc 16 af 00 00 f8 00
Dec 17 06:23:53 maggie kernel: Write (10) 00 06 cc 18 b7 00 00 f8 00
OR
Dec 17 01:19:40 maggie kernel: Read (10) 00 02 48 2a 07 00 00 f8 00
Dec 17 01:19:40 maggie kernel: Read (10) 00 02 48 2a ff 00 00 08 00
Dec 17 01:19:40 maggie kernel: Write (10) 00 06 7e 24 e7 00 00 08 00
Dec 17 01:19:40 maggie kernel: Write (10) 00 06 7e 44 ef 00 00 08 00
Dec 17 01:19:40 maggie kernel: Write (10) 00 06 7e 64 f7 00 00 08 00
Dec 17 01:19:40 maggie kernel: Write (10) 00 06 7e 84 ff 00 00 08 00
Dec 17 01:19:40 maggie kernel: Write (10) 00 06 7e a5 07 00 00 08 00
Dec 17 01:20:11 maggie kernel: Read (10) 00 0b ab 3a 67 00 00 f8 00
Dec 17 01:20:42 maggie kernel: Read (10) 00 0b ab 40 67 00 00 f8 00
Dec 17 01:21:12 maggie kernel: Read (10) 00 0b ab 42 67 00 00 f8 00
Dec 17 01:21:42 maggie kernel: Read (10) 00 0b ab 55 87 00 00 f8 00
Dec 17 01:22:26 maggie kernel: Read (10) 00 0b ab 57 af 00 00 f8 00
Dec 17 01:22:26 maggie kernel: Read (10) 00 02 41 5a df 00 00 68 00
Dec 17 01:22:26 maggie kernel: Write (10) 00 06 81 f8 b7 00 00 f8 00
Dec 17 01:22:26 maggie kernel: Write (10) 00 06 81 f9 af 00 00 f8 00
Dec 17 01:22:26 maggie kernel: Write (10) 00 06 81 fa a7 00 00 f8 00
Dec 17 01:22:26 maggie kernel: Write (10) 00 06 81 fb 9f 00 00 f8 00
Dec 17 01:22:26 maggie kernel: Write (10) 00 06 81 fc 97 00 00 a0 00
Dec 17 01:22:26 maggie kernel: Write (10) 00 06 81 fd 3f 00 00 f8 00
OR (more seldom)
Dec 17 01:02:30 maggie kernel: Read (10) 00 0a 4b 44 37 00 00 f8 00
Dec 17 01:03:00 maggie kernel: Read (10) 00 0a 63 30 47 00 00 f8 00
Dec 17 01:03:00 maggie kernel: attempt to access beyond end of device
Dec 17 01:03:00 maggie kernel: 08:06: rw=0, want=282956000, limit=141637041
Dec 17 01:03:00 maggie kernel: attempt to access beyond end of device
Dec 17 01:03:00 maggie kernel: 08:06: rw=0, want=350064864, limit=141637041
Dec 17 01:03:00 maggie kernel: attempt to access beyond end of device
Dec 17 01:03:00 maggie kernel: 08:06: rw=0, want=428878048, limit=141637041
Dec 17 01:03:00 maggie kernel: attempt to access beyond end of device
Dec 17 01:03:00 maggie kernel: 08:06: rw=0, want=1569823124, limit=141637041
Dec 17 01:03:00 maggie kernel: attempt to access beyond end of device
Dec 17 01:03:00 maggie kernel: 08:06: rw=0, want=1569774996, limit=141637041
Dec 17 01:03:00 maggie kernel: attempt to access beyond end of device
Dec 17 01:03:00 maggie kernel: 08:06: rw=0, want=1569512848, limit=141637041
Dec 17 01:03:00 maggie kernel: attempt to access beyond end of device
Dec 17 01:03:00 maggie kernel: 08:06: rw=0, want=1501879696, limit=141637041
Dec 17 01:03:00 maggie kernel: attempt to access beyond end of device
Dec 17 01:03:00 maggie kernel: 08:06: rw=0, want=1154532572, limit=141637041
Dec 17 01:03:00 maggie kernel: attempt to access beyond end of device
Dec 17 01:03:00 maggie kernel: 08:06: rw=0, want=282956000, limit=141637041
Dec 17 01:03:31 maggie kernel: Read (10) 00 0a 7b 34 67 00 00 08 00
Dec 17 01:04:01 maggie kernel: Read (10) 00 0a 4b 4d af 00 00 f8 00
Dec 17 01:04:31 maggie kernel: Read (10) 00 0b ab 39 67 00 00 f8 00
Dec 17 01:05:02 maggie kernel: Read (10) 00 0b ab 46 67 00 00 f8 00
Dec 17 01:06:09 maggie kernel: Read (10) 00 0f d3 33 07 00 00 f8 00

maggie:/proc# hdparm -tT /dev/sda

/dev/sda:
 Timing buffer-cache reads:   408 MB in  2.00 seconds = 203.59 MB/sec
 Timing buffered disk reads:   26 MB in  3.04 seconds =   8.57 MB/sec
maggie:/proc# 

* nach Reboot bei Lesen von ogg-Dateien (vfat32) wieder Aussetzer:

Dec 21 13:18:17 maggie kernel: ieee1394: sbp2: aborting sbp2 command
Dec 21 13:18:17 maggie kernel: Read (10) 00 00 13 85 4a 00 00 ff 00 
Dec 21 13:18:47 maggie kernel: ieee1394: sbp2: aborting sbp2 command
Dec 21 13:18:47 maggie kernel: Read (10) 00 00 13 86 4a 00 00 ff 00 
Dec 21 13:19:17 maggie kernel: ieee1394: sbp2: aborting sbp2 command
Dec 21 13:19:17 maggie kernel: Read (10) 00 00 13 89 4a 00 00 ff 00 
Dec 21 13:19:48 maggie kernel: ieee1394: sbp2: aborting sbp2 command
Dec 21 13:19:48 maggie kernel: Read (10) 00 00 13 92 4a 00 00 ff 00 
Dec 21 13:21:21 maggie kernel: ieee1394: sbp2: aborting sbp2 command
Dec 21 13:21:21 maggie kernel: Read (10) 00 00 10 77 e2 00 00 58 00 
Dec 21 13:21:51 maggie kernel: ieee1394: sbp2: aborting sbp2 command
Dec 21 13:21:51 maggie kernel: Read (10) 00 00 10 7f e2 00 00 58 00 
Dec 21 13:22:22 maggie kernel: ieee1394: sbp2: aborting sbp2 command
Dec 21 13:22:22 maggie kernel: Read (10) 00 00 10 97 aa 00 00 90 00

* Loesung:

nach Lesen von "sbp2.c - SBP-2 protocol driver for IEEE-1394" im Kernelsource
habe ich den sbp2-Treiber so gestartet:
modprobe sbp2 sbp2_serialize_io=1
und siehe da, das Problem war verschwunden, ohne Performance zu verlieren:

hdparm-Test:

maggie:~# hdparm -tT /dev/sda
/dev/sda:
 Timing buffer-cache reads:   432 MB in  2.01 seconds = 215.14 MB/sec
 Timing buffered disk reads:   28 MB in  3.21 seconds =   8.73 MB/sec
maggie:~# 

Kopiertest

vk@maggie:~/daten/fw/download$ cp -v Bad.Boys.II.\(CTP\).DivX.TS.DaDuck.avi /home/vk/temp/2del/kopiertests/
`Bad.Boys.II.(CTP).DivX.TS.DaDuck.avi' -> `/home/vk/temp/2del/kopiertests/Bad.Boys.II.(CTP).DivX.TS.DaDuck.avi'
vk@maggie:~/daten/fw/download$ time cp -v Bad.Boys.II.\(CTP\).DivX.TS.DaDuck.avi /home/vk/temp/2del/kopiertests/
`Bad.Boys.II.(CTP).DivX.TS.DaDuck.avi' -> `/home/vk/temp/2del/kopiertests/Bad.Boys.II.(CTP).DivX.TS.DaDuck.avi'

real    1m30.837s
user    0m0.086s
sys     0m14.559s
vk@maggie:~/daten/fw/download$ du Bad.Boys.II.\(CTP\).DivX.TS.DaDuck.avi
711488  Bad.Boys.II.(CTP).DivX.TS.DaDuck.avi
vk@maggie:~/daten/fw/download$
comment this entry
go to top of page

neuer Kernel 2.4.23_benh_2 mit Firewire-Sachen als Module

solved at 20031230
Grund: bisher Reboot notwendig, dass FireWire-HDD erneut erkannt wird

* Problem:
Modul aes nach Kompilieren verschwunden.

Da war mal ein Problem beim letzten Mal Kernelkompilieren und da habe ich glaube ich den
Abschnitt CONFIG_AES (o.ae.) beinhart in die config reinkopiert und problemlos Kernel erstellt.

'make xconfig' stellt keine solche Optionen zur Verfuegung und so wird das beim
erneuten 'make xconfig' ueberschrieben bzw. geloescht.

Ich hatte dazu einen at-linux-Beitrag geschrieben, auf den ich momentan nicht zugreifen konnte.

Loesung: (wie damals auch schon)
Abschnitt unten per Hand in .config rein und gut is:
CONFIG_BLK_DEV_CRYPTOLOOP=m
CONFIG_CRYPTO=y
# CONFIG_CRYPTO_HMAC is not set
CONFIG_CRYPTO_NULL=m
CONFIG_CRYPTO_MD4=m
CONFIG_CRYPTO_MD5=m
CONFIG_CRYPTO_SHA1=m
CONFIG_CRYPTO_SHA256=m
CONFIG_CRYPTO_SHA512=m
CONFIG_CRYPTO_DES=m
CONFIG_CRYPTO_BLOWFISH=m
CONFIG_CRYPTO_TWOFISH=m
CONFIG_CRYPTO_SERPENT=m
CONFIG_CRYPTO_AES=m
CONFIG_CRYPTO_CAST5=m
CONFIG_CRYPTO_CAST6=m
CONFIG_CRYPTO_DEFLATE=m
# CONFIG_CRYPTO_TEST is not set

-> Das alleine hat das Problem nicht behoben aber ich musste den sbp2-Treiber ohnehin
mit einem Parameter (siehe "Nachdenkpausen bei externern FW-Platte") starten.
comment this entry
go to top of page

GIMP: auto-red-eye schwer zu erreichen

solved at 20031228
workaround: filter/misc: auf misc klicken, um float zu erreichen

Loesung: (aus Manual 'Keyboard shortcut') Sobald Cursor (Maus) auf Menueeintrag,
eine Tastenkombination druecken und schon ist diese Funktion (dauerhaft) auf diese Funktion gemappt

-> geile Loesung *g*

-> Ctrl-F ('_F_ilter') ist auf Auto-Red-Eye
comment this entry
go to top of page

xblaster: Ton fehlt

solved at 20031225
could not open sound data file xb_intro.raw
could not open sound data file xb_expl.raw
could not open sound data file xb_bad.raw
could not open sound data file xb_drop.raw
could not open sound data file xbnbmb.raw
could not open sound data file xbnkick.raw
[...]

Loesung:

apt-get install xblast-sound
comment this entry
go to top of page

gcdmaster will nicht simulieren

solved at 20031225
Meldungen wie zB dass das Medium nicht frei/beschreibbar ist oder dass das Device das nicht kann.

Loesung:

settings/devices/device-typ auf cd-rw
und driver: generic-mmc
comment this entry
go to top of page

jimmy: sed-Script zum Finden von langen Dateinamen

solved at 20031209
bash-script, shell-script:
cat ls.txt | sed -n ``/^.\{103\}/p'' > lines_longer_103.txt
comment this entry
go to top of page

AVI um 90 Grad drehen ohne Ton

solved at 20031208
http://www.edginet.org/techie/linux/canon_movies.html

mplayer -nosound -vop rotate=1 original.avi -vo yuv4mpeg
cat stream.yuv | mpeg2enc -B 35 -a 1 -f 0 -q 5 -b 500 -o foo.m1v
comment this entry
go to top of page

mjpeg-Tools installieren fuer Videos 90 Grad drehen (Canon A80) -&gt; ERFOLGLOS

solved at 20031207
* mjepg-Tools installieren:

** dpkg -i mjpegtools_1.6.0-1_i386.deb
-> "illegal instruction" -> not for K6-2?

** VERGISS ES! kein mjpegtools als binary!

** mjpegtools_1.6.1-1_debsrc.tar.gz (mjpegtools-1.6.1# ./debian/rules build)
http://download.sourceforge.net/mjpeg/

*** apt-get install fuer Kompiliervorgang
dh-make (*.deb aus src.tgz)
nasm (wegen Compilieren)
libjpeg-mmx-progs libjpeg-mmx-dev (wegen mjpegtools-Kompilieren:"/usr/bin/ld: cannot find -ljpeg-mmx")
libsdl1.2-dev libsdl1.2-dev xlibmesa-gl-dev xlibmesa-glu-dev xlibmesa3-gl xlibmesa3-glu
(weil "rtjshow.c:30:21: SDL/SDL.h: No such file or directory)
libquicktime1(UPGRADE) libavc1394-0(NEW) libraw1394-5(NEW)
(Vermutung: weil "movtar_play.c:17:22: jinclude.h: No such file or directory")
keine Abhilfe und kein Googlehit dazu :-(
-> (Abbruch)

** mjpegtools_1.6.0_srcdeb.tar.gz: ./debian/rules build
selbes Problem!
movtar_play.c: #include <jinclude.h> einfach per '//' auskommentiert
spaeter dadurch massenweise errors
-> (Abbruch)

** VERGISS ES! kein mjpegtools selberkompiliert!
comment this entry
go to top of page

2.4.23-benh: bei 'make xconfig' sind diverse Cryptop-Optionen deaktiviert

solved at 20031119

Loesung: unteren Abschnitt per Hand in .config reinkopieren

CONFIG_BLK_DEV_CRYPTOLOOP=m
CONFIG_CRYPTO=y
# CONFIG_CRYPTO_HMAC is not set
CONFIG_CRYPTO_NULL=m
CONFIG_CRYPTO_MD4=m
CONFIG_CRYPTO_MD5=m
CONFIG_CRYPTO_SHA1=m
CONFIG_CRYPTO_SHA256=m
CONFIG_CRYPTO_SHA512=m
CONFIG_CRYPTO_DES=m
CONFIG_CRYPTO_BLOWFISH=m
CONFIG_CRYPTO_TWOFISH=m
CONFIG_CRYPTO_SERPENT=m
CONFIG_CRYPTO_AES=m
CONFIG_CRYPTO_CAST5=m
CONFIG_CRYPTO_CAST6=m
CONFIG_CRYPTO_DEFLATE=m
# CONFIG_CRYPTO_TEST is not set
comment this entry
go to top of page

Info: Burning Encrypted DVDs

solved at 20031110
Burning Encrypted DVDs (http://mail.nl.linux.org/linux-crypto/2003-11/msg00008.html)
The one way I did it is as follows:

1. Create a file to hold your filesystem
2. losetup it as a loopback device using encryption, I used loop-AES
3. create a filesystem and put the data on that filesystem
4. losetup -d to disconnect the loop and burn this file as an iso image
growisofs -Z /dev/dvd=filesystem-file

This way you have it and all you have to do is:
losetup /dev/loopX /dev/dvd ....
with the rest of the crypto options you used to create it. Then just
mount loopX and you are all set.
comment this entry
go to top of page

DVD-Imagegroesse per dd bestimmen

solved at 20031110

dd-sizes

 for 80min CD-R(W)
 -> bs=1M count=702
    /dev/zero: 28s
    /dev/urandom: 16.5m
 
 for 74min CD-R(W)
 -> bs=1M count=649
 
 for DVD-R (4.7GB)
 ??? -> bs=1M count=4480
    /dev/zero: ??? approx. 4m
    /dev/urandom: ??? approx. 1.8h
 Roy meldet 300M noch Platz!
 ??? -> bs=1M count=4780
    -> zu gross um ca. 300MB 

time nice -n 10 dd if=/dev/urandom of=./safedata bs=1MB count=4690
    /dev/zero: 4m
    /dev/urandom: 1h56m44s | 4h40m

Kopiergeschwindigkeiten

crypto-DVD-image -> crypto-DVD-image:
  1.23user 79.76system 44:57.62elapsed
  vk@lisa:/mnt$ du crypto
  4576268 crypto
ext3fs -> crypto-DVD-image
  22m45.473s
  4486376kB


http://groups.google.com/groups?hl=de&lr=&ie=UTF-8&oe=utf-8&selm=at4bcp%241094j4%241%40ID-172721.news.dfncis.de
-> bs=1MB count=4483

http://groups.google.com/groups?hl=de&lr=&ie=UTF-8&oe=utf-8&selm=5kbavus123vquurjf49st4f9u8rkgpt0r7%404ax.com
-> bs=1c count=4146965197 (bytes)

http://dvddemystified.com/dvdfaq.html#3.3
DVD:
-> 4.37 * 2^30 = ?
-> 4.70 * 10^9 = 4700000000

CD-ROM:
0.635 gig (0.650 BB)
-> 0.635 * 2^30
-> 0.650 10^9 = 650000000
comment this entry
go to top of page

safedata per dd, losetup, mke2fs erstellen

solved at 20031110

commands

dd if=/dev/urandom of=./safedata bs= count=
dd if=/dev/zero of=./safedata bs= count=

root:
losetup -e aes /dev/loop0 ./safedata
mke2fs -i 65536 -m 0 /dev/loop0   (wenige inodes)
mke2fs /dev/loop0
chown vk.users safedata


vor 'Util-linux version 2.10p' bleibt loop haengen:
root@host# losetup -d /dev/loop0
comment this entry
go to top of page

encryption-kernelpatch

solved at 20031109
patch "Linux lisa 2.4.19 #18 Tue Jun 24 03:35:56 CEST 2003 i586 GNU/Linux"
using 20031105_patch-2.4.19.bz2
because of http://encryptionhowto.sourceforge.net/Encryption-HOWTO.html
* bzcat /home/vk/in/software/linux-src/system/20031105_patch-2.4.19.bz2 | patch -p1
comment this entry
go to top of page

Tools zum USB-Stick einrichten

solved at 20031101
modprobe usb-storage
cdrecord -scanbus
scsiinfo -l
fdisk -l /dev/sda
comment this entry
go to top of page

Christian Hackl CSS Tipps

solved at 20031028
a.samepage_down { display:list-item; margin-left:17px;
list-style-image:url("arrow.png") }
/* 17px ist in etwa die Länge von arrow.png */

da fällt mir ein: für diese art von linkauflistung würde sich im
HTML-code eigentlich <ul> anbieten. wieder so ein fall, wo sich
logisches HTML und CSS sehr schön ergänzen würden.

also in etwa so:

<ul id="navigation">
<!-- wenn diese Liste immer die erste im Dokument ist, brauchst du das
id-Attribut nicht, sondern kannst im CSS-Code dann ":first-child"
und/oder "+" verwenden -->

<li class="internal_prev"><a hreflang="en" href="../index.html">back
to main page</a></li>
<!-- wenn in jeder dieser Listen immer nur der erste Link einen
anderen Pfeil haben soll, kannst du auch dieses class-Attribut locker
einsparen -->



<li><a hreflang="de" href="#deutsch">gehe zu deutschen HowTos</a></li>
<li><a hreflang="en" href="#english">go to english howtos</a></li>

</ul>

.content ul:first-child li { list-style-image:url("arrow.png") }
.content ul:first-child li:first-child {
list-style-image:url("arrow_left.png") }

/* ich weise nur darauf hin, dass der IE :first-child nicht kennt :)
*/


ok, hab grade gemerkt, dass es in mozilla und opera 7 leicht anders
aussieht. hier ist mein endgültiger vorschlag :)

.content ul { list-style-type:none }
.content ul li { margin:0; padding:0 }
.content ul:first-child li a:before { content:url("arrow.png");
padding-right:10px }
.content ul:first-child li:first-child a:before {
content:url("arrow_left.png") }


übrigens (mein gott, ich spammer :)) :
span:after { content: "\A" }

so kriegst du einen zeilenumbruch hin - aber nur in opera 7, leider
nicht in mozilla, zumindest noch nicht im 1.4er.
comment this entry
go to top of page

Email an abcde-Autor wegen abcdestatus und myabcde

solved at 20031017
abcdestatus is a small bash-script, that shows a short summary on what
is going on. I prefer running several abcde-sessions in parallel. No,
I do not have a SMP system but when I leave the room, I want my
ripping-machine doing work and not wait for me in idle.

The output is pretty self-explaining, so I just added some
'screenshots' here to show you the things it shows to the user:

vk@maggie:~/temp/2del/ripping$ abcdestatus

--------------------------------------- Jobs which are not finished yet
CD-id 8511d80b   Pink Floyd / p.u.l.s.e Live (Disc 1)
CD-id 860f960b   Pink Floyd / Division Bell
CD-id aa10d30d   Pink Floyd / Pulse (Live) CD02
------------------------------------------------------------- processes
free space on harddisk:  799 MB
      running encoders:  2
       working rippers:  1
No 'myabcde'-job is waiting for enough free space to begin.
-----------------------------------------------------------------------

vk@maggie:~/temp/2del/ripping$

OR

with a waiting 'myabcde'

vk@maggie:~/temp/2del/ripping$ abcdestatus

--------------------------------------- Jobs which are not finished yet
CD-id 8511d80b   Pink Floyd / p.u.l.s.e Live (Disc 1)
CD-id 860f960b   Pink Floyd / Division Bell
------------------------------------------------------------- processes
free space on harddisk:  725 MB
      running encoders:  2
       working rippers:  0
A 'myabcde'-job is waiting for enough space to begin.
-----------------------------------------------------------------------

vk@maggie:~/temp/2del/ripping$ any myabcde

'myabcde' is a short bash-script, that does several things:
Without a parameter, it just checks, if there is no ripping going on
(yet) and if not, it starts 'time abcde; beep' followed by
'abcdestatus'.

'beep' is a script that plays a soundfile to get my attention to my
ripping-computer (which is my iBook). That functionality can be easily
added to 'myabcde' too.

When you start 'myabce' with a parameter (a number), you tell
'myabcde' to wait, until that amount of MBs are free on the harddisk
(my HDD-space is low on my iBook) to start the commands mentioned
above. It already has some checks not to get started twice (locking).
When there is enough free room, it starts a festival-output (some
speech synthesis) which reminds me to switch to this session to answer
the questions abcde is about to ask.

btw, 'myabcde' is not really a cool name ;-) But the functionality can
be easily added to abcde itself (this is the reason, I write these
lines to you anyway). If this is added to abcde, there will be some
enhancements such as asking the user its questions (everything about
cddb-choice and so forth) at the beginning and _then_ starts to wait
for enough free space on the harddisk. This would be very cool for me
and I am thinking of adding this kind of things to abcde by myself...

output of myabcde with parameter (long lines broken)

vk@maggie:~/temp/2del/ripping$ myabcde 730
myabcde: Current free space is 361 MB. Will wait until 369 MB more are
free. (18h18m59s)
myabcde: Current free space is 365 MB. Will wait until 365 MB more are
free. (18h19m59s)
myabcde: Current free space is 427 MB. Will wait until 303 MB more are
free. (18h20m59s)
myabcde: Current free space is 424 MB. Will wait until 306 MB more are
free. (18h21m59s)
myabcde: Current free space is 535 MB. Will wait until 195 MB more are
free. (18h22m59s)
myabcde: Current free space is 532 MB. Will wait until 198 MB more are
free. (18h23m59s)
myabcde: Current free space is 591 MB. Will wait until 139 MB more are
free. (18h24m59s)
myabcde: Current free space is 726 MB. Will wait until 4 MB more are
free. (18h26m00s)
myabcde: Current free space is 722 MB. Will wait until 8 MB more are
free. (18h27m00s)
myabcde: Current free space is 719 MB. Will wait until 11 MB more are
free. (18h28m00s)
myabcde: Current free space is 813 MB. Now starting ...  (18h29m00s)
Getting CD track info... Grabbing entire CD - tracks: 01 02 03 04 05
06 07 08 09 10 11 12 13
[abcde continues here]

There is no error-checking or something like that yet. For me, I don't
need it but it'd be no problem to be added.

So what are you thinking?

The two scripts are added as attachments below.
comment this entry
go to top of page

Installationsprobleme

solved at 20031015
root@openzaurus:/mnt/card/2inst# cat /etc/ipkg.conf
# Written by AQPkg
# Must have one or more source entries of the form:
#
# src <src-name> <source-url>
#
# and one or more destination entries of the form:
#
# dest <dest-name> <target-path>
#
# where <src-name> and <dest-names> are identifiers that
# should match [a-zA-Z0-9._-]+, <source-url> should be a
# URL that points to a directory containing a Familiar
# Packages file, and <target-path> should be a directory
# that exists on the target system.

src stable http://openzaurus.org/official/stable/feed
#src testing http://openzaurus.org/official/testing/feed
#src unstable http://openzaurus.org/official/unstable/feed

dest root /
dest ram /mnt/ram
dest sd /mnt/card
dest cf /mnt/cf

# Proxy Support
option http_proxy http://10.11.18.40:3128
option ftp_proxy http://10.11.18.40:3128
#option proxy_username <username>
#option proxy_password <password>

# Offline mode (for use in constructing flash images offline)
#option offline_root target
root@openzaurus:/mnt/card/2inst# ipkg -d /mnt/card DocReader_1.1_arm.ipk
loading conf file /etc/ipkg.conf
ERROR: Unknown dest name: /mnt/card'
root@openzaurus:/mnt/card/2inst# ipkg -d sd DocReader_1.1_arm.ipk
loading conf file /etc/ipkg.conf
ipkg: unknown sub-command DocReader_1.1_arm.ipk
ipkg version 0.99.62
usage: ipkg [options...] sub-command [arguments...]
where sub-command is one of:

Package Manipulation:
update Update list of available packages
upgrade Upgrade all installed packages to latest
version
install <pkg> Download and install <pkg> (and
dependencies)
install <file.ipk> Install package <file.ipk>
remove <pkg> Remove package <pkg>
flag <flags> <pkg> ... Flag package(s) <pkg>
<flags>=hold,noprune

Informational Commands:
list List available packages and descriptions
files <pkg> List all files belonging to <pkg>
search <file> Search for a package providing <file>
info [pkg [<field>]] Display all/some info fields for <pkg> or
all
status [pkg [<field>]] Display all/some status fields for <pkg> or
all
download <pkg> Download <pkg> to current directory.
compare_versions <v1> <op> <v2>
compare versions using <= < > >= = << >>
print_architecture prints the architecture.
print_installation_architecture
prints the installation architecture.

Options:
-V <level> Set verbosity level to <level>. If no value
is
-verbosity <level> provided increase verbosity by one.
Verbosity levels:
0 errors only
1 normal messages (default)
2 informative messages
3 debug output
-f <conf_file> Use <conf_file> as the ipkg configuration
file
-conf <conf_file> Default configuration file location
is /etc/ipkg.conf
-d <dest_name> Use <dest_name> as the the root directory
for
-dest <dest_name> package installation, removal, upgrading.
<dest_name> should be a defined dest name
from
the configuration file, (but can also be a
directory name in a pinch).
-o <offline_root> Use <offline_root> as the root directory for
-offline <offline_root> offline installation of packages.
-verbose_wget more wget messages
Force Options (use when ipkg is too smart for its own good):
-force-depends Make dependency checks warnings instead of
errors
Install/remove package in spite of
failed dependences
-force-defaults Use default options for questions asked by
ipkg.
(no prompts). Note that this will not
prevent
package installation scripts from prompting.
-force-reinstall Allow ipkg to reinstall a package.
-force-overwrite Allow ipkg to overwrite files from another
package during an install.
-force-removal-of-dependent-packages
-recursive Allow ipkg to remove package and all that
depend on it.
root@openzaurus:/mnt/card/2inst# ipkg -d sd install DocReader_1.1_arm.ipk
loading conf file /etc/ipkg.conf
Cannot find package DocReader_1.1_arm.ipk.
Check the spelling or perhaps run 'ipkg update'
root@openzaurus:/mnt/card/2inst# ipkg -d sd install ./DocReader_1.1_arm.ipk
loading conf file /etc/ipkg.conf
Cannot find package ./DocReader_1.1_arm.ipk.
Check the spelling or perhaps run 'ipkg update'
root@openzaurus:/mnt/card/2inst# ipkg -d sd -V 5 install
./DocReader_1.1_arm.ipk
loading conf file /etc/ipkg.conf
Cannot find package ./DocReader_1.1_arm.ipk.
Check the spelling or perhaps run 'ipkg update'
configuring unpacked packages
writing status file
root@openzaurus:/mnt/card/2inst# ipkg -d sd -V 5 install
/mnt/card/2inst/DocReader_1.1_arm.ipk
loading conf file /etc/ipkg.conf
Cannot find package /mnt/card/2inst/DocReader_1.1_arm.ipk.
Check the spelling or perhaps run 'ipkg update'
configuring unpacked packages
writing status file



root@openzaurus:/mnt/card/2inst# ipkg -d sd install
/mnt/card/2inst/jcards_4.0.1-1_arm.ipk
loading conf file /etc/ipkg.conf
ipkg_conf_set_option: Unrecognized option: proxy_username=<username>
ipkg_conf_set_option: Unrecognized option: proxy_password=<password>
ipkg: invalid compressed data--format violated
Cannot find package /mnt/card/2inst/jcards_4.0.1-1_arm.ipk.
Check the spelling or perhaps run 'ipkg update'
root@openzaurus:/mnt/card/2inst# Connection to zaurus closed.
vk@lisa:~$
comment this entry
go to top of page

cdparanoia-Anpassungen

solved at 20030926
maggie:~# chmod g+r+w /dev/sg*
... damit ich cdparanoia als user verwenden kann
Quelle: http://groups.google.com/groups?hl=de&lr=&ie=UTF-8&oe=utf-8&frame=right&th=fc2508a2f25e447f&seekm=19990816153709.A25102%40freefall.home.sectionIV.com
comment this entry
go to top of page

apt-spy Ergebnisse

solved at 20030918
apt-spy -d unstable -a Europe -o 20030918_apt-spy-output -w 20030918_apt-spy-output_top5

# sources.list generated by apt-spy v3.0-2
deb http://ftp.tu-graz.ac.at/mirror/debian/ unstable main
deb-src http://ftp.tu-graz.ac.at/mirror/debian/ unstable main
#deb http://security.debian.org/ stable/updates main

top 5

ftp.tu-graz.ac.at:/mirror/debian/:/mirror/debian/:
ftp.uni-stuttgart.de:/debian/:/debian/:
sunsite.informatik.rwth-aachen.de:/pub/Linux/debian/:/ftp/pub/Linux/debian/:
ftp.uni-erlangen.de:/pub/Linux/debian/:/pub/Linux/debian/:
ftp.jyu.fi:/debian/:/debian/:
comment this entry
go to top of page

pptp-Problembeschreibung

solved at 20030623
* syslog waehrend pptp Verbindungsaufbau (mit debug)

Jun 23 00:33:38 maggie kernel: eth0: Link is up at 100 Mbps, full-duplex.
Jun 23 00:33:38 maggie kernel: eth0: Pause is disabled
Jun 23 00:33:39 maggie dhclient: Listening on LPF/lo/<null>
Jun 23 00:33:39 maggie dhclient: Sending on LPF/lo/<null>
Jun 23 00:33:39 maggie dhclient: Listening on LPF/eth0/00:03:93:8e:e1:e0
Jun 23 00:33:39 maggie dhclient: Sending on LPF/eth0/00:03:93:8e:e1:e0
Jun 23 00:33:39 maggie dhclient: Sending on Socket/fallback/fallback-net
Jun 23 00:33:39 maggie dhclient: DHCPDISCOVER on lo to 255.255.255.255 port 67 interval 3
Jun 23 00:33:39 maggie dhclient: DHCPREQUEST on eth0 to 255.255.255.255 port 67
Jun 23 00:33:39 maggie dhclient: DHCPACK from 10.5.0.1
Jun 23 00:33:39 maggie dhclient: bound to 10.5.3.250 -- renewal in 1800 seconds.
Jun 23 00:33:40 maggie kernel: eth0: Link is up at 100 Mbps, full-duplex.
Jun 23 00:33:40 maggie kernel: eth0: Pause is disabled
Jun 23 00:33:40 maggie pppd[1157]: pppd options in effect:
Jun 23 00:33:40 maggie pppd[1157]: debug^I^I# (from /etc/ppp/options.pptp)
Jun 23 00:33:40 maggie pppd[1157]: updetach^I^I# (from command line)
Jun 23 00:33:40 maggie pppd[1157]: dump^I^I# (from /etc/ppp/options.pptp)
Jun 23 00:33:40 maggie pppd[1157]: noauth^I^I# (from /etc/ppp/options.pptp)
Jun 23 00:33:40 maggie pppd[1157]: refuse-pap^I^I# (from /etc/ppp/options.pptp)
Jun 23 00:33:40 maggie pppd[1157]: refuse-chap^I^I# (from /etc/ppp/options.pptp)
Jun 23 00:33:40 maggie pppd[1157]: refuse-mschap^I^I# (from /etc/ppp/options.pptp)
Jun 23 00:33:40 maggie pppd[1157]: refuse-eap^I^I# (from /etc/ppp/options.pptp)
Jun 23 00:33:41 maggie pppd[1157]: name 33352668^I^I# (from /etc/ppp/peers/tunl)
Jun 23 00:33:41 maggie pppd[1157]: remotename PPTP^I^I# (from /etc/ppp/peers/tunl)
Jun 23 00:33:41 maggie pppd[1157]: ^I^I# (from /etc/ppp/options.pptp)
Jun 23 00:33:41 maggie pppd[1157]: pty pptp 10.0.0.1 --nolaunchpppd^I^I# (from command line)
Jun 23 00:33:41 maggie pppd[1157]: mtu 1460^I^I# (from /etc/ppp/options.pptp)
Jun 23 00:33:41 maggie pppd[1157]: ipparam vcgraz^I^I# (from /etc/ppp/peers/tunl)
Jun 23 00:33:41 maggie pppd[1157]: nobsdcomp^I^I# (from /etc/ppp/options.pptp)
Jun 23 00:33:41 maggie pppd[1157]: nodeflate^I^I# (from /etc/ppp/options.pptp)
Jun 23 00:33:41 maggie pppd[1157]: require-mppe^I^I# (from /etc/ppp/options.pptp)
Jun 23 00:33:41 maggie pppd[1157]: nomppe-stateful^I^I# (from /etc/ppp/options.pptp)
Jun 23 00:33:41 maggie pppd[1157]: pppd 2.4.2b3 started by root, uid 0
Jun 23 00:33:41 maggie pptp[1158]: anon log[main:pptp.c:174]: The synchronous pptp option is NOT activated
Jun 23 00:33:41 maggie pppd[1157]: using channel 7
Jun 23 00:33:41 maggie pppd[1157]: Using interface ppp0
Jun 23 00:33:41 maggie pppd[1157]: Connect: ppp0 <--> /dev/pts/8
Jun 23 00:33:41 maggie pptp[1161]: anon log[pptp_dispatch_ctrl_packet:pptp_ctrl.c:581]: Client connection established.
Jun 23 00:33:42 maggie pppd[1157]: sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0x7048d0d6> <pcomp> <accomp>]
Jun 23 00:33:42 maggie pptp[1158]: anon log[decaps_hdlc:pptp_gre.c:198]: PPP mode seems to be Asynchronous.
Jun 23 00:33:42 maggie pppd[1157]: rcvd [LCP ConfReq id=0x0 <auth chap MS-v2>]
Jun 23 00:33:42 maggie pppd[1157]: sent [LCP ConfAck id=0x0 <auth chap MS-v2>]
Jun 23 00:33:42 maggie pppd[1157]: rcvd [LCP ConfAck id=0x1 <asyncmap 0x0> <magic 0x7048d0d6> <pcomp> <accomp>]
Jun 23 00:33:42 maggie pppd[1157]: rcvd [CHAP Challenge id=0x1 <efdf4c9fbd9a3dfe6f8670737967b566>, name = ""]
Jun 23 00:33:42 maggie pppd[1157]: sent [CHAP Response id=0x1 <9b0b0df2754cb9579
Jun 23 00:33:42 maggie pptp[1161]: anon log[pptp_dispatch_ctrl_packet:pptp_ctrl.c:709]: Outgoing call established (call ID 0, peer's call ID 55281).
Jun 23 00:33:42 maggie pppd[1157]: rcvd [CHAP Challenge id=0x2 <3e95ad173308383f6f8670737967b566>, name = ""]
Jun 23 00:33:42 maggie pppd[1157]: sent [CHAP Response id=0x2 <9f167b803180971b481f3b5ea2ec8b0300000000000000007d2446678549ea1761a3a162e6450b22905a8777fa71c63300>, name = "33352668"]
Jun 23 00:33:42 maggie pppd[1157]: rcvd [CHAP Success id=0x2 "S=184A1678ABA05BC56E090AC87A507E0484F0F23D"]
Jun 23 00:33:42 maggie pppd[1157]: CHAP authentication succeeded
Jun 23 00:33:42 maggie kernel: compress rejected: opt_len=22,o[0]=12,o[1]=6
Jun 23 00:33:42 maggie pppd[1157]: MPPE required, but kernel has no support.
Jun 23 00:33:42 maggie pppd[1157]: sent [LCP TermReq id=0x2 "MPPE required but not available"]
Jun 23 00:33:42 maggie pppd[1157]: rcvd [IPCP ConfReq id=0x0 <addr 10.0.0.1>]
Jun 23 00:33:42 maggie pppd[1157]: Discarded non-LCP packet when LCP not open
Jun 23 00:33:42 maggie pppd[1157]: rcvd [CCP ConfReq id=0x0 <mppe +H -M +S +L -D +C>]
Jun 23 00:33:42 maggie pppd[1157]: Discarded non-LCP packet when LCP not open
Jun 23 00:33:42 maggie pppd[1157]: rcvd [LCP TermAck id=0x2 05 02 00 23 4d 50 50 45 20 72 65 71 75 69 72 65 64 20 62 75 74 20 6e 6f 74 20 61 76 61 69 6c 61 ...]
Jun 23 00:33:42 maggie pppd[1157]: Connection terminated.
Jun 23 00:33:42 maggie pppd[1157]: Waiting for 1 child processes...
Jun 23 00:33:42 maggie pptp[1158]: anon warn[decaps_hdlc:pptp_gre.c:190]: short read (-1): Input/output error
Jun 23 00:33:42 maggie pptp[1158]: anon warn[decaps_hdlc:pptp_gre.c:191]: pppd may have shutdown, see pppd log
Jun 23 00:33:42 maggie pppd[1157]: script pptp 10.0.0.1 --nolaunchpppd, pid 1158
Jun 23 00:33:42 maggie pptp[1161]: anon log[callmgr_main:pptp_callmgr.c:234]: Closing connection
Jun 23 00:33:42 maggie pptp[1161]: anon log[pptp_conn_close:pptp_ctrl.c:308]: Closing PPTP connection
Jun 23 00:33:44 maggie pptp[1161]: anon log[call_callback:pptp_callmgr.c:74]: Closing connection
Jun 23 00:33:45 maggie pppd[1157]: Script pptp 10.0.0.1 --nolaunchpppd finished (pid 1158), status = 0x0
Jun 23 00:33:45 maggie pppd[1157]: Exit.
Jun 23 00:33:48 maggie kernel: device eth0 left promiscuous mode
Jun 23 00:33:52 maggie kernel: device eth0 entered promiscuous mode


* Shellausgabe von vpn.init

DHCPACK from 10.5.0.1
bound to 10.5.3.250 -- renewal in 1800 seconds.
current IP: 10.5.3.250
current GW: 10.5.0.1
VPN init: bringing up eth0...
VPN init: opening tunnel...
pppd options in effect:
debug # (from /etc/ppp/options.pptp)
updetach # (from command line)
dump # (from /etc/ppp/options.pptp)
noauth # (from /etc/ppp/options.pptp)
refuse-pap # (from /etc/ppp/options.pptp)
refuse-chap # (from /etc/ppp/options.pptp)
refuse-mschap # (from /etc/ppp/options.pptp)
refuse-eap # (from /etc/ppp/options.pptp)
name 33352668 # (from /etc/ppp/peers/tunl)
remotename PPTP # (from /etc/ppp/peers/tunl)
# (from /etc/ppp/options.pptp)
pty pptp 10.0.0.1 --nolaunchpppd # (from command line)
mtu 1460 # (from /etc/ppp/options.pptp)
ipparam vcgraz # (from /etc/ppp/peers/tunl)
nobsdcomp # (from /etc/ppp/options.pptp)
nodeflate # (from /etc/ppp/options.pptp)
require-mppe # (from /etc/ppp/options.pptp)
nomppe-stateful # (from /etc/ppp/options.pptp)
using channel 7
Using interface ppp0
Connect: ppp0 <--> /dev/pts/8
sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0x7048d0d6> <pcomp> <accomp>]
rcvd [LCP ConfReq id=0x0 <auth chap MS-v2>]
sent [LCP ConfAck id=0x0 <auth chap MS-v2>]
rcvd [LCP ConfAck id=0x1 <asyncmap 0x0> <magic 0x7048d0d6> <pcomp> <accomp>]
rcvd [CHAP Challenge id=0x1 <efdf4c9fbd9a3dfe6f8670737967b566>, name = ""]
sent [CHAP Response id=0x1 <9b0b0df2754cb95791a5576500cb319f000000000000000039beb9893058803e80ad2360fd0862cb731ca9bae4f117f400>, name = "33352668"]
rcvd [CHAP Challenge id=0x2 <3e95ad173308383f6f8670737967b566>, name = ""]
sent [CHAP Response id=0x2 <9f167b803180971b481f3b5ea2ec8b0300000000000000007d2446678549ea1761a3a162e6450b22905a8777fa71c63300>, name = "33352668"]
rcvd [CHAP Success id=0x2 "S=184A1678ABA05BC56E090AC87A507E0484F0F23D"]
CHAP authentication succeeded
MPPE required, but kernel has no support.
sent [LCP TermReq id=0x2 "MPPE required but not available"]
rcvd [IPCP ConfReq id=0x0 <addr 10.0.0.1>]
Discarded non-LCP packet when LCP not open
rcvd [CCP ConfReq id=0x0 <mppe +H -M +S +L -D +C>]
Discarded non-LCP packet when LCP not open
rcvd [LCP TermAck id=0x2 05 02 00 23 4d 50 50 45 20 72 65 71 75 69 72 65 64 20 62 75 74 20 6e 6f 74 20 61 76 61 69 6c 61 ...]
Connection terminated.
Waiting for 1 child processes...
script pptp 10.0.0.1 --nolaunchpppd, pid 1158
Script pptp 10.0.0.1 --nolaunchpppd finished (pid 1158), status = 0x0
pptp-command: pppd indicated failure
maggie:~/scripts/test_vpn#


* Kernelmodul _ist_ aber vorhanden:

maggie:~/scripts/test_vpn# lsmod
Module Size Used by Tainted: P
iptable_filter 1872 0 (autoclean) (unused)
ip_tables 13664 1 [iptable_filter]
ppp_mppe 17656 0 (unused)
i2c-keywest 7196 0 (autoclean) (unused)
dmasound_pmac 65264 0
dmasound_core 12784 0 [dmasound_pmac]
i2c-core 14340 0 [i2c-keywest dmasound_pmac]
soundcore 4056 3 (autoclean) [dmasound_core]
maggie:~/scripts/test_vpn#


+ Kernelmodulspielerei:

maggie:~/scripts/test_vpn# modprobe ppp-compress-18
maggie:~/scripts/test_vpn# rmmod ppp_mppe
maggie:~/scripts/test_vpn# modprobe ppp-compress-18
Warning: loading /lib/modules/2.4.20-ben10/kernel/drivers/net/ppp_mppe.o will taint the kernel: no license
See http://www.tux.org/lkml/#export-tainted for information about tainted modules
Module ppp_mppe loaded, with warnings
maggie:~/scripts/test_vpn# lsmod
Module Size Used by Tainted: P
ppp_mppe 17656 0 (unused)
iptable_filter 1872 0 (autoclean) (unused)
ip_tables 13664 1 [iptable_filter]
i2c-keywest 7196 0 (autoclean) (unused)
dmasound_pmac 65264 0
dmasound_core 12784 0 [dmasound_pmac]
i2c-core 14340 0 [i2c-keywest dmasound_pmac]
soundcore 4056 3 (autoclean) [dmasound_core]
maggie:~/scripts/test_vpn#
comment this entry
go to top of page

Mehrseitendruck von PostScript per psnup und psselect

solved at 20030617
A5-Broschuere: 2 Seiten auf einer A4
psnup -Pa5 -pa4 -2 in.ps out.ps

Duplex-Druck auf non-duplex-Drucker:
ungerade Seiten:
psselect -o -p1-42 doc.ps | lpr
(wenn doc.ps eine ungerade Anzahl von Seiten hat, muss man jetzt die letzte entfernen)
gerade Seiten:
psselect -e -p1-42 doc.ps | lpr
comment this entry
go to top of page

Zaurus usbdnet doesnt start

solved at 20030130
normal syslog-entries upon inserting a started Z into cradle: (OZ3.1r2)

Jan 30 22:06:59 lisa kernel: hub.c: USB new device connect on bus1/2/2, assigned device number 3
Jan 30 22:07:00 lisa kernel: usbdnet: probe
Jan 30 22:07:00 lisa kernel: idp_search: look for idVendor: 04dd idProduct: 8004
Jan 30 22:07:00 lisa kernel: idp_search: looking at idVendor: 05e9 idProduct: 0040
Jan 30 22:07:00 lisa kernel: idp_search: looking at idVendor: aaaa idProduct: bbbb
Jan 30 22:07:00 lisa kernel: idp_search: looking at idVendor: 049f idProduct: 505a
Jan 30 22:07:00 lisa kernel: idp_search: looking at idVendor: 03f0 idProduct: 2101
Jan 30 22:07:00 lisa kernel: idp_search: looking at idVendor: 04dd idProduct: 8003
Jan 30 22:07:00 lisa kernel: idp_search: looking at idVendor: 04dd idProduct: 8004
Jan 30 22:07:00 lisa kernel: idp_search: MATCH
Jan 30 22:07:00 lisa kernel: verify_no_claimed_interfaces:
Jan 30 22:07:00 lisa kernel: verify_no_claimed_interfaces: bNumInterfaces: 2
Jan 30 22:07:00 lisa kernel: verify_no_claimed_interfaces: ok
Jan 30 22:07:00 lisa kernel: find_valid_configuration[0] bConfigurationValue: 0 bNumInterfaces: 2
Jan 30 22:07:00 lisa kernel: find_valid_configuration: interface(s) 2
Jan 30 22:07:00 lisa kernel: verify_ethernet_comm_interface:
Jan 30 22:07:00 lisa kernel: find_interface_comm: class: 2 subclass: 6 protocol: 0
Jan 30 22:07:00 lisa kernel: find_interface_comm: alt: 0 class: 2 subclass: 6 protocol: 0
Jan 30 22:07:00 lisa kernel: find_interface_comm: found 0 0
Jan 30 22:07:00 lisa kernel: find_interface_data: class: a subclass: 0 protocol: 0
Jan 30 22:07:00 lisa kernel: find_interface_data: alt: 0 class: a subclass: 0 protocol: 0 endpoints: 0
Jan 30 22:07:00 lisa kernel: find_interface_data: alt: 1 class: a subclass: 0 protocol: 0 endpoints: 2
Jan 30 22:07:00 lisa kernel: find_interface_data: ep found 2 1
Jan 30 22:07:00 lisa kernel: find_interface_data: found 1 1
Jan 30 22:07:00 lisa kernel: find_interface_nodata: alt: 0 class: 10 subclass: 0 endpoints: 0
Jan 30 22:07:00 lisa kernel: find_interface_nodata: found 1 0
Jan 30 22:07:00 lisa kernel: verify_ethernet_comm_interface: found
Jan 30 22:07:00 lisa kernel: find_valid_configuration: cdc 0 1
Jan 30 22:07:00 lisa kernel: probe: configuration_number: 0 bConfigurationValue: 1
Jan 30 22:07:00 lisa kernel: probe: setting configuration bConfigurationValue: 1
Jan 30 22:07:00 lisa kernel: probe: CDC
Jan 30 22:07:00 lisa kernel: probe: setting comm interface bInterfaceNumber: 0 bAlternateSetting: 0
Jan 30 22:07:00 lisa kernel: probe: setting nodata interface bInterfaceNumber: 1 bAlternateSetting: 0
Jan 30 22:07:00 lisa kernel: probe: claiming comm interface: configuration: 0 interface: 0
Jan 30 22:07:00 lisa kernel: probe: claiming data interface: configuration: 0 interface: 1
Jan 30 22:07:00 lisa kernel: probe: tx_size: 64 rx_size: 64
Jan 30 22:07:00 lisa kernel: probe: tx_ep : 1 rx_ep : 2
Jan 30 22:07:00 lisa kernel: probe: success v0.5a
Jan 30 22:07:00 lisa kernel: probe: return c51fe400
Jan 30 22:07:00 lisa /etc/hotplug/net.agent: invoke ifup usb0 for Zaurus
Jan 30 22:07:03 lisa /etc/hotplug/usb.agent: Setup usbdnet for USB product 4dd/8004/0

(einige Zeit verstreicht, Z geht in suspend-mode)

Jan 30 22:08:17 lisa kernel: usb.c: USB disconnect on device 3
Jan 30 22:08:17 lisa kernel: usbdnet.c: usb_set_interface() failed
Jan 30 22:08:17 lisa kernel: unlink_urbs: unlinking : c91ee400 len: 0 jiffs: 137934
Jan 30 22:08:17 lisa kernel: disconnect: releasing comm interface: configuration: 0 interface: 0
Jan 30 22:08:17 lisa kernel: disconnect: releasing data interface: configuration: 0 interface: 1
Jan 30 22:08:17 lisa /etc/hotplug/net.agent: invoke ifdown usb0
Jan 30 22:08:17 lisa modprobe: modprobe: Can't locate module usb0

Danach neu einsetzen:

Jan 30 22:06:59 lisa kernel: hub.c: USB new device connect on bus1/2/2, assigned device number 3
Jan 30 22:07:00 lisa kernel: usbdnet: probe
Jan 30 22:07:00 lisa kernel: idp_search: look for idVendor: 04dd idProduct: 8004
Jan 30 22:07:00 lisa kernel: idp_search: looking at idVendor: 05e9 idProduct: 0040
Jan 30 22:07:00 lisa kernel: idp_search: looking at idVendor: aaaa idProduct: bbbb
Jan 30 22:07:00 lisa kernel: idp_search: looking at idVendor: 049f idProduct: 505a
Jan 30 22:07:00 lisa kernel: idp_search: looking at idVendor: 03f0 idProduct: 2101
Jan 30 22:07:00 lisa kernel: idp_search: looking at idVendor: 04dd idProduct: 8003
Jan 30 22:07:00 lisa kernel: idp_search: looking at idVendor: 04dd idProduct: 8004
Jan 30 22:07:00 lisa kernel: idp_search: MATCH
Jan 30 22:07:00 lisa kernel: verify_no_claimed_interfaces:
Jan 30 22:07:00 lisa kernel: verify_no_claimed_interfaces: bNumInterfaces: 2
Jan 30 22:07:00 lisa kernel: verify_no_claimed_interfaces: ok
Jan 30 22:07:00 lisa kernel: find_valid_configuration[0] bConfigurationValue: 0 bNumInterfaces: 2
Jan 30 22:07:00 lisa kernel: find_valid_configuration: interface(s) 2
Jan 30 22:07:00 lisa kernel: verify_ethernet_comm_interface:
Jan 30 22:07:00 lisa kernel: find_interface_comm: class: 2 subclass: 6 protocol: 0
Jan 30 22:07:00 lisa kernel: find_interface_comm: alt: 0 class: 2 subclass: 6 protocol: 0
Jan 30 22:07:00 lisa kernel: find_interface_comm: found 0 0
Jan 30 22:07:00 lisa kernel: find_interface_data: class: a subclass: 0 protocol: 0
Jan 30 22:07:00 lisa kernel: find_interface_data: alt: 0 class: a subclass: 0 protocol: 0 endpoints: 0
Jan 30 22:07:00 lisa kernel: find_interface_data: alt: 1 class: a subclass: 0 protocol: 0 endpoints: 2
Jan 30 22:07:00 lisa kernel: find_interface_data: ep found 2 1
Jan 30 22:07:00 lisa kernel: find_interface_data: found 1 1
Jan 30 22:07:00 lisa kernel: find_interface_nodata: alt: 0 class: 10 subclass: 0 endpoints: 0
Jan 30 22:07:00 lisa kernel: find_interface_nodata: found 1 0
Jan 30 22:07:00 lisa kernel: verify_ethernet_comm_interface: found
Jan 30 22:07:00 lisa kernel: find_valid_configuration: cdc 0 1
Jan 30 22:07:00 lisa kernel: probe: configuration_number: 0 bConfigurationValue: 1
Jan 30 22:07:00 lisa kernel: probe: setting configuration bConfigurationValue: 1
Jan 30 22:07:00 lisa kernel: probe: CDC
Jan 30 22:07:00 lisa kernel: probe: setting comm interface bInterfaceNumber: 0 bAlternateSetting: 0
Jan 30 22:07:00 lisa kernel: probe: setting nodata interface bInterfaceNumber: 1 bAlternateSetting: 0
Jan 30 22:07:00 lisa kernel: probe: claiming comm interface: configuration: 0 interface: 0
Jan 30 22:07:00 lisa kernel: probe: claiming data interface: configuration: 0 interface: 1
Jan 30 22:07:00 lisa kernel: probe: tx_size: 64 rx_size: 64
Jan 30 22:07:00 lisa kernel: probe: tx_ep : 1 rx_ep : 2
Jan 30 22:07:00 lisa kernel: probe: success v0.5a
Jan 30 22:07:00 lisa kernel: probe: return c51fe400
Jan 30 22:07:00 lisa /etc/hotplug/net.agent: invoke ifup usb0 for Zaurus
Jan 30 22:07:03 lisa /etc/hotplug/usb.agent: Setup usbdnet for USB product 4dd/8004/0

Jan 30 22:08:17 lisa kernel: usb.c: USB disconnect on device 3
Jan 30 22:08:17 lisa kernel: usbdnet.c: usb_set_interface() failed
Jan 30 22:08:17 lisa kernel: unlink_urbs: unlinking : c91ee400 len: 0 jiffs: 137934
Jan 30 22:08:17 lisa kernel: disconnect: releasing comm interface: configuration: 0 interface: 0
Jan 30 22:08:17 lisa kernel: disconnect: releasing data interface: configuration: 0 interface: 1
Jan 30 22:08:17 lisa /etc/hotplug/net.agent: invoke ifdown usb0
Jan 30 22:08:17 lisa modprobe: modprobe: Can't locate module usb0

Jan 30 22:08:51 lisa kernel: hub.c: USB new device connect on bus1/2/2, assigned device number 4
Jan 30 22:08:51 lisa kernel: usbdnet: probe
Jan 30 22:08:51 lisa kernel: idp_search: look for idVendor: 04dd idProduct: 8004
Jan 30 22:08:51 lisa kernel: idp_search: looking at idVendor: 05e9 idProduct: 0040
Jan 30 22:08:51 lisa kernel: idp_search: looking at idVendor: aaaa idProduct: bbbb
Jan 30 22:08:51 lisa kernel: idp_search: looking at idVendor: 049f idProduct: 505a
Jan 30 22:08:51 lisa kernel: idp_search: looking at idVendor: 03f0 idProduct: 2101
Jan 30 22:08:51 lisa kernel: idp_search: looking at idVendor: 04dd idProduct: 8003
Jan 30 22:08:51 lisa kernel: idp_search: looking at idVendor: 04dd idProduct: 8004
Jan 30 22:08:51 lisa kernel: idp_search: MATCH
Jan 30 22:08:51 lisa kernel: verify_no_claimed_interfaces:
Jan 30 22:08:51 lisa kernel: verify_no_claimed_interfaces: bNumInterfaces: 2
Jan 30 22:08:51 lisa kernel: verify_no_claimed_interfaces: ok
Jan 30 22:08:51 lisa kernel: find_valid_configuration[0] bConfigurationValue: 0 bNumInterfaces: 2
Jan 30 22:08:51 lisa kernel: find_valid_configuration: interface(s) 2
Jan 30 22:08:51 lisa kernel: verify_ethernet_comm_interface:
Jan 30 22:08:51 lisa kernel: find_interface_comm: class: 2 subclass: 6 protocol: 0
Jan 30 22:08:51 lisa kernel: find_interface_comm: alt: 0 class: 2 subclass: 6 protocol: 0
Jan 30 22:08:51 lisa kernel: find_interface_comm: found 0 0
Jan 30 22:08:51 lisa kernel: find_interface_data: class: a subclass: 0 protocol: 0
Jan 30 22:08:51 lisa kernel: find_interface_data: alt: 0 class: a subclass: 0 protocol: 0 endpoints: 0
Jan 30 22:08:51 lisa kernel: find_interface_data: alt: 1 class: a subclass: 0 protocol: 0 endpoints: 2
Jan 30 22:08:51 lisa kernel: find_interface_data: ep found 2 1
Jan 30 22:08:51 lisa kernel: find_interface_data: found 1 1
Jan 30 22:08:51 lisa kernel: find_interface_nodata: alt: 0 class: 10 subclass: 0 endpoints: 0
Jan 30 22:08:51 lisa kernel: find_interface_nodata: found 1 0
Jan 30 22:08:51 lisa kernel: verify_ethernet_comm_interface: found
Jan 30 22:08:51 lisa kernel: find_valid_configuration: cdc 0 1
Jan 30 22:08:51 lisa kernel: probe: configuration_number: 0 bConfigurationValue: 1
Jan 30 22:08:51 lisa kernel: probe: setting configuration bConfigurationValue: 1
Jan 30 22:08:51 lisa kernel: probe: CDC
Jan 30 22:08:51 lisa kernel: probe: setting comm interface bInterfaceNumber: 0 bAlternateSetting: 0
Jan 30 22:08:51 lisa kernel: probe: setting nodata interface bInterfaceNumber: 1 bAlternateSetting: 0
Jan 30 22:08:51 lisa kernel: probe: claiming comm interface: configuration: 0 interface: 0
Jan 30 22:08:51 lisa kernel: probe: claiming data interface: configuration: 0 interface: 1
Jan 30 22:08:51 lisa /etc/hotplug/net.agent: invoke ifup usb0 for Zaurus
Jan 30 22:08:51 lisa kernel: Unable to handle kernel NULL pointer dereference at virtual address 00000000
Jan 30 22:08:51 lisa kernel: printing eip:
Jan 30 22:08:51 lisa kernel: c0111c35
Jan 30 22:08:51 lisa kernel: *pde = 00000000
Jan 30 22:08:51 lisa kernel: Oops: 0002
Jan 30 22:08:51 lisa kernel: CPU: 0
Jan 30 22:08:51 lisa kernel: EIP: 0010:[add_wait_queue_exclusive+29/36] Not tainted
Jan 30 22:08:51 lisa kernel: EFLAGS: 00013092
Jan 30 22:08:51 lisa kernel: eax: c51fe410 ebx: 00000000 ecx: 00003202 edx: c96dfeb8
Jan 30 22:08:51 lisa kernel: esi: c96dfeb0 edi: c96de000 ebp: 00000000 esp: c96dfe98
Jan 30 22:08:51 lisa kernel: ds: 0018 es: 0018 ss: 0018
Jan 30 22:08:51 lisa kernel: Process ifconfig (pid: 1865, stackpage=c96df000)
Jan 30 22:08:51 lisa kernel: Stack: c51fe404 c96dfeb0 c01073e9 c51fe400 c51fe404 c51fe488 00000001 c96de000
Jan 30 22:08:51 lisa kernel: c51fe410 00000000 c0107548 c51fe404 d483f000 d483f1f8 d48417ab c51fe488
Jan 30 22:08:51 lisa kernel: 00000000 00001043 c01f980f c51fe488 c51fe488 00001002 c01fa653 c51fe488
Jan 30 22:08:51 lisa kernel: Call Trace: [__down+65/156] [__down_failed+8/12] [usbdnet:_bad_crc+340/10108] [usbdnet:_bad_crc+9991/10108] [dev_open+71/160]
Jan 30 22:08:51 lisa kernel: [dev_change_flags+79/252] [devinet_ioctl+789/1636] [inet_ioctl+307/380] [sock_ioctl+30/36] [sys_ioctl+362/388] [system_call+51/64]
Jan 30 22:08:51 lisa kernel:
Jan 30 22:08:51 lisa kernel: Code: 89 13 51 9d 5b 5e c3 9c 58 fa 8b 4a 0c 8b 52 08 89 4a 04 89
Jan 30 22:08:54 lisa kernel: usb_control/bulk_msg: timeout
Jan 30 22:08:54 lisa kernel: probe: tx_size: 64 rx_size: 64
Jan 30 22:08:54 lisa kernel: probe: tx_ep : 1 rx_ep : 2
Jan 30 22:08:54 lisa kernel: probe: success v0.5a
Jan 30 22:08:54 lisa kernel: probe: return c51fe400
Jan 30 22:08:57 lisa kernel: usb_control/bulk_msg: timeout
Jan 30 22:08:57 lisa kernel: usbdevfs: USBDEVFS_CONTROL failed dev 4 rqt 128 rq 6 len 18 ret -110
Jan 30 22:08:58 lisa kernel: usb_control/bulk_msg: timeout
Jan 30 22:08:58 lisa kernel: usbdevfs: USBDEVFS_CONTROL failed dev 4 rqt 128 rq 6 len 18 ret -110
Jan 30 22:08:58 lisa kernel: usb_control/bulk_msg: timeout
Jan 30 22:08:58 lisa kernel: usbdevfs: USBDEVFS_CONTROL failed dev 4 rqt 128 rq 6 len 18 ret -110
Jan 30 22:08:58 lisa kernel: usb_control/bulk_msg: timeout
Jan 30 22:08:58 lisa kernel: usbdevfs: USBDEVFS_CONTROL failed dev 4 rqt 128 rq 6 len 18 ret -110
Jan 30 22:08:58 lisa kernel: usb_control/bulk_msg: timeout
Jan 30 22:08:58 lisa kernel: usbdevfs: USBDEVFS_CONTROL failed dev 4 rqt 128 rq 6 len 18 ret -110
[...]
Jan 30 22:09:02 lisa kernel: usb_control/bulk_msg: timeout
Jan 30 22:09:02 lisa kernel: usbdevfs: USBDEVFS_CONTROL failed dev 4 rqt 128 rq 6 len 18 ret -110
Jan 30 22:09:02 lisa kernel: usb_control/bulk_msg: timeout
Jan 30 22:09:02 lisa kernel: usbdevfs: USBDEVFS_CONTROL failed dev 4 rqt 128 rq 6 len 18 ret -110
Jan 30 22:09:02 lisa kernel: usb_control/bulk_msg: timeout
Jan 30 22:09:02 lisa kernel: usbdevfs: USBDEVFS_CONTROL failed dev 4 rqt 128 rq 6 len 18 ret -110
Jan 30 22:09:02 lisa kernel: usb_control/bulk_msg: timeout
Jan 30 22:09:02 lisa kernel: usbdevfs: USBDEVFS_CONTROL failed dev 4 rqt 128 rq 6 len 18 ret -110
[...]
Jan 30 22:09:12 lisa /etc/hotplug/usb.agent: ... no modules for USB product 4dd/8004/0
comment this entry
go to top of page

Zaurus_SD-card_nicht_mountbar

solved at 20031000
root:/etc# mount /mnt/card/
mount: Mounting /dev/mmcda1 on /usr/mnt.rom/card failed: Invalid argument

root:/etc# cat /etc/fstab
/dev/mtdblock0 / cramfs ro 1 1
/dev/ram1 /dev minix defaults 1 2
/dev/mtdblock1 /home ext2 defaults 1 2
/dev/hda1 /mnt/cf auto noauto,owner 0 0
/dev/mmcda1 /mnt/card auto noauto,owner 0 0
/dev/mmcda1 /usr/mnt.rom/card auto noauto,owner 0 0
none /dev/pts devpts gid=5,mode=620 0 0

root:/etc# mount /dev/mmcda1 /mnt/card
mount: Mounting /dev/mmcda1 on /usr/mnt.rom/card failed: Invalid argument

root:/etc# mount /dev/mmcda1 /mnt/card -o rw
mount: Mounting /dev/mmcda1 on /usr/mnt.rom/card failed: Invalid argument

root:/etc# mount /dev/mmcda1 /mnt/card -w
mount: Mounting /dev/mmcda1 on /usr/mnt.rom/card failed: Invalid argument

root:/etc# mount
/dev/mtdblock0 on / type cramfs (ro)
/proc on /proc type proc (rw)
/dev/ram1 on /dev type minix (rw)
/dev/mtdblock1 on /home type ext2 (rw,sync)
none on /dev/pts type devpts (rw)
/dev/hda1 on /usr/mnt.rom/cf type vfat (rw)

root:/etc#

* Problem: inodes auf / ausgegangen
* Loesung: neu flashen und weniger d'rauf
comment this entry
go to top of page

apt-spy Ergebnisse

solved at 20021206

normal

# This sources.list was generated by apt-sources v2.20
# Copyright(c) 2001 by Danny Rodriguez
#
# The following site was benchmarked at 406.00 kB/s
deb ftp://ftp.tu-graz.ac.at/mirror/debian/ UNSTABLE main

# The following site was benchmarked at 17.85 kB/s
deb ftp://ftp.ee.debian.org/debian/ UNSTABLE contrib

# The following site was benchmarked at 17.32 kB/s
deb ftp://ftp2.de.debian.org/debian/ UNSTABLE non-free

###########################################################################
# Below are sites you may want to consider adding but are commented out
#
# -----[ Uncomment below for HELIX CODE site (GNOME) ]-----
# deb http://spidermonkey.ximian.com/distributions/debian unstable main
# -----[ Uncomment below for KDE site (& Kdevelop)   ]-----
# deb http://kde.tdyc.com potato main crypto optional qt1apps
# -----[ Uncomment below for debian security         ]-----
# deb http://security.debian.org stable/updates main contrib non-free
[...]

top-scorers

ftp://ftp.tu-graz.ac.at/mirror/debian/ @ 406.00
ftp://ftp.ee.debian.org/debian/ @ 17.85
ftp://ftp2.de.debian.org/debian/ @ 17.32
ftp://mirror.ipartners.pl/pub/debian/ @ 17.29
ftp://ftp.dk.debian.org/debian/ @ 17.27
ftp://ftp.easynet.be/debian/ @ 17.15
ftp://mirror.pudas.net/debian/ @ 17.13
ftp://ftp.si.debian.org/debian/ @ 16.93
ftp://debian.mur.at/debian/ @ 16.79
ftp://ftp.du.se/debian/ @ 16.64
ftp://www.mirror.ac.uk/sites/ftp.debian.org/debian/ @ 16.62
ftp://ftp2.it.debian.org/debian/ @ 16.62
ftp://ftp.fi.debian.org/debian/ @ 16.44
ftp://ftp.dkuug.dk/pub/debian/ @ 16.40
ftp://ftp.uni-stuttgart.de/debian/ @ 16.37
ftp://ftp.skynet.be/debian/ @ 16.21
ftp://ftp.proxad.net/mirrors/ftp.debian.org/ @ 16.00
ftp://ftp.jyu.fi/debian/ @ 15.91
ftp://ftp.unina.it/pub/linux/distributions/debian/debian/ @ 15.91
ftp://ftp.nrc.ca/pub/systems/linux/debian/ @ 15.84
ftp://mirrors.kernel.org/debian/ @ 15.82
ftp://ftp.cs.stevens-tech.edu/pub/Linux/distributions/debian/ @ 15.80
ftp://ftp.stw-bonn.de/pub/mirror/debian/ @ 15.75
ftp://ftp.linux.pt/pub/mirrors/debian/ @ 15.73
comment this entry
go to top of page

INSTALLING CVS-Server:

solved at 20021115
apt-get install cvs
Aktivieren von pserver
Root=/home/cvs
cvs -d /home/cvs init --> initialisieren von CVSROOT
htpasswd -c /home/cvs/CVSROOT/passwd vk --> Anlegen von user vk

lisa:/home/cvs# grep pserver /etc/inetd.conf
cvspserver stream tcp nowait root /usr/sbin/tcpd /usr/sbin/cvs-pserver
---> wie im dpkg (automatisch!!!)

* Webmin: weitere konfiguration (user anlegen usw)

als user:
vk@lisa:~/work/cvs/test$ export CVSROOT=:pserver:vk@localhost:/home/cvs
vk@lisa:~/work/cvs/test$ cvs login
Logging in to :pserver:vk@localhost:2401/home/cvs
CVS password:
vk@lisa:~/work/cvs/test$ --> speichert in ~/.cvspass das pw

ODER:
cvs -d :pserver:testuser@localhost:/home/cvs login
comment this entry
go to top of page

mktexlsr ... generiert teTeX-Katalog neu um per Hand installierte Pakete zu erkennen

solved at 20020405
comment this entry
go to top of page
Last generated: Tue Feb 19 08:36:12 +0100 2008