Fries43-ToDo: Unterschied zwischen den Versionen

Aus Weimarnetz Wiki
Zur Navigation springen Zur Suche springen
Zeile 79: Zeile 79:
 
518          Asus500gPremium    -0x042f-45 :        "vlan0"                "br0" "eth2" "eth2" "vlan1
 
518          Asus500gPremium    -0x042f-45 :        "vlan0"                "br0" "eth2" "eth2" "vlan1
 
104          Linksys-WRT54GL    -0x0467-42 :        "vlan0"                "br0" "eth1" "eth1" "vlan1"
 
104          Linksys-WRT54GL    -0x0467-42 :        "vlan0"                "br0" "eth1" "eth1" "vlan1"
513          Dell2300           -bcm94710ap-44 :    "eth0"                  "br0" "eth2" "eth2" "eth1"  - OK!
+
513          Dell2300         30-bcm94710ap-44 :    "eth0"                  "br0" "eth2" "eth2" "eth1"  - OK!
 
517          WAP_v10            -bcm94710dev-2 :    ""                      "br0" "eth2" "eth2" "none"
 
517          WAP_v10            -bcm94710dev-2 :    ""                      "br0" "eth2" "eth2" "none"
 
766          Allnet 0277        -bcm94710dev-42 :    "vlan2"                "br0" "eth2" "eth2" "vlan1" - OK!
 
766          Allnet 0277        -bcm94710dev-42 :    "vlan2"                "br0" "eth2" "eth2" "vlan1" - OK!

Version vom 6. August 2007, 13:41 Uhr

Uptime-Statistik-Netzweit

Fries43-Sandkasten

Viele Dateien mit convert bearbeiten

find /bilder/verzeichnis -type f >/tmp/filelist.txt
awk '{print "File: \""$0"\"";system("convert -rotate \"+180\" \""$0"\" ps:jpg")}' /tmp/filelist.txt

oder (geht nicht!)

awk '{print "File: \""$0"\"";system("convert -rotate \"+180\" ps:jpg \""$0"\"")}' /tmp/filelist.txt

Ablage

NVRAM klaeren und saeubern / aus CFE wiederherstellen ohne Reboot

# Vorbereitung: Daten aus Original-CFE extrahieren:
strings /dev/mtdblock/0 | awk '{m=match($1,"=");if(substr($1,m+1,1)=="%")exit;if(m>0)print "nvram set "$1";"}' >/tmp/cfe_original.txt

# Vorbereitung: Unnuetzen Mist loeschen:
nvram show | grep -v il0macaddr | grep -v et0macaddr | grep -v ff_dsskey | grep -v ff_pw | grep -v ff_reset | awk '{m=match($0,"="); print "nvram unset \""substr($0,1,m-1)"\""}' >/tmp/delete_nvram.txt

# Vorbereitung: cron.minutely umbennen
mv /usr/sbin/cron.minutely /usr/sbin/cron.minutely_old

# Loeschen und '''schnell''' neuerzeugen (Schnelleinstellung durchlaufen lassen, sofort wenn das Skript durchgelaufen ist, sonst bricht die WLAN-Verbindung ab...)
sh /tmp/delete_nvram.txt; sh /tmp/cfe_original.txt; nvram set boot_wait=on; mv /usr/sbin/cron.minutely_old /usr/sbin/cron.minutely

# Fertig!

Zwang-Interface Aufteilung

  • Skizze (haesslich!):
        
                         ~~|~~
                           |
___________________________|_______
| ("bridge interfaces")  | | |    |   z.b: Linksys WRT-54-GL
|      =lan_ifnames      \___/    |                            lan_ifnames=vlan0 
|     5fach-Switch    =wl0_ifname |                             lan_ifname=br0
|         /    \      =wifi_ifname|                 wl0_ifname/wifi_ifname=eth1
|        /      \                 |                             wan_ifname=vlan1
|=lan_ifname  =wan_ifname         |
|("bridge name")                  |   z.b. Dell Truemobil 2300
| ________        __              |                            lan_ifnames=eth0
| | | | | |       | |             |                             lan_ifname=br0
|_4xEthernet___1xEthernet_________|                 wl0_ifname/wifi_ifname=eth2
                                                                wan_ifname=eth1


