Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Editing a Live CD
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
CloseYetFar
Tux's lil' helper
Tux's lil' helper


Joined: 17 Aug 2006
Posts: 102

PostPosted: Sun Jul 08, 2007 7:47 pm    Post subject: Editing a Live CD Reply with quote

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
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54325
Location: 56N 3W

PostPosted: Sun Jul 08, 2007 10:42 pm    Post subject: Reply with quote

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
View user's profile Send private message
johnlu
Apprentice
Apprentice


Joined: 22 Aug 2004
Posts: 242
Location: Córdoba, España

PostPosted: Sun Jun 21, 2009 10:10 pm    Post subject: Reply with quote

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
View user's profile Send private message
johnlu
Apprentice
Apprentice


Joined: 22 Aug 2004
Posts: 242
Location: Córdoba, España

PostPosted: Sun Jun 21, 2009 11:43 pm    Post subject: Reply with quote

I rcdel pwgen and I use chpasswd in /etc/conf.d/local.start
Back to top
View user's profile Send private message
twork
Apprentice
Apprentice


Joined: 28 Jul 2006
Posts: 185

PostPosted: Wed Jun 24, 2009 11:54 pm    Post subject: Reply with quote

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:
Code:
 $ ssh-keygen

...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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum