Knowhow

Aus

Version vom 20:08, 7. Sep. 2011 bei Admin (Diskussion | Beiträge)
(Unterschied) ← Nächstältere Version | Aktuelle Version (Unterschied) | Nächstjüngere Version → (Unterschied)
Wechseln zu: Navigation, Suche

Inhaltsverzeichnis

Know How


Apache Wiki

configure --enable-so --with-apxs2 fuer DSO !!
LocalSettings.php kopieren
upload auskommentieren $wgUseFileCache aktivieren $wgCompressRevisions aktivieren .phtml in Apache php zufügen AdminSettigs.sample nach AdminSettingsphp mysqldump zum sichern

Apache Rewrite in httpd.conf RewiteEngine on RewriteRule ^eintrag(.*)\..html$ /eintrag.php?id=$1

Bluetooth

/etc/init.d/bluetooth start hcitool dev zeigt eigenes device hcitool scan/inq sucht andere sdptool browse zeigt die services z.b bnep0 erstes device

DDNS

dhcpd.conf für dns-update
ddns-update-style ad-hoc;
zone testnetz.de. {
primary 192.168.1.1;
key "secret";
}
zone 1.168.192.in-addr.arpa. {
primary 192.168.1.1;
key "secret";
}
key "secret"{
algorithm hmac-md5;
secret "dnssec-scluessel";
};

named.conf für dns-update
zone "testnetz.de" {
type master;
file "named.testnetz";
allow-update { key "secret" ; };
};
zone "1.168.192.in-addr.arpa" {
file "named.192.168.1";
allow-update {
localhost;
key "secret";
};
};

programm dnssec-keygen erzeugt schlüssel

Debian base

 * apt-get install gcc less perl apache 
 * apt-get install gnome-common libgnome2-perl  php4
 * apt-get install gtkhtml gdm xfce
 * apt-get install postgresql mysql-common kdelibs3 mysql-server
 * apt-get install kdebase xserver-common
 * apt-get install slapd slurpd
 * apt-get install cupsys cupsys-bsd cupsys-driver-gimpprint
 * apt-get update && apt-get -y dist-upgrade

xf86config startx

Debian make

apt-get install debmake

I did one some weeks ago, but there's a dependency problem in it, since the original kde package have kbiff i18n stuff inside. You can easily build your own package:

  1. cd <your kbiff source dir>
  2. deb-make
  3. debian/rules binary
  4. cd ..
  5. dpkg -i kbiff-*.deb

You might need to force...

DTP Publish

Scribus bei Suse dabei

c't 13/2004

Emulation der Seriellen Schnittstelle im Lan

Xport von Lantronix
Telnet x.x.x.x 9999
oder über seriell
oder Web x.x.x.x:80
Emulation der seriellen Schnittstelle ist
socat PTY,Link=/dev/XPort TCP:<Xport-ip>:10001
www.emedia.de platine
www.segor.de platine,bauteile,xport einzeln ca 80€

Treiber unter Solaris (LAN)

Solaris Treiber installieren (LAN)

       # cd /.../rf-x.x.x
       # /usr/ccs/bin/make install
       # ./adddrv.sh
       # rm /kernel/drv/rf  (for solaris7, don't remove the file )
       # modload obj/rf
       # devfsadm -i rf  (for solaris7, use drvconfig and reboot with -r )
       # ifconfig rfN plumb ( where N is an instance number, typcally 0 for first

LDAP Tools

gq grafische Oberfläche pam.d parameter für home anlegen: session required pam_mkhomedir.so skel=/etc/skel umask=0077

LILO Boot

make xconfig (dac ladbar, ramdisk unterstützen, netzoptionen ipchainsv2.2) make clean make dep make bzImage (make bzlilo) cp nach /boot/vmlinuz

kernelparameter mem=xxxM weniger als HSP bei Mylex statt root=/dev/rd/c0d0p3 "root=3D3003"

Datei /boot/config.kernel nach /usr/src/.config kopieren dann make menuconfig usw

Netcat kopieren

auf dem Empfänger nc -l 2342 | tar xvf - auf dem Sender tar cvf quellenverzeichnis | nc -q 1 server-hostname 2342

-q 1 bewirkt abbruch bei ende

ntp Server

local 127.127.1.0

pppd

  • /5 * * * * root /usr/local/bin/pppdwatcher
  1. !/bin/sh

if [! -f /var/run/ppp0.pid]; then /usr/bin/killall -9 pppd /usr/bin/pon dsl-provider /usr/bin/logger 'pppd neu gestartet' fi exit 0

Kursinhalt

