VectorLinux

Please login or register.

Login with username, password and session length
Advanced search  

News:

Visit our home page for VL info. For support and documentation, visit the Vector Linux Knowledge Center or search the Knowledge Center and this Forum using the search box above.

Author Topic: Starting Samba at boot  (Read 923 times)

StrayBit

  • Vectorite
  • ***
  • Posts: 478
Starting Samba at boot
« on: September 23, 2015, 10:50:47 am »

I tried putting 'service samba start' in rc.M.  It complains that service isn't found.  The line does work from a (root) terminal.
How do I get Samba started at boot?
Logged
Dell GX280: 7.1-Gold 32 bit
HP 670 Win7 & VL7.0

M0E-lnx

  • Administrator
  • Vectorian
  • *****
  • Posts: 3441
Re: Starting Samba at boot
« Reply #1 on: September 23, 2015, 01:50:47 pm »

As root in a terminal run 'vsrvset' and select which runlevels you want it to run on

wigums

  • Guest
Re: Starting Samba at boot
« Reply #2 on: September 23, 2015, 02:12:55 pm »

on my slackware file server i add this to my /etc/rc.d/rc.local

#start samba service
/etc/rc.d/rc.samba restart
Logged

StrayBit

  • Vectorite
  • ***
  • Posts: 478
Re: Starting Samba at boot
« Reply #3 on: September 24, 2015, 07:46:34 am »

Thanks MOE-lnx.  That was what I was looking for since VASM is all but gone.  Interesting warning
Quote
vector://home/bruce
root:# vsrvset
Service Configurator is starting ...
xterm -e
autofs cron cups fuse gpm inetd lm_sensors networkmanager portmap samba
Warning: Tried to connect to session manager, Authentication Rejected, reason : None of the authentication protocols specified are supported and host-based authentication failed
xterm -e
bluetooth cron cups fuse gpm inetd lm_sensors networkmanager portmap samba
Warning: Tried to connect to session manager, Authentication Rejected, reason : None of the authentication protocols specified are supported and host-based authentication failed
Also get quite a few when I start thunar from a root terminal.
Interesting!  Vsrvset told me Samba was already set but I still have to start it from cl.
Your suggestion was appreciated, also, wigums.
Logged
Dell GX280: 7.1-Gold 32 bit
HP 670 Win7 & VL7.0

roarde

  • Vectorian
  • ****
  • Posts: 732
  • it's enough
Re: Starting Samba at boot
« Reply #4 on: September 26, 2015, 01:01:42 pm »

Something's not set up right as far as xauth, not sure what. Until that's fixed, vasm can be started with the line
Code: [Select]
DIALOG=dialog vasmThat will pull up vasm's ncurses version within a terminal. Vsrvset was returned to root's menu in vasm quite a while ago (SERVICES), but can be started directy as M0E-lnx said; or with your problem, substitute 'vsrvset' for 'vasm' in the above line.

Now a little diagnosis of the problem that started the thread. Please post the output of these two commands.
Code: [Select]
runlevel
find /etc/rc.d/ -name 'S??samba'

Here, I get
roarde:$ runlevel
N 4
vector:/~
roarde:$ find /etc/rc.d/ -name 'S??samba'
/etc/rc.d/rc4.d/S54samba


Which says I'm using runlevel 4 (runlevel output is "previous current"), and samba is set to run there (/rc4.d/).
« Last Edit: September 26, 2015, 01:04:52 pm by roarde »
Logged
Robert
VL 7.2 Light B2