Results 1 to 15 of 66

Thread: [HowTo] Getting started (Firmware upgr, Storage, Samba, SSH)

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Apr 2004
    Location
    Netherlands
    Posts
    1,308
    post-boot is a file.

    Make sure you use a recent firmware from Oleg and then execute (if the /usr/local/sbin dir doesn't exist):
    - flashfs enable
    - mkdir /usr/local/sbin
    - touch post-boot
    - touch pre-boot
    - touch post-firewall
    - touch post-mount
    - flashfs save
    - flashfs commit

  2. #2
    Join Date
    Nov 2005
    Location
    Eindhoven @ The Netherlands
    Posts
    17
    Can't get the samba share working, what's going wrong?

    I did try this tutorial to enable a samba share at my external usb harddisk, but i can't access it through a share. What's going wrong?

    Here is all my information:

    [admin@(none) root]$ cat /etc/smb.conf
    workgroup = WERKGROEP
    server string = OpenWRT Samba Server
    wins support = no
    dns proxy = no
    name resolve order = lmhosts hosts bcast
    log file = /opt/var/log/samba/log.%m
    max log size = 1000
    syslog = 0
    security = share
    encrypt passwords = true
    obey pam restrictions = yes
    guest account = nobody
    passwd program = /usr/bin/passwd %u
    load printers = no

    [share]
    comment = /tmp/harddisk
    path = /tmp/harddisk
    writeable = yes
    browseable = yes
    force user = admin

    [admin@(none) root]$ ps
    PID Uid VmSize Stat Command
    1 admin 700 S /sbin/init
    2 admin SW [keventd]
    3 admin SWN [ksoftirqd_CPU0]
    4 admin SW [kswapd]
    5 admin SW [bdflush]
    6 admin SW [kupdated]
    7 admin SW [mtdblockd]
    41 admin 292 S telnetd
    46 admin 392 S httpd eth1
    49 admin 340 S klogd
    53 nobody 428 S dnsmasq
    54 admin 388 S syslogd -m 0 -O /tmp/syslog.log -S -l 7
    56 admin 500 S nas /tmp/nas.lan.conf /tmp/nas.lan.pid lan
    59 admin SW [khubd]
    69 admin 276 S lpd
    71 admin 260 S p9100d -f /dev/usb/lp0 0
    73 admin 260 S p9101d -f /dev/printers/0 1
    76 admin 340 S waveservermain
    78 admin 348 S rcamdmain
    82 admin SW [usb-storage-0]
    83 admin SW [scsi_eh_0]
    93 admin 324 S infosvr br0
    94 admin 480 S watchdog
    96 admin 340 S ntp
    104 admin 428 S dropbear
    113 admin SW [kjournald]
    115 admin 404 S stupid-ftpd
    117 admin 744 R dropbear
    118 admin 528 S -sh
    124 admin 392 R ps

    [admin@(none) root]$ cat /usr/local/sbin/post-boot
    #!/bin/sh
    dropbear
    /usr/sbin/smbd -D
    /usr/sbin/nmbd -D

    What is going wrong? It look to me that Samba is not started, but howcome?

    Any help apriciated.

    Tnx,
    Roland

  3. #3
    Join Date
    Nov 2005
    Location
    Eindhoven @ The Netherlands
    Posts
    17
    Already did try some more things, with the same result, it looks again that Samba is not starting. I followed the above tutorial, and also try the tutorial from www.macsat.com

    This is my post boot file at the moment:

    [admin@(none) root]$ cat /usr/local/sbin/post-boot
    #!/bin/sh
    dropbear
    mount -t ext3 /dev/discs/disc0/part1 /opt
    mount -t ext3 /dev/discs/disc0/part3 /tmp/harddisk
    swapon /dev/discs/disc0/part2
    # remove audio module
    killall waveservermain
    rmmod audio
    rmmod soundcore
    # And printer
    killall p910nd
    killall lpd
    killall infosvr
    rmmod printer
    # start Samba
    /usr/sbin/smbd -D
    /usr/sbin/nmbd -D

    Please help, got stuck....

    Roland

  4. #4
    well, thanx alot . this howto won't let my router be reachable anymore....
    it boots, but i can't reach it by 192.168.1.1 and can't get internet to. so i plugged the wan cable direct in my pc and internet works again....
    but the router not.... i pushed the resetbutton several times and now i unplugged the powercable with the hope of a total reset.


    i've got an 500gdeluxe with oleg's 1.9.2.7-6b
    HD: a WD 160GB in a sitecom md200 (old version) casing formatted as EXT3 as 1 big partition, works with ftp but has appearantly a 2GB filesize limit since uploading of 2GB< files always failes. WHY??

    what i did:
    i put this in smb.conf
    [global]
    workgroup = MSHOME
    guest account = nobody
    security = share
    browseable = yes
    guest ok = yes
    guest only = no
    log level = 1
    max log size = 100
    encrypt passwords = yes
    dns proxy = no

    and saved it--> \\192.168.1.1 gave "incorrect path" in windows so samba didnt work (yet)

    then i added this to smb.conf:
    [ext3]
    path=/tmp/harddisk
    writeable = yes
    browseable = yes
    force user = admin

    then i did this:
    echo /etc/smb.conf >> /usr/local/.files

    and this:
    echo "/usr/sbin/smbd -D" >> /usr/local/sbin/post-boot
    echo "/usr/sbin/nmbd -D" >> /usr/local/sbin/post-boot

    this first didn't work since the sbin directory didn't exist. I created that and the postboot with some other howto from this site.

    and last:
    flashfs save
    flashfs commit
    flashfs enable
    reboot


    what did i wrong to make my router not reachable anymore and why did't samba work????

  5. #5

    Lightbulb Not a samba problem

    You don't write what modifications did you do with your router except samba configuration. Without this info it is not possible to say why is your asus not routing to internet. Definitely it is not caused by samba.

    For your samba "problem" - it looks like you didn't make the post-boot script executable and forgot to put #!/bin/sh at begining of the file

    You can fix it with following commands:
    Code:
    echo "#!/bin/sh" > /usr/local/sbin/post-boot
    echo "/usr/sbin/smbd -D" >> /usr/local/sbin/post-boot
    echo "/usr/sbin/nmbd -D" >> /usr/local/sbin/post-boot
    chmod +x /usr/local/sbin/post-boot
    flashfs save
    flashfs commit
    flashfs enable
    reboot
    I presume you have only 2 lines in post-boot right now. If you added other lines to your post-boot, just add the first line using vi editor.

  6. #6
    Quote Originally Posted by unicorn View Post
    You don't write what modifications did you do with your router except samba configuration. Without this info it is not possible to say why is your asus not routing to internet. Definitely it is not caused by samba.

    For your samba "problem" - it looks like you didn't make the post-boot script executable and forgot to put #!/bin/sh at begining of the file

    You can fix it with following commands:
    Code:
    echo "#!/bin/sh" > /usr/local/sbin/post-boot
    echo "/usr/sbin/smbd -D" >> /usr/local/sbin/post-boot
    echo "/usr/sbin/nmbd -D" >> /usr/local/sbin/post-boot
    chmod +x /usr/local/sbin/post-boot
    flashfs save
    flashfs commit
    flashfs enable
    reboot
    I presume you have only 2 lines in post-boot right now. If you added other lines to your post-boot, just add the first line using vi editor.
    i already did a full reset and now the router is working fine. i dont think i'll try samba again unless i know exactly what i'm doing,

Similar Threads

  1. Firmware upgrading HOWTO
    By Styno in forum WL-500g/WL-500gx Tutorials
    Replies: 6
    Last Post: 30-07-2008, 21:00
  2. Started with Custom 1.1.28. Need some help
    By fleppuhstein in forum WL-HDD Q&A
    Replies: 0
    Last Post: 04-04-2005, 21:01
  3. Samba in 1.9.2.7-4 firmware
    By viper_002 in forum WL-500g Q&A
    Replies: 7
    Last Post: 31-03-2005, 19:24
  4. RCAMD started 3 times ?
    By max2950 in forum WL-500g Q&A
    Replies: 0
    Last Post: 09-03-2005, 12:45
  5. Samba and Firmware 1.9.2.7-RC3
    By Arobs45 in forum WL-500g Q&A
    Replies: 29
    Last Post: 20-01-2005, 14:49

Posting Permissions

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