A=$(nvram get lan_ifnames); # configures, which devices/interfaces are in bridge
B=$(nvram get lan_ifname);
C=$(nvram get wl0_ifname);
D=$(nvram get wifi_ifname);
E=$(nvram get wan_ifname);
F=$(nvram get boardtype);
G=$(nvram get boardnum);
H=$(nvram get et0phyaddr)
echo $H-$F-$G : \"$A\" \"$B\" \"$C\" \"$D\" \"$E\";
Knotennummer Geraet           Ausgabe
36           Siemens SE505      -0x0101- :           "vlan0 vlan2 eth2 eth3" "br0" "eth1" "eth1" "vlan1"
166          Siemens SE505      -0x0101- :           "vlan0 eth2"            "br0" "eth1" "eth1" "vlan1" - OK!
16           Linksys ?          -0x0101-42 :         ""                      "br0" "eth1" "eth1" "vlan1"
54           Linksys-WRT54G     -0x0708-42 :         ""                      "br0" "eth1" "eth1" "vlan1"
240          Linksys-WRT54G     -0x0708-42 :         "vlan0 eth2 eth3"       "br0" "eth1" "eth1" "vlan1"
518          Asus500gPremium    -0x042f-45 :         "vlan0"                 "br0" "eth2" "eth2" "vlan1
104          Linksys-WRT54GL    -0x0467-42 :         "vlan0"                 "br0" "eth1" "eth1" "vlan1"
513          Dell2300         30-bcm94710ap-44 :     "eth0"                  "br0" "eth2" "eth2" "eth1"  - OK!
517          WAP_v10            -bcm94710dev-2 :     ""                      "br0" "eth2" "eth2" "none"
766          Allnet 0277        -bcm94710dev-42 :    "vlan2"                 "br0" "eth2" "eth2" "vlan1" - OK!
519          Asus_WL_HDD       0-bcm94710dev-asusX : ""                      "br0" "eth2" "eth2" "eth1"
520          Asus500g(old)    30-bcm94710dev-asusX : ""                      "br0" "eth2" "eth2" "vlan1"
128          WAP ??           ??

Asus500g premium - webcam

ipkg install kmod-usb-uhci (?)
ipkg install kmod-usb2
 = kmod-usb-core
 = kmod-usb2
 (insmod usbcore)
 (insmod ehci-hcd)
ipkg install libpthread (?)
ipkg install kmod-videodev
ipkg install philips-webcam (weimarnetz-repo)
ipkg install http://ftp.iasi.roedu.net/mirrors/openwrt.org/backports/rc5/motion_3.2.6-1_mipsel.ipk
ipkg install http://naaa.de/programme/motion/libjpeg_6b-1_mipsel.ipk

ipkg install lsusb
ipkg install kmod-usb-storage
ipkg install kmod-vfat
 (mount -t usbfs none /proc/bus/usb) ???

'''/etc/init.d/S90webcam''':
<pre>
insmod videodev
insmod pwc leds=0,0
insmod pwcx

/etc/motion.conf: http://www.lavrsen.dk/twiki/bin/view/Motion/ConfigFileOptions

daemon                  on 
quiet                   on 

videodevice             /dev/v4l/video0
width                   640            
height                  480

target_dir              /mnt/usbstick
jpeg_filename           %Y/%m/%d/%H_20-40/%M.%S.cam

snapshot_filename       %Y/%m/%d/%H_20-40/%M.%S.snap
snapshot_interval       60                          

text_left               "Bastian TV"
locate                  on                      # draw box around moved object

low_cpu                 1                       # only 1 picture per second when no moving
framerate               2                       # maximum per second                      

webcam_port             8080
webcam_localhost        off 
webcam_motion           1                       # only 1 frame per second when no motion

Notizen

TrafficShaping / QoS / Eselbremse deluxe

  • von langsam nach schnell - einfach dinge hinzufuegen
  • die klassendefinition / L7-Definitionen sind ausgelagert, ist mehr nen framework
fkt_table class 1 networking    icmp,syn,ack,olsr,dns,small             net1

fkt_table class 2 game          wow,moha,quake,cs                       net1
fkt_table class 2 remote_access ssh,telnet,rdp,vnc,X11                  net1
fkt_table class 2 phone         H323,skype,skypeout,teamspeak,sip       net1
fkt_table class 2 monitoring    snmp,ntp                                net1

fkt_table class 3 www           http,https                              net1

fkt_table class 4 streaming     radio,shoutcast,icecast,flash,youtube   net1
fkt_table class 4 networking    openVPN,tinc,vtun,bgp                   net1
fkt_table class 4 mail          imap,pop3,spop,smtp,ssmtp,nntp          net1
fkt_table class 4 chat          aim,icq,msn,jabber,yahoo,irc            net1

