Steven Shiau wrote:
> 
>> I pxe boot the cz-live cd.  this lets me use the stock iso (beta even - 
>> working
>> good) and twiddle kernel prams in my  pxelinux.cfg/default file.
>>
>> What I am hoping for is to boot and then ssh in from my main workstation.  
>> (some
>> of the boxes I want to run cz on are headless.)
>>
>> I don't want to ask for sshd with a static root pw - that would get shot 
>> down,
>> so i won't bother :)
>>
>> What I can see is passing in a URL to dl/run.  something like:
>>
>> early_script=http://serv/cz_early.sh
>>
>>         kernel linux/clonezilla/live/vmlinuz1
>>         append initrd=linux/clonezilla/live/initrd1.img boot=live union=aufs
>> hostname=intrepid  ocs_live_run="ocs-live-general" ocs_live_extra_param=""
>> ocs_live_batch="no" ocs_lang="" ocs_live_keymap="NONE" ip=frommedia nolocales
>> netboot=nfs nfsroot=192.168.1.7:/var/lib/tftpboot/linux/clonezilla/ vga=6
>> early_script=http://serv/cz_early.sh
>>
>> in cz: (very simplified - need some error checking, exec rights, parsing...)
>> wget http://serv/cz_early.sh
>> ./cz_early.sh
>>
>> My cz_early.sh can then do what it takes to setup sshd and keys/passwords.  
>> It
>> would be something like how I do it for debian installer environment 
>> (busybox)
>> which is way more than I would need for cz.
> Yes, your method is possible. But you have to modify live-initramfs.
> Another idea here is to:
> 1. Modify live-initramfs, too. i.e. the file 
> scripts/live-bottom1/0adduser in live-initramfs, let it read the 
> encrypted passwd from boot parameters.
> 2. Put the encrypted password in boot parameters, like 
> user_passwd="InVSQKaCHX/RY" (got from: echo "test" | mkpasswd -s). Then 
> when Debian live boot, this password will be used for user "user".
> 
> I have finished this, and will put another patched live-initramfs in
> http://free.nchc.org.tw/drbl-core/pool/drbl/live-experimental/l/live-initramfs/
> later.
> 
> As for start ssh, I am think to have another option to allow some 
> services to be on. E.g. ocs_daemon_on="ssh"... Just an idea. But this 
> won't need big effort.

For something even more fun: would there be any way to start a vnc 
server in connect mode equivalent to what a fedora/RHEL install will do 
if you specify "vnc vncconnect=ip"_address at the boot prompt or in a 
kickstart file?   It would be nice to embed this in an iso or usb boot 
that you might ship to some remote location where you could have someone 
else use it to boot a machine that would then automatically open its 
display in the listening vncviewer on your desktop.  I know you don't 
need X otherwise and it might take a lot of extra space for the code, 
but there are times when interactive control of remote, headless, 
freshly booted clonezilla client would be very handy.  It would be nice 
for PXE-booted clients too, but there you might have the infrastructure 
for non-interactive cloning and have less need for it.

--
    Les Mikesell
     [EMAIL PROTECTED]


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Clonezilla-live mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/clonezilla-live

Reply via email to