5 Tage Schulung Eigener Internetserver einrichten LAMP Forum Wiki OTRS Ticket IT (Web FTP Mail DNS) HV Raid-Festplatten

Betrieb 6 Monate Hosting inkl. Hardware

Voraussetzungen Teilnehmer z.B. Ausbildung Windows Admin Netz Linux Grundk. usw ........ Technikbetreiber KPH z.B. 7 Teilnehmer Räume/Hotel Clients Leitungen Server ......... RZ Betrieb Aball ........

Kalkulation Preis: Räume 700 Clients Miete 7*50= 350 Leitungen 300 Server 7*80*6= 3360 RZ 200 Trainer 5*1000 5000 Material 200 Snaks /Essen 7*5*20 700 Übernachtung 4*80 (extra)

                                   ------

> 1544 je Teilnehmer für 5 Tg

Hotline DK +4540580139 DE +4951195922665

Samba Tools

net - zum administrieren rpcclient - testtool smbpasswd (alt) -> net pdbedit - pdb verwalten profiles - umsetzen der SID von NT nach Samba Einrichten BDC mit namen ALBRICHT BDC einrichten auf dem PDC dann net rpc join -S ALBRICHT -w ZWERGENREICH -U net rpc vampire -S ALBRICHT -U pdbedit -L ....... /etc/samba/initGroups.sh net groupmap list

SSH

ssh, scp, sftp, winscp, gftp konqueror mit fish://server

Suse Web LAMP

1 install von CD 2 rcapache2 start 3 copy nach /srv/www/htdocs 4 php test mit <?php phpinfo(); ?> unter cgi-bin 5 rcmysql start 6 mysqladmin -u root -p password herr11 7 mysqladmin -u root -h odin -p password herr11 8 phpMyAdmin webmin netstat OpenOffice gcc make perl mysqldump

Technik allgemein

ethernet rj45 1236 tokken rj45 3456 ethernet cross 1-3,2-6,3-1,6-2 / 4-7,5-8,7-4,8-5 172.16.0.0 priv b netz - 31 192.16.0.0 priv c netz (192.168) 10.0.0.0 priv a netz NT sidewechsler http:www.internals.com/ntsid.htm mehere ipnummern mit vifconfig pnet0 alias 1720210104 255.255.255.0

FTP mit name ftp://pcomm:pcomm@ftp.kph.de

tar cvf - scripts | rsh enterprise dd of=/dev/rmt/0 \dev\\mt0

samba mount z.B. ablage

d -c"mount -t smbfs -o uid=1002,gid=100,rw,username=hvrkherr,password=herr11 //hvr0098m.hvr.fsc.net/ablage /home/herrmann/ablage"

Druckertreiber apt-get install foomatic-db-hpijs und foomatic-bin LPD lprng und lprngtool zum druck neues evolution über das qtkhtml packet

linux forward

echo "1" > /proc/sys/net/ipv4/ip_forward in /etc/network/options ip_forward=yes http://www.linuxmagazin.de/Artikel/ausgabe/2000/06/Routing/routing.html?proceed=1&counter=1

Iptables einrichten eth1 ist innen eth0 aussen (Skript)

/usr/sbin/iptables --flush /usr/sbin/iptables --table nat --flush /usr/sbin/iptables --delete-chain /usr/sbin/iptables --table nat --delete-chain /usr/sbin/iptables --table nat --append POSTROUTING --out-interface eth1 -j MASQUERADE /usr/sbin/iptables --append FORWARD --in-interface eth1 -j ACCEPT /usr/sbin/iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-port 81

Actforw

Aktiver Portforwarder

MAC ändern

Das ist _kein_ Feature von ipchains o.Ä. Das geht eigentlich sehr einfach mit ifconfig, und der RTL8139 sowie alle seine mir bekannten Linux-Treiber

unterstützt das Ändern der MAC-Adresse.

der Befehl lautet "ifconfig eth0 hw ether 00:11:22:33:44:55" und ist eine temporäre/statische Änderung, will heißen: Änderung gültig bis zum nächsten Reset. Wichtig: Der Befehl lässt sich üblicherweise nur ausführen, wenn das Interface DOWN ist. Die Reihenfolge ist also:

ifconfig eth0 down ifconfig eth0 hw ether 00:11:22:33:44:55 ifconfig eth0 up

Nach dem down/up musst Du natürlich das Routing neu setzen und alle Dienste neu starten, die sich auf die IP-Adresse(n) dieses Interfaces gesetzt haben, Eventuell lohnt sich auch eine Neueintragung aller Firewall-Einstellungen.

ethtool

Weitere Parameter mit ethtool -s eth0 speed 100 duplex half autoneg on

Tomcat

$CATALIA_HOME <tomcat home> /bin /conf /logs /webapps server.xml <conf datei> java j2sdk muß da sein $JAVA_HOME <j2sdk verzeichnis> <start tomcat> startup.sh at http://localhost:8080 http://localhost:8080/manager/html /conf/tomcat-users.xml

Cocoon

build.sh /bild/webapp umbenennen in cocoon und nach <tomcat>/webapps http://localhost:8080/cocoon sidemap.xmap sub_sidemap <verzeichnis x mit Datei sidemap.xmap> dann zeile einfügen in sidemap.xmap <map:mount/> http://localhost:8080/cocoon/x

Beispiele http://resin.mediahost.org/cocoon/samples/

Unison

unter Linux in ~.unison alle Daten
unter Windows in ..benutzer...\.unison z.b.
root=c:\daten
root=z:\daten
ignore = pfad
ignore = *.tmp

unison.win32-gtkui.exe

Unison

Ein Beispiel
1: e:\sync\
2: ssh://klaus@sshserver.kph.de/sync/
download
http://www.cis.upenn.edu/~bcpierce/unison/download/stable/latest/

unison

Wlan Scan Linux Kismet

hardware prism2 karten oder pci karte für meine pcmcia

172.17.2.0 externes wlan netz alle eth0:1 usw 172.17.1.0 externes internet netz alle eth0 172.16.1.0 internes hausnetz alle eth1 172.16.2.0 internes netz 2 alle eth1:1 usw

iwconfig wlan0 mode ad-hoc bei vorhandenem acces point iwconfig wlan0 mode managed iwconfig wlan0 essid heimnetz ifconfig wlan0 192.168.1.6 up (ip nur ohne access point)

als access point iwconfig wlan0 essid heimnetz cannel 10 mode master

4G-Syteme in Hamburg Meshcube 240 Euro siehe auch Mesh in Berlin

OLSR und Mobilemesh in Knoppix : mmdiscover mmrp mmborder mmtodot/mmrpfiz apt-get install mobilemesh

Wie konfiguriere ich meinen Drucker?

Installieren Sie die Pakete magicfilter und lprng. Danach rufen Sie das Skript magicfilterconfig folgendermassen auf:

     magicfilterconfig --force

Dieses Skript führt Sie durch alle notwendigen Konfigurationsschritte.

Unterstützung zur Konfiguration von Druckern, insbesondere mit dem neueren CUPS finden Sie bei LinuxPrinting. Mein Drucker wird aber nicht vom magicfilter unterstützt?!

Dann möchten Sie statt lprng oder magicfilter vielleicht das neue Drucksystem CUPS ausprobieren. Dazu installieren Sie die Pakete cupsys, cupsys-bsd, cupsys-client, cupsys-driver-gimpprint und kups.

     apt-get install cupsys-client kups cupsys-driver-gimpprint cupsys-bsd

Konfiguration ist mit KUPS schnell gemacht. Falls Sie einen USB-Drucker einrichten, sollten Sie vor der Installation von CUPS die USB-Treiber laden (modconf modul usb-uhci oder usb-ohci, usbdevfs und printer laden). Wie konfiguriere ich einen Internetzugang?

Wenn Sie ein Modem benutzen, sollten Sie das Paket pppconfig installieren. Durch Eingabe des Befehls pppconfig wird dann ein Programm aufgerufen, welches Sie Ihnen die notwendigen Fragen zu Konfiguration des Zugangs stellt. Sie können die Internetverbindung dann hinterher durch Eingabe des Befehls pon starten und mit poff wieder beenden. Falls Sie eine ISDN-Karte verwenden, sollten Sie das Paket isdnutils installieren und dann den in der Datei /usr/share/doc/isdnutils/HOWTO.isdnutils.gz beschriebenen Schritten folgen. Diese Datei können Sie sich an der Konsole oder in einem Terminalfenster mit dem Programm zless ansehen.

gtklp als Admintool

Outlook Info

beim Senden mit netscape oder webmail landet die Mail in Sent -
beim Senden mit Outlook landet die Mail in Sent Item


Favicon

png2icon

png2ico - PNG to icon converter (Linux, Unix, GNU, Windows, ...)

Converts PNG files to Windows icon resource files. If you're looking for a program to create a favicon.ico for your website, look no further. If you need instructions or don't even know what a favicon is, check out my short tutorial on how to create and install a favicon.ico.

