View Full Version : Deleting the Knoppix-Configuration popup at boot
dedis
04-17-2008, 08:15 PM
Hi there,
I'm using Knoppix to take control of a Laptop without screen, keyboard, nor H.D.
I modified /etc/init.d/bootmisc.sh to start SSH and vncserver at boot.
I would like all my configuration to be restored automatically at boot, but I have the "KNOPPIX-CONFIGURATION" pop-up which invite me to confirm that I really want my configuration to be restored. But, how can I say "OK" without keyboard?
I would like to delete this message, and eventually to remaster knoppix witout it. Is it possible? Where can I find this script to modify it?
(sorry if my English is not perfect)
dedis
04-19-2008, 10:58 PM
Ok, I finally found it doing:
$cat -rE 'KNOPPIX-CONFIGURATION' *
(KNOPPIX-CONFIGURATION is the title of the box)
The file is :D :
/usr/sbin/knoppix-image
Now, I just have to hack the code to automatically restore the image.
Any help welcomed :wink:
dedis
04-20-2008, 06:23 PM
Ok, I found the solution, just edit /usr/sbin/knoppix-image,
then change the line 232:
232 if [ "$RC" = "0" ] || [ "$RC" = "255" -a -n "$FORCE" ]; then
to
232 if [ "$RC" = "0" ] || [ "$RC" = "255" ]; then
(just delete ' -a -n "$FORCE"')
and after, remaster Knoppix.
Thx to evrybody :wink:
tsfftf
07-07-2008, 10:59 PM
is it possible to make this sshd and vnc come up before the encryption dialogue?
dedis
07-08-2008, 12:51 AM
WOah....
Someone is answering me in this forum!!!!! you are THE FIRST ....
Incredible, i was waiting that for month...
So, let's make a deal. You put an answer to my topic here:
http://www.knoppix.net/forum/viewtopic.php?t=29027
And I'll make you a kiss, ok?
:lol:
P.S: what do you mean by "encryption dialogue" ?
tsfftf
09-13-2008, 05:50 PM
@dedis: exactly, this forum is dead you ask a question and it takes months to get an answer, if you're lucky.
if you're problem is what i think it is in the thread i responded to, the answer can be found here:
http://www.knoppix.net/forum/viewtopic.php?t=27854
there was a bug in the script, i don't know if it got resolved in the newer versions of knoppix. unfortunately i am not sure what you mean in the thread you linked to.
can you let me know how you managed to start SSH and x11vnc DURING boot???? that would be excellent if i knew. thanks.
dedis
09-13-2008, 09:26 PM
Hi tsfftf,
It's true: the Knoppix community is less or more dead. It's problematic cause Knoppix stay the best Linux Live CD. I've tried many Live CD, most of them are great to test a distro one or two hours; but Knoppix is the lonely one wich can be used as a real system. It is the most reliable, the lonely one reliable in a usb pen (maybe with the Mandriva Flash that I didn't tested).
Concerning my problem of remasterisation of the KNOPPIX 5.3.1, it is OK, I did it. I think I'll edit a web site in the next weeks with a complete turorials and a CD version of the KNOPPIX 5.3.1. If anyone want to help me in this task, help is welcomed (inclued to write it in a correct English).
Concerning SSH and VNC, I do not really remember cause I dit it few monthes ago. It's less or more like that:
you have to modify the file /etc/init.d/bootmisc.sh. Put at the end of the file your own script. The tip is that you have to give a password for the Knoppix user else SSH won't run. So the script you put in bootmisc.sh first gives a password to knoppix user, then it can start ssh, and finally starts vnc. (the script can also create a new user and give him a password) When you edited bootmisc.sh, just save your configuration.
Of course, when you reboot Knoppix, you have to restore your configuration (to start with the modified bootmisc.sh). If you want to do it automatically, you just need to modify the isolinux.cfg file (syslinux.cfg if it is in a pendrive). You'll have to pass the check box (KNOPPIX CONFIGURATION blablabla...). You can hack it changing /usr/bin/knoppix-image like I explained it before.
If you have some problems, ask me here. I think that I'll put a complete tutorial with an iso of the remaster in the next weeks.
tsfftf
09-14-2008, 02:09 PM
that would be super if you could do this... i think my problem may be slightly different than yours but i might be able to achieve the same result. although leaving a plaintext password ain't great security wise!
I have an 256bitAES .img file i want to load at boot. I have fixed the bug in the script so that the image automatically loads, however because it is encrypted I need to be present for it to boot onto init 2, for the command line login.
I'm trying to set this up remotely, so I can use Wake on Lan and SSH to enter the password. I cannot seem to be able to find something that will let me view the screen without X11 being loaded up though obviously.
looking forward to the remaster how to, i'll give you some language help too if you want to polish it up! see ya!
dedis
09-14-2008, 02:30 PM
It is true that my solution is not very safe, but I didn't need a safe solution.
You can put the password in an other file wich is "600 root root".
I think that quiet a lot of people could be interested in a Knoppix 5.3.1 ssh-vnc-boot version, so I'll try to do something like that in the next weeks.
I will say it to you here, so keep your notification on.
@+
tsfftf
09-25-2008, 05:51 PM
@dedis: i found my solution. i will set sshd and x11vnc to start at boot, and rename my encrypted image. that way the auto start script will not detect it (it looks for images that fit Kk+Nn+Oo+Pp+Pp+Ii+Xx.Ii+Mm+Gg).
I noticed that there is a program called knoppix-image from which I can manually mount my encrypted image.
I previously wanted the system to start up so i could ssh into it and have it ready at the right tty so I could tap the password in. given that i can't find a way to do this, and that i'd have to be present in any case to provide a password, manually typing knoppix-image /mnt/sdx/imagename.img isn't exactly much more difficult!. it seems the next most logical thing to do.
keep me posted on your how-to.
Powered by vBulletin® Version 4.2.2 Copyright © 2026 vBulletin Solutions, Inc. All rights reserved.