LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 05-14-2008, 10:13 PM   #1
rockballad
LQ Newbie
 
Registered: Nov 2007
Distribution: Fedora 8/Ubuntu 7.10
Posts: 23

Rep: Reputation: 15
How to start Linux service from Windows?


Hi there,

I heard someone asking how to start Windows service from a Linux box, but how to do vice-versa? I have my database on a Linux box (Fedora/Ubuntu), from another Windows box, I want to check if mysqld status and start if needed. May telnet help? Please give me a hint.

Thanks and best regards,
 
Old 05-14-2008, 10:33 PM   #2
gruby12
LQ Newbie
 
Registered: Aug 2005
Location: Poland
Distribution: SUSE 10.1, Mandriva 2008.1
Posts: 26

Rep: Reputation: 15
Hello

Nobody uses telnet because it is usecure. Use ssh on windows machine
from windows console.

Sorry for my english. I'm from Poland.

best wishes

Janusz
 
Old 05-14-2008, 10:57 PM   #3
rockballad
LQ Newbie
 
Registered: Nov 2007
Distribution: Fedora 8/Ubuntu 7.10
Posts: 23

Original Poster
Rep: Reputation: 15
Hello gruby12,

Thanks. We know that, but with an in-house system like mine, I think it's good enough.

In fact, I intend to do all these tasks in an application. If I use SSH (say OpenSSH), how can I take advance of it? A build-in command would be easy.

Now I can 'telnet' Linux box, but don't know how to run that command.

BTW, your English is good enough to communicate, don't mind.

Cheers,

Quote:
Originally Posted by gruby12 View Post
Hello

Nobody uses telnet because it is usecure. Use ssh on windows machine
from windows console.

Sorry for my english. I'm from Poland.

best wishes

Janusz
 
Old 05-14-2008, 11:25 PM   #4
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
You should listen to gruby12's warning. Telnet is not secure. If you have the telnetd service running on the server, you should stop it. Even uninstall it. Using ssh you can do the same thing; they both give you access to your account and you can enter the same commands you would had you used telnet. One popular ssh client for windows is putty. I would recommend installing Cygwin/X. That will give you an x server terminal as well. You could then login using ssh and use a graphical program on the server as well.

On Fedora you could use chkconfig to check if a service is running. You can use the "service" command instead as well to check on the service or start it if need be. I've never used Ubuntu, so I don't know if it uses the same type of scripts & controls when they start with "chkconfig" but it should have the service command to control the scripts. You can also start the service by calling the mysql script in /etc/init.d/.

You probably want to download the mysql manual. There may be a safe_mysql or mysql_safe command that you should use to start the server manually. Also, a chapter in the manual deals with securing the server. There is a test database you might want to drop, and you will want to give the root user a password. Since you mentioned that the mysql server will be installed either on Fedora or Ubuntu, I'm assuming it hasn't been installed yet.
 
Old 05-15-2008, 12:01 AM   #5
rockballad
LQ Newbie
 
Registered: Nov 2007
Distribution: Fedora 8/Ubuntu 7.10
Posts: 23

Original Poster
Rep: Reputation: 15
Thanks for your good advice, jschiwal!

I got the way as you recommend:

C:\putty> plink 10.0.0.1 -l test -pw test /etc/init.d/mysqld status

It works, jschiwal! Thank you very much!

I'll take a look at MySQL manual.

Have a nice day!

Quote:
Originally Posted by jschiwal View Post
You should listen to gruby12's warning. Telnet is not secure. If you have the telnetd service running on the server, you should stop it. Even uninstall it. Using ssh you can do the same thing; they both give you access to your account and you can enter the same commands you would had you used telnet. One popular ssh client for windows is putty. I would recommend installing Cygwin/X. That will give you an x server terminal as well. You could then login using ssh and use a graphical program on the server as well.

On Fedora you could use chkconfig to check if a service is running. You can use the "service" command instead as well to check on the service or start it if need be. I've never used Ubuntu, so I don't know if it uses the same type of scripts & controls when they start with "chkconfig" but it should have the service command to control the scripts. You can also start the service by calling the mysql script in /etc/init.d/.

You probably want to download the mysql manual. There may be a safe_mysql or mysql_safe command that you should use to start the server manually. Also, a chapter in the manual deals with securing the server. There is a test database you might want to drop, and you will want to give the root user a password. Since you mentioned that the mysql server will be installed either on Fedora or Ubuntu, I'm assuming it hasn't been installed yet.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
start und stop windows service using nagios cccc Debian 1 03-11-2008 07:43 AM
How to start mozilla from a service in linux gauravtiwari21 Linux - Software 1 10-16-2007 09:46 AM
couldnot start the service in windows ajkannan83 General 2 09-16-2005 02:57 PM
remotely start/stop service on WinNT PC from Linux cuzality Linux - Software 0 09-01-2004 01:48 PM
Is it possible to start stop and restart a linux service from a webpage? psychodreams Linux - Newbie 3 04-27-2004 01:24 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 11:31 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration