Last Change: Tuesday, 05.04.2011 nano-world.org | Kontakt  

   Info |    Personen    |    Partner    |    English    |    Sitemap    |

English
08/04/2011
06:33


English
 search


   Programmpakete installieren

Tips und Tricks fuer Linux


RPM Package Management

Suchen nach RPM Packet
rpm -q ht*
rpm -q httpd
rpm -qa|grep -i send

Packet deinstallieren
rpm -e httpd-2.0.40-21.3

altes Packet installieren
rpm -Uhv -force apache-1.3.27-2.i386.rpm

Suchen in Files nach Muster

find . -name "*" -exec grep -Hn "131.152.*" {} \;

Darwin Streaming Server

123 cd /usr/local/share/DarwinStreamingSrvr4.1.3-Linux/
127 ./Install
136 StreamingLoadTool
137 /usr/local/sbin/DarwinStreamingServer

Files vergleichen

diff sendmail.cf sendmail.cf.orig

Raid Status

cat /proc/mdstat
more /proc/scsi/FastTrak/0
uptime

Service pruefen in Bootsequence einfuegen

service mdmonitor status
service mdmonitor start
chkconfig mdmonitor --list

RAID hot add

raidhotadd /dev/md1 /dev/hdg2
sync

YUM automatisches Packetverwaltung

wget http://download.fedora.us/fedora/redhat/9/i386/RPMS.stable/yum-2.0.3-0.fdr.1.rh90.noarc
rpm -ivh yum-2.0.3-0.fdr.1.rh90.noarch.rpm
rpm --import key1
rpm --import key2
yum list updates
yum update
Packete suchen:
yum list available | grep gcc
yum provides cfdisk

Installation Zope2.7

1. Python 2.3 installieren:
erster Versuch schlug Fehl !!! rpm --import redhat-key
yum install rpm-build
rpm -ihv /var/cache/yum/redhat-os/packages/rpm-build-4.2-0.69.i386.rpm
yum install patch
yum install expat-devel
yum install db4-devel
yum install gdbm-devel
yum install gcc
yum install gcc-c++ compat-gcc-c++ compat-gcc
rpmbuild --rebuild python2.3-2.3.4-3pydotorg.src.rpm

Zweiter Versuch mit Fedora core 1 binary
wget http://www.python.org/ftp/python/2.3.4/rpms/fedora-1/python2.3-2.3.4-3pydotorg.i386.rpm
wget ftp://194.199.20.114/linux/fedora/core/1/i386/os/Fedora/RPMS/db4-4.1.25-14.i386.rpm
rpm -ivh db4-4.1.25-14.i386.rpm
rpm -ivh python2.3-2.3.4-3pydotorg.i386.rpm
wget http://www.python.org/ftp/python/2.3.4/rpms/fedora-1/python2.3-devel-2.3.4-3pydotorg.i3
sudo rpm -ihv python2.3-devel-2.3.4-3pydotorg.i386.rpm

Zope installieren:
wget http://zope.org/Products/Zope/2.7.3/Zope-2.7.3-0.tgz
tar -xzf Zope-2.7.3-0.tgz
cd Zope-2.7.3-0
sudo ./configure
sudo make
sudo make install
sudo mkdir zope2.7
/var/zope2.7/bin/zopectl

Benoetigte Zope Produkte hinzufuegen:
mv TinyTable /var/zope2.7/Products/
mv Squishdot /var/zope2.7/Products/
mv ZMySQLDA /var/zope2.7/Products/

MySQL-Python adapter
wget http://zope.org/Members/adustman/Products/MySQLdb/0.9.0/MySQL-python-0.9.0.tar.gz
wget http://www.python.org/ftp/python/2.3.4/rpms/fedora-1/python2.3-tools-2.3.4-3pydotorg.i386.rpm
sudo rpm -ihv python2.3-tools-2.3.4-3pydotorg.i386.rpm
cd MySQL-python-1.0.0
sudo mv MySQL-python-1.0.0 /usr/lib/python2.3/extensions/
cd /usr/lib/python2.3/extensions/
cd MySQL-python-1.0.0/
sudo python2.3 setup.py build
sudo rpm -Uhv MySQL-server-4.0.22-0.i386.rpm
sudo rpm -Uhv MySQL-server-4.0.22-0.i386.rpm
sudo rpm -Uhv MySQL-client-4.0.22-0.i386.rpm
sudo rpm -ihv MySQL-devel-4.0.22-0.i386.rpm

