[Solved] Newbie PogoPlug Samba Install Question

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

[Solved] Newbie PogoPlug Samba Install Question

Postby GuyDanger » Thu Sep 15, 2011 1:12 pm

Ive added arch linux to my pogoplug v.2. Worked like a charm with no issues (great guide!) but then I tried to install samba...grrrr frustrating as hell. First off "smbpasswd -a pcguest" did not work. Not sure why. Then "touch /etc/samba/smb.conf" did not work...It couldnt find the "smb.conf". After some strenuous research I was able to locate smb.conf and edit it. Lastly I want to start samba but "/etc/rc.d/samba start" does nothing. I am now at a loss as googling brings up next to nothing. Any help would be greatly appreciated...Thanks in advance
Last edited by GuyDanger on Sun Sep 18, 2011 2:47 pm, edited 2 times in total.
GuyDanger
 
Posts: 5
Joined: Thu Sep 15, 2011 12:52 pm

Re: Newbie PogoPlug Samba Install Question

Postby pepedog » Thu Sep 15, 2011 4:25 pm

Here is my samba config file, don't use literal, and use testparm to debug
$this->bbcode_second_pass_code('', '[global]
workgroup = MYWORKGROUP
netbios name = TRIMSLICE
server string = TRIMSLICE
interfaces = 192.168.0.0/16
log file = /var/log/samba/%m.log
max log size = 50
socket options = TCP_NODELAY IPTOS_LOWDELAY SO_KEEPALIVE SO_RCVBUF=131072 SO_SNDBUF=131072 SO_KEEPALIVE
printcap name = cups
local master = No
dns proxy = No
# wins server = 192.168.2.1
idmap config * : backend = tdb
hosts allow = 192.168., 127.

[homes]
comment = Home Directories
read only = No

[myshare]
comment = Downloads
path = /media
valid users = root
read only = No
create mask = 0755

[printers]
comment = All Printers
path = /var/spool/samba
create mask = 0770
guest ok = Yes
printable = Yes
print ok = Yes
browseable = No')
You might need local master = Yes (speeds discovery)
pepedog
Developer
 
Posts: 2431
Joined: Mon Jun 07, 2010 3:30 pm
Location: London UK

Re: Newbie PogoPlug Samba Install Question

Postby GuyDanger » Thu Sep 15, 2011 5:55 pm

Thanks for responding. I am going to try reinstalling samba when I get home from work. I was using the archlinux samba guide available here : http://archlinuxarm.org/support/guides/ ... ions/samba

Has anything changed since this guide wast posted? Like I said before, some of the commands were not working. Not sure if I did something wrong or if guide is out dated. Be gentle...very new to this :?

Thanks again.

-Linux is so far out of my comfort zone... but I'll keep trying!
GuyDanger
 
Posts: 5
Joined: Thu Sep 15, 2011 12:52 pm

Re: Newbie PogoPlug Samba Install Question

Postby pepedog » Thu Sep 15, 2011 8:18 pm

Update first
pacman -Syu

Install it-
pacman -S samba

Edit /etc/samba/smb.conf

Check it
testparm

Start it
/etc/rc.d/samba start

Add a unix user (adduser --help) password (passwd --help)
Create same samba user (smbpasswd --help)
pepedog
Developer
 
Posts: 2431
Joined: Mon Jun 07, 2010 3:30 pm
Location: London UK

Re: Newbie PogoPlug Samba Install Question

Postby maxim » Thu Sep 15, 2011 8:27 pm

Hi!

I also have some samba-install-problemu. And I noticed that that tutorial is old, smbpasswd for example is for older versions of Samba that the version that's in the arch reposotorys (updated that is). You can use pdbedit to add samba users.
$this->bbcode_second_pass_code('', 'pdbedit -a -n username')
and then list it with
$this->bbcode_second_pass_code('', 'pdbedit -L')
Strange that you couldn't start samba.. What version do you have? I got version 3.6.
$this->bbcode_second_pass_code('', 'pacman -Qs samba')

Should be great if that tutorial would be updated.

/Maxim (I'll post my samba problem in another thread.. :) )
PogoPlug v2 Pink, w/ transmission, flexget, nfs, owncloud..
maxim
 
Posts: 9
Joined: Sun Jun 19, 2011 7:25 pm

Re: Newbie PogoPlug Samba Install Question

Postby GuyDanger » Fri Sep 16, 2011 1:43 pm

Thanks for the help guys. I did what pepedog had suggested and I now have Samba running on my pogoplug. Ohhhh Yeahhh! I have it showing up on my Windows Network. Yes! Now I have to learn how to configure my smb config file which doesnt seem to be a daunting a task. A couple questions still have me a little puzzeled.

1. In smb.conf where you put the path of let say your movie folder, how does it know which usb connected Hard drive to look in. Most smb.conf files I've seen just have "/movies" (or something similar)as their path.

2. Do I have to mount a new drive through command line or does it mount automatically?

I am sure I am just looking at this through my flawed knowledge of other OS's and the answer is super simple. I do see the end of the tunnel. My pogoplug is almost there! Again thanks to everyone who has helped. Its always nice to find a helpful commiunity. I will pay it forward. :D
GuyDanger
 
Posts: 5
Joined: Thu Sep 15, 2011 12:52 pm

Re: Newbie PogoPlug Samba Install Question

Postby pepedog » Fri Sep 16, 2011 4:01 pm

Install udev-automount, drive will appear in /media (or is it ntfs formatted?)
tune2fs can be used to label drive, which then appears in /media that way
pepedog
Developer
 
Posts: 2431
Joined: Mon Jun 07, 2010 3:30 pm
Location: London UK

Re: Newbie PogoPlug Samba Install Question

Postby GuyDanger » Fri Sep 16, 2011 5:21 pm

The drive(s) is NTFS formatted. I have 2 + 2TB drives that hold all my media. What I am trying to do is use the pogoplug to host these drives and share them over the network with my Apple TV2 which is running XBMC. I am currently using smb shares through windows 7 to share through the network but want an alternative instead of keeping my Comp on 24/7. I was hoping pogoplug would allow me to do this. Am I going to run into any issues if the drives are NTFS formatted?
GuyDanger
 
Posts: 5
Joined: Thu Sep 15, 2011 12:52 pm

Re: Newbie PogoPlug Samba Install Question

Postby pepedog » Fri Sep 16, 2011 5:32 pm

$this->bbcode_second_pass_quote('GuyDanger', '.') Am I going to run into any issues if the drives are NTFS formatted?

I don't know, install ntfs-3g, don't know if it auto mounts
pepedog
Developer
 
Posts: 2431
Joined: Mon Jun 07, 2010 3:30 pm
Location: London UK

Re: Newbie PogoPlug Samba Install Question

Postby WarheadsSE » Fri Sep 16, 2011 7:14 pm

It should, I've had no issues. It also picks up the label of the drive from the NTFS partition. At least on my Pro's & GFN.
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Next

Return to Marvell Kirkwood

Who is online

Users browsing this forum: No registered users and 9 guests