witam!
Chciałem przetestowac sobie owncloud, no i wszystko byłoby ok tylko po zrobieniu pliku index.php dla sprawdzenia czy działa wywala mi błąd 404.
Wszystko robiłem zgodnie z poradnikiem do owncloud.
mój plik lighttpd:

    server.modules = (
        "mod_fastcgi",
    )
    server.network-backend = "write"
    server.document-root = "/www1/"
    server.port = 8181
    mimetype.assign = (
        ".gif"   => "image/gif",
        ".jpg"   => "image/jpeg",
        ".jpeg"  => "image/jpeg",
        ".png"   => "image/png",
        ".svg"   => "image/svg+xml",
        ".css"   => "text/css",
        ".html"  => "text/html",
        ".htm"   => "text/html",
        ".js"    => "text/javascript",
        ".txt"   => "text/plain",
        ".dtd"   => "text/xml",
        ".xml"   => "text/xml"
    )
    static-file.exclude-extensions = ( ".php", ".pl", ".fcgi" )
    server.pid-file = "/var/run/lighttpd.pid"
    server.upload-dirs = ( "/tmp" )
    fastcgi.server = (
        ".php" => ((
            "host" => "127.0.0.1",
            "port" => 1026,
        ))
    )

w php.ini zmieniłem też:

  doc_root = "/www1"
    cgi.force_redirect = 0

no i jak wołam 192.168.1.1:8181 to wywala bład 404 sad

plik index.php dokładnie taki jak w poradniku:

<?php phpinfo(); ?>

co mogłem nie tak zrobić?

477

(22 odpowiedzi, napisanych Termometr)

osobiście z swoich doświadczeń polecam owfs i rrdtol. Zaczynałem od digitempa i gnuplota, ale przydał mi się w sumie tylko do temperatury. Owfs jest bardziej uniwersalny do róźnych czujników czy przetworników A/D. Zależy do czego chcesz to wykorzystać, warto najpierw sobie sprawdzić w źródłach owfs co obsługuje.

478

(6 odpowiedzi, napisanych Oprogramowanie / Software)

hmm ciekawe, wykonałem od nowa całego extroota i nawet upgarde systemu routera ale dalej to samo sad tylko tym razem w ogóle mi extroot nie wystartował, po restarcie w blkid widzi partycje, po wyłączeniu zasilania nie.
Za poprzednim razem przecież przedstawiał się jako Kingston

usb 1-1: USB disconnect, address 2
usb 1-1: new high speed USB device using ar71xx-ehci and address 3
usb 1-1: configuration #1 chosen from 1 choice
scsi1 : SCSI emulation for USB Mass Storage devices
usb-storage: device found at 3
usb-storage: waiting for device to settle before scanning
scsi 1:0:0:0: Direct-Access     Kingston DT 100 G2        1.00 PQ: 0 ANSI: 2
usb-storage: device scan complete
sd 1:0:0:0: [sda] 15644912 512-byte logical blocks: (8.01 GB/7.45 GiB)
sd 1:0:0:0: [sda] Write Protect is off
sd 1:0:0:0: [sda] Mode Sense: 0b 00 00 08
sd 1:0:0:0: [sda] Assuming drive cache: write through
sd 1:0:0:0: [sda] Assuming drive cache: write through
 sda: sda1 sda2 sda3
sd 1:0:0:0: [sda] Assuming drive cache: write through
sd 1:0:0:0: [sda] Attached SCSI removable disk

w przyszłym tyg będe miał inny pendrive, który bede mógł przetestować jako extroot i zobaczymy, czy to jednak wina urządzenia...

479

(6 odpowiedzi, napisanych Oprogramowanie / Software)

no nie ma właśnie info o partycji...

root@Gargoyle:~$ dmesg
Linux version 2.6.32.27 (cezary@eko.one.pl) (gcc version 4.3.3 (GCC) ) #34 Mon Nov 28 17:37:35 CET 2011
prom: fw_arg0=00000007, fw_arg1=a1f77fb0, fw_arg2=a1f78440, fw_arg3=00000008
MyLoader: sysp=18c530d8, boardp=071b1022, parts=10c6019a
bootconsole [early0] enabled
CPU revision is: 00019374 (MIPS 24Kc)
Atheros AR9132 rev 2, CPU:400.000 MHz, AHB:200.000 MHz, DDR:400.000 MHz
Determined physical RAM map:
 memory: 02000000 @ 00000000 (usable)
Initrd not found or empty - disabling initrd
Zone PFN ranges:
  Normal   0x00000000 -> 0x00002000
Movable zone start PFN for each node
early_node_map[1] active PFN ranges
    0: 0x00000000 -> 0x00002000