MySQL-python-0.9.0
vi setup.py
python2.3 setup.py build

cd MySQL-python-1.0.0/
/usr/bin/ld
vi setup.cfg
sudo yum install zlib-devel
sudo python2.3 setup.py clean
sudo python2.3 setup.py build

MD Monitor installieren

mdadm
mdadm -v --query
mdadm -v --monitor --scan
service mdmonitor start
vi /etc/mdadm.conf

Log Watch

email eintragen
sudo vi /etc/log.d/logwatch.conf

Setup DB from Backup

mysqladmin -u root -p create nccr
mysql -u root -p --database=nccr < 2004-11-22-yellowpages.dump
mysqladmin -u root -p create helium
mysql -u root -p --database=helium < 2004-11-22-helium.dump

RAID hot ...

raidhotremove /dev/md1 /dev/hde2
raidhotadd /dev/md1 /dev/hde2

RAID Disk austauschen

1.) Disk aus dem RAID
raidhotremove /dev/md1 /dev/hde2
2.)neue DISK gleich partitionieren wie disk im RAID
partitionieren der DISK (ACHTUNG):
fdisk /dev/hdg

3.) Disk hotadd
raidhotadd /dev/md0 /dev/hdg3
raidhotadd /dev/md1 /dev/hdg2
raidhotadd /dev/md2 /dev/hdg1
4.) SWAP einrichten
mkswap /dev/hdg5
swapon -s
swapon

start zope2.7 as service

#!/bin/sh
#
# Startup script for Tomcat, the Apache Servlet Engine
#
# chkconfig: 345 80 20
# description: Tomcat is the Apache Servlet Engine
# processname: tomcat
# pidfile: /var/run/tomcat.pid
#
# Mike Millson 
#
# version 1.02 - Clear work directory on shutdown per John Turner suggestion.
# version 1.01 - Cross between RedHat Tomcat RPM and Chris Bush scripts

#      ACHTUNG !!! TOMCAT mit folgenden OPTIONEN starten !!!!
#      -Dfile.encoding=UTF-8 \
#      -Djava.awt.headless=true \



# Tomcat name :)
#TOMCAT_PROG=tomcat
JAVA_HOME=/usr/java/home
export JAVA_HOME
 
# if TOMCAT_USER is not set, use tomcat like Apache HTTP server
if [ -z "$TOMCAT_USER" ]; then
 TOMCAT_USER="tomcat"
fi

RETVAL=0

