Archive for the 'linux' Category

USB nach TTL seriell

Friday, September 17th, 2010

Hab mir bei handy-fix.de (für €3,98 incl. Versand) ein Datenkabel für Nokia 3510 gekauft. Der Rechner erkennt es so:

dmesg:
[979343.412068] usb 8-1: new full speed USB device using uhci_hcd and address 14
[979343.623335] usb 8-1: configuration #1 chosen from 1 choice
[979343.625297] pl2303 8-1:1.0: pl2303 converter detected
[979343.637251] usb 8-1: pl2303 converter now attached to ttyUSB0

lsusb:
ID 067b:2303 Prolific Technology, Inc. PL2303 Serial Port

Offenbar ein Prolific PL2303 chip.
Kabelbelegung:
schwarz: Masse
blau: Daten vom Handy zum PC
rot: Daten vom PC zum Handy

Ein nützliches Programm für die serielle Kommunikation scheint moserial zu sein.

Hab’ den USB-Stecker mit der Schaltung darin geöffnet. Mein Teil hat den PL 2303HX Chip. Auf der Platine gibt es 10 Anschlusspunkte für verschiedene Kabel-Typen.
Bei meinem sind diese 3 verwendet: 7=Masse,
2(rot) und 3(blau)

Mehr Details hier:
Jonathan Thomson’s web journal.

alternative URL:
http://www.uchobby.com/index.php/2009/10/04/diy-usb-to-serial-cable-for-3/

update:
Hab’ das Kabel direkt ohne Widerstände oder Pegelwandler an den Atmega8 angeschlossen – funktioniert!

viel RAM hilft viel

Friday, March 26th, 2010

Hab mein Notebook heute von 1GB um weitere 2GB auf insgesamt 3 GB aufgerüstet. (DDR2 PC2-5300, 667MHz) Jetzt swappt es nicht mehr. Ich benutze leider relativ fette Anwendungen:
Firefox, TV-Browser,Miro, digikam, kmail,..
und hab auch oft viele FF-Tabs offen.

Hab’ jetzt alle erwähnten Anwendungen laufen und immer noch mehr als 2GB frei. Also noch viel Platz für ein paar virtuelle Maschinen.

Den Start von digikam konnte ich auch erheblich beschleunigen. Hab’ digikam4.db und thumbnails-digikam.db aus meinem Bilder-Ordner woanders hin verschoben.

Wie kann man ermitteln wie die RAM Slots belegt sind, ohne den Rechner auf zu schrauben ?
Antwort:

sudo dmidecode -t 17

/etc/init.d/knoppix-halt

Friday, March 12th, 2010

In Knoppix 6.0 und 6.2 hatte ich das Problem, daß ein Diskless Knoppix, welches überss Netz von einem “Knoppix Terminalserver” gestartet wurde, nicht ordentlich ‘runterfahren konnte. Um das zu reparieren, habe ich in /etc/init.d/knoppix-halt folgende Änderungen vorgenommen:

# MH don’t shut down network
#ifdown -a >/dev/null 2>&1

# Free modules
while read module relax; do
case “$module” in
*eeepc*|*_laptop*) true ;; # Unloading eeepc_laptop disables WLAN in the BIOS. Why?
# MH kein rmmod!
# *) rmmod “$module” ;;
esac
done /dev/null 2>&1

# MH: -d hinzugefügt
case “$0” in *halt|*poweroff) poweroff -d -f ;;
*) reboot -d -f ;;
esac

ssh

Friday, March 12th, 2010

ssh weniger sicher aber etwas mehr bequem machen:

1.) HashKnownHosts no
in /etc/ssh/ssh_config oder in ~/.ssh/config

Danach werde ndie Einträge in ~/.ssh/known_hosts wieder “so wie früher” und man kann leicht einen Eintrag finden und entfernen, wenn sich ein host key geändert hat.

2.) StrictHostKeyChecking no
in /etc/ssh/ssh_config oder in ~/.ssh/config

Nachdem man seinen Schlüssel mit ssh-copy-id auf den Zielrechner übertragen hat, kann man ssh in scripten benutzen, auch wenn der Zielrechner nicht in known_hosts steht.

z.B. ein screenshot holen:
ssh >/tmp/screenshot.xwd -i id_dsa user@rechner xwd -silent -root -display 0:0

Wireless N

Wednesday, February 24th, 2010

Ich teste gerade 2 neue USB WLAN Sticks:
1.) ein weisser LogiLink WL0049
lsusb:
148f:3070 Ralink Technology, Corp.

2.) ein LogiLink WL0054 mit reverse-SMA Anschluss für externe Antenne

lsusb: 148f:3070 Ralink Technology, Corp.
dmesg:
usbcore: registered new interface driver rt2870

Der Chip ist also offenbar gleich, also auch der Treiber. Sowohl bei Knoppix 6.2 als auch bei ubuntu 9.10 ist ein Eintrag in /etc/modprobe.d/blacklist.conf nötig:
blacklist rt2800usb

lsmod:

rt2870sta 488820 1
rt2x00lib 29756 0
input_polldev 3716 1 rt2x00lib
...

Hercules Webcam Classic und (k)ubuntu Linux 9.10 (karmic)

Saturday, December 19th, 2009