On node 0 totalpages: 8192
free_area_init_node: node 0, pgdat 802e9190, node_mem_map 81000000
  Normal zone: 64 pages used for memmap
  Normal zone: 0 pages reserved
  Normal zone: 8128 pages, LIFO batch:0
Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 8128
Kernel command line: rootfstype=squashfs,yaffs,jffs2 noinitrd console=ttyS0,115200 board=TL-WR1043ND
PID hash table entries: 128 (order: -3, 512 bytes)
Dentry cache hash table entries: 4096 (order: 2, 16384 bytes)
Inode-cache hash table entries: 2048 (order: 1, 8192 bytes)
Primary instruction cache 64kB, VIPT, 4-way, linesize 32 bytes.
Primary data cache 32kB, 4-way, VIPT, cache aliases, linesize 32 bytes
Writing ErrCtl register=00000000
Readback ErrCtl register=00000000
Memory: 29228k/32768k available (2175k kernel code, 3540k reserved, 423k data, 152k init, 0k highmem)
SLUB: Genslabs=7, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
Hierarchical RCU implementation.
NR_IRQS:56
Calibrating delay loop... 266.24 BogoMIPS (lpj=1331200)
Mount-cache hash table entries: 512
NET: Registered protocol family 16
MIPS: machine is TP-LINK TL-WR1043ND
bio: create slab <bio-0> at 0
Switching to clocksource MIPS
NET: Registered protocol family 2
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
TCP established hash table entries: 1024 (order: 1, 8192 bytes)
TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
TCP: Hash tables configured (established 1024 bind 1024)
TCP reno registered
NET: Registered protocol family 1
squashfs: version 4.0 (2009/01/31) Phillip Lougher
Registering mini_fo version $Id$
JFFS2 version 2.2. (NAND) (SUMMARY)  Š 2001-2006 Red Hat, Inc.
yaffs Nov 25 2011 17:50:04 Installing.
msgmni has been set to 57
io scheduler noop registered
io scheduler deadline registered (default)
Serial: 8250/16550 driver, 1 ports, IRQ sharing disabled
serial8250.0: ttyS0 at MMIO 0x18020000 (irq = 11) is a 16550A
console [ttyS0] enabled, bootconsole disabled
Atheros AR71xx SPI Controller driver version 0.2.4
m25p80 spi0.0: s25sl064a (8192 Kbytes)
spi0.0: searching for MyLoader partition table at offset 0x10000
spi0.0: searching for MyLoader partition table at offset 0x20000
spi0.0: searching for MyLoader partition table at offset 0x30000
spi0.0: searching for MyLoader partition table at offset 0x40000
spi0.0: no MyLoader partition table found
Searching for RedBoot partition table in spi0.0 at offset 0x7e0000
Searching for RedBoot partition table in spi0.0 at offset 0x7f0000
No RedBoot partition table detected in spi0.0
spi0.0: no WRT160NL signature found
Creating 5 MTD partitions on "spi0.0":
0x000000000000-0x000000020000 : "u-boot"
0x000000020000-0x000000160000 : "kernel"
0x000000160000-0x0000007f0000 : "rootfs"
mtd: partition "rootfs" set to be root filesystem
mtd: partition "rootfs_data" created automatically, ofs=570000, len=280000
0x000000570000-0x0000007f0000 : "rootfs_data"
0x0000007f0000-0x000000800000 : "art"
0x000000020000-0x0000007f0000 : "firmware"
Realtek RTL8366RB ethernet switch driver version 0.2.4
rtl8366rb rtl8366rb: using GPIO pins 18 (SDA) and 19 (SCK)
rtl8366rb rtl8366rb: RTL5937 ver. 3 chip found
rtl8366rb: probed
eth0: Atheros AG71xx at 0xb9000000, irq 4
eth0: using fixed link parameters
Atheros AR71xx hardware watchdog driver version 0.1.0
ar71xx-wdt: timeout=15 secs (max=21)
TCP westwood registered
NET: Registered protocol family 17
Bridge firewalling registered
802.1Q VLAN Support v1.8 Ben Greear <greearb@candelatech.com>
All bugs added by David S. Miller <davem@redhat.com>
VFS: Mounted root (squashfs filesystem) readonly on device 31:2.
Freeing unused kernel memory: 152k freed
Please be patient, while OpenWrt loads ...
input: gpio-buttons as /devices/platform/gpio-buttons/input/input0
Button Hotplug driver version 0.3.1
ar71xx: pll_reg 0xb8050014: 0x1a000000
eth0: link up (1000Mbps/Full duplex)
Registered led device: tl-wr1043nd:green:usb
Registered led device: tl-wr1043nd:green:system
Registered led device: tl-wr1043nd:green:qss
Registered led device: tl-wr1043nd:green:wlan
SCSI subsystem initialized
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
ar71xx-ehci ar71xx-ehci: Atheros AR91xx built-in EHCI controller
ar71xx-ehci ar71xx-ehci: new USB bus registered, assigned bus number 1
ar71xx-ehci ar71xx-ehci: irq 3, io mem 0x1b000000
ar71xx-ehci ar71xx-ehci: USB 2.0 started, EHCI 1.00
usb usb1: configuration #1 chosen from 1 choice
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 1 port detected
Initializing USB Mass Storage driver...
usbcore: registered new interface driver usb-storage
USB Mass Storage support registered.
usb 1-1: new high speed USB device using ar71xx-ehci and address 2
usb 1-1: configuration #1 chosen from 1 choice
scsi0 : SCSI emulation for USB Mass Storage devices
usb-storage: device found at 2
usb-storage: waiting for device to settle before scanning
scsi 0:0:0:0: Direct-Access     GENERIC  USB Mass Storage 1.00 PQ: 0 ANSI: 2
usb-storage: device scan complete
sd 0:0:0:0: [sda] Attached SCSI removable disk
mini_fo: using base directory: /
mini_fo: using storage directory: /overlay
eth0: link down
ar71xx: pll_reg 0xb8050014: 0x1a000000
eth0: link up (1000Mbps/Full duplex)
device eth0.1 entered promiscuous mode
device eth0 entered promiscuous mode
br-lan: port 1(eth0.1) entering forwarding state
Compat-wireless backport release: compat-wireless-2011-11-08-1-g4ab9b62
Backport based on wireless-testing.git master-2011-11-15
cfg80211: Calling CRDA to update world regulatory domain
cfg80211: World regulatory domain updated:
cfg80211:     (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
cfg80211:     (2402000 KHz - 2472000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
cfg80211:     (2457000 KHz - 2482000 KHz @ 20000 KHz), (300 mBi, 2000 mBm)
cfg80211:     (2474000 KHz - 2494000 KHz @ 20000 KHz), (300 mBi, 2000 mBm)
cfg80211:     (5170000 KHz - 5250000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
cfg80211:     (5735000 KHz - 5835000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
ath: EEPROM regdomain: 0x0
ath: EEPROM indicates default country code should be used
ath: doing EEPROM country->regdmn map search
ath: country maps to regdmn code: 0x3a
ath: Country alpha2 being used: US
ath: Regpair used: 0x3a
ieee80211 phy0: Selected rate control algorithm 'minstrel_ht'
ieee80211 phy0: Atheros AR9100 MAC/BB Rev:7 AR2133 RF Rev:a2 mem=0xb80c0000, irq=2
cfg80211: Calling CRDA for country: US
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
RPC: Registered tcp NFSv4.1 backchannel transport module.
PPP generic driver version 2.4.2
tun: Universal TUN/TAP device driver, 1.6
tun: (C) 1999-2004 Max Krasnyansky <maxk@qualcomm.com>
Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
ip_tables: (C) 2000-2006 Netfilter Core Team
cfg80211: Regulatory domain changed to country: US
cfg80211:     (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
cfg80211:     (2402000 KHz - 2472000 KHz @ 40000 KHz), (300 mBi, 2700 mBm)
cfg80211:     (5170000 KHz - 5250000 KHz @ 40000 KHz), (300 mBi, 1700 mBm)
cfg80211:     (5250000 KHz - 5330000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
cfg80211:     (5490000 KHz - 5600000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
cfg80211:     (5650000 KHz - 5710000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
cfg80211:     (5735000 KHz - 5835000 KHz @ 40000 KHz), (300 mBi, 3000 mBm)
NET: Registered protocol family 24
nf_conntrack version 0.5.0 (459 buckets, 1836 max)
CONFIG_NF_CT_ACCT is deprecated and will be removed soon. Please use
nf_conntrack.acct=1 kernel parameter, acct=1 nf_conntrack module option or
sysctl net.netfilter.nf_conntrack_acct=1 to enable it.
xt_time: kernel timezone is -0000
        Hooked IMQ after mangle on PREROUTING
        Hooked IMQ after nat on POSTROUTING
IMQ driver loaded successfully.
Ebtables v2.0 registered
usbcore: registered new interface driver cdc_acm
cdc_acm: v0.26:USB Abstract Control Model driver for USB modems and ISDN adapters
usbcore: registered new interface driver usblp
usbcore: registered new interface driver usbserial
USB Serial support registered for generic
usbcore: registered new interface driver usbserial_generic
usbserial: USB Serial Driver core
usbcore: registered new interface driver ums-alauda
usbcore: registered new interface driver ums-cypress
usbcore: registered new interface driver ums-datafab
usbcore: registered new interface driver ums-freecom
usbcore: registered new interface driver ums-isd200
usbcore: registered new interface driver ums-jumpshot
usbcore: registered new interface driver ums-karma
usbcore: registered new interface driver ums-sddr09
usbcore: registered new interface driver ums-sddr55
usbcore: registered new interface driver ums-usbat
USB Serial support registered for GSM modem (1-port)
usbcore: registered new interface driver option
option: v0.7.2:USB Driver for GSM modems
USB Serial support registered for Sierra USB modem
usbcore: registered new interface driver sierra
sierra: v.1.3.8:USB Driver for Sierra Wireless USB modems
fuse init (API version 7.13)
device wlan0 entered promiscuous mode
br-lan: port 2(wlan0) entering forwarding state
device wlan0 left promiscuous mode
br-lan: port 2(wlan0) entering disabled state
device wlan0 entered promiscuous mode
br-lan: port 2(wlan0) entering forwarding state
ar71xx-wdt: enabling watchdog timer
ipt_bandwidth: timezone shift of 60 minutes detected, adjusting
               old minutes west=0, new minutes west=-60

natomiast po wyjęciu i włożeniu pendriva bez restartowania routera widzi partycje:

root@Gargoyle:~$ blkid
/dev/sda3: UUID="F300-D7CE"
/dev/sda2: UUID="982ae782-96ac-46b2-b804-ef2887ae9e47"
/dev/sda1: UUID="43742397-9e19-47c5-ade1-202a879ebd06"
Movable zone start PFN for each node
early_node_map[1] active PFN ranges
    0: 0x00000000 -> 0x00002000
On node 0 totalpages: 8192
free_area_init_node: node 0, pgdat 802e9190, node_mem_map 81000000
  Normal zone: 64 pages used for memmap
  Normal zone: 0 pages reserved
  Normal zone: 8128 pages, LIFO batch:0
Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 8128
Kernel command line: rootfstype=squashfs,yaffs,jffs2 noinitrd console=ttyS0,115200 board=TL-WR1043ND
PID hash table entries: 128 (order: -3, 512 bytes)
Dentry cache hash table entries: 4096 (order: 2, 16384 bytes)
Inode-cache hash table entries: 2048 (order: 1, 8192 bytes)
Primary instruction cache 64kB, VIPT, 4-way, linesize 32 bytes.
Primary data cache 32kB, 4-way, VIPT, cache aliases, linesize 32 bytes
Writing ErrCtl register=00000000
Readback ErrCtl register=00000000
Memory: 29228k/32768k available (2175k kernel code, 3540k reserved, 423k data, 152k init, 0k highmem)
SLUB: Genslabs=7, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
Hierarchical RCU implementation.
NR_IRQS:56
Calibrating delay loop... 266.24 BogoMIPS (lpj=1331200)
Mount-cache hash table entries: 512
NET: Registered protocol family 16
MIPS: machine is TP-LINK TL-WR1043ND
bio: create slab <bio-0> at 0
Switching to clocksource MIPS
NET: Registered protocol family 2
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
TCP established hash table entries: 1024 (order: 1, 8192 bytes)
TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
TCP: Hash tables configured (established 1024 bind 1024)
TCP reno registered
NET: Registered protocol family 1
squashfs: version 4.0 (2009/01/31) Phillip Lougher
Registering mini_fo version $Id$
JFFS2 version 2.2. (NAND) (SUMMARY)  Š 2001-2006 Red Hat, Inc.
yaffs Nov 25 2011 17:50:04 Installing.
msgmni has been set to 57
io scheduler noop registered
io scheduler deadline registered (default)
Serial: 8250/16550 driver, 1 ports, IRQ sharing disabled
serial8250.0: ttyS0 at MMIO 0x18020000 (irq = 11) is a 16550A
console [ttyS0] enabled, bootconsole disabled
Atheros AR71xx SPI Controller driver version 0.2.4
m25p80 spi0.0: s25sl064a (8192 Kbytes)
spi0.0: searching for MyLoader partition table at offset 0x10000
spi0.0: searching for MyLoader partition table at offset 0x20000
spi0.0: searching for MyLoader partition table at offset 0x30000
spi0.0: searching for MyLoader partition table at offset 0x40000
spi0.0: no MyLoader partition table found
Searching for RedBoot partition table in spi0.0 at offset 0x7e0000
Searching for RedBoot partition table in spi0.0 at offset 0x7f0000
No RedBoot partition table detected in spi0.0
spi0.0: no WRT160NL signature found
Creating 5 MTD partitions on "spi0.0":
0x000000000000-0x000000020000 : "u-boot"
0x000000020000-0x000000160000 : "kernel"
0x000000160000-0x0000007f0000 : "rootfs"
mtd: partition "rootfs" set to be root filesystem
mtd: partition "rootfs_data" created automatically, ofs=570000, len=280000
0x000000570000-0x0000007f0000 : "rootfs_data"
0x0000007f0000-0x000000800000 : "art"
0x000000020000-0x0000007f0000 : "firmware"
Realtek RTL8366RB ethernet switch driver version 0.2.4
rtl8366rb rtl8366rb: using GPIO pins 18 (SDA) and 19 (SCK)
rtl8366rb rtl8366rb: RTL5937 ver. 3 chip found
rtl8366rb: probed
eth0: Atheros AG71xx at 0xb9000000, irq 4
eth0: using fixed link parameters
Atheros AR71xx hardware watchdog driver version 0.1.0
ar71xx-wdt: timeout=15 secs (max=21)
TCP westwood registered
NET: Registered protocol family 17
Bridge firewalling registered
802.1Q VLAN Support v1.8 Ben Greear <greearb@candelatech.com>
All bugs added by David S. Miller <davem@redhat.com>
VFS: Mounted root (squashfs filesystem) readonly on device 31:2.
Freeing unused kernel memory: 152k freed
Please be patient, while OpenWrt loads ...
input: gpio-buttons as /devices/platform/gpio-buttons/input/input0
Button Hotplug driver version 0.3.1
ar71xx: pll_reg 0xb8050014: 0x1a000000
eth0: link up (1000Mbps/Full duplex)
Registered led device: tl-wr1043nd:green:usb
Registered led device: tl-wr1043nd:green:system
Registered led device: tl-wr1043nd:green:qss
Registered led device: tl-wr1043nd:green:wlan
SCSI subsystem initialized
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
ar71xx-ehci ar71xx-ehci: Atheros AR91xx built-in EHCI controller
ar71xx-ehci ar71xx-ehci: new USB bus registered, assigned bus number 1
ar71xx-ehci ar71xx-ehci: irq 3, io mem 0x1b000000
ar71xx-ehci ar71xx-ehci: USB 2.0 started, EHCI 1.00
usb usb1: configuration #1 chosen from 1 choice
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 1 port detected
Initializing USB Mass Storage driver...
usbcore: registered new interface driver usb-storage
USB Mass Storage support registered.
usb 1-1: new high speed USB device using ar71xx-ehci and address 2
usb 1-1: configuration #1 chosen from 1 choice
scsi0 : SCSI emulation for USB Mass Storage devices
usb-storage: device found at 2
usb-storage: waiting for device to settle before scanning
scsi 0:0:0:0: Direct-Access     GENERIC  USB Mass Storage 1.00 PQ: 0 ANSI: 2
usb-storage: device scan complete
sd 0:0:0:0: [sda] Attached SCSI removable disk
mini_fo: using base directory: /
mini_fo: using storage directory: /overlay
eth0: link down
ar71xx: pll_reg 0xb8050014: 0x1a000000
eth0: link up (1000Mbps/Full duplex)
device eth0.1 entered promiscuous mode
device eth0 entered promiscuous mode
br-lan: port 1(eth0.1) entering forwarding state
Compat-wireless backport release: compat-wireless-2011-11-08-1-g4ab9b62
Backport based on wireless-testing.git master-2011-11-15
cfg80211: Calling CRDA to update world regulatory domain
cfg80211: World regulatory domain updated:
cfg80211:     (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
cfg80211:     (2402000 KHz - 2472000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
cfg80211:     (2457000 KHz - 2482000 KHz @ 20000 KHz), (300 mBi, 2000 mBm)
cfg80211:     (2474000 KHz - 2494000 KHz @ 20000 KHz), (300 mBi, 2000 mBm)
cfg80211:     (5170000 KHz - 5250000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
cfg80211:     (5735000 KHz - 5835000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
ath: EEPROM regdomain: 0x0
ath: EEPROM indicates default country code should be used
ath: doing EEPROM country->regdmn map search
ath: country maps to regdmn code: 0x3a
ath: Country alpha2 being used: US
ath: Regpair used: 0x3a
ieee80211 phy0: Selected rate control algorithm 'minstrel_ht'
ieee80211 phy0: Atheros AR9100 MAC/BB Rev:7 AR2133 RF Rev:a2 mem=0xb80c0000, irq=2
cfg80211: Calling CRDA for country: US
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
RPC: Registered tcp NFSv4.1 backchannel transport module.
PPP generic driver version 2.4.2
tun: Universal TUN/TAP device driver, 1.6
tun: (C) 1999-2004 Max Krasnyansky <maxk@qualcomm.com>
Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
ip_tables: (C) 2000-2006 Netfilter Core Team
cfg80211: Regulatory domain changed to country: US
cfg80211:     (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
cfg80211:     (2402000 KHz - 2472000 KHz @ 40000 KHz), (300 mBi, 2700 mBm)
cfg80211:     (5170000 KHz - 5250000 KHz @ 40000 KHz), (300 mBi, 1700 mBm)
cfg80211:     (5250000 KHz - 5330000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
cfg80211:     (5490000 KHz - 5600000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
cfg80211:     (5650000 KHz - 5710000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
cfg80211:     (5735000 KHz - 5835000 KHz @ 40000 KHz), (300 mBi, 3000 mBm)
NET: Registered protocol family 24
nf_conntrack version 0.5.0 (459 buckets, 1836 max)
CONFIG_NF_CT_ACCT is deprecated and will be removed soon. Please use
nf_conntrack.acct=1 kernel parameter, acct=1 nf_conntrack module option or
sysctl net.netfilter.nf_conntrack_acct=1 to enable it.
xt_time: kernel timezone is -0000
        Hooked IMQ after mangle on PREROUTING
        Hooked IMQ after nat on POSTROUTING
IMQ driver loaded successfully.
Ebtables v2.0 registered
usbcore: registered new interface driver cdc_acm
cdc_acm: v0.26:USB Abstract Control Model driver for USB modems and ISDN adapters
usbcore: registered new interface driver usblp
usbcore: registered new interface driver usbserial
USB Serial support registered for generic
usbcore: registered new interface driver usbserial_generic
usbserial: USB Serial Driver core
usbcore: registered new interface driver ums-alauda
usbcore: registered new interface driver ums-cypress
usbcore: registered new interface driver ums-datafab
usbcore: registered new interface driver ums-freecom
usbcore: registered new interface driver ums-isd200
usbcore: registered new interface driver ums-jumpshot
usbcore: registered new interface driver ums-karma
usbcore: registered new interface driver ums-sddr09
usbcore: registered new interface driver ums-sddr55
usbcore: registered new interface driver ums-usbat
USB Serial support registered for GSM modem (1-port)
usbcore: registered new interface driver option
option: v0.7.2:USB Driver for GSM modems
USB Serial support registered for Sierra USB modem
usbcore: registered new interface driver sierra
sierra: v.1.3.8:USB Driver for Sierra Wireless USB modems
fuse init (API version 7.13)
device wlan0 entered promiscuous mode
br-lan: port 2(wlan0) entering forwarding state
device wlan0 left promiscuous mode
br-lan: port 2(wlan0) entering disabled state
device wlan0 entered promiscuous mode
br-lan: port 2(wlan0) entering forwarding state
ar71xx-wdt: enabling watchdog timer
ipt_bandwidth: timezone shift of 60 minutes detected, adjusting
               old minutes west=0, new minutes west=-60
usb 1-1: USB disconnect, address 2
usb 1-1: new high speed USB device using ar71xx-ehci and address 3
usb 1-1: configuration #1 chosen from 1 choice
scsi1 : SCSI emulation for USB Mass Storage devices
usb-storage: device found at 3
usb-storage: waiting for device to settle before scanning
scsi 1:0:0:0: Direct-Access     Kingston DT 100 G2        1.00 PQ: 0 ANSI: 2
usb-storage: device scan complete
sd 1:0:0:0: [sda] 15644912 512-byte logical blocks: (8.01 GB/7.45 GiB)
sd 1:0:0:0: [sda] Write Protect is off
sd 1:0:0:0: [sda] Mode Sense: 0b 00 00 08
sd 1:0:0:0: [sda] Assuming drive cache: write through
sd 1:0:0:0: [sda] Assuming drive cache: write through
 sda: sda1 sda2 sda3
sd 1:0:0:0: [sda] Assuming drive cache: write through
sd 1:0:0:0: [sda] Attached SCSI removable disk
yaffs: dev is 8388611 name is "sda3"
yaffs: passed flags ""
yaffs: Attempting MTD mount on 8.3, "sda3"
yaffs: dev is 8388611 name is "sda3"
yaffs: passed flags ""
yaffs: Attempting MTD mount on 8.3, "sda3"

480

(6 odpowiedzi, napisanych Oprogramowanie / Software)

no nie sprawdzałem jeszcze na innym pendrive, bo ten kupiłem specjalnie do tego celu (Kingston 8GB) ale cóż wychodzi na to że coś nie tak jest ze strony sprzętowej. Moje partycje to ext3 800M, swap 200M, FAT32 6,5GB

Witam! Mam taki problem że zrobiłem sobie extroot na nowym sprzęcie i nie startuje po wyłączeniu routera. Tzn w ogóle nie widzi partycji po wykonaniu blkid. Dopiero jak wyjmę pendriva i włoże jeszcze raz to widzi partycje. I w tym momencie jak zrobie tylko restart (a nie wyłączenie zasilania) to wystartuje z extrootem.

482

(20 odpowiedzi, napisanych Oprogramowanie / Software)

a mam jeszcze pytanie co musze zmienić, aby po wykonaniu polecenia nie otrzymywać wyniku, bo dla części poleceń poprostu przechodzi mi do pustej strony, a dla częsci pokazuje co wykonał, więc wolałbym żeby polecenie zostało wysłane i dalej nie przechodził już

483

(20 odpowiedzi, napisanych Oprogramowanie / Software)

w sumie to moge tak to zrealizować, wystarczy że zrobie mała stronke na routerze i wstawie ja na moją stronke na innym serwerze w postaci osobnej ramki.
xellon03 dzięki wielkie za pomoc! to co podałeś sprawdziłem i działa smile
tylko jest taki problem, że polecenia np: motion, czy killall motion działają bez problemu, natomiast jak już chce wykonać coś takiego /bin/motion_on.sh to już nie działa... (motion_on.sh to skrypt zmnieniający zawartość pliku motion.conf a dokładnie zmieniający output_normal na on) wywołanie z konsoli tego skryptu działa prawidłowo i robi to co ma.
Przy okazji, mógłbym prosić o wyjaśnienie co robią te 2 linie w ps.sh

polecenie=`echo "$QUERY_STRING" | sed -n 's/^.*polecenie=\([^&]*\).*$/\1/p' | sed "s/[%20+]/ /g"`
pass=`echo "$QUERY_STRING" | sed -n 's/^.*pass=\([^&]*\).*$/\1/p' | sed "s/%20/ /g"`

bo resztę mniej więcej rozumie co sie dzieje.

484

(93 odpowiedzi, napisanych Termometr)

uruchamianie w shellu pomogło smile nie było tego bc i jeszcze pare drobnych błędów. Dzięki za pomoc!

485

(20 odpowiedzi, napisanych Oprogramowanie / Software)

chodzi mi akutat o zdalne uruchamianie skryptów do włączania i wyłączania podsłuchu audio, oraz skryptów do motion. Daniel byłbym bardzo wdzięczny jakbyś sprawdził czy tak się da i napisał jak to robiłeś smile bardzo ułatwiłoby mi to sprawe.

486

(93 odpowiedzi, napisanych Termometr)

No i nie wie co to jest to bc, czyli tak jakby nie miał tego "kalkulatora" o którym mi pisałeś

root@Gargoyle:~$ /www/tempera.sh
/www/tempera.sh: line 12: bc: command not found
/www/tempera.sh: line 13: bc: command not found
697x293
ERROR: No DS called 'vad1' in '/root/pomiary.rrd'
697x293

487

(93 odpowiedzi, napisanych Termometr)

w shellu tzn? jak to się robi?

488

(93 odpowiedzi, napisanych Termometr)

Cezary a mógłbyś zerknąć na ten skrypt co wyżej dałem, bo niby nie ma tam wielkiej filozofi, a jednak mi nie przelicza...

489

(93 odpowiedzi, napisanych Termometr)

Witam. Potrzebuje pomocy w poprawnej modyfikacji skryptu. Ponieważ odczytuje sobie napięcie ok 6V a chce na wykresie mieć ok 12V więc musze to przeliczać w skrypcie. Napisałem obliczenie, ale coś mi to nie działa, wykres przestał się w ogóle zmieniać.

#!/bin/bash

RRD=/root/pomiary.rrd
TOOL='/usr/bin/rrdtool'
NOW=`date -u +%s`
VAD=`sed 's/^[ ]*//' /tmp/owfs/26.8E0CEB000000/VAD`

#######obliczanie napięcia 
A=2.21
B=`echo $VAD/$A | bc -l`
VAD1=`echo $B | bc -l`


#petla
if [ -n "$VAD" ];

then


$TOOL update $RRD $NOW:$VAD1;

rrdtool graph /www/vad.gif -t 'Napiecie zasilania\
-A -w 600 -h 200 --vertical-label 'Napiecie [V]' -Y -s end-30min -E \
DEF:t=$RRD:vad1:AVERAGE LINE1:t#00af00:Napiecie \
DEF:tmax=$RRD:vad1:MAX DEF:tmin=$RRD:vad1:MIN \
'GPRINT:t:LAST:Ostatni pomiar\: %2.1lf V\j' \
'GPRINT:tmin:MIN:Minimum \: %2.1lf V' \
'GPRINT:tmax:MAX:Maximum \: %2.1lf V\j';

mv -f /www/vad.gif /www/vad.gif

else

echo"aaa";

fi 

chce uzyzkać wynik czegoś takiego na wykresie VAD*2.21
przy okazji co oznacza

| bc -l

490

(22 odpowiedzi, napisanych Oprogramowanie / Software)

działa smile dzięki!

491

(22 odpowiedzi, napisanych Oprogramowanie / Software)

do dziś mam problemy z brakiem internetu na extroot, jednak znalazłem sposób jak go ręcznie uruchomić tongue otóż mam zainstalowane motion i dodane do rc.local tak że startuje od razu razem z systemem. Po uruchomieniu internetu brak, tzn na routerze jest połączenie, pakiety można wgrywać, ale nie puszcza netu na podłączone komputery.
W tym momencie robie tylko

killall motion
motion

i net startuje big_smile co może być przyczyną że musze "ubijać" motion i od nowa je startować, to wtedy działa net ?

492

(93 odpowiedzi, napisanych Termometr)

no właściwie o to mi właśnie chodzi, zeby obrazek na stronie był cały czas, a zmieniał się co np 5min. Wtedy router bedzie mocniej obciążany tylko w trakcie wykonywania wykresu. Więc jak wygenerować taki obrazek? Bo rozumiem samo tworzenie wykresu co te 5 min to poprostu wpis w cronie np taki:

 */5 * * * * /www1/index.php

493

(93 odpowiedzi, napisanych Termometr)

w/g autora http://openrouter.info/index.php?option … ;Itemid=61 wget-em trzeba pobrac obrazki i je wstawiać na www, tylko nie wiem, czy to co wczesniej pisałem, czy o to chodzi.

494

(93 odpowiedzi, napisanych Termometr)

po kilku godzianach zabawy mam juz zegary w php smile okazało sie że w ogóle mi php nie działało na routerze, bo cos pomieszałem, ale zrobiłem od nowa w/g poradnika z php i wszystko śmiga. Teraz mam jeszcze pytanie jak "ulżyć" routerowi, bo dosyc go to obciąża. Doczytałem o wget-cie. Tylko nie do końca rozumie jak to działa. Tzn robie coś takiego:

wget -c http://192.1681.1.1:81/index.php -P /www1

i jak to działa? widze ze zmienia mi sie tylko waga pliku php i wykres na stronce dalej długo sie ładuje.

Przy okazji jeszcze jedno pytanie. Jak uruchamiać prawidłowo serwer lighttpd z każdym uruchomieniem routera, bo widze po resecie że już nie działał. Dodałem sobie

/etc/init.d/lighttpd start

do rc.local ale nie zadziałało...

495

(20 odpowiedzi, napisanych Oprogramowanie / Software)

chyba nie bardzo o to mi chodzi jak masz w "blokadzie". Blokada to są skrypty w których zawarty jest już panel stronki w html. Moja stronka jest na innym serwerze, nie na routerze, więc jakoś musi wiedzieć gdzie szukać skryptu który ma wykonać. Doczytałem gdzieś o wykonywaniu zewnętrznych skryptów, ale nie wiem czy o to chodzi... coś takiego kombinowałem

cript type="text/sh" language="sh" src="http://192.168.1.1/reboot.sh"

tylko to chyba wykonuje sie od razu po uruchomieniu stronki, a mnie interesuje po kliknięciu w przycisk, lub np link odnoszący się adresem do skryptu. Nie wiem czy dobrze kombinuję, ale dopiero zaczynam zabawę z stronkami www, a już potrzebuje wykonać skryp, lub polecenie po ssh do routera.

496

(20 odpowiedzi, napisanych Oprogramowanie / Software)

tak działa juz znalazłem smile

497

(20 odpowiedzi, napisanych Oprogramowanie / Software)

z html i formularzami juz troche sie bawiłem, bo częściowo mam już stronkę www, a z cgi nie miałem do  czynienia. Nie działa mi domyślne hasło dla Twojego pakietu blokada....

498

(20 odpowiedzi, napisanych Oprogramowanie / Software)

Otóż jak już kiedyś planowałem chciałbym zrobić zdalne wykonywanie skryptów stworzonych na routerze. Tzn ma to być na stronie www i po kliknięciu np przycisku wykona się dany skrypt z routera. Tylko nie bardzo wiem jak to ma wyglądać, tzn np w putty skrypt wykonuje tak :

/bin/skrypt.sh

a jak miałoby to wyglądać w takim przycisku na stronce www? musze się jakoś specjalnie logować po ssh do routera?

499

(93 odpowiedzi, napisanych Termometr)

ok czyli jako argument daję mu adres dokładnie gdzie znajduje się skrypt, w moim przypadku: src="192.168.1.1/tempera.php" tylko że nadal wywala mi te błedy przy ręcznej próbie odpalenia skryptu... zmieniłem mu nazwę na php ale nie wiem czy o to Ci chodziło, z tym ze system go nie widzi. Nadal są te same błędy co wyżej pisałem

500

(93 odpowiedzi, napisanych Termometr)

moze od początku. Przede wszystkim czy musze mieć postawioną stronke www na routerze? Bo mam stronke ale na innym serwerze. A tu troche się zagalopowałem. Ten skrypt powinien się znajdować z kodzie mojej stronki? Bo sama zmiana nazwy skrytpu z tempera_php.sh na tempera.php chyba nic nie daje żeby system wiedział że to jest napisane w php?