pau1knopp
02-21-2006, 02:44 PM
I finally have KNOPPIX 4.0.2 setup running from an ISO image where everything starts (and shuts off) automagically. I wanted to make things as simple as possible so that my wife (a former Win98 user that I do not want to upgrade to XP) and I can use the same machine. One of my requirements is to have ssh start automatically using my generated key set each time. Here is how I do that from a script
rm -rf /etc/ssh/*
cp /mnt/hda3/bin/config/ssh/* /etc/ssh/
/etc/init.d/ssh start
echo "knoppix:c0mplexp@ssw0rd" | chpasswd
Now I would like to do the same thing with NX server. I will settle for starting it from an ssh login:
sudo /usr/bin/nxsetup-knoppix
but I would prefer to not even do that unless I have to, as it requires that I manually choose which key set to use.
Here is what I have tried (unsuccessfully) so far (this runs after I start the ssh service sucessfully):
cp /mnt/hda3/bin/config/nxserver.ssh/* /var/lib/nxserver/home/.ssh
/usr/bin/nxserver --start
Any suggestions from the group greatly appreciated,
Regards,
Paul
rm -rf /etc/ssh/*
cp /mnt/hda3/bin/config/ssh/* /etc/ssh/
/etc/init.d/ssh start
echo "knoppix:c0mplexp@ssw0rd" | chpasswd
Now I would like to do the same thing with NX server. I will settle for starting it from an ssh login:
sudo /usr/bin/nxsetup-knoppix
but I would prefer to not even do that unless I have to, as it requires that I manually choose which key set to use.
Here is what I have tried (unsuccessfully) so far (this runs after I start the ssh service sucessfully):
cp /mnt/hda3/bin/config/nxserver.ssh/* /var/lib/nxserver/home/.ssh
/usr/bin/nxserver --start
Any suggestions from the group greatly appreciated,
Regards,
Paul