WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: How to utilize the Control Panel  (Read 7158 times)

Offline rms46

  • Jr. Member
  • **
  • Posts: 60
    • Rahmat M. Samik-Ibrahim
How to utilize the Control Panel
« on: November 03, 2012, 10:04:29 PM »
Hello,
I am able to setup the sshd (openssh). However, I have no idea to turn it "on" or "off" by using the Control Panel. Do I miss something or any documentation/URL?

Rahmat.

This following is ROT13 -- Guvf sbyybjvat vf EBG13

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14794
Re: How to utilize the Control Panel
« Reply #1 on: November 03, 2012, 11:18:30 PM »
click on the desktop and use the "services" menu item to display the start/stop controls for daemons

Offline rms46

  • Jr. Member
  • **
  • Posts: 60
    • Rahmat M. Samik-Ibrahim
Re: How to utilize the Control Panel
« Reply #2 on: November 04, 2012, 01:12:03 AM »
click on the desktop and use the "services" menu item to display the start/stop controls for daemons

It does not work. I guess that there is a step that I have missed.
This following is ROT13 -- Guvf sbyybjvat vf EBG13

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11043
Re: How to utilize the Control Panel
« Reply #3 on: November 04, 2012, 05:35:12 AM »
Is your sshd configured? Try starting "services" from a terminal and see if there are any messages toggling openssh.
The only barriers that can stop you are the ones you create yourself.

Offline Lee

  • Hero Member
  • *****
  • Posts: 645
    • My Core wiki user page
Re: How to utilize the Control Panel
« Reply #4 on: November 04, 2012, 09:42:28 PM »
I start openssh from within bootsync.sh with
Code: [Select]
/usr/local/etc/init.d/openssh startso I've never had occasion to start it from the services tool - I'd forgotten the tool was even there.

After reading the reply above I tried it out and found that, even though the ssh daemon is running, open ssh shows as off (no green light) on the services tool.  If I click the openssh button on the services tool, the green light comes on for a couple of seconds and goes out again.  The daemon remains running, still works and still has the same pid it had before.  This doesn't seem right to me but perhaps I'm just unfamiliar with the tool?
32 bit core4.7.7, Xprogs, Xorg-7.6, wbar, jwm  |  - Testing -
PPR, data persistence through filetool.sh          |  32 bit core 8.0 alpha 1
USB Flash drive, one partition, ext2, grub4dos  | Otherwise similar

Offline gerald_clark

  • TinyCore Moderator
  • Hero Member
  • *****
  • Posts: 4254
Re: How to utilize the Control Panel
« Reply #5 on: November 04, 2012, 10:21:21 PM »
I suspect the start fails as the port is already in use.  Try starting it with the daemon not running.

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14794
Re: How to utilize the Control Panel
« Reply #6 on: November 04, 2012, 10:29:48 PM »
The init.d script has to be written to interact with the services applet - see other extensions (for example bluez, dbus) for how this is done.

Offline Lee

  • Hero Member
  • *****
  • Posts: 645
    • My Core wiki user page
Re: How to utilize the Control Panel
« Reply #7 on: November 05, 2012, 05:25:08 AM »
Thanks guys.  Both right.

The start failed, but it was because I had started the services tool from the command line, as user tc.  Without having examined the source code, I suspect cpanel starts the services tool as root, so services doesn't have to worry about explicitly starting the daemons as root.  When I started services as root, it worked a little better - but still no green light.

I did a quick compare of the openssh start/stop script, against the tftp start/stop script and found that the one for openssh lacks the "status" functionality (which simply reports the pid of the running daemon, if any).

After adding the status  functionality to the openssh script and running services as root, it appears to do work as expected.
32 bit core4.7.7, Xprogs, Xorg-7.6, wbar, jwm  |  - Testing -
PPR, data persistence through filetool.sh          |  32 bit core 8.0 alpha 1
USB Flash drive, one partition, ext2, grub4dos  | Otherwise similar

Offline rms46

  • Jr. Member
  • **
  • Posts: 60
    • Rahmat M. Samik-Ibrahim
Re: How to utilize the Control Panel
« Reply #8 on: November 11, 2012, 11:17:14 AM »
(I am not sure if I should open a new thread or not)

What is the difference between /etc/init.d/ and
/usr/local/etc/init.d/ ?

There is a /etc/init.d/services/ directory for crond, tftpd, and dhcp.
Meanwhile openssh is in /usr/local/etc/init.d/

Rahmat.

This following is ROT13 -- Guvf sbyybjvat vf EBG13

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14794
Re: How to utilize the Control Panel
« Reply #9 on: November 11, 2012, 11:40:34 AM »
The idea is that the base uses /etc and extensions use /usr/local/etc

Offline rms46

  • Jr. Member
  • **
  • Posts: 60
    • Rahmat M. Samik-Ibrahim
Re: How to utilize the Control Panel
« Reply #10 on: November 12, 2012, 08:01:02 AM »
The idea is that the base uses /etc and extensions use /usr/local/etc

Does "services" checks /usr/local/etc or is it a bug?

This following is ROT13 -- Guvf sbyybjvat vf EBG13

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14794
Re: How to utilize the Control Panel
« Reply #11 on: November 12, 2012, 08:05:49 AM »
yes, services checks /usr/local/etc/init.d - bluez, dbus, cups, etc would not show otherwise  ;)

Offline rms46

  • Jr. Member
  • **
  • Posts: 60
    • Rahmat M. Samik-Ibrahim
Re: How to utilize the Control Panel
« Reply #12 on: November 12, 2012, 11:31:32 PM »
Ah, yes. I have installed firefox which installs dbus.
Well then, to whom should I report the openssh problem?
This following is ROT13 -- Guvf sbyybjvat vf EBG13

Offline gerald_clark

  • TinyCore Moderator
  • Hero Member
  • *****
  • Posts: 4254
Re: How to utilize the Control Panel
« Reply #13 on: November 12, 2012, 11:34:05 PM »
What makes you think it is a problem?

Offline rms46

  • Jr. Member
  • **
  • Posts: 60
    • Rahmat M. Samik-Ibrahim
Re: How to utilize the Control Panel
« Reply #14 on: November 13, 2012, 02:35:56 AM »
What makes you think it is a problem?

Openssh (sshd) can not be turned on/off by services.
That is not a problem? No problem!

This following is ROT13 -- Guvf sbyybjvat vf EBG13