You are not logged in.

#1 2009-11-24 08:43:03

twopounder
Member
Registered: 2009-11-24
Posts: 11

samba and gamin not installing correctly with pacman?

So, I'm trying to enable samba support so I can grab files off my windows box. However, after installing both samba, gamin, and sambaclient, running sudo /etc/rc.d/gamin start and sudo /etc/rc.d/samba start gives me sudo: /etc/rc.d/gamin: command not found.

I looked in the rc.d directory, and there are no daemons matching samba or gamin. I'm trying to follow the wiki, but it doesn't list anything about this in troubleshooting. Am I doing something wrong?

Offline

#2 2009-11-24 08:50:37

miau
Member
Registered: 2009-05-06
Posts: 202

Re: samba and gamin not installing correctly with pacman?

Gamin isn't started as a daemon as the wiki states. Have you tried reinstalling samba?

Offline

#3 2009-11-24 08:52:37

twopounder
Member
Registered: 2009-11-24
Posts: 11

Re: samba and gamin not installing correctly with pacman?

Yeah, I've tried reinstalling it a few times. It still isn't in /etc/rc.d

Offline

#4 2009-11-24 08:54:28

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: samba and gamin not installing correctly with pacman?

gamin doesn't run as a daemon - it just needs to be installed.

/etc/rc.d/samba is part of the samba package. If it's not on your system, your copy of the package may be corrupt - delete it from your package cache and download it again.

Offline

#5 2009-11-24 08:57:44

twopounder
Member
Registered: 2009-11-24
Posts: 11

Re: samba and gamin not installing correctly with pacman?

Alright, after removing and reinstalling, samba is actually trying to start, but keeps failing.

Offline

#6 2009-11-24 09:34:55

miau
Member
Registered: 2009-05-06
Posts: 202

Re: samba and gamin not installing correctly with pacman?

Have you downloaded the package again or installed it from your package cache?

Offline

#7 2009-11-24 09:47:02

twopounder
Member
Registered: 2009-11-24
Posts: 11

Re: samba and gamin not installing correctly with pacman?

downloaded the package again.

Offline

#8 2009-11-24 09:47:23

quarkup
Member
From: Portugal
Registered: 2008-09-07
Posts: 497
Website

Re: samba and gamin not installing correctly with pacman?

pacman -Rnsc <samba_package>
pacman -Scc
(now you press the 'y' for yes)
pacman -Syy
pacman -S <samba_package>


If people do not believe that mathematics is simple, it is only because they do not realize how complicated life is.
Simplicity is the ultimate sophistication.

Offline

#9 2009-11-24 09:55:06

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: samba and gamin not installing correctly with pacman?

Nobody can give you any useful answer to "it keeps failing". Post some more details.

Offline

#10 2009-11-24 10:01:49

twopounder
Member
Registered: 2009-11-24
Posts: 11

Re: samba and gamin not installing correctly with pacman?

Hmm, followed that to the letter and it still doesn't want to work.

I wish I could give you more detail. I was following the wiki:

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

I added samba to rc.conf, but that shouldn't prevent it from running. I have cacti installed and running fine, but I didn't mess with samba during the setup. The install is new (1 day old) and I haven't gone nuts with packages or installs. I haven't added a GUI either.

sambawoes.jpg

quarkup wrote:

pacman -Rnsc <samba_package>
pacman -Scc
(now you press the 'y' for yes)
pacman -Syy
pacman -S <samba_package>

Last edited by twopounder (2009-11-24 10:04:21)

Offline

#11 2009-11-24 10:58:32

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: samba and gamin not installing correctly with pacman?

If a daemon init script fails, you need to run the actual commands in the script in a terminal as root and check for errors.

Offline

#12 2009-11-24 10:59:30

quarkup
Member
From: Portugal
Registered: 2008-09-07
Posts: 497
Website

Re: samba and gamin not installing correctly with pacman?

have you configured the samba server ?

i mean the /etc/smb.conf or something like that ..


