Page 17 of 64 FirstFirst ... 7151617181927 ... LastLast
Results 241 to 255 of 958

Thread: [HowTo] Install and configure Oleg's firmware

  1. #241
    Join Date
    Feb 2005
    Location
    Germany - Frankfurt
    Posts
    1,548
    For all:

    The behaviour of rc.unslung changed!!!
    There is a start/stop parameter required for all new startup Scripts.
    Check all startup scripts in /opt/etc/init.d/
    Use the scripts from the howto.

    wengi
    Übersicht aller HowTos --- HowTo Overview (mostly german)
    WL-HDD mit diesem Setup. --- WL-HDD with this setup.
    Kein Support per PM - Frage im jeweiligen Thread! --- No support via pm - ask in the according thread!
    Eine wirklich gute Idee erkennt man daran, dass ihre Verwirklichung von vorne herein ausgeschlossen erscheint. (Albert Einstein)

  2. #242
    Quote Originally Posted by wpte View Post
    So where do I get this new syslog from? till I used your old boot version I had no problems, the only thing I touched the couple of days is the boot section.

    also /usr/local/sbin/post-mount is NOT executed at boot, while it's executable.
    therefor I use post-boot with the old startupscript.
    also your newer boot files don't contain the drobear start neither does it contain the scsi mod to start usb drives

    EDIT:
    never mind about the syslog, I found it
    Hi, wpte.
    I've had problems too, when I switched to the newer firmware. In the end it turned out I've made some faults when configuring things.

    - The newer firmware doesn't need to start the scsi mod for usb drives. It's in the original firmware already and you can enable it through the standard website of the asus.
    - mounting is done through fstab
    - the only content the post-boot file now has is 'dropbear' to start dropbear, as the unslung file is started in the post-mount file. If you think the post-mount file doesn't work, take a look a the rc.unslung file. There might be a problem there. (and remind to start it with a parameter, because its behaviour changed in order to gracefully stop and restart services/daemons.)

    The problems I've had are in : http://www.wl500g.info/showthread.php?t=14255

    And the solutions are in: http://wl500g.info/showthread.php?t=13785

    (I had the syslogd and xinetd startup files mixed which resulted in strange errors and writing 4gb's of a log on a reboot.)

    I still did not manage to run xinetd properly, but currently I don't have a service/daemon depending on that one.
    I must say, after I've had these problems sorted out its stable, and best of all, data is 'more' secure after reboot/power failure/disconnect.

  3. #243
    Join Date
    Dec 2007
    Location
    The Netherlands - Eindhoven
    Posts
    1,767
    I'll start reading then
    I don't like the firmware to do the mods, it feels a bit less in control then starting them yourself.

    I also made some changes to the check before the disk mount.
    I set them after every 10 mounts a quick check (fsck)
    and after 50 mounts a full check (e2fsck -fy)

    I also made the disk spin down, wich is quite hard because every few moments mysql wants to read something... but sometimes it keeps quiet for 2 min, fair enough

  4. #244
    Quote Originally Posted by wpte View Post
    I also made the disk spin down, wich is quite hard because every few moments mysql wants to read something... but sometimes it keeps quiet for 2 min, fair enough
    Do you have cron running? This also prevents the hdd from spinning down.

  5. #245
    Join Date
    Nov 2007
    Location
    EU's border...
    Posts
    71
    Quote Originally Posted by raas View Post
    I still did not manage to run xinetd properly, but currently I don't have a service/daemon depending on that one.
    What is the problem with your xinetd?

  6. #246
    Join Date
    Dec 2007
    Location
    The Netherlands - Eindhoven
    Posts
    1,767
    Quote Originally Posted by raas View Post
    Do you have cron running? This also prevents the hdd from spinning down.
    well.. i run the swap now on a usb disk wich is actually faster than my hdd. also i set the limit on 1min, so if nothing accessed the drive in 1min, it spins down.
    in the night it sometimes start again for cron wich is regulairy updating my websites an backing them up. (incredimental )
    but apart from that, the drive spins down, only when pcs are on it spins up quite a lot
    i changed a bit on the boot scripts now, just the final touch
    but im not going to use the firmware mount, i like the manual one

    also, i think fsck is less complete scanning than e2fsck because its done in 5min and the e2fsck in 30

  7. #247
    Quote Originally Posted by Serpent View Post
    What is the problem with your xinetd?
    Hi Serpent, I wish I'd know..
    It seems that the service starts (there's a process), But the services that have to be started by xinetd (eg. vsftpd) will not start.

    I'm 99% sure I've misconfigured something, but haven't had the the time to haunt that problem..

    (problem for me was that I really need ftp, work related, so I installed proftpd, not as fast, but at least I have a FTP service running)

    it might be something I don't see with my basic *nix knowledge, therefore I post the S10xinetd file (/opt/etc/init.d)

    Code:
    #! /bin/sh
    #
    # Startup script for xinetd
    #
    prefix=/opt
    sbindir=${prefix}/sbin
    
    NAME=xinetd
    DAEMON=${sbindir}/${NAME}
    DESC="xinetd"
    PIDFILE="/var/run/xinetd.pid"
    OPTIONS="-pidfile $PIDFILE"
    CONFDIR="/opt/etc/xinetd.d"
    
    # installation check
    test -x ${DAEMON} || exit 0
    
    case "$1" in
        start)
            if [ -z "`pidof ${NAME}`" ] ; then
                printf "Starting ${DESC}: "
                ${DAEMON} ${OPTIONS}
                printf "${NAME}.\n"
            fi
        ;;
        stop)
            if [ -n "`pidof ${NAME}`" ]; then
              printf "Stopping ${DESC}: "
              kill -SIGTERM `cat $PIDFILE`
              printf "${NAME}.\n"
              for i in ${CONFDIR}/* ; do
                if [ -n "`grep "^[[:space:]]*disable[[:space:]]*=[[:space:]]*no"
    ${i}`" ] ; then
                  daemon="`basename $(awk -F=
    '/^[[:space:]]*server[[:space:]]*=[[:space:]]*.*/{print $2}' ${i})`"
                  printf "Stopping ${daemon}: "
                  kill "`pidof ${daemon}`" > /dev/null 2>&1
                  printf "${daemon}.\n"
                fi
              done
            fi
        ;;
        reload|reconfigure)
            if [ -n "`pidof ${NAME}`" ]; then
                printf "Reloading ${DESC}: "
                kill -SIGHUP `cat $PIDFILE`
                printf "${NAME}.\n"
            fi
        ;;
        restart|force-reload)
            $0 stop
            sleep 1
            $0 start
        ;;
        *)
            printf "Usage: $0
    {start|stop|reload|reconfigure|restart|force-reload}\n" >&2
            exit
        ;;
    esac
    
    exit 0
    and my unslung

    Code:
    #! /bin/sh
    
    # Start/stop all init scripts in /opt/etc/init.d
    # starting them in numerical order and
    # stopping them in reverse numerical order
    #
    if [ $# -ne 1 ]; then
    printf "Usage: $0 {start|stop}\n" >&2
    exit 1
    fi
    
    daemons=`echo $(/usr/bin/dirname $0)/S??*`
    [ $1 = "stop" ] && daemons=`echo $daemons | /usr/bin/tr " " "\n" |
    /usr/bin/sort -r`
    
    for i in $daemons; do
    
    # Ignore dangling symlinks (if any).
    [ ! -f "$i" ] && continue
    
    # Write to syslog
    logger -t rc.unslung "$1 service $i"
    
    case "$i" in
    *.sh)
    # Source shell script for speed.
    (
    trap - INT QUIT TSTP
    set $1
    . $i
    )
    ;;
    *)
    # No sh extension, so fork subprocess.
    $i $1
    ;;
    esac
    done
    right now.. I removed the vsftpd package, and the one in the firmware is also not working.

    I've followed wengi's (section 10a from his tut.) advice on how to start 'something' (samba) with xinetd, but that didn't work, Samba wouldn't run, so I reverted to my old settings and samba did work again.

  8. #248
    Quote Originally Posted by wpte View Post
    well.. i run the swap now on a usb disk wich is actually faster than my hdd. also i set the limit on 1min, so if nothing accessed the drive in 1min, it spins down.
    in the night it sometimes start again for cron wich is regulairy updating my websites an backing them up. (incredimental )
    but apart from that, the drive spins down, only when pcs are on it spins up quite a lot
    i changed a bit on the boot scripts now, just the final touch
    but im not going to use the firmware mount, i like the manual one

    also, i think fsck is less complete scanning than e2fsck because its done in 5min and the e2fsck in 30
    Nice.. usb-swap-key is so much faster, I'm curious how long it survives in your setup. I've had it to, after 5-6 month I got all kinds of error which I couldn't explain.. switched the swap back to the hdd, and all the problems where gone... But you're right, the system is much faster with such a swap.

  9. #249
    Join Date
    Dec 2007
    Location
    The Netherlands - Eindhoven
    Posts
    1,767
    Quote Originally Posted by raas View Post
    Nice.. usb-swap-key is so much faster, I'm curious how long it survives in your setup. I've had it to, after 5-6 month I got all kinds of error which I couldn't explain.. switched the swap back to the hdd, and all the problems where gone... But you're right, the system is much faster with such a swap.
    hmm, yeh I got some weird things too, but I think it's more the spindown and windows think it's a timeout
    I use a pretty old key, it has been in the washing machine but I could not find errors on it while checking it, so I guess it's ok

  10. #250
    but I could not find errors on it while checking it, so I guess it's ok
    same here. but it seems that somehow the 'quality' of the flash mem is affected. (which is a known characteristic of flash mem when overwritten thousands/milllions of times)

  11. #251
    Quote Originally Posted by wengi View Post
    There is a prob with transmission.cgi hanging after loading some kb of the webinterface.
    I didnt solve this until now because i have no idea where to start from.

    If you use ctrl+c to exit lynx or close your browser the transmission.cgi is hanging and using 100% CPU.

    killall transmission.cgi

    will help...

    wengi

    PS: The download itself is working normaly...
    Wengi,
    Any update on the transmission issue?
    L3rd

  12. #252
    Join Date
    Dec 2007
    Location
    The Netherlands - Eindhoven
    Posts
    1,767
    Ah well, I'm now totally on your script wengi
    I still got some modified parts to keep it running in my way.
    I also used the firmware scsi mod.

    now I have only one problem, I can''t get my FTP to working because I mount part3 as /mnt

    this was the original script to let the ftp work:
    #Mount for ftp
    mount /dev/discs/disc0/part2 /tmp/mnt/disc0_2
    mount /dev/discs/disc0/part3 /tmp/mnt/disc0_3
    now I have this configuration:
    #device Mountpoint FStype Options Dump Pass#
    /dev/discs/disc0/part1 none swap sw 0 0
    /dev/discs/disc0/part2 /opt ext3 rw,noatime 1 1
    /dev/discs/disc0/part3 /mnt ext3 rw,noatime 1 1
    /dev/discs/disc0/part2 /tmp/mnt/disc0_2 ext3 rw,noatime 1 1
    /dev/discs/disc0/part3 /tmp/mnt/disc0_3 ext3 rw,noatime 1 1
    /dev/discs/disc1/part1 /tmp/mnt/disc1 ext3 rw,noatime 1 1
    I expect to use the same options as the other mounts, but it''s not working
    The mounting stops at /tmp/mnt/disc0_2.

    so I get this:
    Filesystem 1k-blocks Used Available Use% Mounted on
    /dev/root 3072 3072 0 100% /
    /dev/discs/disc0/part2 3850320 294316 3360416 8% /opt
    /dev/discs/disc0/part3 476331024 118224836 333909892 26% /mnt
    there should be 2 ways to solve this problem:
    1 - get the mounts right
    2 - make the vsftpd work on /mnt and /opt

    the 2nd option is just a giant mystery for me how to do it
    it must be some nvram... but how do you know witch


    thanks wengi for the scripts, they are working better than the old ones

  13. #253
    Join Date
    Feb 2005
    Location
    Germany - Frankfurt
    Posts
    1,548
    Hi,

    check your fstab! Why do you mount to /mnt?

    If you can give me a clean description of what you want to be mounted to where i can give you advice...
    Normaly the fstab of my howto should be ok for your config.

    I didn't try the ftp but maybe the ftpd will not follow the symlink /tmp/harddisk.
    Try to change the rootdir in the ftp config in a second step.

    wengi

    EDIT: No news on transmission.
    Last edited by wengi; 28-05-2008 at 07:48.
    Übersicht aller HowTos --- HowTo Overview (mostly german)
    WL-HDD mit diesem Setup. --- WL-HDD with this setup.
    Kein Support per PM - Frage im jeweiligen Thread! --- No support via pm - ask in the according thread!
    Eine wirklich gute Idee erkennt man daran, dass ihre Verwirklichung von vorne herein ausgeschlossen erscheint. (Albert Einstein)

  14. #254
    Join Date
    Dec 2007
    Location
    The Netherlands - Eindhoven
    Posts
    1,767
    Quote Originally Posted by wengi View Post
    Hi,

    check your fstab! Why do you mount to /mnt?

    If you can give me a clean description of what you want to be mounted to where i can give you advice...
    Normaly the fstab of my howto should be ok for your config.

    I didn't try the ftp but maybe the ftpd will not follow the symlink /tmp/harddisk.
    Try to change the rootdir in the ftp config in a second step.

    wengi

    EDIT: No news on transmission.
    As far as I know the ftpd won't start as long no harddrives are mounted on /tmp/mnt
    it's a value that can not be changed in the web admin as far as I know.

    ok:
    I want to mount the opt partition to: /opt and /tmp/mnt/disc0_2
    the data partition to: /mnt and /tmp/mnt/disc0_3
    I mount the data partition to /mnt because it's shorter (and I'm a bit lazy)

    and I showed you my fstab in the previous post, I tought it should be done like that

  15. #255
    Join Date
    Feb 2005
    Location
    Germany - Frankfurt
    Posts
    1,548
    Can you mount the partitions by hand?

    Try to create the directories
    /tmp/mnt/disc0_2
    /tmp/mnt/disc0_3
    /tmp/mnt/disc1
    before mounting.

    As far as i know using fstab the process itself should create the dirs before mounting, but maybe i am wrong or there is a bug...?!

    wengi
    Übersicht aller HowTos --- HowTo Overview (mostly german)
    WL-HDD mit diesem Setup. --- WL-HDD with this setup.
    Kein Support per PM - Frage im jeweiligen Thread! --- No support via pm - ask in the according thread!
    Eine wirklich gute Idee erkennt man daran, dass ihre Verwirklichung von vorne herein ausgeschlossen erscheint. (Albert Einstein)

Page 17 of 64 FirstFirst ... 7151617181927 ... LastLast

Similar Threads

  1. [Howto] Install DLNA media servers for Oleg firmware
    By ecaddict in forum WL-500gP Tutorials
    Replies: 18
    Last Post: 06-06-2017, 07:40
  2. Replies: 24
    Last Post: 05-05-2015, 07:42
  3. Replies: 28
    Last Post: 02-06-2013, 20:58
  4. Replies: 6
    Last Post: 21-09-2012, 17:06
  5. [Howto] Install kernel modules for Oleg firmware
    By ecaddict in forum WL-500gP Tutorials
    Replies: 0
    Last Post: 05-12-2011, 16:18

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •