Results 1 to 15 of 958

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

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #7
    Join Date
    Feb 2005
    Location
    Germany - Frankfurt
    Posts
    1,548
    17. Optimize performance
    This chapter is for advanced users. You should not do this if you are a newbie.

    Your Asus is completely setup now. Only some optimization regarding the performance is to be done.
    This is to keep as much processor and memory free as possible. Even the WL-HDD only has 16MB RAM and a 125MHz CPU. Not that much...
    The goal is to start services only if they are needed.
    This works with xinetd. Here is a description.

    A) Start samba with xinetd

    This chapter is using the original samba of the firmware. If you installed the IPKG samba you will have to change the path /usr/sbin/ to /opt/...

    I only need samba for moving my torrent files. So this is rather seldom.
    This is why i atart samba with xinetd. To keep system resources free for transmission.
    Your samba must work for 100% before making this step!

    If xinetd is not installed until now:
    Code:
    ipkg install xinetd
    You have to change /opt/etc/init.d/S10xinetd to work with the start|stop feature of rc.unslung.
    Do this as it is described in chapter 12b). Only the part with the content of S10xinetd!

    samba comprises two daemons:
    Code:
    vi /opt/etc/xinetd.d/netbios-ssn
    Content:
    service netbios-ssn
    {
    disable = no
    socket_type = stream
    protocol = tcp
    port = 139
    user = admin
    wait = no
    only_from = localhost 192.168.XXX.1/24
    server = /usr/sbin/smbd
    }
    And the second:
    Code:
    vi /opt/etc/xinetd.d/netbios-ns
    Content:
    service netbios-ns
    {
    disable = no
    socket_type = dgram
    protocol = udp
    port = 137
    user = admin
    wait = yes
    only_from = localhost 192.168.XXX.1/24
    server = /usr/sbin/nmbd
    }
    You have to fit the IP Settings for your own needs!

    There should already be a /etc/smb.conf. If not you will have to create it. This one shares the data partition with read/write for everyone.
    Code:
    [global]
            interfaces = br0
            bind interfaces only = yes
            workgroup = YOURWORKGROUP
            server string = YOURHOSTNAME
            guest account = nobody
            security = share
            browseable = yes
            guest ok = yes
            guest only = yes
            log level = 1
            max log size = 100
            encrypt passwords = no
            preserve case = yes
            short preserve case = yes
            client code page = 850
    
    [disc0_3]
            path = /tmp/mnt/disc0_3
            writable = yes
            force user = admin
    You have to edit Name and workgroup in this file too!

    Now you have to make shure that the /etc/smb.conf is stored before a reboot:
    Code:
    echo "/etc/smb.conf" >> /usr/local/.files && flashfs save && flashfs commit && flashfs enable
    Samba must not run as daemon. You have to disable it in the webinterface and accept the restart now.

    and if you installed samba with IPKG you have to delete the startup file:
    Code:
    rm /opt/etc/init.d/S80samba
    B) Unload unnecessary kernel modules

    Attention: You should know which modules you need, before unloading them in post-boot.

    List all running modules:
    Code:
    lsmod
    It is looking like this:
    [admin@blechbuechse root]$ lsmod
    Module Size Used by
    nfsd 93016 1
    lockd 64236 1 [nfsd]
    sunrpc 83480 1 [nfsd lockd]
    usb-storage 62184 0 (unused)
    sd_mod 13292 0 (unused)
    scsi_mod 70216 1 [usb-storage sd_mod]
    printer 12676 0 (unused)
    usb-ohci 21940 0 (unused)
    usbcore 77264 1 [usb-storage usb-ohci]
    ipt_NETMAP 992 0 (unused)
    ip_nat_starcraft 2224 0 (unused)
    wl 423856 0 (unused)
    et 34912 0 (unused)
    ide-disk 13524 3
    ide-probe-mod 11468 0
    ide-mod 109608 3 [ide-disk ide-probe-mod]
    You have to know which modules are unnecessary. 'Unused' is (sometimes) a good advice.

    This is how you unload a module:
    Code:
    rmmod MODULNAME
    Unloading the module 'et'is not a good idea because network will not work anymore. (Happend to me at this moment )

    Try this modules:

    printer - printer support
    usb-storage - USB mass storage
    usb-ohci - USB host
    usbcore - USB main component
    wl - WLAN

    It would be nice to have a complete list of all modules here. contact me if you can provide information.

    Unload a module and check if all the services are still working.
    If there is something wrong: Do a reboot!
    After knowing the possible modules you can edit the post-boot and paste the unload commands.

    18. Firmwareupdate
    If oleg releases a new firmware you should update:

    1) In webinterface 'System Setup' -> 'Setting Management' click "HERE", to save your settings.
    2) In webinterface 'System Setup' -> 'Flashfs Management' click "HERE", to seve the flash file system.
    3) Download and extract the new firmware. You need the .trx file.
    Important: Wait for the reboot after every following step.
    4) In webinterface 'System Setup' -> 'Firmware Upgrade' select the .trx file and click 'Upload'.
    5) In webinterface 'System Setup' -> 'Setting Management' select your saved settings and click 'Upload'.
    6) In webinterface 'System Setup' -> 'Flashfs Management' select your saved flashfs and click 'Upload'.

    The update is finished and all services should be accessible.
    There will be no data lost.

    General
    I try to keep this HowTo up to date.
    Contact me if you have some improvement or you found a mistake.

    There are several HowTos following this one.
    Soundcards, webserver, mysql and so on.
    FIND IT HERE: http://wl500g.info/showpost.php?p=160532&postcount=1

    Known problems:

    - a 'find' in / results in an error "./proc/7/fd: No such file or directory". Thats normal.

    Thanks to:

    Oleg (for the firmware)
    marcnesium (for his premium How To)
    Oleo (for transmission and good help)
    My wife (for the patience)

    Martin1802 (for finding a mistake in step 4a / 4b and supporting me with the profile)
    hanseugen (for USB HDD und Cron-Tips)
    And all others who helped me improving this howto.

    Important links:
    http://www.nslu2-linux.org/wiki/Optware/Transmission (Step-by-Step Howto for transmission)
    http://wl500g.info/showthread.php?t=6823 (Controlling torrent downloads thru webpage)
    http://wl500g.info/showthread.php?t=5909 (Premium HowTo)
    http://www.macsat.com/macsat/content/category/3/13/29/ (MacSat Tutorials)
    http://wl500g.info/showthread.php?t=8010 (How to connect to dbox2)
    http://www.sprayfly.com/wiki/Sprayfly (Sprayfly WL-HDD Wiki)
    http://wl500g.info/showpost.php?p=25037&postcount=1 (summary of Olegs firmware versions)
    http://wl500g.info/showthread.php?t=6826 (Autocopy funktion for the photographer of you)
    http://wl500g.info/showthread.php?t=13785 (Information on boot files and fstab in firmwares -9 and newer)

    For those of you who want to be up to date with the development:
    http://trac.nslu2-linux.org/optware/timeline Shows all changes.
    Last edited by wengi; 12-07-2010 at 14:10.
    Ü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)

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
  •