Zeile 1: |
Zeile 1: |
| {{TOCRight}} | | {{TOCRight}} |
− | ==Zusätzliche Software==
| + | |
| ==für alle Geräte== | | ==für alle Geräte== |
| ====Accounting Statistik==== | | ====Accounting Statistik==== |
Zeile 15: |
Zeile 15: |
| | | |
| ====mails versenden vom linksys - ssmtp==== | | ====mails versenden vom linksys - ssmtp==== |
− | * ganz sinnvoll um textdateien / alarm-emails per script loszuwerden | + | * ganz sinnvoll um textdateien / alarm-emails per script loszuwerden |
− | * ipkg update
| + | <pre> |
− | * ipkg install http://openwrt.alphacore.net/ssmtp_2.61_mipsel.ipk
| + | ipkg update |
− | * ipkg install libssl
| + | ipkg install http://openwrt.alphacore.net/ssmtp_2.61_mipsel.ipk |
− | * datei: /etc/ssmtp/ssmtp.conf erstellen
| + | ipkg install libssl |
− | ** root=cstorch(add)gmx(dot)net
| + | |
− | ** mailhub=mail.gmx.net
| + | datei: /etc/ssmtp/ssmtp.conf erstellen |
− | ** rewriteDomain=gmx.net
| + | root=cstorch(add)gmx(dot)net |
− | * datei /etc/ssmtp/revaliases erstellen
| + | mailhub=mail.gmx.net |
− | ** root:cstorch(add)gmx(dot)net:mail.gmx.net
| + | rewriteDomain=gmx.net |
− | * aufruf mit : more ssmtp.conf | ssmtp -aucstorch@gmx.net -ap"passwort" cstorch(add)gmx(dot)net
| + | |
− | ** dabei wird der inhalt von ssmtp.conf als text verschickt
| + | datei /etc/ssmtp/revaliases erstellen |
| + | root:cstorch(add)gmx(dot)net:mail.gmx.net |
| + | aufruf mit: more ssmtp.conf | ssmtp -aucstorch@gmx.net -ap"passwort" cstorch(add)gmx(dot)net |
| + | </pre> |
| + | |
| + | dabei wird der inhalt von ssmtp.conf als text verschickt |
| | | |
| ====WRT-Openvpn==== | | ====WRT-Openvpn==== |
Zeile 51: |
Zeile 56: |
| <pre> | | <pre> |
| ipkg install http://141.54.160.25/dave/freifunk-topology-de_1.4.1_mipsel.ipk | | ipkg install http://141.54.160.25/dave/freifunk-topology-de_1.4.1_mipsel.ipk |
| + | </pre> |
| + | |
| + | ====Dienste Plugin==== |
| + | damit man unter Dienste auch was sieht muss noch ein Paket nachinstalliert werden. |
| + | |
| + | <pre> |
| + | ipkg update |
| + | ipkg install freifunk-olsrd-libs |
| + | </pre> |
| + | |
| + | selbst einen Dienst ankündigen mit |
| + | |
| + | <pre> |
| + | nvram set ff_service="http://104.63.XXX.X|tcp|Beispielserver" |
| + | nvram commit |
| + | reboot |
| + | </pre> |
| + | |
| + | ====Brüll- oder Nachrichtenbox==== |
| + | |
| + | <pre> |
| + | ipkg install http://freifunk.schmudde.com/ipkg/freifunk-notes-de_0.12.ipk |
| </pre> | | </pre> |
| | | |
| ==für Geräte mit USB-Anschluss== | | ==für Geräte mit USB-Anschluss== |
| | | |
− | * bei den Geräten Asus wl hdd 2,5 / Yakumo wireless storage 60 ist ein usb1.1 vorhanden, | + | * bei den Geräten Asus wl hdd2,5 ;Asus 500g und Yakumo wireless storage60 sind ein usb1.1 vorhanden, |
− | * bei Siemens se505 nachrüstbar [http://wiki.freifunk-hannover.de/USB_Anschlu%C3%9F_zur_Speichererweiterung Howto] | + | * bei den Geräten Asus WL 500g (Premium und Deluxe) sind 2 usb2.0 vorhanden, |
| + | * bei Siemens se505 usb1.1 nachrüstbar [http://wiki.freifunk-hannover.de/USB_Anschlu%C3%9F_zur_Speichererweiterung Howto] |
| | | |
| === USB === | | === USB === |
| Grundpakete installieren (Driver) | | Grundpakete installieren (Driver) |
| <pre> | | <pre> |
− | ipkg install kmod-usb-ohci | + | ipkg install kmod-usb-ohci |
− | ipkg install kmod-usb2 | + | ipkg install kmod-usb2 (nicht nötig bei USB1.1) |
| + | </pre> |
| + | |
| + | willst du |
| + | |
| + | === Usbstick oder Usbfestplatte === |
| + | |
| + | anschließen |
| + | <pre> |
| ipkg install kmod-usb-storage | | ipkg install kmod-usb-storage |
| + | ipkg install kmod-vfat |
| </pre> | | </pre> |
| | | |
− | willst du Scanner und Drucker über das Netzwerk nutzen | + | willst du |
| + | |
| + | === Scanner und Drucker === |
| + | |
| + | über das Netzwerk nutzen |
| <pre> | | <pre> |
| ipkg install kmod-usb-scanner | | ipkg install kmod-usb-scanner |
Zeile 139: |
Zeile 180: |
| </pre> | | </pre> |
| | | |
− | jetzt noch die Dateisystemunterstützung laden
| |
− |
| |
− | <pre>
| |
− | ipkg install kmod-vfat
| |
− | </pre>
| |
− |
| |
− | danach Neustart.<br>
| |
| na dann nur Mountpunkt anlegen und dann noch mounten (einhängen) | | na dann nur Mountpunkt anlegen und dann noch mounten (einhängen) |
| | | |
Zeile 189: |
Zeile 223: |
| chmod 0777 S97mount | | chmod 0777 S97mount |
| </pre> | | </pre> |
| + | |
| | | |
| === Webcam === | | === Webcam === |
− | es gibt grundsätzlich zwei größere Projekte für Webcam-Driver | + | mittlerweile gibt es viele Möglichkeiten eine Webcam zu Betreiben.<br> |
| + | '''[[Webcam-Howto]]''' - ist eine ausführliche Anleitung |
| | | |
− | ==== spca5xx/spca5xx_LE ====
| + | '''[[Webcam-Howto2]]''' - ist eine Anleitung wenn ihr keinen Router mit usb habt! |
− | * Installation:
| |
− | :Welches Driver-modul ihr braucht kommt auf Eure Kamera an --> [http://mxhaard.free.fr/spca5xx.html Uebersicht]
| |
| | | |
− | <pre>
| + | == für Geräte mit IDE-Anschluss == |
− | # spca5xx-Modul
| |
− | ipkg install http://ping02.stura.uni-weimar.de/dave/kmod-spca5xx_2.4.30+20060501-brcm-1_mipsel.ipk
| |
| | | |
| + | * z.Z. gibt es zwei Geräte mit IDE-Anschluss |
| + | : Asus WL HDD 2.5 |
| + | : Yakumo Wireless Storage |
| | | |
− | # spca5xx/LE-Modul
| + | === IDE-Festplatte oder IDE-Adapter mit CF-card === |
− | cd /tmp
| |
− | wget http://ping02.stura.uni-weimar.de/dave/spca5xx_lite.o.gz
| |
− | mv spca5xx_lite.o.gz /lib/modules/2.4.30
| |
− | cd /lib/modules/2.4.30/
| |
− | gunzip spca5xx_lite.o.gz
| |
− | </pre>
| |
| | | |
− | nun noch video-modul und .jpg unterstützung laden
| + | [[Bild:CF-Card mit IDE-Adapter.jpg|thumb|auch das ist möglich: CF-Karte mit Adapter auf IDE]] |
| + | Grundpakete installieren |
| | | |
| <pre> | | <pre> |
− | ipkg install libpthread | + | ipkg install kmod-ide |
− | ipkg install kmod-videodev | + | ipkg install kmod-ext2 oder ipkg install kmod-ext3 oder ipkg install kmod-vfat |
| </pre> | | </pre> |
| | | |
− | danach Neustart.<br> | + | danach Neustart. |
− | Die Module leider nicht beim Neustart selbstständig geladen. | + | Die Module werden beim Neustart selbstständig geladen |
− | Webcammodule laden mit
| |
| | | |
− | <pre>
| + | na dann nur Mountpunkt anlegen und dann noch mounten (einhängen) |
− | insmod videodev
| |
− | insmod spca5xx oder insmod spca5xx_lite
| |
− | </pre>
| |
− | | |
− | mit dem Befehl:
| |
| | | |
| <pre> | | <pre> |
− | lsmod
| + | mkdir /mnt/hda |
| + | mount /dev/ide/host0/bus0/target0/lun0/part1 /mnt/hda |
| </pre> | | </pre> |
| | | |
− | kannst du überprüfen welche module geladen sind. Jetzt noch überprüfen ob die Webcam erkannt wurde indem wir
| + | da die Geräte se505 und Asus WL-HDD nicht die stärksten sind kann man zusätzlich noch einen Auslagerungsspeicher '''SWAP''' einrichten. |
| + | dafür muss mit fdisk eine swap-Partition auf eurem USB-Stik, CF-Karte, Festplatte eingerichtet werden. |
| | | |
| <pre> | | <pre> |
− | dmesg
| + | ipkg install http://downloads.openwrt.org/backports/rc5/fdisk_2.12r-1_mipsel.ipk http://downloads.openwrt.org/backports/rc5/swap-utils_2.12r-1_mipsel.ipk |
− | </pre>
| |
| | | |
− | eigeben. Da sollte dann sowas stehen wie:
| + | mkswap /dev/ide/host0/bus0/target0/lun0/part2 |
− | [[Bild:Aldicam.png|thumb|Aldi Webcam DC-3110]]
| + | swapon /dev/ide/host0/bus0/target0/lun0/part2 |
− | | |
− | <pre>
| |
− | root@dave_yakumo:~# dmesg
| |
− | Creating 5 MTD partitions on "Physically mapped flash":
| |
− | 0x00000000-0x00040000 : "cfe"
| |
− | 0x00040000-0x003f0000 : "linux"
| |
− | 0x000b5fec-0x00180000 : "rootfs"
| |
− | mtd: partition "rootfs" doesn't start on an erase block boundary -- force read-only
| |
− | 0x003f0000-0x00400000 : "nvram"
| |
− | 0x00180000-0x003f0000 : "OpenWrt"
| |
− | diag boardtype: 0000041a
| |
− | Probing device eth0: No Robo switch in managed mode found
| |
− | Probing device eth1: No Robo switch in managed mode found
| |
− | Probing device eth2: No such device
| |
− | Probing device eth3: No such device
| |
− | BFL_ENETADM not set in boardflags. Use force=1 to ignore.
| |
− | eth2: Broadcom BCM4320 802.11 Wireless Controller 3.90.37.0
| |
− | usb.c: registered new driver usbdevfs
| |
− | usb.c: registered new driver hub
| |
− | usb-ohci.c: USB OHCI at membase 0xb8004000, IRQ 2
| |
− | usb-ohci.c: usb-00:04.0, PCI device 14e4:4715
| |
− | usb.c: new USB bus registered, assigned bus number 1
| |
− | hub.c: USB hub found
| |
− | hub.c: 2 ports detected
| |
− | SCSI subsystem driver Revision: 1.00
| |
− | Initializing USB Mass Storage driver...
| |
− | usb.c: registered new driver usb-storage
| |
− | USB Mass Storage support registered.
| |
− | uhci.c: USB Universal Host Controller Interface driver v1.1
| |
− | Linux video capture interface: v1.00
| |
− | usb.c: registered new driver spca5xx
| |
− | drivers/usb/spca5xx.c: spca5xx driver 00.57.07 registered
| |
− | hub.c: new USB device 00:04.0-1, assigned address 2
| |
− | drivers/usb/spca5xx.c: USB SPCA5XX camera found. Qtec Webcam 100 Pac207-BCA
| |
− | drivers/usb/spca5xx.c: [spca5xx_probe:8380] Camera type GBRG
| |
− | drivers/usb/pac207.h: [pac207_config:148] Find Sensor PAC207
| |
− | drivers/usb/spca5xx.c: [spca5xx_getcapability:2207] maxw 352 maxh 288 minw 160 minh 120
| |
| </pre> | | </pre> |
| | | |
− | interessant ist für uns eigentlich nur "Gerät erkannt"
| + | === FTP-Server === |
− | | |
− | <pre>
| |
− | usb.c: registered new driver spca5xx
| |
− | drivers/usb/spca5xx.c: spca5xx driver 00.57.07 registered
| |
− | hub.c: new USB device 00:04.0-1, assigned address 2
| |
− | drivers/usb/spca5xx.c: USB SPCA5XX camera found. Qtec Webcam 100 Pac207-BCA
| |
− | drivers/usb/spca5xx.c: [spca5xx_probe:8380] Camera type GBRG
| |
− | drivers/usb/pac207.h: [pac207_config:148] Find Sensor PAC207
| |
− | drivers/usb/spca5xx.c: [spca5xx_getcapability:2207] maxw 352 maxh 288 minw 160 minh 120
| |
− | </pre>
| |
− | | |
− | also Driver gefunden, Webcam erkannt. Und das mit der Aldi-Cam super!
| |
− | | |
− | {| {{Prettytable}}
| |
− | !Programm '''spcacat'''
| |
− | !Programm '''motion'''
| |
− | |-
| |
− | |
| |
− | Installation:
| |
− | <pre>
| |
− | cd /tmp
| |
− | wget http://ping02.stura.uni-weimar.de/dave/spcacat.gz
| |
− | mv spcacat.gz /usr/bin
| |
− | cd /usr/bin
| |
− | gunzip spcacat.gz
| |
− | chmod +x spcacat
| |
− | </pre>
| |
− | |
| |
− | Installation:
| |
− | <pre>
| |
− | ipkg install http://ping02.stura.uni-weimar.de/dave/libjpeg_6b-1_mipsel.ipk
| |
− | ipkg install http://ping02.stura.uni-weimar.de/dave/motion_3.2.6-1_mipsel.ipk
| |
− | </pre>
| |
− | |-
| |
− | |
| |
− | Alle möglichen Einstellungen stehen in der Hilfe
| |
− | | |
− | <pre>
| |
− | spcacat -h
| |
− | </pre>
| |
− | | |
− | <pre>
| |
− | spcacat [-h -d -g -f -s -p -N -P -o]
| |
− | -h show this usage message.
| |
− | -d device ask the driver to use specified video
| |
− | output device (/dev/video1)
| |
− | -o outputfile causes the program to output avi with
| |
− | image data received from the video device to the specified file.
| |
− | -g grab with READ method instead of default MMAP
| |
− | -f video format nothing YUV420P fourcc I420
| |
− | jpg JPEG fourcc MJPG
| |
− | yuv YUV420P fourcc I420
| |
− | r16 RGB565 16bits fourcc RGB2
| |
− | r24 RGB 24bits fourcc RGB3
| |
− | r32 RGB 32bits fourcc RGB4
| |
− | -v RAW data fourcc RAWD
| |
− | -s widthxheight ask the driver for input size
| |
− | -p X take a picture every X seconds
| |
− | -p X && -o getPicture every X seconds and record in SpcaPict.jpg
| |
− | -N take N pictures and stop
| |
− | -P parport device (spcacat, spcaserv)
| |
− | </pre>
| |
− | | |
− | jetzt Link noch legen, weil das Programm das device ''/dev/v4l/video0'' nicht verarbeiten kann.
| |
− | und dann spcacat starten.
| |
− | | |
− | <pre>
| |
− | ln -s /dev/v4l/video0 /dev/video0
| |
− | spcacat -d /dev/video0 -g -f jpg -p 10000 -o > /dev/null &
| |
− | </pre>
| |
− | | |
− | in unserm Falle speichert spcacat aller 10 sek. ein Bild namens ''SpcaPict.jpg'' ab.
| |
− | | |
− | Eleganter ist es auch diesmal ein script zu erstellen um nicht jedesmal die Module von Hand zu laden. Dazu legt man in dem Startverzeichnis('''/etc/init.d''') eine Datei z.B. S98webcam an
| |
| <pre> | | <pre> |
− | cd /etc/init.d/
| + | ipkg install libssl |
− | vi S98webcam
| + | ipkg install http://141.54.160.25/dave/pure-ftpd_1.0.17a_mipsel.ipk |
− | | |
− | #!/bin/sh
| |
| | | |
− | # Variablen Definition | + | #FTP-Server starten |
− | REAL="/www/bild.jpg"
| + | pure-ftpd >/dev/null& |
− | TEMP="/SpcaPict.jpg"
| |
− | | |
− | insmod videodev
| |
− | sleep 2
| |
− | insmod spca5xx
| |
− | sleep 30
| |
− | | |
− | # Link legen fuer Vidiodevice
| |
− | ln -s /dev/v4l/video0 /dev/video0
| |
− | | |
− | while true
| |
− | do
| |
− | spcacat -d /dev/video0 -g -f jpg -s 320x240 -p 1000 -o > /dev/null &
| |
− | sleep 5
| |
− | killall spcacat
| |
− | killall -9 spcacat
| |
− | sleep 2
| |
− | mv $TEMP $REAL
| |
− | sleep 15
| |
− | done &
| |
| </pre> | | </pre> |
| | | |
− | berechtigungen noch setzen mit
| + | === Samba-Server === |
− | | |
| <pre> | | <pre> |
− | chmod 0777 S98webcam
| + | ipkg install samba-server |
| </pre> | | </pre> |
| | | |
− | |
| |
− | Nun noch die Config-Datei für motion anlegen.
| |
− | <pre>
| |
− | vi /etc/motion.conf
| |
| | | |
− | #motion.conf
| |
− |
| |
− | daemon on
| |
− | quiet on
| |
− |
| |
− | # You may very well need to change this (check with 'dmesg'
| |
− | # after plugging in your webcam)
| |
− | videodevice /dev/v4l/video0
| |
− |
| |
− | # Image size in pixels (valid range is camera dependent)
| |
− | width 320
| |
− | height 240
| |
− |
| |
− | quality 60
| |
− | framerate 1
| |
− | auto_brightness on
| |
− |
| |
− | # Initial brightness, contrast, hue (NTSC), and saturation
| |
− | # 0 = disabled (valid range 0-255)
| |
− | brightness 0
| |
− | contrast 0
| |
− | saturation 0
| |
− | hue 0
| |
− |
| |
− | # Target base directory for pictures and films
| |
− | # You should probably change this (create dir beforehand)
| |
− | target_dir /www
| |
− | jpeg_filename bild
| |
− |
| |
− | # Define a port number (e.g. 8000) to enable the mini-http server
| |
− | # 0 = disabled
| |
− | webcam_port 8000
| |
− |
| |
− | # Set to 'off' to allow anybody (not just localhost) to view the
| |
− | # webcam via the mini-http server (http://hostname:port)
| |
− | webcam_localhost off
| |
− |
| |
− | webcam_quality 40
| |
− | webcam_maxrate 2
| |
− |
| |
− | # User defined text overlayed on each in the lower left corner
| |
− | text_left "Dave TV"
| |
− | </pre>
| |
− |
| |
− | Und jetzt motion starten mit
| |
− |
| |
− | <pre>
| |
− | motion
| |
− | </pre>
| |
− |
| |
− | Jetzt kann man sich den Stream unter http://IP-Adresse_vom_Router:8000 ansehen
| |
− |
| |
− | Eleganter ist es auch diesmal ein script zu erstellen um nicht jedesmal die Module von Hand zu laden. Dazu legt man in dem Startverzeichnis('''/etc/init.d''') eine Datei z.B. S98webcam an
| |
− |
| |
− | <pre>
| |
− | cd /etc/init.d/
| |
− | vi S98webcam
| |
− |
| |
− | #!/bin/sh
| |
− |
| |
− | TIME="1800"
| |
− |
| |
− | insmod videodev
| |
− | sleep 5
| |
− | insmod spca5xx
| |
− | sleep 5
| |
− |
| |
− | while true
| |
− | do
| |
− | motion
| |
− | sleep $TIME
| |
− | killall motion
| |
− | killall -9 motion
| |
− | sleep 2
| |
− | done &
| |
− | </pre>
| |
− |
| |
− | berechtigungen noch setzen mit
| |
− |
| |
− | <pre>
| |
− | chmod 0777 S98webcam
| |
− | </pre>
| |
− |
| |
− | |}
| |
− | * Projektseiten:
| |
− | ** [http://mxhaard.free.fr/index.html http://mxhaard.free.fr/index.html] - spca5xx Driver und Viewer
| |
− | ** [http://www.lavrsen.dk/twiki/bin/view/Motion/WebHome http://www.lavrsen.dk/twiki/bin/view/Motion/WebHome] - Motion Wiki
| |
− |
| |
− | ==== pwc/pwcx ====
| |
− |
| |
− | <pre>
| |
− | ipkg install kmod-pwc
| |
− | </pre>
| |
− |
| |
− | * Projektseiten:
| |
− | ** [http://www.saillard.org/linux/pwc/ http://www.saillard.org/linux/pwc/]
| |
− | ** [http://www.smcc.demon.nl/webcam/ http://www.smcc.demon.nl/webcam/]
| |
− |
| |
− | === IDE-Festplatte ===
| |
− |
| |
− | ==== FTP-Server ====
| |
− | <pre>
| |
− | ipkg install vsftpd
| |
− | </pre>
| |
− |
| |
− | ==== Samba-Server ====
| |
− | <pre>
| |
− | ipkg install
| |
− | </pre>
| |
| [[Kategorie:Howto]] | | [[Kategorie:Howto]] |