Slickdeals.net - The best deals, lowest prices and hot coupons.
Register Search Today's Posts Mark Forums Read
Go Back   SlickDeals.net Forums > The Deals > Hot Deals

  • ReplyPost Reply
  • Old 11-08-2008, 08:21 PM #196
    VorlonFrog is offline VorlonFrog
    Tech junkie
    VorlonFrog's Avatar
    Jul 2005
    Da Queen City
    1,257
    378 VorlonFrog is just really nice
    Forgot to include pictures of the Samba share showing up on my laptop. You know, just to prove it REALLY (really!) works.

    The first picture shows the shares (probably should remove those two Samba defaults) in Vista's Explorer. The second picture shows a text file I created inside a shared folder I created, both from my wireless laptop.
    Attached Images
    File Type: jpg SambaShare.jpg (43.1 KB, 435 views)
    File Type: jpg SambaShare2.jpg (35.7 KB, 285 views)
     
    11-08-2008, 08:21 PM

     
    Guests, join the SlickDeals.net Community to remove this ad.

    Old 11-08-2008, 08:22 PM #197
    VorlonFrog is offline VorlonFrog
    Tech junkie
    VorlonFrog's Avatar
    Jul 2005
    Da Queen City
    1,257
    378 VorlonFrog is just really nice
    Quote from dzap View Post :
    sigh..I still haven't figured out how to unbrick this..I installed dd-wrt many months ago but it got screwed up somewhere along the way..I remember I unbricked it more than once but I forgot the ip of it..damn..there has to be a way
    Download the Angry IP Scanner from angryziber and have it scan your network. That'll find it.

    Also, press the reset button and hold it in for thirty seconds while applying power to the router. If the CFE bootloader is loaded and running, it should read the reset switch and re-apply default values (including IP address) to the router.

    Last edited by VorlonFrog; 11-08-2008 at 08:28 PM.. Reason: reset switch
     
    Old 11-08-2008, 08:25 PM #198
    dzap is offline dzap
    Temporarily Off-Air
    dzap's Avatar
    Jul 2006
    -_-V
    33,979
    6568 dzap has a reputation beyond repute
    Quote from VorlonFog View Post :
    Forgot to include pictures of the Samba share showing up on my laptop. You know, just to prove it REALLY (really!) works.

    The first picture shows the shares (probably should remove those two Samba defaults) in Vista's Explorer. The second picture shows a text file I created inside a shared folder I created, both from my wireless laptop.
    OMG you're killing me..that looks so HOTTTT That turns me on I've been wanting to do that for sooo long now

    Quote from VorlonFog View Post :
    Download the Angry IP Scanner from angryziber and have it scan your network. That'll find it.
    will that work even though it doesn't assign one? I don't know..it's like there's a f/w on it but it's corrupted so I have to manually assign the right ip addy..
    __________________
    The New Apple iPad.
    A new Gold Rush ....for Comedy

    Learn more about how the iPad delivers here...
    http://www.collegehumor.com/video:1928558

    Haven't decided whether you want an iPad or not? Follow this FlowChart/DecisionTree to help you decide!!
    http://blogs.sfweekly.com/shookdo...buy_an.php

    Last edited by dzap; 11-08-2008 at 08:25 PM.. Reason: Automerged Doublepost
     
    Old 11-08-2008, 08:26 PM #199
    mmzymxf is offline mmzymxf
    L5: Journeyman
    mmzymxf's Avatar
    Oct 2004
    668
    318 mmzymxf is a jewel in the rough
    When does the rebate come back?
     
    Old 11-08-2008, 08:36 PM #200
    VorlonFrog is offline VorlonFrog
    Tech junkie
    VorlonFrog's Avatar
    Jul 2005
    Da Queen City
    1,257
    378 VorlonFrog is just really nice
    Quote from dzap View Post :
    OMG you're killing me..that looks so HOTTTT That turns me on I've been wanting to do that for sooo long now
    Yeah, I shoulda done this weeks ago, but I've been too busy helping other folks get their printers working. Well, that and a week-long business trip to Los Angeles. Something about that Oracle database application I maintain with four million accounts in it.
    Quote from dzap View Post :
    Will that work even though it doesn't assign one? I don't know..it's like there's a f/w on it but it's corrupted so I have to manually assign the right IP addy..
    If it's defaulting to a 192.168.1.xxx address, it should find it. If it doesn't, try two more things:
    a) the reset switch as I mentioned above
    b) download the Redboot.VBS script from the NSLU2 project. It's good for catching your router in situations like this, too. Instead of having it open a telnet window, change the command to perform the TFTP -i PUT command.
     
    Old 11-08-2008, 08:43 PM #201
    VorlonFrog is offline VorlonFrog
    Tech junkie
    VorlonFrog's Avatar
    Jul 2005
    Da Queen City
    1,257
    378 VorlonFrog is just really nice
    Quote from mmzymxf View Post :
    When does the rebate come back?
    Asus usually gets your rebate back to you in 4 to 6 weeks.
     
    Old 11-09-2008, 10:09 AM #202
    VorlonFrog is offline VorlonFrog
    Tech junkie
    VorlonFrog's Avatar
    Jul 2005
    Da Queen City
    1,257
    378 VorlonFrog is just really nice
    DD-WRT Services tab - USB settings

    Here are mine:
    Attached Images
    File Type: jpg ServicesTab.jpg (53.6 KB, 266 views)
     
    Old 11-09-2008, 11:26 AM #203
    yazyazoo is offline yazyazoo
    L5: Journeyman
    Feb 2007
    665
    93 yazyazoo will become famous soon enough
    Vorlon,
    I am still stuck at not getting the swap to show up. I tried to follow the step of the DDWRT wiki but am still stuck. I even tried to reformat the drive and reflash the router. I think I messed it up more. It seems as if the router or the harddrive has some configurations memorized. When I type dmesg I get a weird response. The three partions show but when I go to mount it gives me an error saying the /opt partition is busy. Also in the dd-wrt wiki they only mount the opt and mmc(data) partition. They don't mount the swap partition. Do you think that is why I couldn't get the swapon to work?

    It would be great if you could make a custom wiki like the printer one specifically for this router with the three partitions in the dd-wrt wiki. I know you are busy but for some of us newbies this would help alot. I got my NSLU2 Unslung to work but this router has been giving me a headace.

    How do you quote the dd=wrt wiki and post it onto your posts here. They always look so nice.
     
    Old 11-09-2008, 01:36 PM #204
    VorlonFrog is offline VorlonFrog
    Tech junkie
    VorlonFrog's Avatar
    Jul 2005
    Da Queen City
    1,257
    378 VorlonFrog is just really nice
    Quote from yazyazoo View Post :
    I am still stuck at not getting the swap to show up. I tried to follow the step of the DDWRT wiki but am still stuck. I even tried to reformat the drive and reflash the router. I think I messed it up more. It seems as if the router or the harddrive has some configurations memorized. When I type dmesg I get a weird response. The three partions show but when I go to mount it gives me an error saying the /opt partition is busy. Also in the dd-wrt wiki they only mount the opt and mmc(data) partition. They don't mount the swap partition. Do you think that is why I couldn't get the swapon to work?
    You never really actually mount a swap partition. When you use the swapon command, it tells Linux that partition is available for swap space.

    Quote from yazyazoo View Post :
    It would be great if you could make a custom wiki like the printer one specifically for this router with the three partitions in the dd-wrt wiki. I know you are busy but for some of us newbies this would help alot. I got my NSLU2 Unslung to work but this router has been giving me a headache.
    The hardest part about doing that is that everyone has different configurations, and it's impossible to write something that will allow everyone to do it exactly the same. In my case, I have a USB hub attached to the router (there's no special work required to use a hub) so I can connect both my printer and the hard drive. Other people might want to add more than one hard drive for sharing. I'll see if I can put something together that might make it more straightforward. It will all be command-line examples, though.

    Quote from yazyazoo View Post :
    How do you quote the dd=wrt wiki and post it onto your posts here. They always look so nice.
    I apply the FONT tag with the Courier New font to Linux commands and examples here. It just makes things easier to read (for me, anyway) so I include it in my posts.
     
    Old 11-09-2008, 06:18 PM #205
    VorlonFrog is offline VorlonFrog
    Tech junkie
    VorlonFrog's Avatar
    Jul 2005
    Da Queen City
    1,257
    378 VorlonFrog is just really nice
    After tons of (well, at least two or three) requests...

    Try this out, and let me know how it works for you...

    ================================================== ==========
    I. FORMATTING YOUR DISK DRIVE
    ================================================== ==========

    You must partition and format your hard disk drive somewhere other than your router. DD-WRT does not include the commands necessary to perform these functions. Use a Linux boot CD like Knoppix or Ubuntu on your computer. Restart your computer so it boots from the Linux CD.

    1. After Linux boots, connect your USB hard disk drive.
    2. Open a terminal window so you can issue Linux commands.
    3. Use the command "sudo su -" to become root.
    4. Find out what Linux named your USB disk with the command dmesg | more You're looking for a set of messages that include the name and a description of your hard disk drive. One line will say SCSI device sd? For the remainder of this text, replace sd? with the name of your disk. Here's an example of what you're looking for:
    Code:
    
    scsi0 : SCSI emulation for USB Mass Storage devices
      Vendor: WD        Model: 1600BEV External  Rev: 1.05
      Type:   Direct-Access                      ANSI SCSI revision: 02
    Attached scsi disk sdb at scsi0, channel 0, id 0, lun 0
    SCSI device sdb: 312581808 512-byte hdwr sectors (160042 MB)
    5. Partition the disk using the command fdisk /dev/sd? You will be creating three partitions:
    5.1) sd?1 - the /opt partition, where Optware will reside.
    5.2) sd?2 - the swap partition, where Linux will swap jobs.
    5.3) sd?3 - the data partition, which you will share via Samba.

    It's important to understand everyone's disk drive configuration will be different. If your drive is 40 GB or smaller, use the smaller set of partition sizes below. If your drive is over 40 GB, you can use the larger set of partition sizes.

    Disk 40 GB or less
    ---------------------
    /opt 256 megabytes
    swap 32 megabytes
    data remainder of the disk

    Disk greater than 40 GB
    ------------------------
    /opt 512 megabytes
    swap 64 megabytes
    data remainder of the disk

    Code:
    # fdisk /dev/sd?
    Command (m for help): p
    
    Disk /dev/sd?: 64 heads, 63 sectors, 621 cylinders
    Units = cylinders of 4032 * 512 bytes
    
    Command (m for help): n
    Command action
       e   extended
       p   primary partition (1-4)
    p
    Partition number (1-4): 1
    First cylinder (1-621, default 1):
    Using default value 1
    Last cylinder or +size or +sizeM or +sizeK (1-621, default 621): +256M
    
    Command (m for help): n
    Command action
       e   extended
       p   primary partition (1-4)
    p
    Partition number (1-4): 2
    First cylinder (197-621, default 197):
    Using default value 197
    Last cylinder or +size or +sizeM or +sizeK (197-621, default 621): +32M
    
    Command (m for help): n
    Command action
       e   extended
       p   primary partition (1-4)
    p
    Partition number (1-4): 3
    First cylinder (197-621, default 197):
    Using default value 197
    Last cylinder or +size or +sizeM or +sizeK (197-621, default 621): <ENTER>
    
    Command (m for help): t
    Partition number (1-4): 2
    Hex code (type L to list codes): 82
    Changed system type of partition 2 to 82 (Linux swap)      
    Command (m for help): p
    
    Disk /dev/sd?: 64 heads, 63 sectors, 621 cylinders
    Units = cylinders of 4032 * 512 bytes
     
       Device Boot    Start       End    Blocks   Id  System
    /dev/sd?1   *         1       196    395104+  83  Linux
    /dev/sd?2           197       262    133056   82  Linux swap
    /dev/sd?3           263       458    395136   83  Linux
    
    Command (m for help): w
    5.4) format the opt and data partitions, and prepare the swap partition:
    Code:
    # mke2fs -j -m 1 -L Optware /dev/sd?1
    mke2fs 1.18, 11-Nov-1999 for EXT2 FS 0.5b, 95/08/09
    Filesystem label=Optware
    OS type: Linux
    Block size=4096 (log=2)
    Fragment size=4096 (log=2)
    122112 inodes, 243964 blocks
    12198 blocks (5.00%) reserved for the super user
    First data block=0
    8 block groups
    32768 blocks per group, 32768 fragments per group
    15264 inodes per group
    Superblock backups stored on blocks:
    32768, 98304, 163840, 229376
    
    Writing inode tables: done
    Writing superblocks and filesystem accounting information: done
    
    # mke2fs -j -m 1 -L Shared /dev/sd?3
    mke2fs 1.18, 11-Nov-1999 for EXT2 FS 0.5b, 95/08/09
    Filesystem label=Shared
    OS type: Linux
    Block size=4096 (log=2)
    Fragment size=4096 (log=2)
    122112 inodes, 243964 blocks
    12198 blocks (5.00%) reserved for the super user
    First data block=0
    8 block groups
    32768 blocks per group, 32768 fragments per group
    15264 inodes per group
    Superblock backups stored on blocks:
    32768, 98304, 163840, 229376
    
    Writing inode tables: done
    Writing superblocks and filesystem accounting information: done
    
    # mkswap /dev/sd?2
    5.5) Now your disk drive is partitioned and formatted for Linux.


    ================================================== ==========
    II. CONNECTING THE DRIVE TO YOUR ROUTER
    ================================================== ==========

    1. You should have the JFFS file system enabled on your router. On the DD-WRT web GUI screen, the Administration/Management tab contains this option in an area labeled JFFS2 Support. Enable both options and reboot your router. After it reboots, the first option (JFFS2) will remain enabled and the second option (Clean JFFS2) will be disabled.
    2. On the DD-WRT web GUI screen, on the Services tab enable the options for:
    • Core USB support
    • USB 2.0 support
    • USB storage support
    • ext2/ext3 File System support
    2.1 From the DD-WRT web GUI screen, on the Administration/Management tab, scroll to the bottom and click on Reboot Router.
    3. After a minute, start a terminal session to your router.
    4. Disconnect the disk from your computer and connect it to your router.
    5. In the terminal session, use the command dmesg | more to insure your disk drive is recognized. Here's what it should look like:
    Code:
    SCSI subsystem driver Revision: 1.00
    Initializing USB Mass Storage driver...
    usb.c: registered new driver usb-storage
    USB Mass Storage support registered.
    Journalled Block Device driver loaded
    hub.c: new USB device 00:03.1-1, assigned address 2
    hub.c: USB hub found
    hub.c: 4 ports detected
    usb.c: registered new driver usblp
    printer.c: v0.13: USB Printer Device Class driver
    hub.c: new USB device 00:03.1-1.3, assigned address 3
    scsi0 : SCSI emulation for USB Mass Storage devices
      Vendor: WD        Model: 1600BEV External  Rev: 1.05
      Type:   Direct-Access                      ANSI SCSI revision: 02
    Attached scsi disk sda at scsi0, channel 0, id 0, lun 0
    SCSI device sda: 312581808 512-byte hdwr sectors (160042 MB)
    Partition check:
     /dev/scsi/host0/bus0/target0/lun0: p1 p2 p3
    WARNING: USB Mass Storage data integrity not assured
    USB Mass Storage device found at 3
    6. Change to the directory /dev/scsi/host0/bus0/target0/lun0 and list the files there. There should be one entry for the hard disk drive, and one for each of the three disk partitions.
    Code:
    # cd /dev/scsi/host0/bus0/target0/lun0
    # ls -la
    drwxr-xr-x    1 root     root            0 Jan  1 00:00 .
    drwxr-xr-x    1 root     root            0 Jan  1 00:00 ..
    brw-------    1 root     root       8,   0 Jan  1 00:00 disc
    brw-------    1 root     root       8,   1 Jan  1 00:00 part1
    brw-------    1 root     root       8,   2 Jan  1 00:00 part2
    brw-------    1 root     root       8,   2 Jan  1 00:00 part3
    7. Change to the JFFS2 directory, and create directories for mounting the disk partition:
    Code:
    # cd /jffs
    # mkdir mnt
    # mkdir mnt/disk1
    8. Test mount your new opt and data partitions. In the terminal window, issue these commands:
    Code:
    # mount /dev/scsi/host0/bus0/target0/lun0/part1 /opt
    # mount /dev/scsi/host0/bus0/target0/lun0/part3 /jffs/mnt/disk1
    # mount
    rootfs on / type rootfs (rw)
    /dev/root on / type squashfs (ro)
    none on /dev type devfs (rw)
    proc on /proc type proc (rw)
    ramfs on /tmp type ramfs (rw)
    /dev/mtdblock/4 on /jffs type jffs2 (rw)
    /dev/scsi/host0/bus0/target0/lun0/part3 on /jffs/mnt/disk1 type ext3 (rw)
    /dev/scsi/host0/bus0/target0/lun0/part1 on /opt type ext3 (rw)
    9. On the DD-WRT web GUI screen, on the Administration/Commands tab, click the Edit button, then enter your disk mount commands:
    Code:
    mount /dev/scsi/host0/bus0/target0/lun0/part1 /opt
    mount /dev/scsi/host0/bus0/target0/lun0/part3 /jffs/mnt/disk1
    Click on Save Startup to store the commands. Your terminal session will be disconnected.
    10. From the DD-WRT web GUI screen, on the Administration/Management tab, scroll to the bottom and click on Reboot Router.
    11. After a minute, restart your terminal session and issue the mount command again. You should see both of your disk partitions mounted, even after the router has rebooted.
    Code:
    # mount
    rootfs on / type rootfs (rw)
    /dev/root on / type squashfs (ro)
    none on /dev type devfs (rw)
    proc on /proc type proc (rw)
    ramfs on /tmp type ramfs (rw)
    /dev/mtdblock/4 on /jffs type jffs2 (rw)
    /dev/scsi/host0/bus0/target0/lun0/part3 on /jffs/mnt/disk1 type ext3 (rw)
    /dev/scsi/host0/bus0/target0/lun0/part1 on /opt type ext3 (rw)
    ================================================== ==========
    III. INSTALLING OPTWARE ON YOUR DISK
    ================================================== ==========

    After JFFS is enabled and disk partitions are mounting, you can download and install the Optware packages that provide more Linux functionality to the router. These will be installed onto the hard disk drive, not on the router itself. Remember the /opt directory on your router actually resides on the disk drive.

    1. Use the command ipkg update to update your ipkg repositories:
    Code:
    # ipkg update 
    Downloading http://ipkg.nslu2-linux.org/feeds/optware/ddwrt/cross/stable/Packages ...
    Connecting to ipkg.nslu2-linux.org[140.211.166.82]:80 
    Packages             100% |**********************************************|   259 KB 00:00:00 ETA
    Done.
    Updated list of available packages in //jffs/usr/lib/ipkg/lists/optware
    2. Now download the Optware installation script from the web to the /tmp directory:
    Code:
    # wget http://www.3iii.dk/linux/optware/optware-install-ddwrt.sh -O - | tr -d '\r' > /tmp/optware-install.sh
    3. Execute the Optware installation script you just downloaded. It will take some time to download and configure everything, so verify it starts running, then take a break and come back in ten or fifteen minutes.
    Code:
    # sh /tmp/optware-install.sh
    Checking system config ...
     Using 192.168.1.1 as default gateway.
     Using the following nameserver(s):
     nameserver 192.168.1.30
     Warning: local nameserver is different than gateway!
     Check config or enter:
       sed -i s/192.168.*/192.168.1.1/ /tmp/resolv.conf
     to correct this.
     Installing package uclibc-opt_0.9.28-13_mipsel.ipk ...
     Connecting to ipkg.nslu2-linux.org[140.211.166.82]:80
     uclibc-opt_0.9.28-12 100% |***********************************************|   832 KB 00:00:00 ETA
     Updating /opt/etc/ld.so.cache
     /opt/sbin/ldconfig: can't create /opt/etc/ld.so.cache~ (No such file or directory)
     Installing package ipkg-opt_0.99.163-9_mipsel.ipk ...
     Connecting to ipkg.nslu2-linux.org[140.211.166.82]:80
     ipkg-opt_0.99.163-9_ 100% |***********************************************| 75896    00:00:00 ETA
     Downloading http://ipkg.nslu2-linux.org/feeds/optware/ddwrt/cross/stable/Packages.gz
     Inflating http://ipkg.nslu2-linux.org/feeds/optware/ddwrt/cross/stable/Packages.gz
     Updated list of available packages in /opt/lib/ipkg/lists/optware
     Successfully terminated.
     Installing uclibc-opt (0.9.28-12) to /opt/...
     Downloading http://ipkg.nslu2-linux.org/feeds/optware/ddwrt/cross/stable/uclibc-opt_0.9.28-12_mipsel.ipk
     package uclibc-opt suggests installing ipkg-opt
     Configuring uclibc-opt
     Updating /opt/etc/ld.so.cache
     Successfully terminated.
     Installing ipkg-opt (0.99.163-9) to /opt/...
     Downloading http://ipkg.nslu2-linux.org/feeds/optware/ddwrt/cross/stable/ipkg-opt_0.99.163-9_mipsel.ipk
     Configuring ipkg-opt
     Successfully terminated.
    4. Now install the busybox packages including links for busybox commands:
    Code:
    # /opt/bin/ipkg-opt install busybox-base
    # /opt/bin/ipkg-opt install busybox
    # /opt/bin/ipkg-opt install busybox-links
    5. In your terminal session, update your default executable PATH to look for the new Optware software before the DD-WRT software:
    Code:
    # export PATH=/opt/bin:/opt/sbin:${PATH}
    ================================================== ==========
    IV. ACTIVATING SWAP
    ================================================== ==========

    0. Insure the swap partition is formatted correctly by using the Optware busybox mkswap command:
    Code:
    # /opt/bin/busybox mkswap /dev/scsi/host0/bus0/target0/lun0/part2
    1. Test your swap partition by using the Optware busybox swapon command:
    Code:
    # /opt/bin/busybox swapon /dev/scsi/host0/bus0/target0/lun0/part2
    2. Use the free command to verify your swap space is active:
    Code:
    # free
                  total         used         free       shared      buffers
      Mem:        13048        12564          484            0          908
     Swap:        72252            0        72252
    Total:        85300        12564        72736
    3. Using the DD-WRT web GUI screen, go to the Administration/Commands screen, and click 'Edit'. Add the busybox swapon command below everything else so swap will be enabled whenever the router reboots. Click on Save Startup to save your startup commands. Your terminal session will be disconnected.
    Code:
    /opt/bin/busybox swapon /dev/scsi/host0/bus0/target0/lun0/part2
    4. Using the DD-WRT web GUI screen, go to the Administration/Management tab, scroll to the bottom, and click on Reboot Router
    5. After a minute, restart your terminal session, and use the free command again. This verifies your swap space is activated whenever the router reboots.

    ================================================== ==========
    V. INSTALLING SAMBA
    ================================================== ==========

    1. Using the terminal session, use the Optware ipkg-opt command to update your repository, remove any Samba packages installed with Optware, then download and install the Samba software:
    Code:
    # /opt/bin/ipkg-opt update 
    Downloading http://ipkg.nslu2-linux.org/feeds/optware/ddwrt/cross/stable/Packages.gz
    Inflating http://ipkg.nslu2-linux.org/feeds/optware/ddwrt/cross/stable/Packages.gz
    Updated list of available packages in /opt/lib/ipkg/lists/optware
    Successfully terminated.
    
    # /opt/bin/ipkg-opt remove samba
    # /opt/bin/ipkg-opt install samba2
    2. Samba uses a default Linux user name of nobody but DD-WRT doesn't provide this user name by default. The workaround is to add this user to the DD-WRT user/password file every time the router reboots.
    3. Using the DD-WRT web GUI screen, go to the Administration/Commands screen. Add the following command to the bottom of your startup commands:
    Code:
    echo "nobody:*:65534:65534:nobody:/var:/bin/false" >>/tmp/etc/passwd
    4. Using the DD-WRT web GUI screen, go to the Administration/Management tab, scroll to the bottom, and click on Reboot Router'
    5. After a minute, restart your terminal session, and check the user/password file to insure the nobody user has been added following a reboot:
    Code:
    # grep nobody /tmp/etc/passwd
    nobody:*:65534:65534:nobody:/var:/bin/false
    6. Create a shared data directory on your hard disk drive:
    Code:
    # cd /jffs/mnt/disk1
    # mkdir share
    # chmod 777 share
    7. Edit the Samba configuration file to add this share at the bottom of the file:
    Code:
    # cd /opt/etc/samba
    # cat >>smb.conf  <<EOF
    
    [disk1]
        comment = DD-WRT shared disk
        path = /jffs/mnt/disk1/share
        public = yes
        writable = yes
        printable = no
        create mask = 0666
    
    EOF
    8. Edit the Samba configuration file to:
    8.1) change the default workgroup name. Yours should match whatever is on all your other computers.
    8.2) Define the range of IP addresses allowed
    8.3) Announce itself on your network
    Code:
    # vi smb.conf
    
    [global]
    
    # workgroup = NT-Domain-Name or Workgroup-Name
       workgroup = MyWorkgroupName
    
    # server string is the equivalent of the NT Description field
       server string = DD-WRT Samba Server
    
    # This option is important for security. It allows you to restrict
    # connections to machines which are on your local network. 
       hosts allow = 192.168.1.  127.
    
    # Cause this host to announce itself to local subnets here
       remote announce = 192.168.1.255
    
    :wq
    #
    9. Test the Samba configuration by manually starting the two Samba daemons:
    Code:
    # /opt/sbin/nmbd -D
    # /opt/sbin/smbd -D
    10. From your computer, browse your network. Go to the address bar, enter two back-slashes followed by the IP address of your router and press ENTER. You should see your shared disk drive
    Code:
    \\192.168.1.1
    11. If you can see the drive, create a test directory and a test file within that directory from your computer.
    12. Using the DD-WRT web GUI screen, go to the Administration/Commands screen. Add the following command to the bottom of your startup commands:
    Code:
    /opt/etc/init.d/S80samba start
    13. Using the DD-WRT web GUI screen, go to the Administration/Management tab, scroll to the bottom, and click on Reboot Router
    14. After a minute, browse your network again to insure the drive is shared after the router reboots.

    ================================================== ==========
    VI. ALL THE STARTUP COMMANDS
    ================================================== ==========

    When you're finished, your router startup commands should look something like this:
    Code:
    mount /dev/scsi/host0/bus0/target0/lun0/part1 /opt
    mount /dev/scsi/host0/bus0/target0/lun0/part3 /jffs/mnt/disk1
    /opt/bin/busybox swapon /dev/scsi/host0/bus0/target0/lun0/part2
    echo "nobody:*:65534:65534:nobody:/var:/bin/false" >>/tmp/etc/passwd
    /opt/etc/init.d/S80samba start
    Enjoy....

    Last edited by VorlonFrog; 07-03-2009 at 08:01 AM.. Reason: Step 9. Added 'Edit' button note
     
    Old 11-09-2008, 09:47 PM #206
    yazyazoo is offline yazyazoo
    L5: Journeyman
    Feb 2007
    665
    93 yazyazoo will become famous soon enough
    Vorlon,
    I retried to start from scratch. I get to dmesg to check my partions on the Harddrive. I get this. What is wrong. I tried reflashing the router and reformatting the harddrive. For some reason it's remembering something from my old installation try.

    root@DD-WRT:~# dmesg
    CPU revision is: 00029029
    Linux version 2.4.36 (bin@dd-wrt) (gcc version 3.4.6 (OpenWrt-2.0)) #1807 Fri Sep 26 11:49:13 CEST 2008
    Setting the PFC to its default value
    Determined physical RAM map:
    memory: 01000000 @ 00000000 (usable)
    On node 0 totalpages: 4096
    zone(0): 4096 pages.
    zone(1): 0 pages.
    zone(2): 0 pages.
    Kernel command line: root=/dev/mtdblock2 rootfstype=squashfs,jffs2 noinitrd console=ttyS0,115200
    CPU: BCM5354 rev 2 at 240 MHz
    Using 120.000 MHz high precision timer.
    Calibrating delay loop... 239.20 BogoMIPS
    Dentry cache hash table entries: 2048 (order: 2, 16384 bytes)
    Inode cache hash table entries: 1024 (order: 1, 8192 bytes)
    Mount cache hash table entries: 512 (order: 0, 4096 bytes)
    Buffer cache hash table entries: 1024 (order: 0, 4096 bytes)
    Page-cache hash table entries: 4096 (order: 2, 16384 bytes)
    Checking for 'wait' instruction... unavailable.
    POSIX conformance testing by UNIFIX
    PCI: no core
    PCI: Fixing up bus 0
    Initializing RT netlink socket
    Starting kswapd
    devfs: v1.12c (20020818) Richard Gooch (rgooch@atnf.csiro.au)
    devfs: boot_options: 0x1
    squashfs: version 3.0 (2006/03/15) Phillip Lougher
    pty: 256 Unix98 ptys configured
    Serial driver version 5.05c (2001-07-08) with MANY_PORTS SHARE_IRQ SERIAL_PCI enabled
    ttyS00 at 0xb8000300 (irq = 3) is a 16550A
    ttyS01 at 0xb8000400 (irq = 3) is a 16550A
    PCI: Setting latency timer of device 00:01.0 to 64
    PCI: Setting latency timer of device 00:05.0 to 64
    sb_doattach: incoming bus is PCI but it's a lie, switching to SB devid:0x4318
    Universal TUN/TAP device driver 1.5 (C)1999-2002 Maxim Krasnyansky
    Physically mapped flash: Found an alias at 0x400000 for the chip at 0x0
    Physically mapped flash: Found an alias at 0x800000 for the chip at 0x0
    Physically mapped flash: Found an alias at 0xc00000 for the chip at 0x0
    Physically mapped flash: Found an alias at 0x1000000 for the chip at 0x0
    Physically mapped flash: Found an alias at 0x1400000 for the chip at 0x0
    Physically mapped flash: Found an alias at 0x1800000 for the chip at 0x0
    Physically mapped flash: Found an alias at 0x1c00000 for the chip at 0x0
    Amd/Fujitsu Extended Query Table v1.1 at 0x0040
    number of CFI chips: 1
    cfi_cmdset_0002: Disabling fast programming due to code brokenness.
    Flash device: 0x400000 at 0x1c000000
    bootloader size: 131072
    Physically mapped flash: Filesystem type: squashfs, size=0x2089f5
    Creating 5 MTD partitions on "Physically mapped flash":
    0x00000000-0x00020000 : "cfe"
    0x00020000-0x003f0000 : "linux"
    0x00101c00-0x00310000 : "rootfs"
    mtd: partition "rootfs" doesn't start on an erase block boundary -- force read-only
    0x003f0000-0x00400000 : "nvram"
    0x00310000-0x003f0000 : "ddwrt"
    sflash not supported on this router
    Initializing Cryptographic API
    IP Protocols: ICMP, UDP, TCP, IGMP
    IP: routing cache hash table of 512 buckets, 4Kbytes
    TCP: Hash tables configured (established 1024 bind 2048)
    ip_conntrack version 2.1 (512 buckets, 4096 max) - 336 bytes per conntrack
    ip_tables: (C) 2000-2002 Netfilter core team
    ipt_random match loaded
    netfilter PSD loaded - (c) astaro AG
    ipt_osf: Startng OS fingerprint matching module.
    ipt_IPV4OPTSSTRIP loaded
    NET4: Unix domain sockets 1.0/SMP for Linux NET4.0.
    802.1Q VLAN Support v1.8 Ben Greear <greearb@candelatech.com>
    All bugs added by David S. Miller <davem@redhat.com>
    VFS: Mounted root (squashfs filesystem) readonly.
    Mounted devfs on /dev
    usb.c: registered new driver usbdevfs
    usb.c: registered new driver hub
    USB20H fcr: 0x64
    USB20H shim cr: 0x8f7
    USB20H syn01 register : 0xfe00fe
    USB20H syn03 register : 0x1
    PCI: Setting latency timer of device 00:03.1 to 64
    ehci_hcd 00:03.1: PCI device 14e4:471a
    ehci_hcd 00:03.1: irq 6, pci mem b8003800
    usb.c: new USB bus registered, assigned bus number 1
    ehci_hcd 00:03.1: illegal capability!
    ehci_hcd 00:03.1: USB 0.0 enabled, EHCI 1.00, driver 2003-Dec-29/2.4
    hub.c: USB hub found
    hub.c: 2 ports detected
    SCSI subsystem driver Revision: 1.00
    Initializing USB Mass Storage driver...
    usb.c: registered new driver usb-storage
    USB Mass Storage support registered.
    Journalled Block Device driver loaded
    hub.c: new USB device 00:03.1-1, assigned address 2
    usb.c: registered new driver usblp
    printer.c: v0.13: USB Printer Device Class driver
    scsi0 : SCSI emulation for USB Mass Storage devices
    Vendor: WDC WD20 Model: 0EB-00CPF0 Rev: 0811
    Type: Direct-Access ANSI SCSI revision: 02
    Attached scsi disk sda at scsi0, channel 0, id 0, lun 0
    SCSI device sda: 39102336 512-byte hdwr sectors (20020 MB)
    Partition check:
    /dev/scsi/host0/bus0/target0/lun0: p1 p2 p3
    WARNING: USB Mass Storage data integrity not assured
    USB Mass Storage device found at 2
    vlan0: add 01:00:5e:00:00:01 mcast address to master interface
    vlan0: dev_set_promiscuity(master, 1)
    device eth0 entered promiscuous mode
    device vlan0 entered promiscuous mode
    device eth1 entered promiscuous mode
    device vlan1 entered promiscuous mode
    vlan1: Setting MAC address to 00 1e 8c ce fb 05.
    vlan1: dev_set_promiscuity(master, 1)
    vlan1: dev_set_allmulti(master, 1)
    vlan1: dev_set_promiscuity(master, -1)
    device vlan1 left promiscuous mode
    vlan1: dev_set_allmulti(master, -1)
    vlan1: add 01:00:5e:00:00:01 mcast address to master interface
    SQUASHFS error: Can't find a SQUASHFS superblock on sd(8,1)
    kjournald starting. Commit interval 5 seconds
    EXT3 FS 2.4-0.9.19, 19 August 2002 on sd(8,1), internal journal
    EXT3-fs: recovery complete.
    EXT3-fs: mounted filesystem with ordered data mode.
    root@DD-WRT:~# ls -la
    drwx------ 1 root root 0 Jan 1 1970 .
    drwxrwxrwx 1 root root 0 Jan 1 2000 ..
    -rw-r--r-- 1 root root 61 Nov 10 05:47 .profile
    drwx------ 1 root root 0 Jan 1 1970 .ssh

    Last edited by yazyazoo; 11-09-2008 at 09:53 PM..
     
    Old 11-09-2008, 10:18 PM #207
    yazyazoo is offline yazyazoo
    L5: Journeyman
    Feb 2007
    665
    93 yazyazoo will become famous soon enough
    Vorlon,
    I tried to do it again and just went ahead to try it. Everything seemed to work up to Activating Swap.

    I get an error.

    root@DD-WRT:/# export PATH=/opt/bin:/opt/sbin:${PATH}
    root@DD-WRT:/# /opt/bin/busybox swapon /dev/scsi/host0/bus0/target0/lun0/part2
    -sh: /opt/bin/busybox: not found

    I looked at the busybox and there isn't even a swapon command in it. Did the busybox core install?

    Last edited by yazyazoo; 11-09-2008 at 10:44 PM..
     
    Old 11-09-2008, 10:23 PM #208
    dzap is offline dzap
    Temporarily Off-Air
    dzap's Avatar
    Jul 2006
    -_-V
    33,979
    6568 dzap has a reputation beyond repute
    I'm doing this as we speak..diverting some steps..dzap-noob-proof method coming up..since I just stared at all of Volron's code and almost fainted....so far..my way is working
     
    Old 11-09-2008, 10:38 PM #209
    tonylu is offline tonylu
    L2: Beginner
    Jan 2006
    68
    19 tonylu is finding his bearings
    Quote from dzap View Post :
    sigh..I still haven't figured out how to unbrick this..I installed dd-wrt many months ago but it got screwed up somewhere along the way..I remember I unbricked it more than once but I forgot the ip of it..damn..there has to be a way
    You can try this method: http://wl500g.info/showpost.php?p...stcount=11

    It worked great for my bricked wl-520GU, although the method is for wl500g. You need to download wl-520gu firmware from ASUS.
     
    Old 11-09-2008, 10:49 PM #210
    dzap is offline dzap
    Temporarily Off-Air
    dzap's Avatar
    Jul 2006
    -_-V
    33,979
    6568 dzap has a reputation beyond repute
    sh*t..so close...the share is there but Vista keeps asking me for a username and password..and I've tried everything..arghh..
     
  • ReplyPost Reply


  • Thread Tools Search this Thread
    Search this Thread:

    Advanced Search

    Posting Rules
    You may not post new threads
    You may not post replies
    You may not post attachments
    You may not edit your posts

    BB code is On
    Smilies are On
    [IMG] code is Off
    HTML code is Off

     


    All times are GMT -7. The time now is 03:14 AM.

    Close
    E-mail It