View previous topic :: View next topic |
Author |
Message |
CloseYetFar Tux's lil' helper
Joined: 17 Aug 2006 Posts: 102
|
Posted: Sun Jul 08, 2007 7:47 pm Post subject: Editing a Live CD |
|
|
Hi, I was wondering if there is way to edit the gentoo live cd. All I want to do is give it a static IP and have sshd startup by default. Basically for use with headless, and keyboard less systems. It does not have to be the gentoo live cd but I would prefer it.
So I just want to be able to put the cd in it and power it on and be able to have ssh access to it.
Thanks |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54325 Location: 56N 3W
|
Posted: Sun Jul 08, 2007 10:42 pm Post subject: |
|
|
CloseYetFar,
Build your own liveCD, the way gentoo does. emerge catalyst and get the build scripts.
When you can reproduce the liveCD, it will be easy to customise it.
You don't say so but you also need to set the root password.
At present, its randomised on boot. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
johnlu Apprentice
Joined: 22 Aug 2004 Posts: 242 Location: Córdoba, España
|
Posted: Sun Jun 21, 2009 10:10 pm Post subject: |
|
|
NeddySeagoon wrote: | You don't say so but you also need to set the root password.
At present, its randomised on boot. |
I'm creating a LiveCD which is able to start a ssh daemon. The only thing I need to do is to set a default known password during boot instead of random one. Any ideas about how I could get it? |
|
Back to top |
|
|
johnlu Apprentice
Joined: 22 Aug 2004 Posts: 242 Location: Córdoba, España
|
Posted: Sun Jun 21, 2009 11:43 pm Post subject: |
|
|
I rcdel pwgen and I use chpasswd in /etc/conf.d/local.start |
|
Back to top |
|
|
twork Apprentice
Joined: 28 Jul 2006 Posts: 185
|
Posted: Wed Jun 24, 2009 11:54 pm Post subject: |
|
|
johnlu wrote: | NeddySeagoon wrote: | You don't say so but you also need to set the root password.
At present, its randomised on boot. |
I'm creating a LiveCD which is able to start a ssh daemon. The only thing I need to do is to set a default known password during boot instead of random one. Any ideas about how I could get it? |
The way I'd do this would be to create an RSA key pair, and use that for root logins instead of a password. That way you can leave the root password scrambled by default in your boot CD.
In the simplest case, where you don't already have an SSH key pair, all you'll have to do is:
...and hit <enter> to choose the default file paths and to leave the key's password blank. Then copy the contents of ~/.ssh/id_rsa.pub to /root/.ssh/authorized_keys on the boot CD image.
The ssh-keygen manpage has more details. |
|
Back to top |
|
|
|