Given input files: 0001.pdf, 0002.pdf, 0003.pdf.
Output file: output.pdf
Requirements: GhostScript
gs -dNOPAUSE -sDEVICE=pdfwrite -sOUTPUTFILE=output.pdf -dBATCH 0001.pdf 0002.pdf 0003.pdf
Showing posts with label howto. Show all posts
Showing posts with label howto. Show all posts
20090511
20090424
ZSH on rootnode
Howto use zsh on rootnode, and get almost all of benefits that are preconfigured for bash usage on korn.rootnode.net.
- % chsh -s /usr/bin/zsh
- create a ~/.zshrc file with the following contents:
PATH="/adm/szatan/bin:/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/games"
if [ -d "$HOME/tmp" ] ; then
TMPDIR="$HOME/tmp"
TEMP="$TMPDIR"
TMP="$TMPDIR"
fi
JAVA_HOME="/usr/lib/jvm/java-1.5.0-sun-1.5.0.10"
TMOUT=3600
JAVA_OPTS="$JAVA_OPTS -Xms128m -Xmx255m"
[ -d "$HOME/bin" ] && PATH="$HOME/bin:$PATH"
[ -d "$HOME/man" ] && MANPATH="$HOME/bin:$MANPATH"
MAIL=~/Maildir
EDITOR="/usr/bin/vim"
[ ! -f "$HOME/.nosplash" ] && /adm/szatan/bin/splash
[ ! -f "$HOME/.nomotd" ] && cat /etc/motd.rootnode
20080509
automounting ftpfs using curlftpfs and autofs
Software requirements:
Et voila!
- working autofs instalation
- fuse
- curlftpfs
- create
/sbin/mount.curlcontaining:
#!/bin/bash
curlftpfs $1 $2 -o allow_other,disable_eprt - create
/sbin/umount.curlcontaining:
#!/bin/bash
fusermount -u $1 - make both created *.curl files executable
add/mnt/ftp /etc/autofs/auto.ftp --ghost
to/etc/autofs/auto.master- create
/etc/autofs/auto.ftpfile containing:
myFTP -fstype=curl,allow_other :ftp\://USER\:PASSWORD\@MACHINE/
Et voila!
cd /mnt/ftp/myFTP; ls
Subscribe to:
Comments (Atom)