A. Garfagnini >> UNIX tips

Connecting to a CVS server through ssh

  1. On the client machine create a ssh configuration file in $HOME/.ssh/config
    Host mycvs
    HostKeyAlias zenag.desy.de
    Hostname localhost
    Port 8822
  2. Create a forwarding of all local connections to port 8822 to cvsserver.domain.net with the command:
    ssh -v -l alberto -L 8822:zenag.desy.de:22 zenith206.desy.de
  3. Set the environment variables:
    export CVSROOT=cvsserver2:/var/lib/cvs/
    export CVS_RSH=ssh
  4. And now execute the cvs commands, for instance:
    cvs -d alberto@cvsserver2:/var/lib/cvs update

Text formatting and printing

Writing a DVD+RW on Linux

  1. Formattare il DVD+RW nel caso sia vergine.
    # cd /opt/src/dvd+rw-tools-5.21.4.10.8
    # ./dvd+rw-format /dev/hdc
  2. Creare una immagine ISO.
    1. Aggiungere nel PATH il link a mkisofs di Schilling
      # export PATH=/opt/schily/bin/:$PATH
    2. Creare immagine con mkisofs
      # /opt/schily/bin/mkisofs -graft-points -f -R -r -l -J -o image.iso schily/=/opt/schily/
    3. Regole da seguire per i path names:
      • Per le directory: slash at both ends.
        nome_directory/=/path/completo/alla/directory/con/slash/finale/
      • Per i files: no slash at the end.
        nome_file=/path/to/file/senza/slash/finale
  3. Passare l'immagine creata a growisofs che la masterizza:
    # ./growisofs -dvd-compat -Z /dev/hdc=image.iso
  4. Nel caso si volesse fare un test di prova senza scrivere:
    # ./growisofs -dry-run -dvd-compat -Z /dev/hdc=image.iso