The program is extremely simple to use. To create a favicon.ico that contains a logo in the resolutions 16x16 and 32x32 (an icon can contain multiple images of different sizes, but a single 16x16 image is enough for a favicon), you would use a command like the following:

    png2ico favicon.ico logo16x16.png logo32x32.png

Download

If you use Windows, then download the following package that contains a ready-to-run executable and documentation:

png2ico-win-2002-12-08.zip (90K)

ATTENTION! This is a console application without a Graphical User Interface (i.e. no icons, no mouse)! You have to launch it either from the console or via Start/Run. You can NOT just double-click it. A GUI for png2ico is available for the .NET platform. You can find it here.

On other platforms, you will have to compile the program yourself. The following package contains the source code and documentation:

png2ico-src-2002-12-08.tar.gz (26K)

ISO Files lesen

Aus ISO Datein lesen
Im Internet gibt es oftmals ISO-Dateien als Download. Diese Dateien sind Abbilder von CDs, und koennen 1 zu 1 auf eine CDR gebrannt und danach ausgelesen werden. Ist allerdings gerade kein Brenner zur Hand, kann man ISO-Dateien auch direkt mounten. Dies geht mit dem Befehl: "mount dateiname.iso /mountverzeichnis -t iso9660 -o ro,loop=/dev/loop0". Jetzt steht die ISO-Datei über das Mountverzeichnis ganz normal zum Auslesen zur Verfügung.


Java unter Debian installieren

Debian Pakete für Suns Java werden von Blackdown bereit gestellt. Um bequem auf sie zugreifen zu können, trägt je nach verwendeter Debian release und Blackdown FTP Mirrorsite z.B. man folgende Zeilen in die <code/etc/apt/sources.conf.


  1. blackdown java

deb ftp://ftp.tux.org/pub/java/debian/ unstable main non-free deb-src ftp://ftp.tux.org/pub/java/debian/ unstable main non-free


Die Pakete können nun mit apt-cache search j2sdk und apt-get install j2sdk1.4 j2re1.4 ... installiert werden.

ENBD installieren

ENBD stellt Laufwerke remote anderen Rechnern zur Verfügung.
Der ENBD-Server, zuständig für den Export des Device, läuft als normaler Prozess im Userspace. Er kommuniziert über einen frei wählbaren Port mit einem ENBD-Client, der von verschiedenen Seiten solche Devices importiert. Der Datenverkehr lässt sich mit SSL verschlüsseln.
http://www.linux-magazin.de/Artikel/ausgabe/2004/11/enbd/enbd.html

X11 in Debian konfigurieren

X11 konfigurieren mit:

in debian 'dpkg-reconfigure xserver-xfree86' sollte funktionieren.

Tool zum Filesplit

graphisches tool zum filesplit:

http://www.intelli-bit.de/filesplit/


Treiber Aspire Grafik

http://www.pro-linux.de/kurztipps/2/1440/intel-gm500-grafikchips-auf-netbooks-konfigurieren.html

http://doc.ubuntu-fr.org/poulsbo ist voll OK </dev>

Das neue Ubuntu Linux 10.04 (Lucid Lynx) bringt einige Umgestaltungen der ... Maximieren und Schließen eines Fensters von rechts nach links....

Mit "Alt+F2" den "gconf-editor" starten, im Verzeichnisbaum > apps > metacity > general das "button_layout" von: ":minimize,maximize,close" zu "menu:minimize,maximize,close" ändern.

ESXi auf USB bringen

Some quick steps for installing esxi 3.5 on a usb stick

   * download ESXi 3.5 from www.vmware.com/download –> Free Products or Trials –> Download Vmware ESXi free
   * search google for the old version, actual is 4.0 :-)
   * download winimage and winrar
   * save the iso file in a new folder on your storage –> VMware-VMvisor-InstallerCD-3.5.0_Update_5-207095.i386.iso
   * open the iso file with winimage and extract the INSTALL.TGZ file
   * open the INSTALL.TGZ with winrar and extract the file VMware-VMvisor-big-3.5.0_Update_5-207095.i386.dd.bz2 to your folder
   * extract VMware-VMvisor-big-3.5.0_Update_5-207095.i386.dd.bz2 with winrar –> VMware-VMvisor-big-3.5.0_Update_5-207095.i386.dd
   * open winimage –> Disk –> Restore Virtual Hard Disc Image on physical drive…
   * select your usb stick –> press next
   * select the file VMware-VMvisor-big-3.5.0_Update_5-207095.i386.dd
   * go

Don’t reboot your client with the usb stick in it! Your client may be damaged!

Do the steps on your onwn risc :-)

Persönliche Werkzeuge
MediaWiki Appliance - Powered by TurnKey Linux