If people do not believe that mathematics is simple, it is only because they do not realize how complicated life is.
Simplicity is the ultimate sophistication.

Offline

#13 2009-11-24 11:55:32

twopounder
Member
Registered: 2009-11-24
Posts: 11

Re: samba and gamin not installing correctly with pacman?

No, I haven't. I've only done what is in the wiki. Let me have a look at it.

- Okay, after reading through smb.conf.default, I'm noticing that everything is commented out. I ran testparm smb.conf.default without errors though. Is there a debug method for running a service? It would be helpful to know where exactly the service is failing at.

Last edited by twopounder (2009-11-24 12:00:31)

Offline

#14 2009-11-24 12:09:20

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: samba and gamin not installing correctly with pacman?

Both nmbd and smbd have man pages - I'd suggest you start there.

Offline

#15 2009-11-24 12:22:56

kgas
Member
From: Qatar
Registered: 2008-11-08
Posts: 718

Re: samba and gamin not installing correctly with pacman?

What DE are you using? In gnome you can see your windows share thro' the network option in nautilus without samba server running. To access your windows share, make that folder / drive shared and you should have a valid user name and password to access it from you GNU/Linux installation.

If you want to share your folders in your linux install you should have a working smb.conf in /etc/samba directory and not smb.conf.default.

At least you need this
[myshare]
  comment = <put what you want>
   path = /path/to/directory/toshare
   valid users =usr1 usr2
   public = no
   writable = yes
   printable = no
   create mask = 0765

smb.conf.default is with full of self explanatory comments and not so hard to read.

Offline

#16 2009-11-24 12:32:44

twopounder
Member
Registered: 2009-11-24
Posts: 11

Re: samba and gamin not installing correctly with pacman?

I posted earlier that I am not using one. My server is 100% command line. I have absolutely no use for a GUI on this server.

The problem is that samba won't run, which means I'm not going to be able to get to the windows shares anyway. Until I get that resolved, I can't really do anything with files.

kgas wrote:

What DE are you using? In gnome you can see your windows share thro' the network option in nautilus without samba server running. To access your windows share, make that folder / drive shared and you should have a valid user name and password to access it from you GNU/Linux installation.

If you want to share your folders in your linux install you should have a working smb.conf in /etc/samba directory and not smb.conf.default.

At least you need this
[myshare]
  comment = <put what you want>
   path = /path/to/directory/toshare
   valid users =usr1 usr2
   public = no
   writable = yes
   printable = no
   create mask = 0765

smb.conf.default is with full of self explanatory comments and not so hard to read.

Offline

#17 2009-11-24 13:00:42

kgas
Member
From: Qatar
Registered: 2008-11-08
Posts: 718

Re: samba and gamin not installing correctly with pacman?

ok. Have you reinstalled samba as suggested? or even you can try to install it with different mirrors.

Offline

#18 2009-11-24 13:16:15

Surgat_
Member
Registered: 2007-08-08
Posts: 317

Re: samba and gamin not installing correctly with pacman?

twopounder wrote:

I posted earlier that I am not using one. My server is 100% command line. I have absolutely no use for a GUI on this server.

The problem is that samba won't run, which means I'm not going to be able to get to the windows shares anyway. Until I get that resolved, I can't really do anything with files.

I don't really know how samba works, but probably you need to have a correct config file before starting the daemon (and it has to be called smb.conf, instead of smb.conf.default). If you want to debug more verbosely, check the rc.d script and run the command that actually starts the service (for example, for syslog-ng the command is /usr/sbin/syslog-ng).

Btw, I'm pretty sure that you don't need the samba server running to access windows shares.

Offline

#19 2009-11-24 14:24:50

twopounder
Member
Registered: 2009-11-24
Posts: 11

Re: samba and gamin not installing correctly with pacman?

Yeah, its used for windows to access linux shares, but I wanted a fully capable network. Oh well, it's not extremely important, so long as cacti and LAMP functions properly.

Offline

Board footer

Powered by FluxBB