Lior Gradstein’s Blog

Archive for the ‘hardware’ Category

Here’s the setup: you have a computer which has a SD port (small memory cards, mostly used in cameras, phones, etc.). You want to get all of your photos from that card automatically as soon as you insert your card (may be a USB key as well), that is, run a script which will search for all of your photos, and copy them to a local directory.

(more…)

  • 0 Comments
  • Filed under: hardware, software
  • OK, we now have to configure the network. The goal is to be able to connect to our access point, where we’ll get information to connect to our “sound server” (I call it like that because I’ve still not decided between using mpd+mpc+samba or some more direct access like the use of esd).

    We’ll set the wifi interface as a client for a remote access point. We’ll keep the WAN interface with a static ip (here, 192.168.1.1)

    Please note, that changing the configuration will make the remote network access as previously used unusable. The only secure access is still through the serial console.

    First, edit the file /etc/config/network:

    config switch eth0
         option vlan0 "0 1 2 3 5*"
         option vlan1 "4 5"
    [] # localhost config here
    []
    config interface wan
       option ifname "eth0.1"
       option proto static
       option ipaddr 192.168.1.1
       option netmask 255.255.255.0
    []
    config interface lan
       option type bridge
       option ifname "eth0.0"
       option proto dhcp

    And then the file /etc/config/wireless:

    config wifi-device wifi0
       option type atheros
       option channel 8
       option disabled 0
    []
    config wifi-iface
       option device wifi0
       option network lan
       option mode sta
       option ssid YOUR_SSID
       option encryption none
       option hidden 0

    If your access point has some encryption, like WEP, do this instead of the wifi-iface block:

    config wifi-iface
       option device wifi0
       option network lan
       option mode sta
       option ssid YOUR_SSID
       option encryption wep
       option key 1234567899
       option hidden 0

    You can take a look at the different available options on this documentation. If all is well, you should have an ip address on your br-lan interface (your WHGT634U hub port is bridged with the wifi interface).

    Next part will be the most interesting :-) I think I’ll try all the different methods to implement an automatic player daemon. Direct methods, and indirect methods, using a share fielsystem like CIFS.

    Reference

    Jkx@Home’s article explaining another use of WGT634U

  • 0 Comments
  • Filed under: hardware
  • NetGear WGT634U with OpenWRTBefore the 7.06 stable version of OpenWRT there were many problems for making USB audio working on this exceptional router (the only one I know with a USB port). Problems with kernel version 2.4/2.6, problems with alsa, problems with USB not working (usb2), etc. Take a look at the forums, and see all horrible, painful modifications/patches you needed to apply to make it working.
    I have to say that the OpenWRT developers/contributors (and the forum members) did a wonderful job and corrected every known problems. So with this version, the installation is really straightforward!

    Please read the following to get all the details.
    (more…)

  • 1 Comment
  • Filed under: hardware