View previous topic :: View next topic |
Author |
Message |
flipnode Apprentice
Joined: 03 Oct 2004 Posts: 172 Location: USA
|
Posted: Wed May 18, 2005 7:42 pm Post subject: Headless install and SSH new procedure with LIVE CD |
|
|
I just have a comment / question. I have a headless Pentium 1 MMX system. Why can't the live cd automatically start SSH for headless installation purposes? Seems a little silly to have to start SSH blind or go find a monitor to get the installation started.
In my opinion this should be a feature added to the Live CD.
If it detects the hardware, and finds internet connection then it starts SSH. I know this isn't secure, but maybe we can have a different LIVE CD for this procedure and then there will be no problems? _________________ I think Gentoo is great! |
|
Back to top |
|
|
jdgill0 Veteran
Joined: 25 Mar 2003 Posts: 1366 Location: Lexington, Ky -- USA
|
Posted: Wed May 18, 2005 8:08 pm Post subject: |
|
|
flipnode,
What do you plan to do about the random password that is created for root when booting from the liveCD. Even with sshd running, you need to change this password in order to login. At one time the liveCD set a "blank" password, but this is not wise I think for the masses -- can not please everyone I suppose.
Of course, you can create your own liveCD or modify one of the official liveCD's to do what you want. _________________ Vim has excellent syntax highlighting for configuration files: emerge gentoo-syntax
Learn how to use Vim: vimtutor |
|
Back to top |
|
|
flipnode Apprentice
Joined: 03 Oct 2004 Posts: 172 Location: USA
|
Posted: Fri May 20, 2005 4:46 am Post subject: SSH default run on installation of Gentoo |
|
|
what you can do is have passwd root run and set a default password. Then make the installer aware of this password needed to login into the ssh installation system. Also, make the installer aware that for security reasons, the user must!! change the password for root, thus solving the security issue. You could also force a root password change when a ssh connection is detected. _________________ I think Gentoo is great! |
|
Back to top |
|
|
ChojinDSL l33t
Joined: 07 Jul 2003 Posts: 784
|
Posted: Fri May 20, 2005 5:30 pm Post subject: |
|
|
Why is it a security risk to have a known password on a installation cd?
I mean, its part of the install process to choose a unique password anyway, so I kind of fail to see what the bother is about having a livecd with a specific password for headless installs.
Feel free to correct me. After all, Im probably unaware of the obvious, but I just dont see it. |
|
Back to top |
|
|
flipnode Apprentice
Joined: 03 Oct 2004 Posts: 172 Location: USA
|
Posted: Fri May 20, 2005 10:45 pm Post subject: |
|
|
I think this should be done and made into a ISO for download. I would do this myself except I'm not sure of the full process of making a LiveCD; like the Jackass Project.
Anyone have a link for information on this? Also, another problem is network card detection. I know for example that my eepro100 isn't detected during boot, which for some reason is weird.
Usually, I have to connect a monitor for about 5 minutes ..
boot the system from the live cd..
then run these commands
Code: |
#modprobe eepro100
#netsetup eth0 <-- then choose dhcp instead of manually configuring
#/etc/init.d/sshd start
#passwd root
#New Password: blah blah
#Again: blah blah
|
Then I can disconnect the monitor, and its not my monitor..
Seems to me this problem for headless installs can be resolved pretty easily..
I might try and research a few things and do this project myself, anyone want to help? _________________ I think Gentoo is great! |
|
Back to top |
|
|
briklegg n00b
Joined: 21 Aug 2011 Posts: 2
|
Posted: Mon Aug 22, 2011 11:09 pm Post subject: |
|
|
I am also interested in this. I tried a few years back but i ran into the problem of knowing the ip addr it recived. Tried some cat ifconfig > current.ip, then i would try to mail it to me, but i didn't quite know how....tried some sendmail stuff....yea. |
|
Back to top |
|
|
briklegg n00b
Joined: 21 Aug 2011 Posts: 2
|
Posted: Mon Aug 22, 2011 11:12 pm Post subject: |
|
|
ok.....what if i script it to make the connection to mine as a default.....i always know my ipaddress. ....vpn install? |
|
Back to top |
|
|
likewhoa l33t
Joined: 04 Oct 2006 Posts: 778 Location: Brooklyn, New York
|
Posted: Tue Aug 23, 2011 4:38 am Post subject: |
|
|
For a headless install using the minimal installcd you would append the following to your boot options:
Code: | passwd=yourpassword4r00t dosshd | and if network discovery works out the box then you should be able to ssh into the server with 'yourpassword4r00t' as root password.
Hope this helps. |
|
Back to top |
|
|
freke l33t
Joined: 23 Jan 2003 Posts: 976 Location: Somewhere in Denmark
|
Posted: Thu Apr 05, 2018 4:01 pm Post subject: |
|
|
Woah - this solved my problem installing my new APU2C4 board.
Couldn't get serial to work past keybaord-layout selection (output from the board worked - but couldn't send)
So thx for these kernel-parameters (and sry for the necro ) |
|
Back to top |
|
|
gtwrek Tux's lil' helper
Joined: 10 Mar 2017 Posts: 110 Location: San Jose, CA
|
Posted: Thu Apr 05, 2018 6:12 pm Post subject: |
|
|
Actually thanks for this bumping this necro thread.
I think one of the things that told me that Gentoo was for me, as that the plain vanilla install had somewhere around step 3 to optionally start at sshd daemon.
The majority of my systems are headless - so to able to install gentoo through ssh on my various machines was quite a benfit. I could do the install on my home systems while working from the office - occasionally checking the status of the emerge, etc...
I figured there'd probably be a way of avoiding the first few steps involving dragging a monitor / keyboard to the system, and starting the first few steps manually. I'd never bothered to search and figure it out. This thread's the ticket for next time I need to do this.
Thanks,
Mark |
|
Back to top |
|
|
P.Kosunen Guru
Joined: 21 Nov 2005 Posts: 309 Location: Finland
|
Posted: Fri Apr 06, 2018 11:35 am Post subject: |
|
|
SystemRescueCd is good for headless installs.
Bootloader config:
Code: | APPEND setkmap=fi rootpass=password ethx=10.0.0.199/24 dns=10.0.0.1 gateway=10.0.0.1 ... |
Set root password, all interfaces to ip 10.0.0.199 and you can use SSH. |
|
Back to top |
|
|
steveL Watchman
Joined: 13 Sep 2006 Posts: 5153 Location: The Peanut Gallery
|
Posted: Fri May 11, 2018 12:05 pm Post subject: |
|
|
P.Kosunen wrote: | SystemRescueCd is good for headless installs.
Bootloader config:
Code: | APPEND setkmap=fi rootpass=password ethx=10.0.0.199/24 dns=10.0.0.1 gateway=10.0.0.1 ... |
Set root password, all interfaces to ip 10.0.0.199 and you can use SSH. | Oh, lovely.
Now we just need a spin with that as a non-default boot option ("headless") with an editable command-line. |
|
Back to top |
|
|
|