Tux-linux

Aus SpaceOnEarth
I_UfE_Pc_linux
mysql datenbank kopieren
mysqldump  --opt database > backup-file.sql
You can read this back into MySQL with:
mysql  database < backup-file.sql 
vga modes as boot parameter

eg vga=769

Auflösung in Pixeln
Farbtiefe        |    640x480      800x600      1024x768      1280x1024
256        (8bit)|     769          771           773           775
32000     (15bit)|     784          787           790           793
65000     (16bit)|     785          788           791           794
16.7 Mill.(24bit)|     786          789           792           795
How to fix not cleanly closed mysql?

I know two methods to repair

If you have MyISAM tables you can use:

  • To check: myisamchk <the path of the myi file of your table>
  • To Repair:myisamchk --recover <the path of the myi file of your table>
  • or with --safe-recover instead --recover
Zeitmessung Zeitserver ag19nov08

installiere ntp zeitserver:

apt-get install ntp

http://www.eecis.udel.edu/~ntp/ntpfaq/NTP-a-faq.htm lektüre dazu

Power Button Aktion verändern
Die Aktion des Powerbuttons wird durch den ACPI Daemon verwaltet.
unter /etc/acpi/events/ liegen die selbsterklärenden Konfigurationsdateien!
zB:/etc/acpi/events$ cat powerbtn
# /etc/acpi/events/powerbtn
# This is called when the user presses the power button and calls
# /etc/acpi/powerbtn.sh for further processing.
# Optionally you can specify the placeholder %e. It will pass
# through the whole kernel event message to the program you've
# specified.
# We need to react on "button power.*" and "button/power.*" because
# of kernel changes.
event=button/power
action=/etc/acpi/powerbtn.sh
USB-Sound funktioniert nicht

Problem auf meinem LG-Laptop folgendermaßen geloest:

$ asoundconf list
Names of available sound cards:
Intel
default
$ sudo asoundconf set-default-card default
Please note that you are attempting to run asoundconf as a 
privileged superuser, which may have unintended consequences.
firefox fragt ständig ob das script weiterlaufen soll

Fix Firefox unresponsive script warnings

Ever since I upgraded to Firefox 1.5, I’ve been getting some unresponsive script warnings on sites that employ heavy Javascript like Gmail or Bloglines. Curious about it, I dug around and managed to find out how to fix the problem.

To fix it, you’ll need to access the hidden configuration page in Firefox. Just type about:config in the address bar and you’ll get a page full of hidden configurations which you can tweak till your heart’s delight.

In the ‘Filter’ box, type dom.max_script_run_time. This will narrow the options till only the dom.max_script_run_time option remains. Right-click it and choose Modify. A box pops up. Change the number to something bigger like 20. This is the maximum time a script can run before Firefox considers it ‘unresponsive’.

If you can’t find the string in the about:config page, create it by right-clicking anywhere and then choose New—> Integer and enter dom.max_script_run_time. When prompted for the value, use 20.

So far I’ve not had anymore unresponsive script warnings, so I guessed that fixed that problem! However some extensions may also cause similar problems. Hope this helps.

mit kmail abgespeicherte mails anschauen
kmail --view %u
zB: kmail --view /home/axel/mail.eml
Timeserver Installieren~ag27may08~
das **ntp** paket muß installiert werden
mit **ps aux|grep ntp** kann man überprüfen ob der **ntpd** läuft
**ntpq -p** gibt einen Überblick über die aktuelle Arbeit des Daemons
Analyse eines USB Gerätes~ag26may08~
ufe@ben:~$ lsusb
Bus 003 Device 001: ID 0000:0000
Bus 002 Device 001: ID 0000:0000
Bus 001 Device 003: ID 046d:c03e Logitech, Inc. Premium Optical Wheel Mouse
Bus 001 Device 001: ID 0000:0000

Jetzt stecke ich unser USB Gerät rein:

ufe@ben:~$ lsusb
Bus 003 Device 001: ID 0000:0000
Bus 002 Device 001: ID 0000:0000
Bus 001 Device 004: ID 067b:2303 Prolific Technology, Inc. PL2303 Serial Port
Bus 001 Device 003: ID 046d:c03e Logitech, Inc. Premium Optical Wheel Mouse
Bus 001 Device 001: ID 0000:0000

Hat unser Linux einen Kernalmodul dafür?

ufe@ben:~$ usbmodules --device /proc/bus/usb/001/004
pl2303

Und was verwendet erfür die Maus

ufe@ben:~$ usbmodules --device /proc/bus/usb/001/003
usbmouse
usbhid

Nun stecke ich mal den M-Bus Adapter ein!

ufe@ben:~$ lsusb
Bus 003 Device 001: ID 0000:0000
Bus 002 Device 001: ID 0000:0000
Bus 001 Device 005: ID 10c4:ea60 Cygnal Integrated Products, Inc.
Bus 001 Device 003: ID 046d:c03e Logitech, Inc. Premium Optical Wheel Mouse

Nun will ich mehr Details:

