My Ubuntu Notes

Aus CaiaWiki

Wechseln zu: Navigation, Suche

Inhaltsverzeichnis

Tracker Config

Unter Hardy zu finden unter ~/.config/tracker/tracker.cfg

Leider läuft tracker nicht stabil, deshalb

http://wiki.ubuntuusers.de/Beagle

ausprobiert und auch mal die FAQs gelesen.

FAT: Filesystem panic

Manchmal gibt es Probleme mit USB-Sticks. Leicht zu erkennen an o.g. Meldung im log.

Lösung: (für z.B. /dev/sda1)

fsck -a /dev/sda1

Note:

-a    Automatically repair the file system without any questions (use
      this option with caution).  Note that e2fsck(8) supports -a for
      backwards  compatibility  only.   This  option  is  mapped   to
      e2fsck’s  -p  option which is safe to use, unlike the -a option
      that some file system checkers support.

oder (Reparieren mit Interaktion):

fsck -r /dev/sda1

Note:

-r   Interactively repair the filesystem  (ask  for  confirmations).
     Note: It is generally a bad idea to use this option if multiple
     fsck’s are being run in  parallel.   Also  note  that  this  is
     e2fsck’s  default  behavior;  it supports this option for back-
     wards compatibility reasons only.

Mehrere Dateien umbenennen

Geht ganz wunderbar mit rename. Will man beispielsweise alle Dateien im Verzeichnis, die mit

Fahrradausfahrt,Freyburg,

beginnen, um diesen String kürzen, benutzt man:

rename -n 's/^Fahrradausfahrt,Freyburg,//' *.jpg

Oder man hat Dateien, die mit .jpg.jpg enden und möchte diese nach .jpg umbenennen:

rename -n 's/\.jpg\.jpg/\.jpg/' *.jpg

Umbenennen von Dateien mit wie z.B. 5.jpg nach 005.jpg:

rename -n 's/(^[0-9])\./00$1\./' *.jpg

Weitere rename Beispiele siehe http://www.barmasse.ch/linux/kommandozeile/rename.html

Hinweis: Die Option -n zeigt zunächst nur, was umbenannt würde. Zum tatsächlichen Ausführen muss also -n weggelassen werden!

Notifications senden

notify-send -u normal -t 5000 -i /usr/share/icons/Humanity/devices/32/media-optical.svg "CD Brenner sagt:" "CD ist fertig."
Persönliche Werkzeuge