Friday, October 26, 2007

renaming multiple pdf files

for i in *.pdf; do echo $i; xpdf "$i" & read k; mv "$i" "$k.pdf"; done

Wednesday, October 24, 2007

acroread 8.1 on ubuntu gutsy amd64

add the medibuntu repositories:
sudo wget -O /etc/apt/sources.list.d/medibuntu.list
wget -q -O- | sudo apt-key add - && sudo apt-get update

Install acroread:
sudo apt-get install acroread

Get xulrunner for the 32-bit libgtkembedmoz version (see acroread FAQ):
tar xfzv xulrunner-

After acroread startup, insert the xulrunner directory under
Edit -> Preferences -> Internet -> libgtkembedmoz Folder

Restart acroread.

Tuesday, October 23, 2007

sharing LAN printers on ubuntu gutsy

System -> Administration -> Printing.
Server Settings: "Share published printers connected to this system".
For each printer, check the state "Shared" under "Policies".
On the clients, check "Show printers shared by other systems".

Sunday, October 21, 2007

burn cd / dvd


burn data directory on-the-fly:
mkisofs -r -l -J -V "label" data/ | cdrecord -driveropts=burnfree -v dev=/dev/cdrom1 -

burn iso image:
cdrecord -driveropts=burnfree -v dev=/dev/cdrom1 img.iso

create iso image:
mkisofs -r -l -J -V "label" -o img.iso data/

mount iso image:
mount -o loop img.iso /mnt/iso


burn data directory on-the-fly:
growisofs -l -Z /dev/dvd -V "label" -R -J data/

burn iso image:
growisofs -dvd-compat -Z /dev/dvd=img.iso

create dvd image of video dvd in VIDEO_TS / AUDIO_TS format:
mkisofs -dvd-video -o img.iso /path/to/dvd/filesystem/