-
Knoppix 3.9 noprompt cheatcode problems
I need to be able to remotely reboot or poweroff knoppix. I want to use the noeject and noprompt cheat codes so that the computer can restart knoppix without using a keyboard and monitor. However, when I use these codes, it gets to the last message: Preparing for reboot... , and then it just stops. It doesn't reboot or do anything else. I don't know if I should change the /etc/init.d/koppix-reboot file, or what. (I'm pretty new to linux and knoppix!)
BTW - I have successfully remastered knoppix and added startup scripts so that ssh and some other code of mine runs on startup. This way, I can just send a reboot command over ssh. I am actually booting off USB - but that shouldn't be the issue. When I try the noprompt/ noeject in any combination on the original, unchanged knoppix 3.9 CD it hangs like I described.
Thanks for your help!
-
I fixed it... I just got the latest version of sysvinit, modified halt.c and remade init.
-
I've also got this problem. Which sysvinit did you download? The 'real' one or the knoppix version? What was the actual version you compiled?
Even better, can you just email me the re-compiled 'init'?
Cheers,
Andy
[email protected]
-
Sorry I took so long to reply. I stopped watching this topic.
Anyway, I donwloaded sysvinit-knoppix-2.84, which was the latest version I could find. I edited halt.c in the src folder:
Code:
if(umount("/cdrom")==0)
{
// write(2,msg1,strlen(msg1));
// tcflush(1,TCIFLUSH);
// getchar();
write(2,msg2,strlen(msg2)); usleep(250000);}
break;
}
All I did was comment out those lines and then do make to build a new version of init.
However, i have a new problem. I had been doing remote reboots that were working, but the keyboard was still attached to the remote computer even though I wasn't using it. Now I've found that if I detach the keyboard and try the same exact thing, Knoppix goes through reboot as it should but then never actually reboots at the end.
Does anyone know a way around this?
Similar Threads
-
By abeverley in forum General Support
Replies: 1
Last Post: 09-16-2005, 11:30 PM
-
By lilsirecho in forum The Lounge
Replies: 5
Last Post: 10-22-2004, 04:42 AM
-
Replies: 3
Last Post: 09-22-2004, 01:40 AM
-
By andymadigan in forum Ideas
Replies: 0
Last Post: 12-20-2003, 10:29 PM
-
By Chribu in forum General Support
Replies: 0
Last Post: 11-14-2003, 02:53 AM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules

INTEL XEON E5-2680V4 SR2N7 2.40GHZ CPU
$11.00

Dell Precision Tower 7810 Xeon E5-2630 v3 @ 2.40GHz , 32GB Ram, NO HDD, NO OS
$239.99

Dell Precision T7820 2x Xeon Silver 4114 2.20GHz 950W No RAM GPU HDD 4x SATA
$350.48

Dell EMC PowerEdge R440 Xeon silver 4215 2.5GHz 16 GB ram 2x 550W PSU No HDD
$275.00

Dell Precision T5820 Workstation 3.70GHz W-2135 No RAM/ GPU/ HDD/ OS
$179.98

Intel Xeon E5-2699 V4 2.20GHz 55M 22-CORES LGA2011-3 Server Processor 145W SR2JS
$84.49

DELL Precision 5820 Workstation Xeon W-2123 3.6ghz/NO RAM/NO SSD/P400 Vid
$139.99

Dell Precision T7820 2x Xeon Gold 6130 2.10GHz 950W No RAM GPU HDD 4x SATA
$374.48

DELL Precision 5820 Intel Xeon W-2120 2.9GHZ NO RAM NO SSD/HDD
$141.85

Dell PowerEdge FX2s + 8x FC430 Blades 16x E5-2630v4 160 Cores Rails No PSU/RAM
$699.00