Find the answer to your Linux question:
Page 1 of 2 1 2 LastLast
Results 1 to 10 of 14
Hi I'm new to Linux, but I've got to learn for some programming courses (I'm a computer science minor, math major). I've copied and pasted the script Waterhead wrote into ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Apr 2010
    Posts
    30

    Having some using Waterhead's file


    Hi I'm new to Linux, but I've got to learn for some programming courses (I'm a computer science minor, math major).

    I've copied and pasted the script Waterhead wrote into a file. I also made sure to remove the .txt extension. I placed it in my home folder and I ran the following command from terminal:

    chmod +x ~/WirelessSetup

    I then ran the program from the terminal using the ./ command and I received the following message:

    bash: ./WirelessSetup :/bin/bash^M: bad interpreter: No such file or directory

    I'm attempting to get a D-Link WUA-2340 Wireless Adapter working. (It's USB). I was wondering if anyone could help out? I'm comfortable using the command line, if it matters.

  2. #2
    Linux Guru reed9's Avatar
    Join Date
    Feb 2009
    Location
    Boston, MA
    Posts
    4,651
    Did you by chance save the file using windows notepad? From what I've seen, that most frequently causes the problem.
    Casey Watson bad interpreter: No such file or directory

    EDIT: ^M is, I believe, a carriage return in windows.

    Anyway, the most salient parts of the script for you that we need right now are
    Code:
    lsusb
    lsmod

  3. #3
    Just Joined!
    Join Date
    Apr 2010
    Posts
    30
    upon entering lsusb:

    Code:
    Bus 001 Device 002: ID 0951:1603 Kingston Technology Data Traveler 1GB/2GB Pen Drive 
    Bus 001 Device 004: ID 07d1:3a08 D-Link System predator Bootloader Download 
    Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub 
    Bus 007 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub 
    Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub 
    Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub 
    Bus 008 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub 
    Bus 004 Device 002: ID 046d:c054 Logitech, Inc. 
    Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub 
    Bus 002 Device 002: ID 058f:6363 Alcor Micro Corp. 
    Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub 
    Bus 005 Device 002: ID 04ca:002f Lite-On Technology Corp. 
    Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
    upon entering lsmod:

    Code:
    Module                  Size  Used by 
    nls_iso8859_1           5280  1 
    nls_cp437               6976  1 
    vfat                   13184  1 
    fat                    59832  1 vfat 
    binfmt_misc            10220  1 
    ppdev                   8232  0 
    snd_hda_codec_intelhdmi    14880  1 
    snd_hda_codec_realtek   277860  1 
    snd_hda_intel          31880  2 
    snd_hda_codec          87584  3 snd_hda_codec_intelhdmi,snd_hda_codec_realtek,snd_hda_intel 
    snd_hwdep               9352  1 snd_hda_codec 
    snd_pcm_oss            44704  0 
    snd_mixer_oss          18976  1 snd_pcm_oss 
    snd_pcm                93160  3 snd_hda_intel,snd_hda_codec,snd_pcm_oss 
    snd_seq_dummy           3460  0 
    snd_seq_oss            33440  0 
    snd_seq_midi            8192  0 
    snd_rawmidi            27360  1 snd_seq_midi 
    snd_seq_midi_event      8448  2 snd_seq_oss,snd_seq_midi 
    iptable_filter          3872  0 
    snd_seq                60608  6 snd_seq_dummy,snd_seq_oss,snd_seq_midi,snd_seq_midi_event 
    led_class               5256  0 
    ip_tables              21200  1 iptable_filter 
    x_tables               25832  1 ip_tables 
    snd_timer              26992  2 snd_pcm,snd_seq 
    snd_seq_device          8308  5 snd_seq_dummy,snd_seq_oss,snd_seq_midi,snd_rawmidi,snd_seq 
    
    snd                    77096  17 snd_hda_codec_intelhdmi,snd_hda_codec_realtek,snd_hda_intel,snd_hda_codec,snd_hwdep,snd_pcm_oss,snd_mixer_oss,snd_pcm,snd_seq_oss,snd_rawmidi,snd_seq,snd_timer,snd_seq_device 
    soundcore               9088  1 snd 
    snd_page_alloc         10928  2 snd_hda_intel,snd_pcm 
    lp                     11908  0 
    parport                40528  2 ppdev,lp 
    psmouse                57124  0 
    serio_raw               6596  0 
    fbcon                  41344  72 
    tileblit                3136  1 fbcon 
    font                    8832  1 fbcon 
    bitblit                 6688  1 fbcon 
    softcursor              2336  1 bitblit 
    ohci1394               33780  0 
    usb_storage            66016  1 
    ieee1394              100896  1 ohci1394 
    i915                  247304  3 
    drm                   193856  3 i915 
    i2c_algo_bit            7076  1 i915 
    video                  23612  1 i915 
    output                  3680  1 video 
    e1000e                138672  0 
    usbhid                 43968  0 
    intel_agp              32816  2 i915
    Last edited by MikeTbob; 04-11-2010 at 04:01 AM. Reason: Added cde tags

  4. $spacer_open
    $spacer_close
  5. #4
    Just Joined!
    Join Date
    Apr 2010
    Posts
    30
    Also, I have tried installing this on my own in the past.

    The forum won't let me post any links until I gain more posts (spammer measure, I suppose), but the method which I researched and followed involved installing ndiswrapper and using D-link's files from the accompanying CD. I tried this method to no avail.

    Any help at all would be appreciated, even if it involves re-installing Linux.

    From lsusb, I see that the D-link USB stick is recognized, but if I attempt to use a program like Wicd network manager, I see no reference to the stick at all.

    When I look at the Windows information for the same USB stick plugged into the exact same port: Port_#0005 Hub_#0004

  6. #5
    Linux Guru reed9's Avatar
    Join Date
    Feb 2009
    Location
    Boston, MA
    Posts
    4,651
    So you've already tried to load the driver using ndiswrapper?

    What is the output of
    Code:
    ndiswrapper -l
    The ndiswrapper module is not loading, so if the above returns neta5agu : driver installed do
    Code:
    sudo modprobe ndiswrapper
    Then check the output of
    Code:
    iwconfig
    Assuming that now shows a wireless interface check
    Code:
    sudo ifconfig wlan0 up
    sudo iwlist wlan0 scan
    And see if that returns errors.

  7. #6
    Just Joined!
    Join Date
    Apr 2010
    Posts
    30
    ndiswrapper -l yielded:

    WARNING: All config files need .conf: /etc/modprobe.d/ndiswrapper, it will be
    ignored in a future release.
    agux64 : driver installed
    device (07D1:3A08 ) present

    sudo modprobe ndiswrapper yielded:

    WARNING: All config files need .conf: /etc/modprobe.d/ndiswrapper, it will be
    ignored in a future release.

    iwconfig yielded:

    lo no wireless extensions

    eth0 no wireless extensions

  8. #7
    Linux Guru reed9's Avatar
    Join Date
    Feb 2009
    Location
    Boston, MA
    Posts
    4,651
    That appears to be a 64 bit driver. Are you using a 64 bit distro?

    What is the output of
    Code:
    uname -mr

  9. #8
    Just Joined!
    Join Date
    Apr 2010
    Posts
    30
    Output of uname -mr

    2.6.31-17-generic x86_64

  10. #9
    Just Joined!
    Join Date
    Apr 2010
    Posts
    30
    dmesg output didn't give any firmware errors. However, there were a number of errors that showed up with ndwisrapper in the line.

    I couldn't attach the txt file of the dmesg output, as it was too large. I'm not sure which parts of it can be cut away and which are salient, aside from maybe the diswrapper lines.

    I've looked up a wiki page about the wua 2340, and the entry there suggest that some minor tweaks were needed after using ndiswrapper, but those involved using the wireless interface. In my case, the wireless interface never shows up.

  11. #10
    Linux Guru reed9's Avatar
    Join Date
    Feb 2009
    Location
    Boston, MA
    Posts
    4,651
    You're using the driver from the CD? Is it for Vista, by chance? Ndiswrapper only works with XP drivers and earlier.

    If you go to the d-link site, you can download an older driver.
    D-Link RangeBooster G USB Adapter

    I would try version 1.00 at the bottom, for win2k and xp.

Page 1 of 2 1 2 LastLast

Posting Permissions

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