LinHES Forums
http://forum.linhes.org/

Samba Installation Problems 6.02
http://forum.linhes.org/viewtopic.php?f=21&t=21143
Page 1 of 1

Author:  gatorback [ Tue Jun 15, 2010 8:05 pm ]
Post subject:  Samba Installation Problems 6.02

I tried to follow the procedure here:

http://wiki.archlinux.org/index.php/Samba#Configuration

The samba installation seemed succesful:
Code:
[root@mythtv ~]# pacman -S samba
warning: samba-3.4.5-3 is up to date -- reinstalling
resolving dependencies...
looking for inter-conflicts...

Targets (1): samba-3.4.5-3

Total Download Size:    0.00 MB
Total Installed Size:   67.92 MB

Proceed with installation? [Y/n] y
checking package integrity...
(1/1) checking for file conflicts                   [#####################] 100%
(1/1) upgrading samba                               [#####################] 100%


Not so successful with gamin:
Code:
[root@mythtv ~]# pacman -S gamin
gamin package not found, searching for group...
error: 'gamin': not found in sync db

Not sure why or the consquences or if it really matters. Any insight is appreciated.

Copied and configured samba.conf:

Code:
cp /etc/samba/smb.conf.default /etc/samba/smb.conf


Code:
 [myth]
   comment = Be Careful when deleting
   path = /myth
   guest ok = yes
   writable = yes
   share modes = no


Tried to start samba but failed:
Code:
[root@mythtv ~]# sudo /etc/rc.d/samba start
:: Starting Samba Server                           [FAIL]


Any suggestions as to where I went astray would be highly appreciated.

Author:  Martian [ Tue Jun 15, 2010 8:16 pm ]
Post subject: 

I think the problem is you are using init commands instead of runit.

Instead of /etc/rc.d/samba/start I think it sv samba start or something like that. Not at my box so can't check for sure.

Martian

Author:  brfransen [ Tue Jun 15, 2010 9:43 pm ]
Post subject: 

Code:
sudo sv start smbd
should start samba on LinHES.

Author:  Transverse [ Sat Jul 03, 2010 7:38 am ]
Post subject: 

I followed the same set of instructions that gatorback did. (on a fresh install of R6.02)
gamin didn't work for me either.

I've got it configured enough that I can start samba manually, with this:
Code:
sudo /etc/rc.d/samba start


However, it won't start at boot when it's added to the DAEMONS line in rc.conf.

Running
Code:
sudo sv start smbd

gives me:
Code:
fail: smbd: unable to change to service directory: file does not exist


Looks as if the LinHES way of making samba run on boot involves
Code:
sudo add_service.sh smbd


Edit: Of course, only afterwards do I see there's a simple menu option for all of this.
Service Menu > LinHES Configuration > Advanced Settings.
Then tick the Windows Sharing tickbox.

Author:  lane [ Sun Jul 18, 2010 4:09 pm ]
Post subject: 

Start to finish of my SAMBA install. Removed the responses. I'm not sure I need to stop and restart, but figured it couldn't hurt. I had to rebuild the machine a few times today so figured I would post what I had saved in a file for everyone to use. :)

Code:

tigelane:~ tigelane$ ssh root@tvbox1
root@tvbox1's password:

[root@Tvbox1 ~]# pacman -S samba

[root@Tvbox1 ~]# cd /etc
[root@Tvbox1 etc]# cd samba
[root@Tvbox1 samba]# cp smb.conf.default smb.conf
[root@Tvbox1 samba]# vi smb.conf

Add the following:
[myth]
   path = /myth
   guest ok = yes
   writable = yes
   share modes = no

[root@Tvbox1 samba]# sudo add_service.sh smbd
[root@Tvbox1 samba]# sudo sv start smbd

[root@Tvbox1 samba]# smbpasswd -a mythtv
New SMB password:
Retype new SMB password:
[root@Tvbox1 samba]# sudo sv stop smbd

[root@Tvbox1 samba]# sudo sv start smbd


Author:  Girkers [ Sun Jul 18, 2010 7:03 pm ]
Post subject: 

I am just curious, why did you need to install Samba on a new installation of R6, my understanding is that it is included and you only need to go into the Service Menu to turn it on.

The only reason I could think of why you would want to install Samba is if you are doing an upgrade. Could you please clarify why your installation Samba when it is included in the base system?

Thanks

Author:  lane [ Sun Jul 18, 2010 8:46 pm ]
Post subject: 

I had thought it was included too, but when I was doing the install I looked for the /etc/samba directory and it was not there, so I installed it. Maybe it's in a different directory with the R6 install, but when it's not where I was expecting, I assumed it was not installed and did it myself.

Author:  Girkers [ Mon Jul 19, 2010 3:16 pm ]
Post subject: 

I just looked at my R6.03 install and that directory is there. You may find that the directory is not there until you turn it on in the Service Menu.

Author:  lane [ Mon Jul 19, 2010 4:07 pm ]
Post subject: 

Girkers wrote:
I just looked at my R6.03 install and that directory is there. You may find that the directory is not there until you turn it on in the Service Menu.


That sounds very plausible. I have another machine to install in a few weeks. I'll check it better next time and update the thread.

Author:  gatorback [ Mon Apr 11, 2011 9:52 pm ]
Post subject:  Archlinux Samba restart command

UPDATE: LinHES 7.2:
Quote:
Service Menu: LinHES Configuration => Advanced Settings => enable "windows sharing"


Nice. Samba is installed by default.

I am revisiting this topic because I needed to add an additional share (/data/srv/httpd/htdocs): so that I could distribute files through the webserver. This involves restarting the Samba.

These service commands work for Restarting SAMBA in Linhes 6.02:

Code:
[root@mythtv samba]# sv restart smbd
ok: run: smbd: (pid 7711) 0s
[root@mythtv samba]# sv status smbd
run: smbd: (pid 7711) 11s


Below is some of the other commands I looked up and tried (unsuccesfully).

I was able stop samba with this command:
Code:
[root@mythtv samba]# /etc/rc.d/samba stop
:: Stopping Samba Server                                                 [DONE]


Starting was not successful:
Code:
[root@mythtv samba]# /etc/rc.d/samba start
:: Starting Samba Server                                                 [FAIL]
[root@mythtv samba]# /etc/rc.d/fam start
:: Starting Portmap                                                      [FAIL]
:: Starting File Alteration Monitor                                      [FAIL]
ERROR: PORTMAP is not running
[root@mythtv samba]# ps -e | grep samba

I tried the suggestions above:
Code:
[root@mythtv samba]# sv start smbd
ok: run: smbd: (pid 29449) 300s
[root@mythtv samba]# ps -e | grep samba
[root@mythtv samba]#


I wonder if I am running two version of Samba concurrently.

Page 1 of 1 All times are UTC - 6 hours
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/