# start and stop functions
start() {
    echo -n "Starting tomcat: "

    chown -R $TOMCAT_USER:$TOMCAT_USER /usr/java/tomcat/*    
#    chown -R $TOMCAT_USER:$TOMCAT_USER /home/tomcat/*
    su -l $TOMCAT_USER -c '/usr/java/tomcat/bin/startup.sh'
    RETVAL=$?
    echo
    [ $RETVAL = 0 ] && touch /var/lock/subsys/tomcat
    return $RETVAL
}

stop() {
    echo -n "Stopping tomcat: "
    su -l $TOMCAT_USER -c '/usr/java/tomcat/bin/shutdown.sh'
    RETVAL=$?
    echo
    [ $RETVAL = 0 ] && rm -f /var/lock/subsys/tomcat /var/run/tomcat.pid    
    rm -rf /usr/java/tomcat/work/*
}

# See how we were called.
case "$1" in
  start)
        start
        ;;
  stop)
        stop
        ;;
  restart)
        stop
        # Ugly hack
        # We should really make sure tomcat
        # is stopped before leaving stop
        sleep 2
        start
        ;;
  *)
        echo "Usage: $0 {start|stop|restart}"
        exit 1
esac

exit $RETVAL

Picture of the day
pictofday
Downloads
für Linux
für Windows
für osX
Ereignisse
EFI Visualisierung (2011)
SJf 2010 (5.9.-11.9.10)
L-Systeme (29.5.10)
EDUCON 2010 (14.4.10)
EFI Visualisierung (2010)
Lila (18-20.5.09)
SeniorenUni (3+4.12.08)
SVIA Tagung (3.4.08)
SJf 2008 (24.8-29.8.08)
Jahrestagung SPS (26.-27.03.08)
POV-Ray Weiterbildung (17.3.2008)
Science Days (11-13.10.07)
goodpractice (26.9.07)
SJf 2007 (27.8-31.8.07)
Science House (31.03.07)
nw Blockkurs 2006 (27.11-15.12.06)
Worlddidac (25.-27.10.06)
Science Days (12-14.10.06)
Blockwochenkurs 9 (16.-20.10.06)
SJf 2006 (28.8-1.9.06)
nw Blockkurs 2006 (15.5-2.6.06)
Beyond Einstein (1.12.05)
Blockkurs Nano-World (28.11.-16.12.05)
SJf 2005 (22-26.08.05)
nano3D (30.07.05)
nanoDVD (24.06.05)
NMT Master (19.04.05)
SfGB_B (05.02.05)
SVIA (19.11.04)
Science Days (14-16.10.04)
Salon de l'étudiant (28.4-2.5.04)
Exploring the N-W (2-6.2.04)
Eval Friction Modul(6.11.03)
Kreative Informatik Projekte(20.10.2003)
Science Days 2003 (16-18.10.2003)
Schweizer Jugend forscht (22-26.09.2003)
Kreative Informatik Projekte(18.09.2003)
POVRAY 3D Visualization course (16.09.2003)
Delegation aus Slovakei (23.07.2003)
RAFM Evaluation (26.6.2003)
grid Info Tag (20.6.2003)
SVC Informationstag (16.06.2003)
SPS 2003 (20.-21.3.2003)
PARS 2003 (20.-21.3.2003)
BIMO (12.-15.3.2003)
Learntec 2003 (4.2.-7.2.2003)
Tag der offenen Tür (9.1.2003)
8. NET-Jahrestagung (8.11.2002)
Science Days (26.-28.9.2002)
DPK Kurs Physik (23.-25.9.2002)
orbit / COMDEX (24.9-27.9.2002)
Fortbildungswoche (23.-25.9.2002)
Informatikwoche (26.8-8.9.2002)
Evaluation Fribourg (28.6.02)
4th ICNEE (8.5.02)
BFT-Marktplatzes (18.4.02)
Learntec 2002 (5.2.-8.2.2002)
Christmas Party 2001(20.12.01)
Informatikwoche (26.-30.11.2001)
Swiss Virtual Campus Day (12.9.01)
Talk: Interactive Nano-Visualization (2.8.2001)
Informatikwoche (3.9-8.9.2001)
LabView Kurs (7.6.- 19.6.2001)
Mustermesse Basel (5.-13.5.2001)
Klausurtagung (3.-6.4.2001)
29th SPEEDUP (22-23.3.2001)
LabView Kurs (5.2.- 17.2.2001)
Learntec 2001 (30.1.-2.2.2001)
Lerntechnologien (11.1.2001)
Tag der offenen Tür (28.11.2000)
5. NET-Jahrestagung (3.11.2000)
Informatikwoche (11.-16.10.2000)
Teleregion (12.10.2000)
Projektbesuch In-vsee (Juni 2000)
less
Artikel
Nanoscience Education
Nanowelt begeistert
Status Report
Die Atome des Herrn Einstein
Focus Physical Review
SFIB Tagung 2004
Radio Interview (DRS 3)
Monitoring and Controlling Scientific Experiments: Anywhere - Anytime
Diplomarbeit L. Zimmerli
An Interdisciplinary Virtual Laboratory on Nanoscience
Visionen Nr. 2/2002 (3.6.2002)
intern uni basel (7.6.2002)
intermediair NL (13.6.2002)
BaZ über MuBa (9.5.2001)
Zeitschriftenartikel TELE (27.04.01)
Switchjournal 1/2001
Paper zur 29. Speedup
Zeitungsartikel BaZ (17.11.00)
Teleregion (12.10.2000)
Radio DRS (März 2000)
SWITCH Journal 2000
Virtuelle Universitaeten (Basler Stadtbuch 2000)
less
Projekte
Foyer.Nano-World.org
Virtual Experiments (VEXP)
nano-grid.org
rafm.nano-world.org
Online Experimente
Reibungsmodul
Labor Rundblick
Telelabor
Demonstration Nano Labor
Enter the Lab
WebLinks
NCCR Nanoscale Science
Swiss Virtual Campus
Invsee
Schullabor.com

This Web entire site and its dynamic publishing system have been created using Zope
All trademarks and copyrights on this page are owned by their respective companies. The Rest is owned by nano-world.org ©2002. Please send comments to .
[ home | Uni Basel | Physik Basel | Martin Guggisberg, FHNW | Visitor log | top ]