Die Cam wird automatisch erkannt, es werden die Module gspca_main und gspca_ov519 geladen.
So funktioniert die Cam z.B. mit cheese und vermutlich jeder v4l2 Anwendung, aber nicht mit skype. Workaround fuer skype:

LD_PRELOAD=/usr/lib/libv4l/v4l1compat.so skype

Linux!

Wednesday, November 18th, 2009

some days ago I installed ubuntu 9.10 and try some new appications.

I used this nice article to learn about ecryptfs and encrypt my already existing home directory.

miro is a very nice program to download , listen & watch audio and Video podcasts. For each podcast it remembers the point wherw I interrupted watching so I can continue from there later.
It is easily installable via apt-get, synaptic or the new ubuntu software center.

The Bub’s Brothers is a nice Retro Game which reminds me on the Bubble Bobble that I had on my Atari ST. It is easily installable via apt-get, synaptic or the new ubuntu software center.

AcetoneISO is a GUI/frontend for different things like mounting ISO-images and ripping Video-DVDs to avi files. Installation from getdeb is a bit tricky. For ripping it uses mencoder, but only unsing one of my 2 CPUs. I have to try this option next time: -xvidencopts bitrate=900:threads=2

Together with a friend I tried RetroShare. Everything works nice and stable. We tried chat, mail and file exchange. I hope that many of my friends will use it in the future. RetroShare depends on some qt4 packages which are available from the usual ubuntu repos.

fushi is a program for Unix/Linux newbies to learn shell-commands. It comes as a compressed perl program. I had to istall the exact right version of Compress-Raw-Zlib-2.012.tar.gz to get it running:
perl -e shell -MCPAN
Terminal does not support AddHistory.

cpan shell -- CPAN exploration and modules installation (v1.9205)
ReadLine support available (maybe install Bundle::CPAN or Bundle::CPANxxl?)

cpan[1]> install PMQS/Compress-Raw-Zlib-2.012.tar.gz

alle 5 Minuten: DriveReady SeekComplete Error

Wednesday, July 1st, 2009

hab 2 neue Festpalatten eingebaut. Beide bringen Fehler in dmesg:
hda: drive_cmd: status=0x51 { DriveReady SeekComplete Error }
hda: drive_cmd: error=0x04 { DriveStatusError }
ide: failed opcode was: 0xb0
hdb: drive_cmd: status=0x51 { DriveReady SeekComplete Error }
hdb: drive_cmd: error=0x04 { DriveStatusError }
ide: failed opcode was: 0xb0

In /var/log/messages steht die Uhrzeit in menschlicher Form.
Aha! Alle 5 Minuten – da war mir klar, es hat mit smartmon und munin zu tun. Netz-Recherche bestätigt diese Vermutung:

http://www.linux-noob.com/forums/index.php?showtopic=2586

http://lists.uugrn.org/uugrn/05/08/12458.html

So war’s auch bei mir: Damit munin was anzeigt , habe ich smartctl -s on /dev/hda
gemacht. Seit dem kommen die Meldungen nicht mehr.

Gif animations

Friday, April 10th, 2009

so… damit ich’s nie wieder vergesse:
In Firefox:

about:config

image.animation_mode once

oder einfach ESC drücken. 🙂

Acer Extensa 5220

Wednesday, April 8th, 2009

sidux 2009-1

Alles funktioniert, ausser WLAN. lspci zeigt den WLAN Chip als BCM4312(PCI ID: 14e4:4315) Einen funktionierenden (closed source) WLAN-Treiber gibt’s hier: http://www.broadcom.com/docs/linux_sta/.
Kompilieren und installieren des Treibers war problemlos. Man benötigt kein acerhk (Acer Hotkeys)

Knoppix 6.1

Zunächst keine 3D-Desktop Effekte. compiz sagt: “Blacklisted PCIID 8086:2a02”.
So kann man compiz nachträglich starten:
SKIP_CHECKS=yes compiz --replace

Die Tasten für Bildschirmhelligkeit funktionieren nicht. Bei sidux klappt’s.

WLAN:
mit dem b43-Treiber und b43-fwcutter hatte ich keinen Erfolg. Leider ist auch kein ndiswrapper Modul enthalten.
Ich habe den Knoppix Kernel (2.6.28.4) und auch 2.6.29-1-686(Debian Sid) probiert: Ich konnte keine Module kompilieren, weder ndiswrapper noch hybrid_wl. Immer das gleiche Problem:
/usr/src/linux-headers-2.6.29-1-common/arch/x86/Makefile_32.cpu: file not found

Bluetooth – hab ich nicht getestet

SD Cardreader: Normale SD Karte hat funktioniert, 2 verschiedene micro SD Karten mit Adapter wurden nicht erkannt?! – mit einem externen USB Cardreader funktionieren beide(auch mit Adapter).

Was ich an dem Gerät mag:

  • geringer Preis
  • wird ohne Windows geliefert
  • DL DVD writer kann auch DVD-RAM lesen
  • IRDA
  • intel GMA Grafik

Was mir nicht gefällt:

  • das vorinstallierte Linpus hat keine GUI
  • Das Display spiegelt
  • Die Ethernetbuchse wackelt, hat nur manchmal Kontakt – kalte Lötstelle ?