[SOLVED] Troubles with SAMBA on alARM

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

Re: Troubles with SAMBA on alARM

Postby jhaveri » Sun Dec 30, 2012 10:00 pm

I had some trouble also, but it worked after reading about systemd on wiki. I then used the following command to make samba start on boot.

systemctl enable smbd.service
systemctl enabel nmbd.service
systemctl start smbd.service
systemctl start nmbd.service

I had to use enable only once. Apparently it creates symlynks and then you can use smbd start stop etc.
jhaveri
 
Posts: 16
Joined: Sun Dec 30, 2012 10:24 am

Re: Troubles with SAMBA on alARM

Postby UberSlackr » Sun Dec 30, 2012 11:09 pm

$this->bbcode_second_pass_quote('WarheadsSE', 'D')o me a favor,
$this->bbcode_second_pass_code('', 'systemctl')
And tell me what you get. A lot, or "no connection to dbus" or the like.


Ran command as requested: Here is output - http://stashbox.in/CenN
UberSlackr
 
Posts: 39
Joined: Mon Dec 24, 2012 6:29 am

Re: Troubles with SAMBA on alARM

Postby WarheadsSE » Mon Dec 31, 2012 2:10 am

Looks like they are there but in a failed state :)
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Re: Troubles with SAMBA on alARM

Postby campigenus » Mon Dec 31, 2012 10:01 am

$this->bbcode_second_pass_quote('WarheadsSE', 'T')his might be using systemd instead of rc.d style sysvinit !



You are, of course, right. The principle should be the same.
~~~
"Good behavior is the last refuge of mediocrity."
- Henry S. Haskins
campigenus
 
Posts: 38
Joined: Tue Feb 21, 2012 6:00 am

Re: Troubles with SAMBA on alARM

Postby UberSlackr » Mon Dec 31, 2012 3:43 pm

$this->bbcode_second_pass_quote('WarheadsSE', 'L')ooks like they are there but in a failed state :)


Yes, it appears so, as I can find no reason why this would be.

I've done 2 clean installs of Samba.. Reverted PP, Format USB, Reloaded alARM, installed Samba. Set up the /etc/samba/smb.conf file for complete basic shares, made no references to any drives attached. There should be no reason for samba not to start, unless there is a issue with the install procedures (install script).
UberSlackr
 
Posts: 39
Joined: Mon Dec 24, 2012 6:29 am
Top

Re: Troubles with SAMBA on alARM

Postby WarheadsSE » Mon Dec 31, 2012 4:06 pm

Have you run the configuration checker for samba?
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Re: Troubles with SAMBA on alARM

Postby UberSlackr » Tue Jan 01, 2013 1:58 pm

$this->bbcode_second_pass_quote('WarheadsSE', 'H')ave you run the configuration checker for samba?



$this->bbcode_second_pass_code('', '[root@alarm ~]# testparm
Load smb config files from /etc/samba/smb.conf
Processing section "[homes]"
Processing section "[printers]"
Loaded services file OK.
Server role: ROLE_STANDALONE
Press enter to see a dump of your service definitions')
UberSlackr
 
Posts: 39
Joined: Mon Dec 24, 2012 6:29 am
Top

also having troubles getting samba to work on dockstar

Postby tedm » Tue Jan 01, 2013 9:08 pm

first of all, I just installed archlinux arm

/etc/rc.d/samba/restart gives this:

[root@alarm etc]# /etc/rc.d/samba restart
/etc/rc.d/samba: line 4: /etc/rc.d/functions: No such file or directory
/etc/rc.d/samba: line 4: /etc/rc.d/functions: No such file or directory
/etc/rc.d/samba: line 30: stat_busy: command not found
/etc/rc.d/samba: line 42: rm_daemon: command not found
/etc/rc.d/samba: line 43: stat_done: command not found
/etc/rc.d/samba: line 4: /etc/rc.d/functions: No such file or directory
/etc/rc.d/samba: line 12: stat_busy: command not found
/etc/rc.d/samba: line 24: add_daemon: command not found
/etc/rc.d/samba: line 25: stat_done: command not found

/etc/samba/smb.conf file is this:

[root@alarm samba]# cat /etc/samba/smb.conf
[global]
workgroup = WORKGROUP
server string = ALARM
netbios name = ALARM
security = share
[printer]
load printers = no
printing = bsd
printcap name = /dev/null
disable spools = 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
[ArchLinuxARM]
path = /media/mnt_sdx1/
read only = no
public = yes
writable = yes
force user = root


* - nofile 16384

[root@alarm samba]#

uname -a gives this:

Linux alarm 3.1.10-15-ARCH #1 PREEMPT Wed Dec 12 15:25:18 UTC 2012 armv5tel GNU/Linux

Thanks for any tips!
tedm
 
Posts: 88
Joined: Tue Jan 01, 2013 1:12 am

Re: Troubles with SAMBA on alARM

Postby tedm » Tue Jan 01, 2013 10:11 pm

OK, I've made some progress, and am able to view *some* directories on other machines on the WORKGROUP. I've modified my smb.conf file to this:

[root@alarm samba]# cat smb.conf
[global]
workgroup = WORKGROUP
server string = ALARM
netbios name = ALARM
security = share

[printer]
load printers = no
printing = bsd
printcap name = /dev/null
disable spools = 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

[ArchLinuxARM]
path = /media/mnt_sdx1/
read only = no
public = yes
writable = yes
force user = root

[homes]
comment = Home Directories
browseable = yes
read only = no
create mode = 0777

[tmp]
comment = Temporary file space
path = /tmp
read only = no
public = yes

[public]
comment = Public Stuff
path = /home/public
public = yes
writeable = yes
printable = no

* - nofile 16384

[root@alarm samba]#

and would now like the whole drive (USB drive inserted into dockstar) to be r/w by all on the workgroup.

I've also noticed that to start/stop/restart samba, I have to use this routine:

/etc/rc.d/samba [start/stop/restart] and do get various errors, but only 1 error with testparm on the last line, that somewhere I read would allow better compatibility with win7 systems.

Should I be starting/stopping samba with sysctrl ?

Thanks!
tedm
 
Posts: 88
Joined: Tue Jan 01, 2013 1:12 am

Re: Troubles with SAMBA on alARM

Postby pepedog » Tue Jan 01, 2013 10:32 pm

Yes
systemctl restart smbd
pepedog
Developer
 
Posts: 2431
Joined: Mon Jun 07, 2010 3:30 pm
Location: London UK

PreviousNext

Return to Marvell Kirkwood

Who is online

Users browsing this forum: No registered users and 279 guests