Archív značiek: unix

Asus wl500b into lan radio

OpenWrt na Asus wl 500b

* first upgraded firmware to 1.8.2.4 from asus web
* then downloaded install cd for router from asus web. Unfortunately only for windows and did not work through wine. Had to run it on windows machine.
* used ‚upgraded firmware‘ utility to upload this image:
openwrt_8_09_2-brcm-2.4-squashfs.trx
* now I can login to it through web  (login root, password empty), and configure basic stuff (ip, name, password)
* Then I logged in through ssh root@192.168.1.1
Linux 2.4.35.4 #12 Tue Dec 29 15:30:20 UTC 2009 mips unknown

* Installed basic packages through ‚opkg install <balicky>‘

* snd-usb-audio did not work well, heard only sharp noise, so I went by:
https://forum.openwrt.org/viewtopic.php?id=13131
and I uninstaloval kmod-usb-audio
installed kmod-alsa
and did rmmod snd-usb-audio
then sound replay worked through:
wget -q -O – http://live.slovakradio.sk:8000/FM_128.mp3 | madplay -o /dev/sound/dsp –
wget -q -O – http://live.slovakradio.sk:8000/FM_128.mp3 | madplay –

Linky:
http://linuxgazette.net/166/ziemann.html
http://blackhole.sk/topicopenwrt-asus-wl-500gp
http://wiki.openwrt.org/doc/howto/basic.config
http://wiki.openwrt.org/doc/howto/usb.essentials
http://wiki.openwrt.org/doc/howto/usb.overview
http://wiki.openwrt.org/doc/techref/opkg
https://forum.openwrt.org/viewtopic.php?id=13131
http://www.fedorafaq.org/basics/#startonboot

2011-05-22 00:32:51
To start the internet radio replay automatically when machine powers on, into file /etc/rc.local I added one line:
wget -q -O – http://live.slovakradio.sk:8000/Slovensko_128.mp3 | madplay – &

2011-05-22 22:05:31
http://mightyohm.com/blog/2008/10/building-a-wifi-radio-part-1-introduction/

Detailed steps how to build whole radio with a box, controls and display

configure, LDD, using so library

error while loading shared libraries: cannot open shared object file: Error 40
(link to it is wrong, ll on it)

error while loading shared libraries: cannot open shared object file: No such file or directory
( it is not in the system, add it)

so you want to use .so library from internet.
first – library is probably not stored in system path.
use ‚locate thatlib.so‘. If nothing is printed – it is not in the system.
Add it:

sudo ln -s $PWD/libmylib.so.666 /usr/lib/libmylib.so

then fix up the locator:

sudo updatedb

and test locator

locate libmylib.so

you can also try to see if its dependencies are met:

ldd libmylib.so

That’s it.

linux-windows shares and printer sharing – samba

Connecting printer that is shared on PC with windows:

run in console: ‚smbtree‘. There you will see computers and their shares. Ex:
    \JULKA                  Julka
        \JULKAC$                 Default share
        \JULKAKONICAMI           KONICA MINOLTA PagePro 1350W
        \JULKAinstall           

Use printer name "\JULKAKONICAMI" when installing printer.

The same works for folder shares. See computer and share name through ‚smbtree‘. Then in Krusader put into address bar for example "smb://julka/" to get to target computer