Új hozzászólás Aktív témák

  • r0by

    addikt

    válasz meone #5100 üzenetére

    Nem tudom, megint ránéztem, de teljesen hiányos a kód, még szép, hogy nem fog elindulni.
    Most amit kiszurtam, az a d_start() részben van, méghozzá ez a sor:

    su -c "screen -ls | grep -sq "\.${srname}[[:space:]]" " ${user} || su -c "screen -dm -S ${s

    A vége enyhén szólva is hiányos...
    Gondolom copy-paste módszerral csinálod. Ellenőrizd le, hogy tényleg az került-e a fájlba, mint aminek kellett volna. Vagy ha ennyire gondba vagy vele, akkor szedd le az Aega-t, ott tudod szerkesztgetni a konfig fájlokat, és mivel böngészőn keresztül nyomod, talán a copy-paste is sikeresebb lesz :)

  • Intruder2k5

    MODERÁTOR

    válasz Intruder2k5 #5099 üzenetére

    Üdv megint!

    Jó hírek vannak... Sikerült megcsinálnom az autentikációt is a lighttpd-re.
    Mostmár csak a "céges próba" van hátra :)

  • yamshee

    tag

    válasz r0by #5101 üzenetére

    Hi,

    Meg lehet itt és más forumokon oldani azt, hogy a conf file-ok csatolt állományként is felkerüljenek? Ezzel a megoldással elkerülnénk ezeket a hibákat. Egyébként a wl500g.info-n igy csinálják , sok esetben..
    üdv
    Y

    We are the Borg. Lower your shields and surrender your ships. We will add your biological distinctiveness to our own. Your culture will adapt to serve us. Resistance is futile.

  • tlac

    nagyúr

    válasz yamshee #5103 üzenetére

    ez lenne a legegyszerűbb (egyszer már linkeltem is, hogy használjátok, csak semmi eredménye nem lett :) )
    mikor ide felraksz vmit, akkor beállítod neki a forever-t és akkor megmarad
    (esetleg a Syntax highlighting-ot még beállíthatod értelemszerűen)

    [ Szerkesztve ]

  • ecaddict

    senior tag

    válasz Intruder2k5 #5098 üzenetére

    Igen erre gondoltam. Saját magad által aláírt tanusítvány miatt kivételként kell felvenni, de mivel megjegyzi a böngésző (az adott gépnél) csak egyszer kell megtenni.

    ### RT-N16, WL-500 Oleg optware script ami majdnem mindent feltesz ### ===========> http://wl500g.info/showthread.php?t=23684 <===========

  • ecaddict

    senior tag

    válasz tlac #5104 üzenetére

    Jó, hogy újra linkelted én pl. egyáltalán nem emlékeztem rá (annyi hsz. van). Köszönöm azt is, hogy az összegyűjtött hsz.-okat jobban láthatóvá tetetted. Reméljük, így többek segítségére lesz.

    ### RT-N16, WL-500 Oleg optware script ami majdnem mindent feltesz ### ===========> http://wl500g.info/showthread.php?t=23684 <===========

  • GuMiSZu

    tag

    Hahó!

    Érdeklődnék, hogy valaki próbálkozott-e már az amule (edonkey) klienssel.
    nekem sikerült elindítani, megy is, de folyamatosan LOW-ID -t kapok, ill. a KAD os háló firewalled státuszban van.

    tud valaki ezügyben segíteni? ez van a post-firewallban ami idevág:

    iptables -A INPUT -i eth1 -p tcp --syn --dport 4662 -j ACCEPT
    iptables -A INPUT -i eth1 -p udp --dport 4672 -j ACCEPT
    iptables -A INPUT -i eth1 -p tcp --syn --dport 4711 -j ACCEPT

    ötlet?

    előre is köszi...

    ITAL is YOURS

  • Digger

    senior tag

    Nem találok, (pedig már láttam valahol) olyan scriptet, ami leválaszt minden swapot és kötetet. Hogy ki lehessen húzni a HDD-t, vagy a pent.

  • Digger

    senior tag

    Ilyen sorokat találtam a logban:

    Jan 6 22:11:00 dropbear[261]: login attempt for nonexistent user from ::ffff:200.30.136.146:36489
    Jan 6 22:11:03 dropbear[262]: login attempt for nonexistent user from ::ffff:200.30.136.146:37590
    Jan 6 22:11:06 dropbear[263]: login attempt for nonexistent user from ::ffff:200.30.136.146:39566
    Jan 7 02:01:08 dropbear[308]: login attempt for nonexistent user from ::ffff:220.199.184.60:35099
    Jan 7 02:01:13 dropbear[309]: login attempt for nonexistent user from ::ffff:220.199.184.60:35185
    Jan 7 02:01:17 dropbear[310]: login attempt for nonexistent user from ::ffff:220.199.184.60:35267
    Jan 7 06:43:35 dropbear[337]: login attempt for nonexistent user from ::ffff:72.55.133.104:60918
    Jan 7 06:43:37 dropbear[338]: login attempt for nonexistent user from ::ffff:72.55.133.104:32930
    Jan 7 06:43:38 dropbear[339]: login attempt for nonexistent user from ::ffff:72.55.133.104:33051
    Jan 7 06:45:18 dropbear[340]: login attempt for nonexistent user from ::ffff:72.55.133.104:38896
    Jan 7 06:45:20 dropbear[341]: login attempt for nonexistent user from ::ffff:72.55.133.104:41979
    Jan 7 06:45:23 dropbear[342]: login attempt for nonexistent user from ::ffff:72.55.133.104:42979
    Jan 7 06:47:21 dropbear[343]: login attempt for nonexistent user from ::ffff:72.55.133.104:56478
    Jan 7 06:47:24 dropbear[344]: login attempt for nonexistent user from ::ffff:72.55.133.104:57964
    Jan 7 06:47:33 dropbear[345]: login attempt for nonexistent user from ::ffff:72.55.133.104:58828
    Jan 7 06:52:43 dropbear[346]: login attempt for nonexistent user from ::ffff:72.55.133.104:42447
    Jan 7 06:52:45 dropbear[347]: login attempt for nonexistent user from ::ffff:72.55.133.104:43525
    Jan 7 10:22:08 dropbear[365]: login attempt for nonexistent user from ::ffff:202.134.12.31:59334
    Jan 7 10:22:11 dropbear[366]: login attempt for nonexistent user from ::ffff:202.134.12.31:59648
    Jan 7 10:22:14 dropbear[367]: login attempt for nonexistent user from ::ffff:202.134.12.31:60356
    Jan 7 11:38:55 dropbear[369]: login attempt for nonexistent user from ::ffff:79.122.65.42:1349
    Jan 7 11:39:01 dropbear[369]: login attempt for nonexistent user from ::ffff:79.122.65.42:1349
    Jan 7 11:39:03 dropbear[369]: login attempt for nonexistent user from ::ffff:79.122.65.42:1349
    Jan 7 11:39:09 dropbear[369]: login attempt for nonexistent user from ::ffff:79.122.65.42:1349
    Jan 7 14:08:08 dropbear[396]: login attempt for nonexistent user from ::ffff:124.254.15.169:40427
    Jan 7 14:08:16 dropbear[398]: login attempt for nonexistent user from ::ffff:124.254.15.169:40999
    Jan 7 15:16:13 dropbear[408]: login attempt for nonexistent user from ::ffff:82.103.132.169:40023
    Jan 7 15:16:15 dropbear[409]: login attempt for nonexistent user from ::ffff:82.103.132.169:40327
    Jan 7 16:37:46 dropbear[418]: login attempt for nonexistent user from ::ffff:61.187.64.8:48903
    Jan 7 16:37:55 dropbear[420]: login attempt for nonexistent user from ::ffff:61.187.64.8:49147

    Jól gondolom, hogy próbálkoztak a fiúk (lányok) ? :Y
    Tegnap este nyitottam meg a 21 és 22-es portokat, és végre sikerült beállítani a dyndns-t is!

    [ Szerkesztve ]

  • khorvat

    senior tag

    Hi!

    Adott egy ilyen asus router + Oleg 10es firmware. Van melle egy 3,5os 500GB Samsung winchester USB rackkel.

    1. Kerdesem: Szerintetek mi a levalasztas helyes menete USB-s HDD-nel? Elofordul hogy tobb napra nem hasznalom se a routert se a vinyot es ekkor szeretnem aramtalanitani oket es szabalyosan leallitani mind2-t. Eddig ilyenkor a webadmin feluleten USB ejectet nyomtam majd rack kikapcsol router kikapcsol! De legutobbi ilyen muveletem eredmenye az lett hogy most ha radugom a vinyot nem ismeri fel a router egyszeruen nem erzekeli hogy csatlakoztattam ra egy usb-s racket, ha egy pendrivotdugok ra azt egybol latja egy bemountolja! A vinyot megneztem egy XP-s PC-n amin elotte driver segittsegel latta az EXT3as particiokat de most ez is csak erzekelte a vinyot es latta a particiok szamat meretet de elerni a rajtuk levo adatokat nem tudja! Vegul egy suse linuxos gepre is felcsatoltam a vinyot esottmindent egybol lat es kezelis ha mas nem igy legalabb le tudom menteni adataim!!
    2.Mit tegyek szerintetek?Mi oldana meg problemam? Teljes gyalulas es ujra paticionalas majd telepitesek??

    Elore is koszi valaszokat!

  • ecaddict

    senior tag

    válasz khorvat #5112 üzenetére

    Azt én sem tudom mi lenne a helyes menete a leállításnak mindenesetre az USB eject-et nem szoktam használni. Helyette írtam egy shutdown scriptet amit be is tettem a 5000. hsz gyűjteménybe. Meghívás (terminálból):
    shutdown -u
    A router ezután még persze használható, csak le lehet húzni a diszket.
    Ezzel még nem volt bajom. Csináltam hozzá WebUI-t is de az elvileg sem lehet tökéletes (azt a partíciót kellene lecsatolja ahonnan indul ill. miután a http leáll semmi sem megy a WebUI-nak), ezért érdemes megnézni, hogy neked elfogadható-e mielőtt elkezded használni (rendszeresen).

    Ha már gondok vannak akkor e2fsck-t kell futtatni (lecsatolt állapotban!) arra a partícóra amivel gond van pl. /dev/discs/disc0/part3.
    Eddig erre egyszer volt szükségem (akkor volt amikor az USB hub-al variáltam azaz es sem volt véletlen).
    Amióta megvan, a rendszert még nem kellett újra tegyem pedig amit most használok az már a harmadik HDD (nem azért cseréltem mert gondja volt a HDD-nek, hanem mert jobb HDD-vel akartam használni; tévedés azt hinni, hogy gagyi cuccok is megteszi a routerhez - a router 24/24-ben megy mint a rendes szerverek...).

    XP-s driver nem látja ha nincs rendesen lecsatolva, így az XP felejtős ilyen esetekre.

    ### RT-N16, WL-500 Oleg optware script ami majdnem mindent feltesz ### ===========> http://wl500g.info/showthread.php?t=23684 <===========

  • tpeter

    aktív tag

    válasz Digger #5111 üzenetére

    Igen, ismerős.
    Ha megoldható akkor tedd át az ssh-dat másra mint 22 és akkor kicsi az esélye az ilyesminek. Haversrácnak is ilyen routere van és úgy tolták nála ezt a bruteforce-os próbálkozást hogy teljesen elment a net, nem tudott semmit csinálni.

    Csak az érdekesség végett:

    [peter@router peter]$ whois 200.30.136.146

    % Joint Whois - whois.lacnic.net
    % This server accepts single ASN, IPv4 or IPv6 queries

    % LACNIC resource: whois.lacnic.net


    % Copyright LACNIC lacnic.net
    % The data below is provided for information purposes
    % and to assist persons in obtaining information about or
    % related to AS and IP numbers registrations
    % By submitting a whois query, you agree to use this data
    % only for lawful purposes.
    % 2009-01-08 06:02:35 (BRST -02:00)

    inetnum: 200.30.136.144/29
    status: reallocated
    owner: Grupo PAE
    ownerid: HN-GRPA-LACNIC
    responsible: Cesar Fonseca
    address: Aereopuerto Internacional de Toncontin, 1, 1
    address: 1 - tegucigalpa - hn
    country: HN
    phone: +504 2344184 []
    owner-c: MAT8
    tech-c: NEA2
    abuse-c: NEA2
    created: 20041001
    changed: 20041001
    inetnum-up: 200.30.136/24
    inetnum-up: 200.30.128/19

    nic-hdl: MAT8
    person: Marcio Tejada
    e-mail: abuse-sps@AMNETCORP.COM
    address: Col.Bogran, 7 ave 1 y 2 Cll, Pasaje el Eden Rio Be, -, -
    address: - - San Pedro Sula - SP
    country: HN
    phone: +504 508-1000 []
    created: 20080220
    changed: 20080409

    nic-hdl: NEA2
    person: Newcom Limited
    e-mail: inet@AMNETCORP.COM
    address: 13 Calle 3-40 z.10, Edificio Atlantis Of. 1501, 1, 1
    address: 01010 - Guatemala - GT
    country: GT
    phone: +502 279-0099 []
    created: 20030303
    changed: 20061011

    % whois.lacnic.net accepts only direct match queries.
    % Types of queries are: POCs, ownerid, CIDR blocks, IP
    % and AS numbers.

    Neked dél-amerikai barátaid vannak, nálam kínaiak próbálkoztak :)
    (Bár jóeséllyel ezek valami trójai vírussal fertőzött gépek amiket használ valaki)

  • World-Soft

    senior tag

    válasz ecaddict #5113 üzenetére

    Én annak idején (amikor még nem volt router) ezért érdeklődtem a HDD lekapcsolás után.
    Nem azért, mert 5 percenként szeretném leállítani a HDD-t.

    Úgy vettem észre a Windows leállításnál is hogy mielőtt lekapcsolja a tápot, előtte a HDD-k olyan hangot adnak ki mintha kiseekelnéneke, tehát kitennék a fejet.

    Bár a mostani winyónknál ez már elméletileg nem lehet gond, mert a fej még gyorsan el tudja hagyni a tányért mielőtt az leáll (állítólag), de biztos egészségesebb, ha tutira nem a tányér felett van a fej, amikor megszűnik a tápellátás.

    De mint kiderült elég macera ez a lekapcsolás. Nem mindegyik USB-s chip támogatja.
    Amúgy valaki tudja, hogyan lehet megtartani a HDD sorrendet (pl. kiveszek egy HDD-t és újra kell indítani), hogy újraindításkor mindent a megfelelő helyen keressen a HDD, illetve úgy rémlik Oleg esetén, ha lekapcsolom az FTP-t, akkor valami más kell hogy az USB detektálás menjen. Valahol olvastam, de nem találom.

    Zoli

  • khorvat

    senior tag

    válasz ecaddict #5113 üzenetére

    Koszi a segitseget!

    Kiprobalom majd ezt a shutdown scriptet ezaz eject nekem sem szimpi csakhat nem volt mas. Terminal alatt itt mit ertel pontosan? Telnetet vagy az SSH-s kapcsolodast? Most telnet letiltva es csak SSH-n erem el routert ez elegendo a script futtatasara?
    WebUI nem olyan fontos elvagyok a szoveges felulettel is mig a levalasztast csinalom.

    Irod hogy e2fsck-t futtassak a hibas particiokon, itt mit jelent pontosan a lecsatolt allapot? arra gondolsz hogy ne legyen mountolva a vinyo egyetlen particioja sem?
    Csak hogy nekem az a gondom hogy a router nem latja a vinyot jelenleg nem ismeri fel hogy ez egy Samsung USB eszkoz mint regebben! Ha csatlakoztatom ki-be az usb kabellel a racket a syslogban semmi valtozas nincs mig ha egy pendrive-ot probalok akkor latom felismeri automountolja ha kihuzom azt is eszleli hogy eltunt! Vinyoval meg semmi mintha ott se lenne. Arra gyanakodom hogy a fajl rendszer annyira serult hogy a router csak lassan tudja a kozel 500gb-ot ellenorizni automatikusan, mert ugy tudom a linux rendszereken van vmi automatikus fajl ellenorzes is ami ha szukseges eloszor lefut.
    A linuxos gep amin pedig teljesen epen lattam az osszes particio felismerte felcsatolta!!?
    Az lenne a megoldas hogy ezen a linuxos gepen umountol az osszes (3) particiot es ott futtatok rajta e2fsck fajl ellenorzest javitast? Gondolom mig a router nem hajlando felismerni az azon levo linux rendszerrel nem tudok semmi e2fsck-t futtatni mert nem tudom megnevezni neki a particiot sem hiszen szerinte nincs is!

    Tehat a fokerdes most hogyan ismertesem fel a router linuxa szamara is a vinyom hiszen ott van minden rajta???Regebben is volt mar ilyen gondom de akkor parnap mulva egyszercsak el kezdte latni de aztan jelentkeztek fajl eleresi gondok jogosultsagok megkavarodtak majd volt egy aramszunet es azota ez a teljes sotetseg ujra a router es a vinyo kozott:(
    Annyit meg ma megprobalok hogy viszek egy masik usbracket hatha azzal megy illetve ujra cserelgetek kabeleket is de nem hinnem ez gond lehet viszem a vinyo es a rack ugyanaz volt mikor a SUSE linuxos PC latta az egeszet ahogy kell!

  • khorvat

    senior tag

    válasz khorvat #5116 üzenetére

    Megvan a hiba oka!!!
    Masoknak okulasul leirom hogy az egesz kalvariam az USB rack bizonytalan mukodesere vezetheto vissza!! Masik proba rackkel egybol mukodott szal vinyo teljesen jo es a rack szivatott meg!

    Kerdesem hogy ki milyen 3,5os USB racket hasznal, amivel meg van elegedve, ki mit javasol mire valtsak???

    Meg garancias a rack vissza lehet ezt vinni a boltba azzal az indokkal hogy nem stabilan mukodik 90%ban a routerrel hasznaltam es vagy 5 esetben volt vele gondom mar mire most bebizonyosodott hogy ez szivatott most is!?
    Esetleg meg megprobalom fektetve beallitani mert eddig allva volt a rack es a vinyo vszinu igy nem erintkezett vmi!
    Szal mindenkit ova intek hogy olyan racket vegyen amibe csak becsusztatni kell a vinyot mert az erintkezes miatt csak a gond van vele ha rezeg vagy rosszul illeszkedik es zartburkolat miatt nem szerelheto!!!

  • Kelvin

    őstag

    válasz khorvat #5117 üzenetére

    Szia, ezen a linken pont az usb-s vinyó leállítását boncolgatják, lehet segít.[link]
    Én holnaptól leszek egy ilyen router tulajdonosa de kicsit előre informálódok :)

    "A legvégén nem az fog számítani,hogy mennyi év volt életedben,hanem hogy mennyi élet volt éveidben"

  • khorvat

    senior tag

    válasz Kelvin #5118 üzenetére

    Koszi megnezem!
    Sok sikert a routerhez ha mar igy elore nezelodtel tuti nem fogsz csalodni benne!

  • Digger

    senior tag

    Valaki nyomjon már pár infót az EZSetup gomb működéséről!
    Itt írnak róla néhány infót, bár ez a WL-520g-ről szól.
    Az Oleg firmware átírta ezt a funkciót? A megnyomására esetleg egy rutin indul el? Nem lehet ezt valami más funkcióra használni?

  • World-Soft

    senior tag

    Sziasztok!

    Létezik a vnstat-on kívül másik keveset fogyasztó és megbízható forgalomfigyelő?
    Az a problémám, hogy mindig csak az utolsó adatokat lehet kinyerni belőle (vagyis ha esetleg megvannak valahol, akkor nem tudom hogyan lehet kinyerni).

    Tehát csak az utolsó nap órára bontott adatait, az utolsó hónap napi adatait, és az utolsó év havi adatait....

    Nekem az kellene, hogy mondjuk két hónap múlva meg tudjam nézni a januári forgalmam napra bontva.

    Köszi.
    Zoli

  • meone

    tag

    válasz r0by #5101 üzenetére

    Újból sikerült kijavítanom pár hibát.
    A rendszernek ez a része már 95%-ban múködik.

    A kód jelenleg így nézki:

    #!/bin/sh

    user="root"


    config="/opt/etc/rtorrent.conf"

    options="-n -o import=${config}"

    base="/opt/etc/samba/Share/torrent"

    srname="rtorrent"

    logfile="/opt/etc/samba/Share/download/torrentInit.log"


    PATH=/opt/bin:/opt/sbin:/usr/bin:/sbin:/bin:/usr/sbin
    DESC="rtorrent"
    NAME=rtorrent
    DAEMON=$NAME
    SCRIPTNAME=/etc/init.d/$NAME

    test -x /opt/bin/screen || ( echo "screen not found." | tee -a "$logfile" >&2 ; exit 2 )
    test -x /opt/bin/su -o -x /bin/su || ( echo "su not found." | tee -a "$logfile" >&2 ; exit 2 )
    )

    checkcnfg() {
    exists=0
    for i in `echo "$PATH" | tr ':' '\n'` ; do
    if [ -f $i/$NAME ] ; then
    exists=1
    break
    fi
    done
    if [ $exists -eq 0 ] ; then
    echo "cannot find rtorrent binary in PATH $PATH" | tee -a "$logfile" >&2

    exit 3
    fi

    if ! [ -r "${config}" ] ; then
    echo "cannot find readable config ${config}. check that it is there and permissions are appropriate" | tee -a "$logfile" >&2

    exit 3
    fi
    session=`getsession "$config"`
    if ! [ -d "${session}" ] ; then
    echo "cannot find readable session directory ${session} from config ${config}. check permissions" | tee -a "$logfile" >&2


    exit 3
    fi
    }


    getsession() {
    session=`awk '/^[[:space:]]*session[[:space:]]*=[[:space:]]*/{print($3)}' "$config"`
    echo $session
    }

    getprange() {
    ports=`awk '/^[[:space:]]*port_range[[:space:]]*=[[:space:]]*/{print($3)}' "$config" | sed "s/-/ /"`
    echo $ports
    }

    getdhtport() {
    dht_port=`awk '/^[[:space:]]*dht_port[[:space:]]*=[[:space:]]*/{print($3)}' "$config"`
    echo $dht_port
    }

    fwopen() {
    DHT_PORT=`getdhtport "$config"`
    iptables -D INPUT -j DROP
    PORTS=$(seq `getprange "$config"`)
    for P in $PORTS; do
    iptables -I INPUT -i vlan1 -p tcp --syn --dport $P -j ACCEPT
    done
    if [ $DHT_PORT ]; then
    iptables -I INPUT -i vlan1 -p tcp --dport $DHT_PORT -j ACCEPT
    fi
    iptables -A INPUT -j DROP
    }


    fwclose() {
    DHT_PORT=`getdhtport "$config"`
    PORTS=$(seq `getprange "$config"`)
    for P in $PORTS; do
    iptables -D INPUT -i vlan1 -p tcp --syn --dport $P -j ACCEPT
    done
    if [ $DHT_PORT ]; then
    iptables -D INPUT -i vlan1 -p tcp --dport $DHT_PORT -j ACCEPT
    fi
    }

    d_start() {
    [ -d "${BASE}" ] && cd "${BASE}"
    fwopen
    stty stop undef && stty start undef
    screen -ls | grep .$SRNAME[[:space:]] &gt; /dev/null || \screen -dm -S ${SRNAME}
    screen -S ${SRNAME} -X screen rtorrent ${OPTIONS} 2>&1 1>/dev/null | tee -a "$logfile" >&2
    }

    d_stop() {
    fwclose
    session=`getsession "$config"`
    if ! [ -s ${session}/rtorrent.lock ] ; then
    return
    fi
    pid=`cat ${session}/rtorrent.lock | awk -F: '{print($2)}' | sed "s/[^0-9]//g"`
    if ps -A | grep -sq ${pid}.*rtorrent ; then # make sure the pid doesn't belong to another process
    kill -s INT ${pid}
    fi
    }

    checkcnfg

    case "$1" in
    start)
    echo -n "Starting $DESC: $NAME"
    d_start
    echo "."
    ;;
    stop)
    echo -n "Stopping $DESC: $NAME"
    d_stop
    echo "."
    ;;
    restart|force-reload)
    echo -n "Restarting $DESC: $NAME"
    d_stop
    sleep 1
    d_start
    echo "."
    ;;
    *)
    echo "Usage: $SCRIPTNAME {start|stop|restart|force-reload}" >&2
    #echo "Usage: $0 {start|stop|restart|force-reload}" &gt;&amp;2
    exit 1
    ;;
    esac

    exit 0

    Ha kiadom a parancsot egyszerűen akkor ezt jön vissza:

    [root@001346178395 root]$ /opt/etc/init.d/S99rtorrent
    Usage: /etc/init.d/rtorrent {start|stop|restart|force-reload}

    Ha startal adom ki a parancsot akkor meg ez az eredménye:

    [root@001346178395 root]$ /opt/etc/init.d/S99rtorrent start
    Starting rtorrent: rtorrent/opt/etc/init.d/S99rtorrent: /opt/etc/init.d/S99rtorrent: 226: gt: not found
    /opt/etc/init.d/S99rtorrent: /opt/etc/init.d/S99rtorrent: 226: /dev/null: Permission denied
    No Sockets found in /tmp/screens/S-root.
    Use: screen [-opts] [cmd [args]]
    or: screen -r [host.tty]

    Options:
    -a Force all capabilities into each window's termcap.
    -A -[r|R] Adapt all windows to the new display width & height.
    -c file Read configuration file instead of '.screenrc'.
    -d (-r) Detach the elsewhere running screen (and reattach here).
    -dmS name Start as daemon: Screen session in detached mode.
    -D (-r) Detach and logout remote (and reattach here).
    -D -RR Do whatever is needed to get a screen session.
    -e xy Change command characters.
    -f Flow control on, -fn = off, -fa = auto.
    -h lines Set the size of the scrollback history buffer.
    -i Interrupt output sooner when flow control is on.
    -l Login mode on (update /opt/var/run/utmp), -ln = off.
    -list or -ls. Do nothing, just list our SockDir.
    -L Turn on output logging.
    -m ignore $STY variable, do create a new screen session.
    -O Choose optimal output rather than exact vt100 emulation.
    -p window Preselect the named window if it exists.
    -q Quiet startup. Exits with non-zero return code if unsuccessful.
    -r Reattach to a detached screen process.
    -R Reattach if possible, otherwise start a new session.
    -s shell Shell to execute rather than $SHELL.
    -S sockname Name this session <pid>.sockname instead of <pid>.<tty>.<host>.
    -t title Set title. (window's name).
    -T term Use term as $TERM for windows, rather than "screen".
    -U Tell screen to use UTF-8 encoding.
    -v Print "Screen version 4.00.03 (FAU) 23-Oct-06".
    -wipe Do nothing, just clean up SockDir.
    -x Attach to a not detached screen. (Multi display mode).
    -X Execute <cmd> as a screen command in the specified session.

    Error: Specify session-name with -S
    /opt/var/run/utmp: No such file or directory
    *** rTorrent 0.8.4/0.12.4 - 001346178395:297 ***
    [View: main]


    (12:48:11) Using 'select' based polling.
    (12:48:11) Could not read resource file: ~/.rtorrent.rc
    [Throttle off/off KB] [Rate 0.0/ 0.0 KB] [Port: 6932] [U 0/0] [D 0/0] [H 0/32] [S 0/1/768] [F

    Ezt sérelmezi de nem tudom, hogy hogy lehet kijavítani:
    Could not read resource file: ~/.rtorrent.rc a kódban pedig jól van hivatkozva.

    A másik problémálya pedig ez: /opt/etc/init.d/S99rtorrent: 226: gt: not found.
    A kódban a 226.sorban ez a parancs áll: esac

    A process listában pedig így jelenik meg:

    175 ? S 0:00 upnp -D -L br0 -W eth1
    295 ? Ss 0:00 SCREEN -S -X screen rtorrent
    297 pts/2 Ss+ 0:00 rtorrent
    298 ? Ss 0:00 dropbear
    299 pts/0 Ss 0:00 -sh
    302 pts/0 R+ 0:00 ps -ax

    Valakinek valami ötelte még, hogy hol kell kijavítanom a kódot? :F

    Elnézést kérek mindenkitől a helyes írásom ért :)

  • Intruder2k5

    MODERÁTOR

    A winyó vs. pendrive témához visszatérve...
    Akinek nincs szüksége több száz giga tárolókapacitásra a routerben, annak szerintem ez is lehet egy jó alternatíva.

    http://www.argep.hu/product_887491.html

    OCZ Solid SATA II 2.5" SSD 30GB

    Solid State Drive
    - merevlemezkapacitás: 30 GB
    - merevlemezméret: 2,5"
    - elérési idő: 0,2 ms
    - olvasási sebesség: 155 MB/s
    - írási sebesség: 90 MB/s
    - hűtés: nincs
    - PC csatlakozók: S-ATA II (300 MB/s), USB 2.0
    - PIN: vízszintes

    15.999 Ft

    Lehet, hogy én ilyet veszek... :-)
    Gyorsabb mint a pendrive, elvileg hoszabb az élettartama, csendesebb mint a HDD, és kisebb az áramfelvétele is.

    [ Szerkesztve ]

  • Digger

    senior tag

    válasz Intruder2k5 #5123 üzenetére

    A flash tároló használatának az a legnagyobb bibje, hogy csak korlátozott számban írható! A routerünkben használva, a swap használata a kritikus, mivel azt állandóan írja-olvassa.
    Nekem az a véleményem, hogy a flash tárolók gyártási technológiája egyre fejlődik. Egyre-másra dobják a piacra az olyan notikat, amikben csak flash van háttértárnak. Gondolom, legalább néhány év használatra szánják őket.
    A pendrájvok ára eszméletlen nagyot zuhant. Most egy 16-os 7-8 ezerben kerül!
    Én most a routerhez egy 16G-s pent használok a megosztáshoz és az ftp-hez, és külön egy 4 G-st a swapnak (2x512 Mb) és az /opt-nak.
    Így a fontosabb adatok a 16-oson -úgymond- biztonságos helyen vannak, mert azt nem írja-olvassa folyamatosan. Ha meg a 4-es megadja magát akkor kuka, és rakok egy másikat!

    Szerintem neked is a swapnak egy pent kéne rakni!

    Vajon a kapacitás azért 30G mert 2G-t a meghibásodott cellák javítására használja?

    [ Szerkesztve ]

  • meone

    tag

    válasz meone #5122 üzenetére

    Még egy probléma merült fel a végén mikor telepítem fel a WebUI-t. 7. fejezet
    Ami be van linkelve csomag azt hogyan tudom leszedni a routerre, vagy nem oda kell,
    vagy csak oda kell ki csomagolni? :F
    A lighttpd root-ja most a www mappa a külső vonyón?
    Illetve a configfájlt, hogy tudom meg szerkeszteni mi az elérési útja?

    Elnézést kérek mindenkitől a helyes írásom ért :)

  • Intruder2k5

    MODERÁTOR

    válasz meone #5125 üzenetére

    De, a routerre kell tenni, a www mappába, könyvtárral együtt... (már amennyiben az rtorrent mappára gondoltál) Természetesen kitömörítve.
    Hogy hogyan? Én feltelepítettem Midnight Commandert, azt használom a routeren másolásra.
    De másik megoldás, hogy ideiglenesen mountolod a www root-ot a samba alá, és akkor windows-ból is tudod másolni.
    Igen, a lighttpd root, a www mappa.

    A lighttpd konfig file szerkesztése (ha erre gondoltál):

    vi /opt/etc/lighttpd/lighttpd.conf

  • Intruder2k5

    MODERÁTOR

    válasz Digger #5124 üzenetére

    "legnagyobb bibje, hogy csak korlátozott számban írható"

    Nem tudom... Az az igazság, hogy nekem az első, 32 MB-os pendrive-om a mai napig kifogástalanul működik. Azt hiszem, hogy 10 ezer HUF körül volt az ára anno...:-)
    Pedig az már sokszor volt írva. És hogy őszinte legyek, nem láttam még "bad sector"-os pendrive-ot egyet sem. Én is olvastam sokat erről a dologról, de még soha nem tapasztaltam.
    Szerintem nem olyan komoly a helyzet, mint ahogyan mondják.
    Ahogy mondod is, több notebook-ban is flash tároló van, azok is XP-t futtatnak, az is swappel, és még sincs semmi bajuk. Na és ha mégis lesz? Most veszek egyet, mire az esetleg meghibásodik, addig egy árban lesz a HDD-vel. Kidobom, és veszek másikat... Ennyi.
    Viszont ha belegondolok, winyóm már halt meg több is. Sőt, melóhelyen is sorban döglöttek meg a Lenovo gépekben winyók, pedig ott még csak le sem állítjuk a gépéket. Mennek egyfolytában, úgyhogy nincs sok lemezindítás.
    mondjon mindenki amit akar, én nem hiszek ebben a flash memória parában. :-)

    De majd ha megdöglik a pendrive-om jelezni fogom itt.

    [ Szerkesztve ]

  • tlac

    nagyúr

    válasz Intruder2k5 #5127 üzenetére

    régebben volt vki aki írta itt, hogy kinyírt pár pendrive-ot a swappal
    de szerintem a mostani, márkásak már lehet jobban bírják

    nekem is van egy régi 128 megásom, de az nem ugyanaz, hogy néha írok rá

  • Intruder2k5

    MODERÁTOR

    válasz tlac #5128 üzenetére

    De igazából azt sem értem, hogy mi miatt lehet kevesebbet írni a flash memóriába?
    A memória tranzisztorok sokasága... Szerintem ez minden memóriára igaz.
    Akkor miért lenne kevesebb a flash memóriában lévő tranzisztorok élettartama, mint pl. a RAM-ban lévőké? Nem is beszélve arról, hogy egy PC memória sebessége MHz-ekben mérhető csak, viszont például egy TV készülékben sok GHz-en is működnek tranzisztorok, tehát sokszor nagyobb számban váltanak állapotot, mint egy memóriában, és mégis működnek akár 10-15 évig is.

    De végülis ez már nem vág teljesen ennek a topiknak a témájába, tehát nagyon nem is akarom ezt itt feszegetni. Csak úgy mellékesen említettem meg...

    A végeredmény az, hogy én továbbra is bízom a flash memórában, ami csendesebb, és kevesebb áramot vesz fel, mint a HDD, és ebben az esetben nekem ezek a fontosak.
    Engem sem zavar az alvásban, és a routert sem terheli annyira. :-)

    [ Szerkesztve ]

  • tlac

    nagyúr

    válasz Intruder2k5 #5129 üzenetére

    teljesen másképp működik a flash és a ram, az utóbbi felejt nagyon leegyszerűsítve, mint sok kondenzátor
    a flash-nek pedig megváltozik a szerkezete, belevési a digitális jelet magába és ha nincs áram alatt utána is megőrzi a tartalmát

    egyébként én is pendrive-on akarom majd futtatni a rendszert, de egyelőre a 128 megás csak arra volt jó, hogy megnézzem mire is a képes a router (és én a beállításokhoz :) )

  • Valaki tudna segíteni abban, hogy milyen webcamera jó a routerhez 2-3 ezer forint értékben?!

    Olvastam a listát, amit itt a fórumon találtam, de bitang drágák a készülékek és nem is feltétlenül beszerezhetők:(

    Valakinek működő tapasztalata ?!:)

    A kicsire nem adunk... a nagyot meg leszarjuk!

  • Digger

    senior tag

    válasz Intruder2k5 #5127 üzenetére

    Szerintem nem off a téma az SSD téma!
    Ne értsd félre, nem lehúzni akarom az SSD-ket! Szerintem ez a jövő!
    Amiket írtam, azt én is csak olvastam. Még nekem sem ment tönkre pendrive-om. És -mint írtam- én egy 16-ost és egy 4-est használok.Majd ha lesz pénzem, valoszinűleg én is veszek egy hasonló SSD-t.
    Egyébként itt olvasható egy teszt ami kb. fél éve íródott. Azóta az árak eszméletlen nagyot estek! :C

  • meone

    tag

    válasz Intruder2k5 #5126 üzenetére

    Mindent értek csak egy a gondom.

    Idézet a szövegből: Csomagoljuk ki a lighttpd root-ja alá mundjuk az rtorrent könyvtárba, aztán szerkesszük meg a config.php-t.

    Ennek az elérési útja hol található?
    A többit már meg tudom csinálni csak ez holvan, azt nemtudom. :F

    Elnézést kérek mindenkitől a helyes írásom ért :)

  • Intruder2k5

    MODERÁTOR

    válasz meone #5133 üzenetére

    Amennyiben valóban a lighttpd root-ja alá csomagolod ki az rtorrent könyvtárba, ahogy írtad is, akkor ott lesz a config.php is.
    Tehát ebben az esetben a parancs a következő:

    vi /opt/etc/samba/Share/www/rtorrent/config.php

  • meone

    tag

    válasz Intruder2k5 #5134 üzenetére

    A webUI ezt dobja ki mit tegyek?
    [21:30:51] Bad response: (500) <?xml version="1.0" encoding="iso-8859-1"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <title>500 - Internal Server Error</title> </head> <body> <h1>500 - Internal Server Error</h1> </body> </html>

    [ Szerkesztve ]

    Elnézést kérek mindenkitől a helyes írásom ért :)

  • Intruder2k5

    MODERÁTOR

    válasz meone #5135 üzenetére

    Sajnos, mint már többször mondtam is neked, én sem vagyok igazán szaki, csak a leírásokból dolgoztam én is. De nekem működik, pár hete már használom, és ezt a hibaüzit akkor szoktam kapni, mikor leáll az rtorrent. Ez olyankor szokott lenni, ha valami különleges karakter van a torrent nevében, vagy a kimeneti file nevében. igaz, hogy nem mindig... Pontosan még nem tudtam meghatározni, hogy mikor is következik be.
    Mondjuk neked most semmilyen torrent nincs még benne, de feltételezem, hogy nálad sem fut az rtorrent.
    Próbáld a következő parancsot:

    /opt/etc/init.d/S99rtorrent start

    Vagy esetleg:

    /opt/etc/init.d/S99rtorrent restart

    Ha ez megvan akkor F5 a böngészőben. Ha nem megy, akkor passzolom...

  • meone

    tag

    válasz Intruder2k5 #5136 üzenetére

    Én is abból dolgoztam de még sem megy,
    úgyhogy marad a totózgatás mi nem jó meg mi igen.
    Kipróbálam mind a két scriptet magában egyikse jó.
    Úgyhogy öteletelek még milehet a gond.

    Elnézést kérek mindenkitől a helyes írásom ért :)

  • meone

    tag

    válasz meone #5137 üzenetére

    még mindig nem tökéletes:
    A hiba még mindig ugyan az a webUI-nál.
    ps -ax -re meg ez a válasza a programnak:

    [root@001346178395 root]$ ps -ax
    Warning: bad ps syntax, perhaps a bogus '-'? See http://procps.sf.net/faq.html
    PID TTY STAT TIME COMMAND
    1 ? S 0:01 /sbin/init
    2 ? S 0:00 [keventd]
    3 ? SN 0:00 [ksoftirqd_CPU0]
    4 ? S 0:00 [kswapd]
    5 ? S 0:00 [bdflush]
    6 ? S 0:00 [kupdated]
    7 ? S 0:00 [mtdblockd]
    61 ? S 0:00 telnetd
    62 ? S 0:00 httpd eth1
    68 ? S 0:00 [dnsmasq]
    69 ? S 0:00 syslogd -m 0 -O /tmp/syslog.log -S -l 7
    70 ? S 0:00 klogd
    75 ? S 0:00 [khubd]
    83 ? Ss 0:00 lpd
    85 ? Ss 0:00 p9100d -f /dev/usb/lp0 0
    89 ? Ss 0:00 waveservermain
    91 ? Ss 0:00 rcamdmain
    95 ? S 0:00 [usb-storage-0]
    96 ? S 0:00 [scsi_eh_0]
    108 ? Ss 0:00 infosvr br0
    109 ? Ss 0:00 watchdog
    112 ? Ss 0:00 ntp
    118 ? S 0:00 [kjournald]
    124 ? S 0:00 dropbear
    134 ? Ss 0:00 /usr/sbin/smbd -D -l /opt/var/log/smbd.log -s /opt/et
    136 ? Ss 0:00 /usr/sbin/nmbd -D -n ASUS -o -l /tmp -s /opt/etc/samb
    153 ? S 0:00 [kjournald]
    161 ? S 0:00 /opt/sbin/lighttpd -f /opt/etc/lighttpd/lighttpd.conf
    162 ? Ss 0:00 /opt/bin/php-fcgi
    163 ? Ss 0:00 /opt/bin/php-fcgi
    164 ? Ss 0:00 /opt/bin/php-fcgi
    165 ? Ss 0:00 /opt/bin/php-fcgi
    166 ? S 0:00 /opt/bin/php-fcgi
    167 ? S 0:00 /opt/bin/php-fcgi
    168 ? S 0:00 /opt/bin/php-fcgi
    169 ? S 0:00 /opt/bin/php-fcgi
    175 ? S 0:00 upnp -D -L br0 -W eth1
    269 ? Ss 0:00 SCREEN -S -X screen rtorrent
    271 pts/2 Ss+ 0:00 rtorrent
    272 ? Ss 0:00 dropbear
    273 pts/0 Ss 0:00 -sh
    277 pts/0 R+ 0:00 ps -ax

    [ Szerkesztve ]

    Elnézést kérek mindenkitől a helyes írásom ért :)

  • Intruder2k5

    MODERÁTOR

    válasz meone #5138 üzenetére

    Ez hiányzik belőle:

    214 pts/1 SNs+ 87:41 /opt/bin/rtorrent -n -o import=/opt/etc/rtorrent.conf

  • Intruder2k5

    MODERÁTOR

    válasz Intruder2k5 #5139 üzenetére

    Nekem ez van:

    [root-r@ROUTER root]$ ps -ax
    Warning: bad ps syntax, perhaps a bogus '-'? See http://procps.sf.net/faq.html
    PID TTY STAT TIME COMMAND
    1 ? S 0:02 /sbin/init
    2 ? S 0:00 [keventd]
    3 ? SN 1:33 [ksoftirqd_CPU0]
    4 ? S 1:09 [kswapd]
    5 ? S 0:00 [bdflush]
    6 ? S 0:31 [kupdated]
    7 ? S 0:08 [mtdblockd]
    61 ? S 0:00 telnetd
    62 ? S 0:01 httpd vlan1
    67 ? S 0:01 syslogd -m 0 -O /tmp/syslog.log -S -l 7
    68 ? S 0:02 klogd
    73 ? S 0:13 [dnsmasq]
    75 ? S 0:00 [khubd]
    83 ? Ss 0:00 lpd
    85 ? Ss 0:00 p9100d -f /dev/usb/lp0 0
    89 ? Ss 0:00 waveservermain
    93 ? S 2:57 [usb-storage-0]
    94 ? S 0:00 [scsi_eh_0]
    107 ? S 0:04 udhcpc -i vlan1 -p /var/run/udhcpc0.pid -s /tmp/udhcpc -b
    108 ? Ss 0:03 pppd file /tmp/ppp/options.wan0
    110 ? Ss 0:00 infosvr br0
    111 ? Ss 0:04 watchdog
    114 ? Ss 0:00 ntp
    136 ? S 0:00 [kjournald]
    143 ? S 0:06 [kjournald]
    149 ? S 0:00 dropbear
    159 ? S 4:51 /opt/sbin/lighttpd -f /opt/etc/lighttpd/lighttpd.conf
    163 ? Ss 0:00 /opt/bin/php-fcgi
    164 ? Ss 0:00 /opt/bin/php-fcgi
    165 ? Ss 0:00 /opt/bin/php-fcgi
    166 ? Ss 0:00 /opt/bin/php-fcgi
    167 ? S 0:01 /opt/bin/php-fcgi
    168 ? S 0:00 /opt/bin/php-fcgi
    170 ? S 0:05 /opt/bin/php-fcgi
    172 ? Ss 0:00 /usr/sbin/smbd -D -l /opt/var/log/smbd.log -s /opt/etc/samba/smb.conf
    179 ? Ss 0:45 /usr/sbin/nmbd -D -n ROUTER -o -l /tmp -s /opt/etc/samba/smb.conf
    209 ? Ss 0:08 /opt/bin/SCREEN -dm -S rtorrent
    211 pts/0 Ss+ 0:00 /bin/sh
    214 pts/1 RNs+ 87:43 /opt/bin/rtorrent -n -o import=/opt/etc/rtorrent.conf
    6625 ? S 0:07 /opt/bin/php-fcgi
    6889 ? S 0:01 [smbd]
    7115 ? Ss 0:02 dropbear
    7116 pts/2 Ss 0:00 -sh
    7224 ? S 0:00 upnp -D -L br0 -W ppp0
    7272 pts/2 R+ 0:00 ps -ax

    [ Szerkesztve ]

  • meone

    tag

    válasz Intruder2k5 #5139 üzenetére

    azt én nagyon jól tudom :) de a konfigban keresendő a hiba még mindig.
    Be tudnád rakni a konfigodnak egy részét.
    SCRIPTNAME=/etc/init.d/$NAME
    Eddig a részig mindent

    Elnézést kérek mindenkitől a helyes írásom ért :)

  • B. Valentine

    csendes tag

    Sziasztok.
    Segítséget kérnék. A lighttpd de a phpinfo nem:F, gondolom emiatt nem meg a webui sem :Y Fut Az rtorrent, a parancssorba tudok torrentet hozzá adni és rendessen működik is.
    A linuxal még csak most ismerkedek.
    Segítségeteket elölre is köszönöm.

    lighttpd.conf:

    # lighttpd configuration file
    #
    # use it as a base for lighttpd 1.0.0 and above
    #
    # $Id: lighttpd.conf 2976 2006-03-06 23:31:44Z bzhou $

    ############ Options you really have to take care of ####################

    ## modules to load
    # at least mod_access and mod_accesslog should be loaded
    # all other module should only be loaded if really neccesary
    # - saves some time
    # - saves memory
    server.modules = (
    # "mod_rewrite",
    # "mod_redirect",
    # "mod_alias",
    "mod_access",
    # "mod_cml",
    # "mod_trigger_b4_dl",
    # "mod_auth",
    # "mod_status",
    # "mod_setenv",
    "mod_fastcgi",
    # "mod_proxy",
    # "mod_simple_vhost",
    # "mod_evhost",
    # "mod_userdir",
    # "mod_cgi",
    # "mod_compress",
    # "mod_ssi",
    # "mod_usertrack",
    # "mod_expire",
    # "mod_secdownload",
    # "mod_rrdtool",
    "mod_scgi",
    "mod_accesslog" )

    ## a static document-root, for virtual-hosting take look at the
    ## server.virtual-* options
    server.document-root = "/opt/etc/samba/Share/www"

    ## where to send error-messages to
    server.errorlog = "/opt/etc/samba/Share/www/log/error.log"

    # files to check for if .../ is requested
    index-file.names = ( "index.php", "index.html",
    "index.htm", "default.htm" )

    ## set the event-handler (read the performance section in the manual)
    # server.event-handler = "freebsd-kqueue" # needed on OS X

    # mimetype mapping
    mimetype.assign = (
    ".pdf" => "application/pdf",
    ".sig" => "application/pgp-signature",
    ".spl" => "application/futuresplash",
    ".class" => "application/octet-stream",
    ".ps" => "application/postscript",
    ".torrent" => "application/x-bittorrent",
    ".dvi" => "application/x-dvi",
    ".gz" => "application/x-gzip",
    ".pac" => "application/x-ns-proxy-autoconfig",
    ".swf" => "application/x-shockwave-flash",
    ".tar.gz" => "application/x-tgz",
    ".tgz" => "application/x-tgz",
    ".tar" => "application/x-tar",
    ".zip" => "application/zip",
    ".mp3" => "audio/mpeg",
    ".m3u" => "audio/x-mpegurl",
    ".wma" => "audio/x-ms-wma",
    ".wax" => "audio/x-ms-wax",
    ".ogg" => "application/ogg",
    ".wav" => "audio/x-wav",
    ".gif" => "image/gif",
    ".jpg" => "image/jpeg",
    ".jpeg" => "image/jpeg",
    ".png" => "image/png",
    ".xbm" => "image/x-xbitmap",
    ".xpm" => "image/x-xpixmap",
    ".xwd" => "image/x-xwindowdump",
    ".css" => "text/css",
    ".html" => "text/html",
    ".htm" => "text/html",
    ".js" => "text/javascript",
    ".asc" => "text/plain",
    ".c" => "text/plain",
    ".cpp" => "text/plain",
    ".log" => "text/plain",
    ".conf" => "text/plain",
    ".text" => "text/plain",
    ".txt" => "text/plain",
    ".dtd" => "text/xml",
    ".xml" => "text/xml",
    ".mpeg" => "video/mpeg",
    ".mpg" => "video/mpeg",
    ".mov" => "video/quicktime",
    ".qt" => "video/quicktime",
    ".avi" => "video/x-msvideo",
    ".asf" => "video/x-ms-asf",
    ".asx" => "video/x-ms-asf",
    ".wmv" => "video/x-ms-wmv",
    ".bz2" => "application/x-bzip",
    ".tbz" => "application/x-bzip-compressed-tar",
    ".tar.bz2" => "application/x-bzip-compressed-tar"
    )

    # Use the "Content-Type" extended attribute to obtain mime type if possible
    #mimetype.use-xattr = "enable"

    ## send a different Server: header
    ## be nice and keep it at lighttpd
    # server.tag = "lighttpd"

    #### accesslog module
    accesslog.filename = "/opt/etc/samba/Share/www/log/access.log"

    ## deny access the file-extensions
    #
    # ~ is for backupfiles from vi, emacs, joe, ...
    # .inc is often used for code includes which should in general not be part
    # of the document-root
    url.access-deny = ( "~", ".inc" )

    $HTTP["url"] =~ "\.pdf$" {
    server.range-requests = "disable"
    }

    ##
    # which extensions should not be handle via static-file transfer
    #
    # .php, .pl, .fcgi are most often handled by mod_fastcgi or mod_cgi
    static-file.exclude-extensions = ( ".fcgi", ".php", ".pl", ".py", ".rb" )

    ######### Options that are good to be but not neccesary to be changed #######

    ## bind to port (default: 80)
    server.port = 8081

    ## bind to localhost (default: all interfaces)
    #server.bind = "grisu.home.kneschke.de"

    ## error-handler for status 404
    #server.error-handler-404 = "/error-handler.html"
    #server.error-handler-404 = "/error-handler.php"

    ## to help the rc.scripts
    server.pid-file = "/var/run/lighttpd.pid"

    ###### virtual hosts
    ##
    ## If you want name-based virtual hosting add the next three settings and load
    ## mod_simple_vhost
    ##
    ## document-root =
    ## virtual-server-root + virtual-server-default-host + virtual-server-docroot
    ## or
    ## virtual-server-root + http-host + virtual-server-docroot
    ##
    #simple-vhost.server-root = "/home/weigon/wwwroot/servers/"
    #simple-vhost.default-host = "grisu.home.kneschke.de"
    #simple-vhost.document-root = "/pages/"

    ##
    ## Format: <errorfile-prefix><status-code>.html
    ## -> ..../status-404.html for 'File not found'
    #server.errorfile-prefix = "/home/weigon/projects/lighttpd/doc/status-"

    ## virtual directory listings
    #dir-listing.activate = "enable"

    ## enable debugging
    #debug.log-request-header = "enable"
    #debug.log-response-header = "enable"
    #debug.log-request-handling = "enable"
    #debug.log-file-not-found = "enable"

    ### only root can use these options
    #
    # chroot() to directory (default: no chroot() )
    #server.chroot = "/"

    ## change uid to <uid> (default: don't care)
    #server.username = "nobody"

    ## change uid to <uid> (default: don't care)
    #server.groupname = "nobody"

    #### compress module
    #compress.cache-dir = "/tmp/lighttpd/cache/compress/"
    #compress.filetype = ("text/plain", "text/html")

    #### proxy module
    ## read proxy.txt for more info
    #proxy.server = ( ".php" =>
    # ( "localhost" =>
    # (
    # "host" => "192.168.0.101",
    # "port" => 80
    # )
    # )
    # )

    #### fastcgi module
    ## read fastcgi.txt for more info
    fastcgi.server = ( ".php" =>
    ((
    "host" => "192.168.1.1",
    "port" => 1026,
    ))
    )

    #### CGI module
    #cgi.assign = ( ".pl" => "/usr/bin/perl",
    # ".cgi" => "/bin/sh" )
    #

    scgi.server = ("/RPC2" =>
    ( "127.0.0.1" =>
    ( "host" => "127.0.0.1",
    "port" => 5000,
    "check-local" => "disable"
    )
    )
    )

    #### SSL engine
    #ssl.engine = "enable"
    #ssl.pemfile = "server.pem"

    #### status module
    #status.status-url = "/server-status"
    #status.config-url = "/server-config"

    #### auth module
    ## read authentication.txt for more info
    #auth.backend = "plain"
    #auth.backend.plain.userfile = "/opt/etc/lighttpd/lighttpd.user"
    #auth.backend.plain.groupfile = "lighttpd.group"

    #auth.backend.ldap.hostname = "localhost"
    #auth.backend.ldap.base-dn = "dc=my-domain,dc=com"
    #auth.backend.ldap.filter = "(uid=$)"

    #auth.require = ( "/rtorrent/" =>
    # (
    # "method" => "basic",
    # "realm" => "Vedett terulet!",
    # "require" => "user=root"
    # ),
    # "/cgi-bin" =>
    # (
    # "method" => "basic",
    # "realm" => "Vedett terulet!",
    # "require" => "user=root"
    # )
    # )

    #### url handling modules (rewrite, redirect, access)
    #url.rewrite = ( "^/$" => "/server-status" )
    #url.redirect = ( "^/wishlist/(.+)" => "http://www.123.org/$1" )
    #### both rewrite/redirect support back reference to regex conditional using %n
    #$HTTP["host"] =~ "^www\.(.*)" {
    # url.redirect = ( "^/(.*)" => "http://%1/$1" )
    #}

    #
    # define a pattern for the host url finding
    # %% => % sign
    # %0 => domain name + tld
    # %1 => tld
    # %2 => domain name without tld
    # %3 => subdomain 1 name
    # %4 => subdomain 2 name
    #
    #evhost.path-pattern = "/home/storage/dev/www/%3/htdocs/"

    #### expire module
    #expire.url = ( "/buggy/" => "access 2 hours", "/asdhas/" => "access plus 1 seconds 2 minutes")

    #### ssi
    #ssi.extension = ( ".shtml" )

    #### rrdtool
    #rrdtool.binary = "/opt/bin/rrdtool"
    #rrdtool.db-name = "/var/www/lighttpd.rrd"

    #### setenv
    #setenv.add-request-header = ( "TRAV_ENV" => "mysql://user@host/db" )
    #setenv.add-response-header = ( "X-Secret-Message" => "42" )

    ## for mod_trigger_b4_dl
    # trigger-before-download.gdbm-filename = "/home/weigon/testbase/trigger.db"
    # trigger-before-download.memcache-hosts = ( "127.0.0.1:11211" )
    # trigger-before-download.trigger-url = "^/trigger/"
    # trigger-before-download.download-url = "^/download/"
    # trigger-before-download.deny-url = "http://127.0.0.1/index.html"
    # trigger-before-download.trigger-timeout = 10

    ## for mod_cml
    ## don't forget to add index.cml to server.indexfiles
    # cml.extension = ".cml"
    # cml.memcache-hosts = ( "127.0.0.1:11211" )

    #### variable usage:
    ## variable name without "." is auto prefixed by "var." and becomes "var.bar"
    #bar = 1
    #var.mystring = "foo"

    ## integer add
    #bar += 1
    ## string concat, with integer cast as string, result: "www.foo1.com"
    #server.name = "www." + mystring + var.bar + ".com"
    ## array merge
    #index-file.names = (foo + ".php") + index-file.names
    #index-file.names += (foo + ".php")

    #### include
    #include /etc/lighttpd/lighttpd-inc.conf
    ## same as above if you run: "lighttpd -f /etc/lighttpd/lighttpd.conf"
    #include "lighttpd-inc.conf"

    #### include_shell
    #include_shell "echo var.a=1"
    ## the above is same as:
    #var.a=1

    S45php:

    #!/bin/sh

    export PHP_FCGI_CHILDREN=1
    PORT=1026
    BIN=/opt/bin/php-fcgi
    #/opt/etc/php.d

    case $1 in
    start)
    $BIN -b $PORT &
    ;;
    stop)
    kill Pidof phpM ;;
    *)
    echo "usage: $0 (start|stop)"
    exit 1
    esac

    /opt/etc/init.d/S45php start parancsra ez a válasz:
    Cannot bind/listen socket - [125] Address already in use.
    Couldn't create FastCGI listen socket on port 1026
    [admin@asus init.d]$ vi /opt/etc/init.d/S45php

  • Intruder2k5

    MODERÁTOR

    válasz meone #5141 üzenetére

    rtorrent.conf

    # This is an example resource file for rTorrent. Copy to
    # ~/.rtorrent.rc and enable/modify the options as needed. Remember to
    # uncomment the options you wish to enable.
    # Minumum amount of peers to connect per torrent, if available.
    min_peers = 20

    # Minumum amount of peers to connect per torrent.
    max_peers = 50

    # Same as above but for seeding completed torrents (-1 = same as downloading)
    #min_peers_seed = 10
    #max_peers_seed = 20

    # Maximum number of simultanious uploads per torrent.
    max_uploads = 2

    # Global download rate in KiB. “0? for unlimited.
    download_rate = 0

    # Global upload rate in KiB. “0? for unlimited.
    upload_rate = 16

    # Default directory to save downloaded files. Note it doesn’t support
    # space yet.
    directory = /opt/etc/samba/Share/torrent/work/

    # Watch a directory for new torrents, and stop those that have been deleted.
    #schedule = watch_directory,5,5,load_start=/opt/share/torrent/dl/*.torrent
    #schedule = untied_directory,5,5,stop_untied=

    # Close torrents when diskspace is low.
    #schedule = low_diskspace,5,60,close_low_diskspace=100M

    # Default session directory. Make sure you don’t run multiple instance
    # of rtorrent using the same session directory. Perhaps using a
    # relative path?
    session = /opt/etc/samba/Share/torrent/session

    # The ip address reported to the tracker.
    #ip = rakshasa

    # The ip address the listening socket and outgoing connections is
    # bound to.

    # Port range to use for listening.
    port_range = 6888-6888

    # Start opening ports at a random position within the port range.
    #port_random = no

    # Check hash for finished torrents. Might be usefull until the bug is
    # fixed that causes lack of diskspace not to be properly reported.
    check_hash = no

    # Set whetever the client should try to connect to UDP trackers.
    #use_udp_trackers = yes

    # Alternative calls to bind and ip that should handle dynamic ip’s.
    #schedule = ip_tick,0,1800,ip=rakshasa
    #schedule = bind_tick,0,1800,bind=rakshasa

    #
    # Do not modify the following parameters unless you know what you’re doing.
    #

    # Hash read-ahead controls how many MB to request the kernel to read
    # ahead. If the value is too low the disk may not be fully utilized,
    # while if too high the kernel might not be able to keep the read
    # pages in memory thus end up trashing.
    #hash_read_ahead = 10

    # Interval between attempts to check the hash, in milliseconds.
    #hash_interval = 100

    # Number of attempts to check the hash while using the mincore status,
    # before forcing. Overworked systems might need lower values to get a
    # decent hash checking rate.
    #hash_max_tries = 10

    # Max number of files to keep open simultaniously.
    #max_open_files = 128

    # Number of sockets to simultaneously keep open.
    #max_open_sockets =

    # Example of scheduling commands: Switch between two ip’s every 5
    # seconds.
    #schedule = “ip_tick1,5,10,ip=torretta”
    #schedule = “ip_tick2,10,10,ip=lampedusa”

    # Remove a scheduled event.
    #schedule_remove = “ip_tick1?

    # Stop torrents when reaching upload ratio in percent,
    # when also reaching total upload in bytes, or when
    # reaching final upload ratio in percent.
    # example: stop at ratio 2.0 with at least 200 MB uploaded, or else ratio 20.0
    #schedule = ratio,60,60,”stop_on_ratio=200,200M,2000?
    #schedule = ratio,30,60,stop_on_ratio=200

    # Encryption options, set to none (default) or any combination of the following:
    # allow_incoming, try_outgoing, require, require_RC4, enable_retry, prefer_plaintext
    #
    # The example value allows incoming encrypted connections, starts unencrypted
    # outgoing connections but retries with encryption if they fail, preferring
    # plaintext to RC4 encryption after the encrypted handshake
    #
    encryption = allow_incoming,enable_retry,prefer_plaintext

    # Enable DHT support for trackerless torrents or when all trackers are down.
    # May be set to “disable” (completely disable DHT), “off” (do not start DHT),
    # “auto” (start and stop DHT as needed), or “on” (start DHT immediately).
    # The default is “off”. For DHT to work, a session directory must be defined.
    #
    # dht = auto

    # UDP port to use for DHT.
    #
    # dht_port = 6885

    # Enable peer exchange (for torrents not marked private)
    #
    # peer_exchange = yes

    scgi_port = 127.0.0.1:5000

  • Intruder2k5

    MODERÁTOR

    válasz Intruder2k5 #5143 üzenetére

    S99rtorrent

    #!/bin/sh

    CONFIG="/opt/etc/rtorrent.conf"
    OPTIONS="-n -o import=${CONFIG}"
    BASE="/opt/etc/samba/Share/torrent"
    SRNAME=rtorrent
    PATH=/opt/bin:/opt/sbin:/usr/bin:/sbin:/bin:/usr/sbin
    NAME=rtorrent
    EXEC=/opt/bin/$NAME
    EXSC=/opt/bin/screen

    checkcnfg() {
    if ! [ -x $EXSC ]; then
    logger -t $NAME "screen not found."
    return 3
    fi
    exists=0
    for i in `echo "$PATH" | tr ':' '\n'` ; do
    if [ -f $i/$NAME ] ; then
    exists=1
    break
    fi
    done
    if [ $exists -eq 0 ] ; then
    logger -t $NAME "cannot find $NAME binary in PATH $PATH"
    exit 3
    fi
    if ! [ -r "${CONFIG}" ] ; then
    logger -t $NAME "cannot find readable config $CONFIG"
    exit 3
    fi
    session=`getsession "$CONFIG"`
    if ! [ -d "${session}" ] ; then
    logger -t $NAME "cannot find readable session directory $session from config $CONFIG"
    exit 3
    fi
    }

    getsession() {
    session=`awk '/^[[:space:]]*session[[:space:]]*=[[:space:]]*/{print($3)}' "$CONFIG"`
    echo $session
    }

    getprange() {
    ports=`awk '/^[[:space:]]*port_range[[:space:]]*=[[:space:]]*/{print($3)}' "$CONFIG" | sed "s/-/ /"`
    echo $ports
    }

    getdhtport() {
    dht_port=`awk '/^[[:space:]]*dht_port[[:space:]]*=[[:space:]]*/{print($3)}' "$CONFIG"`
    echo $dht_port
    }

    fwopen() {
    DHT_PORT=`getdhtport "$CONFIG"`
    iptables -D INPUT -j DROP
    PORTS=$(seq `getprange "$CONFIG"`)
    for P in $PORTS; do
    iptables -I INPUT -i "$1" -p tcp --syn --dport $P -j ACCEPT
    done
    if [ $DHT_PORT ]; then
    iptables -I INPUT -i "$1" -p tcp --dport $DHT_PORT -j ACCEPT
    fi
    iptables -A INPUT -j DROP
    }

    fwclose() {
    DHT_PORT=`getdhtport "$CONFIG"`
    PORTS=$(seq `getprange "$CONFIG"`)
    for P in $PORTS; do
    iptables -D INPUT -i "$1" -p tcp --syn --dport $P -j ACCEPT
    done
    if [ $DHT_PORT ]; then
    iptables -D INPUT -i "$1" -p tcp --dport $DHT_PORT -j ACCEPT
    fi
    }

    d_start() {
    [ -d "${BASE}" ] && cd "${BASE}"
    fwopen
    stty stop undef && stty start undef
    $EXSC -ls | grep ".$SRNAME[[:space:]]" > /dev/null || $EXSC -dm -S $SRNAME
    # without sleep screen may not be sometimes ready to start anything
    sleep 3
    $EXSC -S "$SRNAME" -X screen nice $EXEC $OPTIONS
    for I in 0:3 ; do
    if [ -n "`pidof $NAME`" ]; then
    logger -t $NAME "Started PID: `pidof $NAME`"
    break
    fi
    sleep 1
    done
    }

    d_stop() {
    fwclose
    session=`getsession "$CONFIG"`
    if ! [ -s ${session}/rtorrent.lock ] ; then
    logger -t $NAME "Lock file failed: ${session}/rtorrent.lock"
    return
    fi
    PID=`cat ${session}/rtorrent.lock | awk -F: '{print($2)}' | sed "s/[^0-9]//g"`
    if ps -A | grep -sq $PID.*rtorrent ; then # make sure the pid doesn't belong to another process
    kill -s INT $PID
    logger -t $NAME "Stopped PID: $PID"
    sleep 1
    for I in 0:5 ; do
    PSE=`ps -p $PID | grep "$PID"`
    if [ -z "$PSE" ]; then
    break
    fi
    sleep 1
    done
    fi
    SCSTOP=`$EXSC -list | grep "\.$SRNAME" | awk '{print($1)}' | sed "s/\.$SRNAME//"'`
    if [ -n "$SCSTOP" ]; then
    kill $SCSTOP
    logger -t $NAME "Stopped screen: $SCSTOP"
    fi
    }

    checkcnfg

    case "$1" in
    start)
    echo "Starting $NAME"
    d_start
    echo "."
    ;;
    stop)
    echo "Stopping $NAME"
    d_stop
    echo "."
    ;;
    restart|force-reload)
    echo "Restarting $NAME"
    d_stop
    sleep 1
    d_start
    echo "."
    ;;
    *)
    echo "Usage: $0 {start|stop|restart|force-reload}" >&2
    exit 1
    ;;
    esac

    exit 0

  • Intruder2k5

    MODERÁTOR

    válasz B. Valentine #5142 üzenetére

    A lighttpd-nek van egy error.log-ja... Abban mi van?
    Ebben a file-ban: /opt/etc/samba/Share/www/log/error.log

  • B. Valentine

    csendes tag

    válasz Intruder2k5 #5146 üzenetére

    Ezek az utolsó sorok:

    2009-01-10 19:50:43: (mod_fastcgi.c.1768) connect failed: Connection refused on unix:/tmp/php-fastcgi.socket-3
    2009-01-10 19:50:43: (mod_fastcgi.c.2956) backend died; we'll disable it for 5 seconds and send the request to another backend instead: reconnects: 0 load: 1
    2009-01-10 19:50:43: (mod_fastcgi.c.2722) child signaled: 11
    2009-01-10 19:50:44: (mod_fastcgi.c.2494) unexpected end-of-file (perhaps the fastcgi process died): pid: 1963 socket: unix:/tmp/php-fastcgi.socket-3
    2009-01-10 19:50:44: (mod_fastcgi.c.3282) child signaled: 11
    2009-01-10 19:50:44: (mod_fastcgi.c.3325) response not received, request sent: 976 on socket: unix:/tmp/php-fastcgi.socket-3 for /index.php , closing connect
    2009-01-10 19:52:03: (mod_fastcgi.c.1768) connect failed: Connection refused on unix:/tmp/php-fastcgi.socket-3
    2009-01-10 19:52:03: (mod_fastcgi.c.2956) backend died; we'll disable it for 5 seconds and send the request to another backend instead: reconnects: 0 load: 1
    2009-01-10 19:52:03: (mod_fastcgi.c.2722) child signaled: 11
    2009-01-10 19:52:03: (mod_fastcgi.c.2494) unexpected end-of-file (perhaps the fastcgi process died): pid: 1966 socket: unix:/tmp/php-fastcgi.socket-3
    2009-01-10 19:52:03: (mod_fastcgi.c.3282) child signaled: 11
    2009-01-10 19:52:03: (mod_fastcgi.c.3325) response not received, request sent: 976 on socket: unix:/tmp/php-fastcgi.socket-3 for /index.php , closing connect
    2009-01-10 20:14:40: (server.c.1465) server stopped by UID = 0 PID = 1985
    2009-01-10 20:18:59: (log.c.97) server started
    2009-01-10 20:19:09: (mod_fastcgi.c.2828) establishing connection failed: Connection refused socket: tcp:192.168.1.1:1026
    2009-01-10 20:19:10: (mod_fastcgi.c.3568) all handlers for /index.php on .php are down.
    2009-01-10 20:19:15: (mod_fastcgi.c.2769) fcgi-server re-enabled: tcp:192.168.1.1:1026
    2009-01-10 21:28:04: (mod_scgi.c.2248) establishing connection failed: Connection refused
    2009-01-10 21:28:04: (mod_scgi.c.2382) fcgi-server disabled: 127.0.0.1 5000
    2009-01-10 21:28:04: (mod_scgi.c.2763) all handlers for /RPC2 on /RPC2 are down.
    2009-01-10 21:29:05: (mod_scgi.c.2076) fcgi-server re-enabled: 127.0.0.1 5000

    Most nézem hogy a sok konfigurálás közbe kijavíthattam a hibát, mert most megy a php inf, de a webUI elindul betölt és egyből hibát ír:

    [22:46:56] WebUI started.
    [22:47:00] Bad response: (500) <?xml version="1.0" encoding="iso-8859-1"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <title>500 - Internal Server Error</title> </head> <body> <h1>500 - Internal Server Error</h1> </body> </html>

  • Intruder2k5

    MODERÁTOR

    válasz B. Valentine #5147 üzenetére

    És neked megy az rtorrent...? Oké, hogy az előbb ment, de most is megy?
    "ps -ax" parancs kimenete? Ott van az rtorrent?

    Olvasd az 5136-os hsz-t Te is :-)

    [ Szerkesztve ]

  • B. Valentine

    csendes tag

    Ha a webUI-ba nem is lehetne életet lehelni, de valahogy külsőleg, pl ntorrent vagy n2hell vagy hasonló.
    Az ntorrent conect-et ír, de nem tudok hozzá adni torrentet, illetve nem látom a futó torrenteket.
    Az n2hell pedig nem látja hogy fut az rtorrent :F

    Egyéb megoldások léteznek még? ha igen megköszönném, ha leírást is linkélnétek.

  • B. Valentine

    csendes tag

    válasz Intruder2k5 #5148 üzenetére

    Perzse 2 putty ablak van nyitva, egyiken screen -r -el fut a rtorrent, másikon meg configuráltam.

    ui: reboot után eutomatikusan elindul a rtorrent, csak a s45php nem, de ha manuálisan elindítom akkor működik a phpinfo. Közben rájöttem a mozilla szivatott, mert csak ráfrissítettem php indítóhívásra és ugyan azt az oldalt hozta( 500 internal error), nem pedig újrahívta.

    [ Szerkesztve ]

Új hozzászólás Aktív témák