[SOLVED] NewB: Problem with samba, any tips?

This forum is for Marvell Kirkwood devices such as the GoFlex Home/Net, PogoPlug v1/v2, SheevaPlug, and ZyXEL devices.

[SOLVED] NewB: Problem with samba, any tips?

Postby techmate » Sat Mar 02, 2013 4:40 pm

Update
Solved by re-installing samba
followed this instruction http://web.archive.org/web/201205272051 ... ions/samba

hit a snag with adduser so I use:
useradd pcguest
passwd pcguest

and from slickdeals thread, do this to enable and start the service on boot
systemctl enable smbd.service
systemctl enable nmbd.service
systemctl start smbd.service
systemctl start nmbd.service

Now samba is working properly with my win7


Hello
Just bought pogoplug E02 after reading slickdeals thread. My main goal is to use it for internal file server and dlna.
Since I cant find any newb instruction, I am following this thread
viewtopic.php?f=18&t=5135
and I am lost ... no experience in linux :(

Official pogo Archlinux guide is awesome and able to breeze through

webmin I struggle I bit but able to access direct using ipaddress instead of hostname, even after I used
# hostname myserver
I can access direct by doing http://192.169.1.107:10000

Next is samba.
Any of you installed samba recently? looks like missing files etc. I searched forum and found several topics about missing files, switching to systemd, etc ....
Anyway I tried and stuck at starting samba and probably configuration as well. I dont know how to get around it

is there any step by step guide to setup samba so I can redo the whole installation rather than try to troubleshoot.

TIA
Last edited by techmate on Sat Mar 09, 2013 6:30 pm, edited 1 time in total.
techmate
 
Posts: 9
Joined: Sat Mar 02, 2013 4:25 pm

Re: NewB: Problem with samba, any tips?

Postby winestock » Sat Mar 02, 2013 6:39 pm

$this->bbcode_second_pass_quote('techmate', 'H')ello
Just bought pogoplug E02 after reading slickdeals thread. My main goal is to use it for internal file server and dlna.
Since I cant find any newb instruction, I am following this thread
viewtopic.php?f=18&t=5135
and I am lost ... no experience in linux :(

Official pogo Archlinux guide is awesome and able to breeze through

webmin I struggle I bit but able to access direct using ipaddress instead of hostname, even after I used
# hostname myserver
I can access direct by doing http://192.169.1.107:10000

Next is samba.
Any of you installed samba recently? looks like missing files etc. I searched forum and found several topics about missing files, switching to systemd, etc ....
Anyway I tried and stuck at starting samba and probably configuration as well. I dont know how to get around it

is there any step by step guide to setup samba so I can redo the whole installation rather than try to troubleshoot.

TIA


As far as samba, what version of Arm Linux are you using? What steps have you done so far to install samba?

Steps I use to install and setup samba:
$this->bbcode_list('1')
  • pacman -Syu samba avahi
  • Edit /etc/smb.conf:
    Here is what I put in /etc/smb.conf:
    $this->bbcode_second_pass_code('', '
    [global]
    workgroup = WORKGROUP
    server string = ALARM
    netbios name = ALARM
    disable netbios = yes
    security = share
    load printers = no
    printing = bsd
    printcap name = /dev/null
    disable spoolss = yes
    log file = /var/log/samba/%m.log
    max log size = 50
    dns proxy = no
    socket options = TCP_NODELAY IPTOS_LOWDELAY SO_KEEPALIVE SO_RCVBUF=131072 SO_SNDBUF=131072 SO_KEEPALIVE

    large readwrite = yes
    min receivefile size = 4096
    use sendfile = true
    aio read size = 4096
    aio write size = 65636
    write raw = yes
    read raw = yes
    max xmit = 131070
    dead time = 15
    getwd cache = Yes
    oplocks = No
    write cache size = 65536

    [Media1]
    path = /media/Media1
    read only = no
    public = yes
    writable = yes
    only guest = yes

    [Media2]
    path = /media/Media2
    read only = no
    public = yes
    writable = yes
    only guest = yes
    ')
  • systemctl enable smbd
  • systemctl start smbd
  • Pogoplug Series 4 / Linux-Kirkwood 3.10.10-2
    winestock
     
    Posts: 134
    Joined: Mon Nov 05, 2012 12:03 am

    Re: NewB: Problem with samba, any tips?

    Postby techmate » Sat Mar 02, 2013 9:45 pm

    I did this
    pacman -Sy samba avahi
    cp /etc/samba/smb.conf.default /etc/samba/smb.conf

    I noticed yours /etc/smb.conf .. did I copy to the wrong folder?

    Is it better to uninstall samba and just follow yours ... what is the easiest way to uninstall samba?
    techmate
     
    Posts: 9
    Joined: Sat Mar 02, 2013 4:25 pm

    Re: NewB: Problem with samba, any tips?

    Postby winestock » Sun Mar 03, 2013 2:16 am

    $this->bbcode_second_pass_quote('techmate', 'I') did this
    pacman -Sy samba avahi
    cp /etc/samba/smb.conf.default /etc/samba/smb.conf


    This is fine. The default config file is a starting point so copying it over is what you want to do.

    $this->bbcode_second_pass_quote('techmate', 'I') noticed yours /etc/smb.conf .. did I copy to the wrong folder?

    Is it better to uninstall samba and just follow yours ... what is the easiest way to uninstall samba?


    You will need to modify /etc/samba/smb.conf to add the paths to hard drives that you want to have accessible via samba. I would not suggest using mine directly only as an example of what goes in the config file. In my case, I have two HD drives /media/Media1 and /media/Media2 that I access via samba.
    Pogoplug Series 4 / Linux-Kirkwood 3.10.10-2
    winestock
     
    Posts: 134
    Joined: Mon Nov 05, 2012 12:03 am
    Top

    Re: NewB: Problem with samba, any tips?

    Postby techmate » Sun Mar 03, 2013 4:27 pm

    thanks I am making progress
    am able to see samba server from my win7 64 now but I am not able to access the share drive ..
    this is my /etc/samba/smb.conf
    $this->bbcode_second_pass_code('', '
    [global]
    log file = /var/log/samba/%m.log
    large readwrite = yes
    load printers = no
    read raw = yes
    write raw = yes
    aio read size = 4096
    socket options = TCP_NODELAY IPTOS_LOWDELAY SO_KEEPALIVE SO_RCVBUF=131072 SO_SNDBUF=131072 SO_KEEPALIVE
    dead time = 15
    max xmit = 131070
    dns proxy = no
    oplocks = No
    netbios name = SambaServer
    write cache size = 65536
    min receivefile size = 4096
    printing = bsd
    server string = SambaServer
    disable netbios = yes
    aio write size = 65636
    workgroup = WORKGROUP
    use sendfile = true
    os level = 20
    printcap name = /dev/null
    security = share
    getwd cache = Yes
    max log size = 50
    disable spoolss = yes


    [hd-sdb1]
    path = /media/hd-sdb1
    read only = no
    public = yes
    writable = yes
    only guest = yes
    [test1]
    read only = no
    public = yes
    writable = yes
    only guest = yes
    path = /media/hd-sdb1/test1
    ')

    when I try to use win7 to connect to drive Z using \\192.168.1.107\test1
    win7 connected to drive but then show error Z:\ is not accessible, the specified network name is not available
    not sure what is going on there. btw, the drive is usb drive with ext3 format. should I format drive to ntfs ?
    techmate
     
    Posts: 9
    Joined: Sat Mar 02, 2013 4:25 pm

    Re: NewB: Problem with samba, any tips?

    Postby winestock » Sun Mar 03, 2013 8:28 pm

    $this->bbcode_second_pass_quote('techmate', 't')hanks I am making progress
    am able to see samba server from my win7 64 now but I am not able to access the share drive ..
    this is my /etc/samba/smb.conf
    $this->bbcode_second_pass_code('', '
    [global]
    log file = /var/log/samba/%m.log
    large readwrite = yes
    load printers = no
    read raw = yes
    write raw = yes
    aio read size = 4096
    socket options = TCP_NODELAY IPTOS_LOWDELAY SO_KEEPALIVE SO_RCVBUF=131072 SO_SNDBUF=131072 SO_KEEPALIVE
    dead time = 15
    max xmit = 131070
    dns proxy = no
    oplocks = No
    netbios name = SambaServer
    write cache size = 65536
    min receivefile size = 4096
    printing = bsd
    server string = SambaServer
    disable netbios = yes
    aio write size = 65636
    workgroup = WORKGROUP
    use sendfile = true
    os level = 20
    printcap name = /dev/null
    security = share
    getwd cache = Yes
    max log size = 50
    disable spoolss = yes


    [hd-sdb1]
    path = /media/hd-sdb1
    read only = no
    public = yes
    writable = yes
    only guest = yes
    [test1]
    read only = no
    public = yes
    writable = yes
    only guest = yes
    path = /media/hd-sdb1/test1
    ')

    when I try to use win7 to connect to drive Z using \\192.168.1.107\test1
    win7 connected to drive but then show error Z:\ is not accessible, the specified network name is not available
    not sure what is going on there. btw, the drive is usb drive with ext3 format. should I format drive to ntfs ?


    Try setting in [global], the workgroup and netbios name like I did in the example I showed you above.
    Pogoplug Series 4 / Linux-Kirkwood 3.10.10-2
    winestock
     
    Posts: 134
    Joined: Mon Nov 05, 2012 12:03 am
    Top

    Re: NewB: Problem with samba, any tips?

    Postby techmate » Mon Mar 04, 2013 3:44 pm

    problem remains
    $this->bbcode_second_pass_code('', '
    [global]
    log file = /var/log/samba/%m.log
    large readwrite = yes
    load printers = no
    read raw = yes
    write raw = yes
    aio read size = 4096
    socket options = TCP_NODELAY IPTOS_LOWDELAY SO_KEEPALIVE SO_RCVBUF=131072 SO_SNDBUF=131072 SO_KEEPALIVE
    dead time = 15
    max xmit = 131070
    dns proxy = no
    oplocks = No
    netbios name = ALARM
    write cache size = 65536
    min receivefile size = 4096
    printing = bsd
    server string = ALARM
    disable netbios = yes
    aio write size = 65636
    workgroup = WORKGROUP
    use sendfile = true
    os level = 20
    printcap name = /dev/null
    security = share
    getwd cache = Yes
    max log size = 50
    disable spoolss = yes


    [hd-sdb1]
    path = /media/hd-sdb1
    read only = no
    public = yes
    writable = yes
    only guest = yes
    [test1]
    path = /media/hd-sdb1/test1
    read only = no
    public = yes
    writable = yes
    only guest = yes
    ')

    I can see samba server ALARM in my win7 network, but when I click it, get this error
    Attachments
    samba-error.jpg
    samba-error.jpg (43.37 KiB) Viewed 5171 times
    techmate
     
    Posts: 9
    Joined: Sat Mar 02, 2013 4:25 pm

    Re: NewB: Problem with samba, any tips?

    Postby techmate » Mon Mar 04, 2013 3:47 pm

    If I tried to map directly, I will get this error
    Attachments
    samba-error1.jpg
    samba-error1.jpg (31.57 KiB) Viewed 5171 times
    techmate
     
    Posts: 9
    Joined: Sat Mar 02, 2013 4:25 pm

    Re: NewB: Problem with samba, any tips?

    Postby lieuv » Tue Mar 05, 2013 5:15 pm

    Had the same problem. My USB hdd drive was not mounted correctly. Can you do fdisk -l to see how your USB hdd is mounted and post it?
    lieuv
     
    Posts: 1
    Joined: Tue Mar 05, 2013 5:07 pm

    Re: NewB: Problem with samba, any tips?

    Postby winestock » Wed Mar 06, 2013 12:08 am

    $this->bbcode_second_pass_quote('techmate', 'I')f I tried to map directly, I will get this error


    Did you mount your HDs on your Pogoplug to the /media directory? Make sure you mount them with rw access.
    Pogoplug Series 4 / Linux-Kirkwood 3.10.10-2
    winestock
     
    Posts: 134
    Joined: Mon Nov 05, 2012 12:03 am
    Top

    Next

    Return to Marvell Kirkwood

    Who is online

    Users browsing this forum: No registered users and 10 guests