Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
12-04-2001, 09:45 AM
|
#1
|
LQ Newbie
Registered: Dec 2001
Posts: 16
Rep:
|
shutting down linux from windows
i'm setting up a mp3 box running linux which is controlled via network by win98 on another machine . so far all is coming along however i know that you cant just pull the plug on linux (and its not an option to keep it running) and i've looked around and tried a suggestion to make the drives read only, which doesnt work because root gets remounted as r/w during the boot ... so i need to be able to shutdown from windows (the linux box doesnt have a keyboard or monitor) using telnet or vnc ...
any insight will be appreciated
Dave
|
|
|
12-04-2001, 10:04 AM
|
#2
|
Member
Registered: Sep 2001
Distribution: Gentoo
Posts: 760
Rep:
|
Code:
telnet mylinuxbox
username
password
su
password
shutdown -h now
|
|
|
12-04-2001, 10:13 AM
|
#3
|
LQ Newbie
Registered: Dec 2001
Posts: 16
Original Poster
Rep:
|
thanks for your reply, and is there anyway of making this like a shortcut or script from windows? i dont know a hell of a lot about telnet ...
thanks again
Dave
|
|
|
12-04-2001, 11:25 AM
|
#4
|
LQ Newbie
Registered: Dec 2001
Posts: 7
Rep:
|
Another option would be to use Webmin if it installed on you box.
|
|
|
12-04-2001, 12:36 PM
|
#5
|
Member
Registered: May 2001
Location: Germany
Distribution: SuSE 8.1
Posts: 48
Rep:
|
They are really easy to set up ..
you can use bind8 or 9 and even configure it to be a configured nameserver for your intranet ...
|
|
|
12-04-2001, 10:33 PM
|
#6
|
LQ Newbie
Registered: Dec 2001
Posts: 16
Original Poster
Rep:
|
thanks again, ive had a go at the bind command, having never used it before im not really sure what to do ... how would one implement bind?
thanks again
Dave
|
|
|
12-05-2001, 12:22 AM
|
#7
|
Member
Registered: May 2001
Location: Germany
Distribution: SuSE 8.1
Posts: 48
Rep:
|
What distri you got?
I used SuSE ... under SuSE you have a nameserverconfig. First, you set the nameserver to be your own machine ... localhost.
Next, you tell Linux to start bind at bootup (there is a file called rc.config ind the /etc directory. If its not there you simply need to edit your bootup scripts.
Now go to the /var/ driectory .. somewhere in there are files that describe your local LAN andthe Internet by resolving tables and vice versa (just plz don't ask me what they're called. I'm gonna set my nameserver up this weekend since I reinstalled my router. Either gonna wait till then or read the bind-HOW-TO. Thats where I took my information.)
The last thing to do is check the Nameserver with whois commands and tell every other machine on the net you have a nameserver ... thats it.
|
|
|
12-05-2001, 12:24 AM
|
#8
|
Member
Registered: May 2001
Location: Germany
Distribution: SuSE 8.1
Posts: 48
Rep:
|
Sorry Dave ...
-> I mixed up two threads yesterday ..(I got a really bad I connegy with packetloss .. for what reason ever.)
If you wanna control your machine form another comuter, get yourself an SSH2 client an start the sshd on your linux box.
the you can shut it down from there .. thats what I do ..
|
|
|
12-05-2001, 09:09 AM
|
#9
|
LQ Newbie
Registered: Dec 2001
Posts: 16
Original Poster
Rep:
|
ive tried mucking round all afternoon and stumbled upon a telnet program which has scripting ... seems to do the trick 
thanks for the replies
dave
|
|
|
12-13-2001, 09:09 PM
|
#10
|
Member
Registered: Dec 2001
Distribution: redhat
Posts: 154
Rep:
|
mp3 server...
i use a linux box as an mp3 player/server in my car...
for safe shutdown.. install a journeling file system (rh7.2 for example uses ext3). if you kill the power, no problem. I also have a separate partition for the mp3 files that i mount read-only. no problem there.
as for telnet... search google for a win telnet client that has scripting support, then use the above mentioned login/script with this shutdown command:
halt -p
which will power down (if your mb supports APM and uses an ATX supply)
|
|
|
All times are GMT -5. The time now is 04:19 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|