Грабим потоковое радио -)) в mp3 acc или ретранслируем (YoZz edition)

From DD-WRT Wiki

Jump to: navigation, search
login as: root 
DD-WRT v24-sp2 mini (c) 2009 NewMedia-NET GmbH
Release: 12/07/09 (SVN revision: 13401)
root@192.168.0.1's password: 
Access denied
root@192.168.0.1's password:
Access denied
root@192.168.0.1's password:
==========================================================

 ____  ___    __        ______ _____         ____  _  _
 | _ \| _ \   \ \      / /  _ \_   _| __   _|___ \| || |
 || | || ||____\ \ /\ / /| |_) || |   \ \ / / __) | || |_
 ||_| ||_||_____\ V  V / |  _ < | |    \ V / / __/|__   _|
 |___/|___/      \_/\_/  |_| \_\|_|     \_/ |_____|  |_|    

                       DD-WRT v24-sp2 
                   http://www.dd-wrt.com

==========================================================


BusyBox v1.13.4 (2009-12-07 14:17:22 CET) built-in shell (ash)
E nter 'help' for a list of built-in commands.

~ # /opt/bin/ipkg-opt streamripper
/opt/bin/ipkg-opt: unknown sub-command streamripper
ipkg version 0.99.163
usage: ipkg [options...] sub-command [arguments...] 
where sub-command is one of:

Package Manipulation:
        update                  Update list of available packages
        upgrade                 Upgrade all installed packages to latest version
        install <pkg>           Download and install <pkg> (and dependencies)
        install <file.ipk>      Install package <file.ipk>
        configure [<pkg>]       Configure unpacked packages
        remove <pkg|regexp>     Remove package <pkg|packages following regexp>
        flag <flag> <pkg> ...   Flag package(s) <pkg>
         <flag>=hold|noprune|user|ok|installed|unpacked (one per invocation)

I nformational Commands:
        list                    List available packages and descriptions
        list_installed          List all and only the installed packages and description
        files <pkg>             List all files belonging to <pkg>
        search <file|regexp>            Search for a package providing <file>
        info [pkg|regexp]               Display all info for <pkg>
        status [pkg|regexp]             Display all status for <pkg>
        download <pkg>          Download <pkg> to current directory.
        compare_versions <v1> <op> <v2>
                                  compare versions using <= < > >= = << >>
        print_architecture      prints the architecture.
        print_installation_architecture
        whatdepends [-A] [pkgname|pat]+
        whatdependsrec [-A] [pkgname|pat]+
        whatprovides [-A] [pkgname|pat]+
        whatconflicts [-A] [pkgname|pat]+
        whatreplaces [-A] [pkgname|pat]+
                                prints the installation architecture.  
Options: 
        -A                      Query all packages with whatdepends, whatprovides, whatreplaces, whatconflicts
        -V <level>               Set verbosity level to <level>. If no value is
        --verbosity <level>      provided increase verbosity by one. Verbosity levels:
                                 0 errors only
                                 1 normal messages (default)
                                 2 informative messages
                                 3 debug output
        -f <conf_file>          Use <conf_file> as the ipkg configuration file
        -conf <conf_file>       Default configuration file location
                                is /opt/etc/ipkg.conf
        -d <dest_name>          Use <dest_name> as the the root directory for
        -dest <dest_name>       package installation, removal, upgrading.
                                <dest_name> should be a defined dest name from
                                the configuration file, (but can also be a
                                directory name in a pinch).
        -o <offline_root>       Use <offline_root> as the root directory for
        -offline <offline_root> offline installation of packages.
        -verbose_wget           more wget messages
        Force Options (use when ipkg is too smart for its own good):
        -force-depends          Make dependency checks warnings instead of errors
                                        Install/remove package in spite of failed dependences
        -force-defaults         Use default options for questions asked by ipkg.
                                (no prompts). Note that this will not prevent
                                package installation scripts from prompting.
        -force-reinstall        Allow ipkg to reinstall a package.
        -force-overwrite        Allow ipkg to overwrite files from another package during an install.
        -force-downgrade        Allow ipkg to downgrade packages.
        -force_space            Install even if there does not seem to be enough space.
        -noaction               No action -- test only
        -nodeps                 Do not follow dependences
        -force-removal-of-dependent-packages
        -recursive              Allow ipkg to remove package and all that depend on it.
        -test                   No action -- test only
        -t                      Specify tmp-dir.
        --tmp-dir               Specify tmp-dir.  
        regexp could be something like 'pkgname*' '*file*' or similar
        eg: ipkg info 'libstd*'  or ipkg search '*libop*' or ipkg remove 'libncur*' 

~ # /opt/bin/ipkg-opt install streamripper

инсталлим ... с пакетов..

Installing streamripper (1.64.5-1) to /opt/... 
Downloading http://ipkg.nslu2-linux.org/feeds/optware/ddwrt/cross/stable/streamripper_1.64.5-1_mipsel.ipk
Installing faad2 (2.6-3) to /opt/...
Downloading http://ipkg.nslu2-linux.org/feeds/optware/ddwrt/cross/stable/faad2_2.6-3_mipsel.ipk
Installing glib (2.20.4-1) to /opt/... 
Downloading http://ipkg.nslu2-linux.org/feeds/optware/ddwrt/cross/stable/glib_2.20.4-1_mipsel.ipk
Installing libmad (0.15.1b-4) to /opt/...
Downloading http://ipkg.nslu2-linux.org/feeds/optware/ddwrt/cross/stable/libmad_0.15.1b-4_mipsel.ipk
Installing libogg (1.1.4-1) to /opt/...
Downloading http://ipkg.nslu2-linux.org/feeds/optware/ddwrt/cross/stable/libogg_1.1.4-1_mipsel.ipk
Installing libvorbis (1.2.3-1) to /opt/...
Downloading http://ipkg.nslu2-linux.org/feeds/optware/ddwrt/cross/stable/libvorbis_1.2.3-1_mipsel.ipk
Configuring faad2
Configuring glib
Configuring libmad
Configuring libogg
Configuring libvorbis
Configuring streamripper
Successfully terminated.
~ # streamripper http://66.220.3.52:7012/ -d /opt/share/www/radio/ 8008-R-Q-U

грабим радиотранс 1 фм)

Connecting...
stream: 1.FM - Trance
server name: SHOUTcast/Linux v1.9.8
declared bitrate: 64
meta interval: 8192

[ skipping... ] - [ 161kb]

[ripping...    ] Leon Bolier - Seraphic [  1.10M]