ufe@ben:~$ lsusb -v -s 001:005
Bus 001 Device 005: ID 10c4:ea60 Cygnal Integrated Products, Inc.
Device Descriptor:
 bLength                18
 bDescriptorType         1
 bcdUSB               1.10
 bDeviceClass            0 (Defined at Interface level)
 bDeviceSubClass         0
 bDeviceProtocol         0
 bMaxPacketSize0        64
 idVendor           0x10c4 Cygnal Integrated Products, Inc.
 idProduct          0xea60
 bcdDevice            1.00
 iManufacturer           1 Silicon Labs
 iProduct                2 Relay M-Bus Micro-Master USB
 iSerial                 3 0872
 bNumConfigurations      1
 Configuration Descriptor:
   bLength                 9
   bDescriptorType         2
   wTotalLength           32
   bNumInterfaces          1
   bConfigurationValue     1
   iConfiguration          0
   bmAttributes         0x80
     (Bus Powered)
   MaxPower              500mA
   Interface Descriptor:
     bLength                 9
     bDescriptorType         4
     bInterfaceNumber        0
     bAlternateSetting       0
     bNumEndpoints           2
     bInterfaceClass       255 Vendor Specific Class
     bInterfaceSubClass      0
     bInterfaceProtocol      0
     iInterface              2 Relay M-Bus Micro-Master USB
     Endpoint Descriptor:
       bLength                 7
       bDescriptorType         5
       bEndpointAddress     0x81  EP 1 IN
       bmAttributes            2
         Transfer Type            Bulk
         Synch Type               None
         Usage Type               Data
       wMaxPacketSize     0x0040  1x 64 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     0x0040  1x 64 bytes
       bInterval               0
Device Status:     0x0000
(Bus Powered)

Nun hat Linux einen Kernelmodul gefunden?

ufe@ben:~$ usbmodules --device /proc/bus/usb/001/005
cp2101

Und hat er es auch in den Kernel geladen?

ufe@ben:~$ lsmod |grep cp
cp2101                 12036  0
usbserial              28520  2 cp2101,pl2303
usbcore               109444  7 cp2101,pl2303,usbserial,usbhid,ehci_hcd,ohci_hcd

Bei meinem Debian 4.0 erzeugt er auch dynamish eine Devicedatei /dev/ttyUSB0 und nach dem Entfernen des USB-Adapters verschwindet diese auch wieder. Bei älteren/anderen Linux Distrubutionen werden die Device-dateien im /dev/ ordner einmal erzeugt, unabhängig ob es die Geräte wirklich gibt oder nicht!

ufe@ben:/dev$ ls /dev/ttyU*
ttyUSB0


drucker fs820 installieren ~ag14may08~
fs820.ppd in /etc/cups/ppd kopieren (~/ufe/ftp/driver/drucker/fs820/fs820.ppd)
ufedocs/treiber/drucker_kyocera_fs820/linux/fs820.ppd
/etc/cups/printer.conf erweitern um:
<DefaultPrinter fs820>
  Info Kyocera FS-820
  Location Paralleler Drucker auf /dev/lp0
  DeviceURI parallel:/dev/lp0
  State Idle
  StateTime 1192795583
  Accepting Yes
  Shared Yes
  JobSheets none none
  QuotaPeriod 0
  PageLimit 0
  KLimit 0
  OpPolicy default
  ErrorPolicy stop-printer
</Printer>
nur rechte von verzeichnissen ändern ag11apr08
find /mein/ordner/mit/unterordnern/ -type d -exec chmod 700 {} \;
rename username ag2apr9
> usermod -l newname oldname
daten sichern mit rsync ag2apr8
Ein gute Einleitung http://www.mikerubel.org/computers/rsync_snapshots/
Ein paar Beispiele für BashScripts http://rsync.samba.org/examples.html
Fenster von fernen Rechnern ag15.3.8

Ein Fenster eines fernen Rechners auf dem eigenen Desktop öffnen.

goe>ssh -X axel@l.ufegmbh.de
password: ***
lue>xterm

Das -X setzt das sogenante X-Forwarding, was die Weiterleitung des Fensters ermöglicht!

Linuxtreiber für den HP2600n~ag6dec07~

Linux Treiber für den HP2600n in Luebeck: media:foo2zjs.tar.gz

Eagle für Linux~ag6dec07~

Eagle kann von http://cadsoft.com heruntergeladen werden. Ohne Lizens kann mann nur halbe Europlatinen verarbeiten.

USB-Seriell - USB/RS232-Adapter Installieren~ag6dec07~
Um den UfE USB-Seriell Adapter zu installieren muß man den entsprechenden Treiber laden:
media:pl2303_linux.zip
Ab Linux 2.26 müßte es ohne Treiberinstallation funktionieren
NFS -Network File System- einrichten unter Debian bzw. Ubuntu

Ein Paar gute Links zum Thema

http://www.howtoforge.de/howto/einrichten-eines-nfs-servers-und-clients-unter-debian-etch/
http://nfs.sourceforge.net/nfs-howto/ar01s03.html
    • Auf dem Server**

Mit Synaptic die folgenden Packages installieren

portmap
nfs-common
nfs-kernel-server (die ist notwendig um ein NFS server)

Mit dem command //rpcinfo -p// prüfen ob nfs läuft ()

Danach der Datei /etc/exports ändern (diese Datei sagt welche Verzeichnis zu welche Computer zu Verfügung steht) Die folgende Zeilen hinzufügen

/home/test 10.1.0.1(rw,sync,no_root_squash) 10.1.0.?(rw,sync,no_root_squash)

Mit dem command //exportfs -ra// diese Änderung werden übernommen

    • Auf dem Client**

A Verzeichnis unter mnt machen um danach hier der NFS zu mounten

mkdir -p /mnt/nfs/home

Danach um bei Hochfahren der NFS zu mounten der folgende Zeilen in ///etc/fstab// hinzufügen (10.1.1.101 ist tst01 pc und 10.1.1.103 ist tst02 pc)

10.1.1.101:/home/test  /mnt/nfs/home/test   nfs      rw,sync,hard,intr,user,noauto  0     0
Achtung: es konnte Problemen haben wenn hier mehr als ein Computer gemountet werde 

Der pc restarten

Danach sollte es passiert das auf ein Client möglich ist der Server zu mounten und Zugang zu dem Verzeichnis haben wie er auf dem Client wäre\n\n