You are here: Home PIK Members Tim Beringer Linux How To's

Linux How To's

Using WinCenter from home with rdp

  1. Create a ssh tunnel

    ssh -L 3389:s10:3389 aix.pik-potsdam.de
  2. Use krdc to connect to remote desktop

    • Arbeitsfläche auf Fremdrechner: rdp:/localhost
    • Connect

No core files are written

  • ulimit -c unlimited

Using Win partitions

  • mkdir mountpoint (e.g. /windows/c and /windows/data for ntfs partition c: and fat partiton d: respectively)
  • add to fstab:
    • /dev/sda2   /windows/c   ntfs   ro,users,exec,gid=users,umask=0002,nls=utf8 0 0
    • /dev/sda5   /windows/data   vfat   users,exec,uid=933,gid=users,umask=000,iocharset=utf8 0 0
      • uid=933 stands for user erbrecht, this has to be set to your own uid
  • a stable ntfs driver is now available at
    • http://www.ntfs-3g.org/

Automount

  • uses files auto.master and other auto. files (here auto.pik)
  • autofs accesses automount
  • autofs options
    • /etc/init.d/autofs start/stop/restart
    • important file: /etc/nsswitch.conf (defines source of auto.master)
  • if autofs complains that it can not access any map informations but auto.master exists in /etc remove all lines in auto.master except "/mnt /etc/auto.pik"
  • auto.master
    #
    # $Id: auto.master,v 1.4 2005/01/04 14:36:54 raven Exp $
    #
    # Sample auto.master file
    # This is an automounter map and it has the following format
    # key [ -mount-options-separated-by-comma ] location
    # For details of the format look at autofs(5).
    #/misc  /etc/auto.misc --timeout=60
    #/smb   /etc/auto.smb
    #/misc  /etc/auto.misc
    #/net   /etc/auto.net
    /mnt    /etc/auto.pik
  • auto.pik
    pik     -fstype=nfs     fs01:/export/data/pik
    erbrecht        -fstype=nfs     fs01:/export/home/guests/Tim.Erbrecht
    bis     -fstype=nfs     fs01:/export/data/topik2000/bis
    cveca   -fstype=nfs     fs01:/export/data/misc/cveca
    biosx   -fstype=nfs     fs01:/export/data/projects/biosx
    scratch -fstype=nfs     cluster01:/scratch/01/tim

Read/Write access to nfs directories (biosx, cveca, bis)

  • make sure that you have the same uid on your local Linux machine and in your PIK profile

Smart

  • adding channels from textfile
    • smart channel --add </xy/textfile>

Convert postscript files to tif

  • ps2pdf postscript file
  • save pdf file as tif in adobe acrobat (using acrobat sucks but the results using imagemagick were lousy)

Compiling GRASS GIS from source

Look here for compiling instructions: http://grass.gdf-hannover.de/wiki/Compile_and_Install

Installing GDAL/OGR

./configure \
--with-png=internal \
--with-jpeg=internal \
--with-gif=internal \
--with-libtiff=internal \
--with-geotiff=internal \
--with-libz=internal \
--without-pg \
--without-ogdi

make
su
make install

Installing postgresql

  • make sure postgresql-devel is also installed (includes postgres-fe.h)

Installing fftw

  • make sure fftw-devel is also installed
  • rpm repo: http://download.opensuse.org/distribution/10.2/repo/oss/suse/x86_64/

Configure

If postgressql includes are not found
./configure --with-postgres-includes=/usr/include/pgsql

Installation Error

"Could not create catalog" - The IDE driver in SUSE doesn't like your IDE controller. Try booting with the insmod=ide-generic boot option.

SSH without passwords

  • run "ssh-keygen -t rsa" on your computer to create a key pair (two files: id_rsa and id_rsa.pub)
  • create .ssh directory on remote machine if it doesn't exist yet
    • ssh username@aix.pik-potsdam.de mkdir -p .ssh

  • append id_rsa.pub to .ssh/authorized_keys on the remote machine
    • cat .ssh/id_rsa.pub | ssh username@aix.pik-potsdam.de 'cat >> .ssh/authorized_keys'

Document Actions