PDA

View Full Version : HOWTO: Change the "Startpage" when knoppix boots



eadz
11-13-2002, 03:55 AM
In /etc/skel/.kde/Autostart/ there is a file called
showindex.desktop

and in that file is what makes the webpage come up :


Name=KNOPPIX
Exec=kfmclient openProfile webbrowsing /cdrom/KNOPPIX/index_en.html
Type=Application
Icon=html
Terminal=0


you you can see that it loads /cdrom/KNOPPIX/index_en.html

So simply, change the showindex.desktop to a page of your liking.

lnxguy
11-14-2002, 07:02 AM
...Or just do what I did the first few remasters- replace the index_en.html file with your own.

That way, there is no need to modify the KNOPPIX file... Easy!

keVIn :)

eadz
11-14-2002, 07:18 AM
...Or just do what I did the first few remasters- replace the index_en.html file with your own.

That way, there is no need to modify the KNOPPIX file... Easy!


True, but what I was demonstrating is how you can get it to lauch other programs, files etc :)

lnxguy
11-14-2002, 07:45 AM
Yep, I was trying to empasize that you can use my method without chrooting and modifying /KNOPPIX/KNOPPIX.

Once you are into the cloop file, you can modify anything you want- as long as the size is kept down to a 700MB resulting image...

Lotsa fun.

keVIn

vedran
12-20-2002, 07:22 PM
Don't know what version of Knoppix you are using, but here there is no /etc/skel/.kde/Autostart/showindex.desktop.

This file is generated in /etc/X11/Xsession.d/45xsession, it contains this:


if [ -e "$INDEXFILE" ]; then
cat >> $HOME/Desktop/KNOPPIX.desktop <<EOF
[Desktop Entry]
Name=KNOPPIX
Exec=kfmclient openProfile webbrowsing $INDEXFILE
Type=Application
Icon=html
Terminal=0
EOF
ln $HOME/Desktop/KNOPPIX.desktop $HOME/.kde/Autostart/showindex.desktop
fi

mag
12-20-2002, 08:34 PM
if [ -e "$INDEXFILE" ]; then
cat >> $HOME/Desktop/KNOPPIX.desktop <<EOF
[Desktop Entry]
Name=KNOPPIX
Exec=kfmclient openProfile webbrowsing $INDEXFILE
Type=Application
Icon=html
Terminal=0
EOF
ln $HOME/Desktop/KNOPPIX.desktop $HOME/.kde/Autostart/showindex.desktop
fi

from a shell, run 'echo $HOME' and check the output. Replace $HOME in the script above "ln $HOME/Desktop/KNOPPIX.desktop $HOME/.kde/Autostart/showindex.desktop" with the output of that echo command. Then you will be able to edit showindex.desktop file.

mag