fkt_table class 5 printer       lpd                                     net1
fkt_table class 5 file          samba,ftp                               net1
fkt_table class 5 p2p           ipp2p                                   net1
fkt_table class 5 unknown       unknown,ssl,update                      net1

Hardwaretyp feststellen

926db47246 - Kunstturm   - k54  - Linksys WRT54G     - SN: ???
ee0048c876 - Roehr30     - k249 - Buffalo WHR-HP-G54 - SN: ???
12cf47b37d - Schoendorf  - k186 - Linksys WRT54GL    - SN: ???
aa2b1b94d7 - muentzer24  - k24  - Linksys ???        - SN: ???
aa2b1b94d7 - M2          - k7   - Linksys WRT54G     - SN: ???
aa2b1b94d7 - reuterric   - k51  - Siemens SE505 v2.0 - SN: ???          - 8mb RAM nachgeloetet          
3dc768379f - wagner11    - k64  - Linksys ???        - SN: ???
6720f2d909 - muentzer 29 - k65  - Siemens SE505 v2.0 - SN: ???
???        - jensmausolf - k8   - AsusWL-HDD         - SN: ???
44af4fde69 - fries43test - k999 - WAP54g_v1.0        - SN: MDG003502134 - 4mbFlash/16mbRAM
aa2b1b94d7 - geleit23    - k16  - Linksys Wrt54g     - SN: ???
6720f2d909 - Ossi 53     - k165 - Siemens SE505 v2.0 - SN: ???
6720f2d909 - Curie 40    - k36  - Siemens SE505 v2.0 - SN: ???
12cf47b37d - Taubacher27 - k21  - Linksys Wrt54gs v4 - SN: ???
aa2b1b94d7 - Nordpol     - k210 - Linksys WRT54G     - SN: ???
926db47246 - Lutherhof 1b- K18  - Linksys WRT54G     - SN: CDF70E215436

Besorgen

  • buch:
    • Die Gelehrten der Scheibenwelt, Pratchett/Stewart/Cohen
    • Eine Kurze Geschichte von fast allem, Bill Bryson
  • Hardware:

Machen!

Software testen

Fleissarbeit

  • geklauten Router finden: 00:0f:66:24:cf:1e
    • siehe codeschnipsel
    • am 2.10.06 nix dabei Storchi 16:20, 2. Okt 2006 (CEST)
  • Registrierung
    • doppelte fixen: 20,176,175
    • fehlende fixen: 11,12,167,168
    • nichtexistente nodes aussortieren (rundmail)
    • nichtregistrierte rausfinden
  • Bilder Lotte-Interview hochladen
  • Kontakt Martin Heise
  • Archiv der Maillisten ziehen und backuppen
  • im Kinderhaus Router+Rechner installieren

Frickelkram

Arbeit

  • RAID-Controller aus TeraStar aus und in SVN-Server einbauen
  • Nodeaufbau aufs Dach Roehr-30
  • Knut / Oberweimar / Antennenkabel vor-Ort crimpen
  • Dachinstallation Fries43/28 schickmachen
  • Rundblick Fries28 machen
  • ACC.cafe ans weimarnetz anbinden (DSL!)
  • ACC.privat/Schuetzengasse ans weimarnetz anbinden (DSL!)
  • Nodeaufbau Freiligrath-19 + uwe
  • SIP-Nummer in M18, Tim = 544020
  • Registrator fixen

Schreibkram

Code-Schnipsel

WAP-HowTo

WAP v1.0 flashen
----------------

- Resetknopf solange druecken, bis LAN-LED ausgehen und wieder angehen
- IP vom WAP = 192.168.1.245
- Username: leerlassen
- Passowort: admin
- Firmware bei mir: v2.07, Apr 08, 2004; MustDie revision 1
-> Help -> Firmware upgrade

- flashen mit: "Freya-v2.06-1sv.trx"
- Firmware nun: "v2.06, Dec 16, 2003"

- telnet einschalten (setup -> ganz unten)
- nvram get boot_wait  ->muss "on" sein.

# nvram show|grep lan
lan_netmask=255.255.255.0
http_lanport=80
lan_stp=1
lan_hwaddr=00:0C:41:13:EF:CF
lan_ifnames=eth1 eth2
lan_ipaddr=192.168.1.245
lan_proto=static
lan_ifname=br0
lan_hwnames=et1 wl0

# free
              total         used         free       shared      buffers
  Mem:        14540         5240         9300            0          876
 Swap:            0            0            0
Total:        14540         5240         9300


- http://192.168.1.245/fw-conf.asp  ->downgrade-header disable 8-)
- flashen mit: "openwrt-freifunk-v1.2.5.trx"