HOWTO`S FOR SOME SMALL COMPUTER PROBLEMS

LINUX related howto`s

.. extract columns from a file using AWK
awk '{printf ("%15.10f %15.10f\n", $1,$13)}' refl_few.dat > refl_few13.dat

... convert an MCA filei into an ASCI file including calibration
 mca2calb (creates a 2 column ASCI file without a header)
 kanadd (to sum channeles, please modify kanadd.in, position sensitive)

... use GNUPLOT:
plot [0:2] [0.00001:1] "refl_fesi600.dat" using ($1):(($2)/5860000) notitle with lines lt 1 lw 3; set logscale y;replot

... use W2WEB interface
 W2WEB
    w2web - starts the webserver
    Input file=job_scf.* (with runspw lapw -i 200 -cc -p)
    cd to working directory with struct file
    qsub ../../job_scf.*
    Info: qstat
            qstat |wc -l
            qstat | grep "username"

... make a loop in bash (application for the conversion of all PS files into GIF including a 90 degree rotation)
for i in *.ps; do k='basename $i .ps'; echo $k; convert -rotate 90 $i $k.gif;done;

... use DESPEC in Gnuplot
plot '< despec.prl SPECFILE SCANNUMBER' using ...
Despec runterladen

... mount harddisk with Samba
smb client -L "COMPUTERNAME"
mkdir "XXX"
smbmount //COMPUTERNAME/share XXX -o username=****

or mount NTFS hard disk

sudo mount -t smbfs -o username=Administrator //Computername/share /mount/point

... avoid troubles with EFFINO compilation
change line 90 in file v_inp.c and function proc_username into "return (char *)(cuserid(NULL));"

... fit spectra simultaneously in EFFINO
1.) Edit the par-files (parameters with # are common parameters)

1 1 1sc______counts 186823.5 0.0 0.0 10.0
2 0 1sc______background 0.0 0.0 0.0 1.0
3 0 #1sc______P_xsi -1.0 0.0 1.0 0.05
4 0 #1sc______P_eta 0.0 0.0 0.0 0.05
5 0 #1sc______P_zeta 0.0 0.0 0.0 0.05
6 0 1sc______graz_angle 2.600 0.0 0.0 1.0
7 0 #1sc______phi_z 0.0 0.0 0.0 1.0
8 0 #1p1______inc_frac 1.0 0.0 0.0 0.01
9 0 #1p1co1___thicklay 15.0 0.0 0.0 0.1
10 0 #1p1co1___r_chilay -13.6700 0.0 0.0 0.1

2.) start EFFINO
3.) read first parameter file ("rs")
4.) read second parameter file ("rs")
5.) parameters will be correlated automatically
6.) read data file no.1
7.) read data file no.2
8.) good luck!

... print a PS file doublesided
add this line into the PS file after the last line with % at the begin:
(<<) cvx exec /Duplex (true) cvx exec (>>) cvx exec setpagedevice

... add folder to PATH variable in Linux
- edit .bashrc or .bash_profile and add the line: export PATH=/path/to/new/folder:$PATH
- run the command: ". .bash_profile" or ". .bashrc" (without quotes) to update the PATH variable

... create an password protected area using .htpaccess und .htpasswd
edit Your .htaccess:
AuthName "SOME STRING YOU LIKE"
AuthType Basic
AuthUserFile /path/to/the/directory/for/.htpasswd/.htpasswd
require valid-user

create Yur .htpasswd file using the following command:
./htpasswd -c /path/to/the/directory/for/.htpasswd/.htpasswd newusername

... change prompt in Linux permanently
1) edit Your .bashrc or .bash_profile file and add line:
export PS1="\h \w\$"
\h ... means add host
\w ... means add working directory
2) save the file
3) run command ". .bashrc" without qoutes

WINDOWS related howto`s

... get full access to files protected by Windows
cacls "D:\Syste Volume Information" /E /G [USERNAME]:F

... shutdown a Windows computer from commandline
- For Win98 and ME use: RUNDLL32.EXE User,ExitWindows

- For Windows NT, Windows 2000, Windows XP and Windows Server 2003 use the utility PsShutdown from the PsTools
In some cases the registry key HKEY_Local_Machine\Software\Microsoft\WindowsNT\CurrentVersion\Winlogon\Powerdowon afterShutdown has to be set to "1".

... increase amount of parallel downloads in FIREFOX
- enter the command about:config into the FIREFOX address bar

- modify the entries to the following values:
network.http.max-connections -> 48
network.http.max-connections-per-server -> 16
network.http.max-persistent-connections-per-server -> 4

- restart FIREFOX


TECHNICAL DATA


HUBER  5203 :
  • distance upper plate (without adapterplate) of Huber into the middle of rotation = 391 mm (Olaf)
  • sketch of adapter plate hier.
    additional holes are more near the middle and are not drawn.
  • thickness of the adapter plate used for cryostat = 45mm
  • Manipulator transition in the NRS chamer = 27/8.

  • VENTING PROCEDURE OF THE LOAD LOCK:
    - close all bypasses
    - close safety valve + stop large turbo
    - stop small turbo
    - wait for decelerating turbo (5-10 min)
    - vent valve on to automatic + Pump group off
    - switch of emission of gauge in load lock (Sensor S2)
    - manualy vent by pressing both buttons on pump group

  • PUMPING PROCEDURE OF THE LOAD LOCK:
    - close vent valve - open safety valve - small pump on - switch large turo on 10^-1 mbar - open loadlock to UFO after vacuum 10^-8 - 10^-9 mbar

    DOWNLOADs