• úvod
  • témata
  • události
  • tržiště
  • diskuze
  • nástěnka
  • přihlásit
    registrace
    ztracené heslo?
    DELVITLinux pro zacatecniky a obycejne uzivatele (NO FLAMES!)
    MRDAC_BEDEN
    MRDAC_BEDEN --- ---
    INDIAN: a:
    Re: Network Manager overwriting resolv.conf
    That didn't work for me. But there's another workaround, if you're using the ext2 filesystem, use the chattr command to make /etc/resolv.conf immutable, so no process can change it
    Code:

    $ sudo chattr +i /etc/resolv.conf

    now even root can't change the file until that attribute is removed.
    MRDAC_BEDEN
    MRDAC_BEDEN --- ---
    INDIAN: nebo:
    Re: Network Manager overwriting resolv.conf
    Found a workaround. I opened /etc/dhcp3/dhclient.conf

    Uncommented the line that starts with "#prepend domain-name-servers" and added my DNS server to it. Then did: sudo /etc/init.d/dhcdbd restart
    MRDAC_BEDEN
    MRDAC_BEDEN --- ---
    INDIAN:
    1) at vyzkousi ping 8.8.8.8 - at je jistota ze je chyba jenom v prideleni DNS serveru
    2) networking restart
    3) nastavit /etc/resolv.conf na read-only }nejjednodussi reseni...
    INDIAN
    INDIAN --- ---
    kamoska ma na notasu s ubuntu problem s pripojenim k netu, bohuzel je daleko, resime to akorat po telefonu.

    je pripojena pres adsl modem normalne na ethernet, ping na modem v poho, do jeho nastaveni se dostane taky, modem je k netu pripojenej korektne.

    na net se ale nedostane, resp. dostane az po /etc/init.d/networking restart

    /etc/resolv.conf je prazdnej, resp. obsahuje akorat zakomentovanej text "generated by NetworkManager"
    VLASTIS
    VLASTIS --- ---
    HONCKA: na 99% PANTARIL:
    PANTARIL
    PANTARIL --- ---
    HONCKA: jeste doplnim ze krome firewallu muze pripojeni blokovat i spatne nastaveny soubor /etc/hosts.allow resp. /etc/hosts.deny

    u me je v /etc/hosts.allow explicitne uvedeno:

    sshd: ALL 
    

    coz povoluje pristup odevsad
    HONCKA
    HONCKA --- ---
    PUPU: dik uz jsem to rozbeh, bylo to nastavenim na firewallu
    DELVIT
    DELVIT --- ---
    Flame vyvolavajici prispevky byly smazany: zomb, colben maji read-only na tyden. Myslim, ze jedno jedine pravidlo je dost jednoduche na pochopeni.

    CRS1138: No nevim, mozna ano. Priznam se, ze jsem to nechtel studovat, kde co s cim souvisi protoze to nedavalo smysl, kdyz jsem to zbezne projel. Kdyz to zformatujes, tak aby tomu bylo rozumnet, tak zvysis urcite sve sance, ze ti nekdo poradi a bude se tomu venovat.
    PUPU
    PUPU --- ---
    HONCKA: v tom pripade tam bud je jeste jiny firewall, o kterem nevis, nebo se pripojujes jinam. zkus si pustit tcpdump na port 22 a divat se, co se deje
    HONCKA
    HONCKA --- ---
    mam pocitac se SUSE 11 slouzici jako router/firewall a nejde mi pripojit pres ssh (putty), pritom sshd mam nahozeny, firewall mam otevrenej, skousel jsem to z venku i zevnitr a nic, porad mi to pise connection refused
    CRS1138
    CRS1138 --- ---
    DELVIT: jedna se o postup, ktery jsem pouzil pri instalaci, je slozen z prikazu, ktere jsem zadal a z odpovedi v CLI. Uznavam, ze trocha formatovani by asi prospela prehlednosti, otazkou zustava, budes mi umet poradit, kdyz si s tim tu praci dam?
    DELVIT
    DELVIT --- ---
    CRS1138: neni problem v jazyku, tomu postu jako celek nerozumim. Je to log, neco co si zkousel a nejake odpovedi k tomu?
    CRS1138
    CRS1138 --- ---
    DELVIT: ok, ktere casti nerozumis, rad to prelozim...
    DELVIT
    DELVIT --- ---
    CRS1138: Kdyby sis dal praci a trochu to prepsal pro nyx asi by se lide snazili ti i pomoci.
    COLBEN
    COLBEN --- ---
    DAGO: lol, se musim smat, ze nekdo tohle resi u backtracku... to pouzivas jinak nez z usb?:)
    WIL_M
    WIL_M --- ---
    COLBEN: paráda, děkuju :)
    COLBEN
    COLBEN --- ---
    WIL_M: muj taky ne :)) sorry u sortu je to -t ci --field-separator .. pro vysvetleni sort -u je podobny jako sort | uniq s tim rozdilem, ze kdyz mu podhodis parametr key tak mu rikas, ze klic podle kteryho to ma sortovat plus vyhazovat duplicity neni celym radkem, ale napriklad v tvem pripadu 2. az 5. blok znaku (a tim delimiterem nastavujes znak, kterym jsou oddelovany jednotlive bloky)
    WIL_M
    WIL_M --- ---
    COLBEN: --delim sort u mne nezná, pohledám, díky! :)
    CRS1138
    CRS1138 --- ---
    Ptal jsem se i jinde, ale treba mi tu bude nekdo umet poradit...

    Hi!
    I have Synology DS-110j,and Eaton Ellipse1000 connected via USB.

    I've got following problem with USB, unfortunatelly I can't find the config.out as I have installed apcupsd via ipkg.

    [ 0.000000] Linux version 2.6.32.12 (root@image13) (gcc version 4.2.1) #1354 Sat Oct 23 00:49:24 CST 2010
    [ 0.000000] CPU: Feroceon 88FR131 [56251311] revision 1 (ARMv5TE), cr=00053977
    [ 0.000000] CPU: VIVT data cache, VIVT instruction cache
    [ 0.000000] Machine: Feroceon-KW
    [ 0.000000] Using UBoot passing parameters structure
    [ 0.000000] Sys Clk = 200000000, Tclk = 166666667
    [ 0.000000] Synology Board ID: 21
    [ 0.000000] Memory policy: ECC disabled, Data cache writeback
    [ 0.000000] On node 0 totalpages: 32768
    [ 0.000000] free_area_init_node: node 0, pgdat c03c86d8, node_mem_map c0420000


    APCUPSD version 3.14.8

    UPS - EATON Ellipse 1000 - USB cable

    To use with USB port I did

    CODE:
    ipkg install apcupsd
    cd /opt/etc/apcupsd
    sed -i 's/UPSCABLE smart/UPSCABLE usb/g' /opt/etc/apcupsd/apcupsd.conf
    sed -i 's/UPSTYPE apcsmart/UPSTYPE usb/g' /opt/etc/apcupsd/apcupsd.conf
    sed -i 's/\/dev\/ttyS0//g' /opt/etc/apcupsd/apcupsd.conf
    mkdir /opt/var/lock
    chmod 777 /opt/var/lock
    touch /opt/var/log/apcupsd.events
    touch /opt/var/log/apcupsd.status




    CODE:
    cat /proc/bus/usb/devices


    T: Bus=01 Lev=02 Prnt=02 Port=00 Cnt=01 Dev#= 3 Spd=1.5 MxCh= 0
    D: Ver= 1.10 Cls=00(>ifc ) Sub=00 Prot=00 MxPS= 8 #Cfgs= 1
    P: Vendor=06da ProdID=0003 Rev= 4.00
    S: Manufacturer=OMRON
    S: Product=USB UPS
    C:* #Ifs= 1 Cfg#= 1 Atr=a0 MxPwr=100mA
    I:* If#= 0 Alt= 0 #EPs= 1 Cls=03(HID ) Sub=00 Prot=00 Driver=usbhid
    E: Ad=81(I) Atr=03(Int.) MxPS= 8 Ivl=20ms

    CODE:
    dmesg | grep hiddev


    usbcore: registered new interface driver hiddev
    hiddev104: USB HID v1.11 Device [OMRON USB UPS] on usb-ehci_marvell.70059-1.1

    All seems good!
    When i try it:

    CODE:
    apctest




    2010-08-14 02:49:58 apctest 3.14.8 (16 January 2010) unknown
    Checking configuration ...
    Attached to driver: usb
    sharenet.type = DISABLE
    cable.type = USB_CABLE

    You are using a USB cable type, so I'm entering USB test mode
    mode.type = USB_UPS
    Setting up the port ...
    apctest FATAL ERROR in linux-usb.c at line 609
    Cannot find UPS device --
    For a link to detailed USB trouble shooting information,
    please see http://www.apcupsd.com/support.html.
    apctest error termination completed


    In APC's manual
    Problem
    USB driver linux-usb.c fails to compile, reporting errors about HID_MAX_USAGES undefined. This is due to a defect in the linux kernel hiddev.h header file on 2.6.5 and higher kernels.
    Workaround
    Upgrade to apcupsd-3.10.14 or higher. These versions contain a workaround for the defect.
    BUT i USE apcupsd 3.14.8 :cry:
    Any ideas??
    COLBEN
    COLBEN --- ---
    WIL_M: sort -n -u --key=2.1,5 --delim=";" je tvuj kamarad ... mozna trosku si budes muset pohrat se syntaxi
    Kliknutím sem můžete změnit nastavení reklam