Building a new kernel using make-kpkg: [/BuildKernel]

Getting your palm or visor to work with linux: [/HandspringVisor]

Tips and tricks with [/ImageMagick].

PDF, PS and EPS

If you want to extract a figure from a pdf, you can select the graphic in Acrobat Reader, and then Print Selected Graphic to file. You get a PS, but not a valid one (at least not in your LaTeX document). If you do ps2pdf image.ps and after that pdf2ps image.pdf you do get a valid PostScript.

Hmmm... ps2ps input.ps output.ps seems to work as well.

LaTeX

If you use a subfigire with an (optional) caption, you cannot use square brackets in the caption without the necessary precautions: you have to enclose the square brackets in curly braces. For example:

\subfigure[$\sqrt[3]{2}$ does not work]{...}
\subfigure[{$\sqrt[3]{2}$ does work}]{...}

mplayer

To record an audio or video stream to file, use:

mplayer -dumpstream -dumpfile output.asf mmst://live.cinecast.capcave.com/SkyRadio -vc dummy -vo null

or similar. You could also for example record to a wav-file and then recode to mp3 or ogg (assuming the source is listed in playlist.txt):

mplayer -playlist playlist.txt -ao pcm -aofile mystream.wav -vc dummy -vo null
oggenc mystream.wav -o output.ogg
lame -m s mystream.wav -o output.mp3.

You can even do timed recording, using the crontab. For example, run mplayer at 11, and a killall -9 mplayer at 12 o'clock.

wget

To download a sin­gle page and all its requisites (even if they exist on separate web­ sites), and make sure the lot displays properly locally, use the following options:

wget -E -H -k -K -p url

at jobs

To send an email at a specified time and date, use at:

(user):~> at 9am Jan 27
at> mail -s Gefeliciteerd benjamin@email.com < email.txt
at> ^D

Use custom headers and BCC's in mail that you send:

mail -s Test -a "From: Benjamin Vrolijk <benjaminvrolijk@gmail.com>" OneRecipient@email.com
~bAnotherOne@email.com
~bAndTheLastOne@email.com

Hi there, etc.
^D

transcode set of images to movie

Using transcode this is quite simple:

  1. Create a file "list" which contains a list of names of images of each frame
  2. transcode -i list -x imlist,null -g 800x600 -y divx5,null -f 10 -o movie.avi -H 0

copying an entire directory, even through ssh

Copying a directory tree on an SMP system:

$ ( cd from-dir ; tar pcf - * ) | ( cd to-dir ; tar pxvf - )

Piping it through an SSH connection, to copy from a remote system:

$ ssh remote-system "( cd from-dir ; tar pcf - * )" | ( cd to-dir ; tar pxvf - )

Reversing it, from local to remote:

$ ( cd from-dir ; tar pcf - * ) | ssh remote-system "( cd to-dir ; tar pxvf - )"

Evolution

If Evolution acts weird and doesn't show new appointments - they will be stored in the calender.ics file - just kill all evolution and bonobo stuff, and restart evolution.

After upgrading my machine and Evolution with it (from v1.4 to v2.0 or something) all my "All day events" were running from 2.00 am on one day to 2.00 am on the next! So all birthdays etc. were spread over 2 days! I fixed this by copying a bit from my old calendar.ics (in ~/evolution/local/Calendar/) to the new one (in ~/.evolution/calendar/local/system/). The bit I copied was this:

BEGIN:VTIMEZONE
TZID:/softwarestudio.org/Olson_20011030_5/Europe/Amsterdam
X-LIC-LOCATION:Europe/Amsterdam
BEGIN:DAYLIGHT
TZOFFSETFROM:+0100
TZOFFSETTO:+0200
TZNAME:CEST
DTSTART:19700329T020000
RRULE:FREQ=YEARLY;INTERVAL=1;BYDAY=-1SU;BYMONTH=3
END:DAYLIGHT
BEGIN:STANDARD
TZOFFSETFROM:+0200
TZOFFSETTO:+0100
TZNAME:CET
DTSTART:19701025T030000
RRULE:FREQ=YEARLY;INTERVAL=1;BYDAY=-1SU;BYMONTH=10
END:STANDARD
END:VTIMEZONE

Palm synchronisation

If gpilotd crashes on sync'ing, check if the usb file system has been mounted.

LinuxHowto (last edited 2008-02-10 16:45:06 by localhost)