tipps

mount nfs

To mount nfs via /etc/fstab, use lines like that:
(you will have to install nfs-common)

#dateien
192.168.0.2:/home/sguldener/Dateien /home/sguldener/Dateien nfs rsize=8192,wsize=8192,timeo=14,intr
#gocreative
192.168.0.2:/home/sguldener/gocreative /home/sguldener/gocreative nfs rsize=8192,wsize=8192,timeo=14,intr

Logitech MX5500 ubuntu 11.10

If the Logitech MX5500 Mouse/Keyboard combo refuses to do the service, try this:
http://ubuntuforums.org/showpost.php?p=9224452&postcount=5

Helped for me!

Windows overwrites Grub-MBR: recover with boot-repair

Bloody windows.... grrrr!!!

https://help.ubuntu.com/community/Boot-Repair

I had to add a source to be able to install boot-repair:

sudo add-apt-repository ppa:yannubuntu/boot-repair

Recover data from formated memory stick

Genious tool to recover data form formated partitions! (memory stick, memory card, normal harddisk partition with any fs-type!)

http://www.cgsecurity.org

My way to recover data from a memory card, formated by my digicam :)

  • sudo ./photorec_static
  • choose the partition where to restore the data -> proceed
  • partition type, in most cases: Intel
  • to be sure, choose "whole disk" :)
  • file-system the files to restore were stored (other)
  • give a directory where to store all files found
  • go!

Video in OpenOffice Präsentation einbinden

http://wiki.services.openoffice.org/wiki/Documentation/How_Tos/Using_Mov...

Hilfreich sind dv. auch folgende Optionen:

  • -f
    Abspielen des Videos im Vollbildformat
  • --no-logo
    Unterdrückt Logo am Ende des Videos

extract audio line from .flv files

Aiai, ever wanted to extract the audio line out of a video-file?

try ffmpeg! ;)

ffmpeg -i file_in.flv -vn -f mp3 -ab 128 file_out.mp3

screen - open, detach, attach virtual terminals

Mit screen ist es mögich auf entfernten Servern via SSH virtuelle Terminals zu eröffnen, in den Hintergrund zu legen und auch wieder aufzunehmen:

Eröffnen eines neuen virtuellen Terminals:

screen

In den Hintergrund legen eines virtuellen Terminals (=detachen)

CTRL A D

Auflisten der aktiven Terminals im Hintergrund

screen -ls

Aufnahme des einzigen Terminals (=attach)

screen -r

Aufnahme eines bestimmten Terminals

screen -dr id

capture s-video via ffmpeg (or: how to digitalise your old vhs-stuff)

I wanted to digitalise some old VHS-Videos.

The main thing is, that my /dev/video1 (TV-Card) has more than one inputs (regular TV-Cable input and S-Video). Challenge: how to tell the capture-program to grab s-video input instead of standard TV-Cable input?

After hours of searching with all possible programs on Linux, I finally ended up testing ffmpeg in the console.

ffmpeg -f alsa -ar 44100 -ac 1 -i plughw:0,2  -f video4linux2 -s sxga -r 25 -vc 2 -i /dev/video1 output.avi

Crontabs of all users

Sometimes it can be helpful to list the crontabs of all users. Eg. to find out why your server periodically has a load of over 80%...

for user in $(cut -f1 -d: /etc/passwd); do crontab -u $user -l; done

Now you can search all crontabs that are done on the time of your load peak.

 

Too Cool for Internet Explorer