[How-To] Samba 4

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

Re: [How-To] Samba 4

Postby moonman » Wed Apr 10, 2013 11:16 am

It should build just fine IF you have enough swap and you disabled tmpfs for /tmp.(altrernatively modify makepkg.conf not to use /tmp). I'm testing the build now. It seems samba4 will replace samba3 in the official repository so this will probably be the last build from aur.
Pogoplug V4 | GoFlex Home | Raspberry Pi 4 4GB | CuBox-i4 Pro | ClearFog | BeagleBone Black | Odroid U2 | Odroid C1 | Odroid XU4
-----------------------------------------------------------------------------------------------------------------------
[armv5] Updated U-Boot | [armv5] NAND Rescue System
moonman
Developer
 
Posts: 3388
Joined: Sat Jan 15, 2011 3:36 am

Re: [How-To] Samba 4

Postby ebbix » Wed Apr 10, 2013 12:51 pm

I have tmpfs on /tmp, but I don't see anything tmp-related in the PKGBUILD.
I've got 128 MiB RAM + 256 MiB swap, I think this might be the problem then :lol:
ebbix
 
Posts: 48
Joined: Fri Aug 10, 2012 1:55 pm

Re: [How-To] Samba 4

Postby moonman » Wed Apr 10, 2013 12:55 pm

I meant /etc/makepkg.conf not PKGBUILD. It likes to use /tmp for temporary file storage and tmpfs is in RAM so your /tmp is in RAM. Don't know if 256 is enough, I've got 3GB which is probably overkill, but I needed it when I was trying to build chromium browser which used >2GB for linking. Just built mine with no problems. Submitted it to github so it should be available in repos soon.
Pogoplug V4 | GoFlex Home | Raspberry Pi 4 4GB | CuBox-i4 Pro | ClearFog | BeagleBone Black | Odroid U2 | Odroid C1 | Odroid XU4
-----------------------------------------------------------------------------------------------------------------------
[armv5] Updated U-Boot | [armv5] NAND Rescue System
moonman
Developer
 
Posts: 3388
Joined: Sat Jan 15, 2011 3:36 am

Re: [How-To] Samba 4

Postby ebbix » Wed Apr 10, 2013 5:58 pm

Oh, this happens when not reading carefully :lol:
Thanks for the PKGBUILD update. I've got a spare 4 GiB partition on my HDD, maybe I'll turn it into a second swap partition and try another build.
ebbix
 
Posts: 48
Joined: Fri Aug 10, 2012 1:55 pm

Re: [How-To] Samba 4

Postby WarheadsSE » Wed Apr 10, 2013 6:27 pm

Just use swap files.
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Re: [How-To] Samba 4

Postby ebbix » Thu Apr 11, 2013 10:49 am

Well, turns out I had a spare 1GiB swap partition on secondary hard drive (that was used before I switched primary and secondary drive for rootfs and so on). Now it built fine with a total of 1.1GiB of swap.
ebbix
 
Posts: 48
Joined: Fri Aug 10, 2012 1:55 pm

Re: [How-To] Samba 4

Postby kmihelich » Fri Apr 12, 2013 9:33 pm

Heads up to everyone using this: samba has been updated upstream to 4.0.5 which will be building later with today's updates, which means I've pulled the relevant packages out of our AUR repo. There is no 'replaces' entry to assist in migration, so you must switch on your own.
Arch Linux ARM exists and continues to grow through community support, please donate today!
kmihelich
Developer
 
Posts: 1133
Joined: Tue Jul 20, 2010 6:55 am
Location: aka leming #archlinuxarm

Re: [How-To] Samba 4

Postby moonman » Sat Apr 13, 2013 5:39 am

Basically the upgrade path is (the official systemd services come with the d again):

Disable and stop old services:
$this->bbcode_second_pass_code('', 'systemctl disable smb nmb
systemctl stop smb nmb')

Backup your config:$this->bbcode_second_pass_code('', '
cp /etc/samba/smb.conf /tmp')

Remove samba4 from aur:
$this->bbcode_second_pass_code('', 'pacman -R samba4 libwbclient4 smbclient4 cifs-utils4')

Install the official samba (this will pull all the required dependencies as well)
$this->bbcode_second_pass_code('', 'pacman -Sy samba')

Copy your backedup config back:
$this->bbcode_second_pass_code('', 'cp /tmp/smb.conf /etc/samba/')

Reenable and start all the services:
$this->bbcode_second_pass_code('', 'systemctl enable smbd nmbd
systemctl start smbd nmbd')
Pogoplug V4 | GoFlex Home | Raspberry Pi 4 4GB | CuBox-i4 Pro | ClearFog | BeagleBone Black | Odroid U2 | Odroid C1 | Odroid XU4
-----------------------------------------------------------------------------------------------------------------------
[armv5] Updated U-Boot | [armv5] NAND Rescue System
moonman
Developer
 
Posts: 3388
Joined: Sat Jan 15, 2011 3:36 am

Re: [How-To] Samba 4

Postby hojnikb » Fri May 03, 2013 8:00 pm

Is there a way to downgrade to samba3 ?
on dockstar it take like 30sec to 1 minute to "login" to a share (they are opened so no actual login is requered)
With old samba it was a matter of seconds(due to disk needed to spin up, otherwise instantly), but now everytime i click on the share it takes 30sec to 1min to login, which is ridiculous and pain to use..

Any idea how to fix this or how to downgrade to old samba ?

My config looks like this

$this->bbcode_second_pass_code('', '[global]
workgroup = WORKGROUP
server string = Kirkwood
netbios name = Kirkwood
security = user
map to guest = Bad User
guest account = root
load printers = no
disable spoolss = yes
log file = /var/log/samba/%m.log
max log size = 50
socket options = IPTOS_LOWDELAY TCP_NODELAY SO_KEEPALIVE
write cache size = 1048576
use sendfile = true
getwd cache = yes
dns proxy = no

[Kirkwood-Disk]
path = /root/Drives/Drive
public = yes
writable = yes
printable = no
guest ok = yes

[Kirkwood-Torrents]
path = /root/Torrents
public = yes
writable = yes
printable = no
guest ok = yes')
+°´°+,¸¸,+°´°~ +°´°+,¸¸,+°´°~I ♥ my DockStar :oops:~°´°+,¸¸,+°´°++°´°+,¸¸,+°´°~
Linux = Be root
Windows = reboot

+°´°+,¸¸,+°´°~DockStar, Marvell CPU @ 1.2Ghz, 128MB RAM, 4GB rootfs + 160GB°´°+,¸¸,+°´°+
hojnikb
 
Posts: 104
Joined: Thu Jul 08, 2010 11:57 am

Re: [How-To] Samba 4

Postby moonman » Sat May 04, 2013 5:05 am

Did you try playing around with options. I have no such problem. Try setting getwd cache to no to see if it improves anything (although it should make it worse, yes is the default by the way. Try accessing the share by its IP instead of the name.

To get back to samba3 you will have to rebuild it. To get the pkgbuilds you can browse archlinux's git for this pacakge: https://projects.archlinux.org/svntogit ... ages/samba
Pogoplug V4 | GoFlex Home | Raspberry Pi 4 4GB | CuBox-i4 Pro | ClearFog | BeagleBone Black | Odroid U2 | Odroid C1 | Odroid XU4
-----------------------------------------------------------------------------------------------------------------------
[armv5] Updated U-Boot | [armv5] NAND Rescue System
moonman
Developer
 
Posts: 3388
Joined: Sat Jan 15, 2011 3:36 am

PreviousNext

Return to Marvell Kirkwood

Who is online

Users browsing this forum: No registered users and 4 guests