Comments on: Debian Installation Over SSH (Lenny RC1) https://princessleia.com/journal/2008/11/debian-installation-over-ssh-lenny-rc1/ Elizabeth Krumbach Joseph's public journal about open source, mainframes, beer, travel, pink gadgets and her life near the city where little cable cars climb halfway to the stars. Sat, 23 May 2015 16:27:14 +0000 hourly 1 https://wordpress.org/?v=6.8.1 By: Brandon https://princessleia.com/journal/2008/11/debian-installation-over-ssh-lenny-rc1/comment-page-1/#comment-1497 Thu, 16 Jul 2009 04:36:30 +0000 http://princessleia.com/journal/?p=1357#comment-1497 Here is what I did after searching around a while and some trial and error.

1. Download 5.0.2 netinst cd

wget http://mirrors.kernel.org/debian-cd/5.0.2/i386/iso-cd/debian-502-i386-netinst.iso

2. Mount ISO to folder called iso

mkdir iso
mount -o loop -t iso9660 debian-502-i386-netinst.iso iso

3. Extract to new folder called iso2

mkdir iso2
rsync -a -H –exclude=TRANS.TBL iso/ iso2

4. Changed menu to load SSH on boot

/iso2# nano isolinux/txt.cfg

REMOVE:
remove “menu default” from “label install”

ADD:
label netinstall
menu label ^Network Install Over SSH
menu default
kernel /install.386/vmlinuz
append auto=true vga=normal file=/cdrom/preseed.cfg initrd=/install.386/initrd.gz locale=en_US console-keymaps-at/keymap=us

CHANGE:
“default install” to “default netinstall”

5: Edit both files below and change “timeout 0” to “timeout 5” to make it auto select netinstall
nano isolinux/isolinux.cfg
nano isolinux/prompt.cfg

5. Create preseed.cfg file

nano iso2/preseed.cfg

PASTE BELOW to preseed file:

#### Contents of the preconfiguration file
### Localization
# Locale sets language and country.
d-i debian-installer/locale select en_US

# Keyboard selection.
d-i console-keymaps-at/keymap select us

### Network configuration
# netcfg will choose an interface that has link if possible. This makes it
# skip displaying a list if there is more than one interface.
d-i netcfg/choose_interface select auto

# Any hostname and domain names assigned from dhcp take precedence over
# values set here. However, setting the values still prevents the questions
# from being shown, even if values come from dhcp.
d-i netcfg/get_hostname string newdebian
d-i netcfg/get_domain string local

# Disable that annoying WEP key dialog.
d-i netcfg/wireless_wep string
# The wacky dhcp hostname that some ISPs use as a password of sorts.
#d-i netcfg/dhcp_hostname string radish

d-i preseed/early_command string anna-install network-console

# Setup ssh password
d-i network-console/password password install
d-i network-console/password-again password install

6. Recreate mf5sum.txt file

md5sum `find -follow -type f` > md5sum.txt

7. Create new iso image

mkisofs -o ../custom_install.iso -r -J -no-emul-boot -boot-load-size 4 -boot-info-table -b isolinux/isolinux.bin -c isolinux/boot.cat ../iso2

and your new image is ready to burn. This autoloads everything and does to SSH screen

Hope this helps.

]]>
By: I.R. Ivanov https://princessleia.com/journal/2008/11/debian-installation-over-ssh-lenny-rc1/comment-page-1/#comment-1491 Fri, 10 Jul 2009 11:33:51 +0000 http://princessleia.com/journal/?p=1357#comment-1491 Hello Ruediger,

Can you please post somewhere your method with preseed.cfg, because i need to do install on remote computer as well.

Regards,
Ivan

]]>
By: Ruediger Lampe https://princessleia.com/journal/2008/11/debian-installation-over-ssh-lenny-rc1/comment-page-1/#comment-1452 Fri, 19 Jun 2009 20:33:18 +0000 http://princessleia.com/journal/?p=1357#comment-1452 This is a nice howto, but…..

I needed a way to do that on a remote machine.
So I take this howto, setup a “preseed.cfg”, put it with a script taken from another website into the “initrd.gz”
and dang after 2 minutes the remotemachine open ssh and I can finish the setup remotely.

But many thx for this howto.
I read long around the web to finish all. But this was the best I found to make it with ssh.

Best Regards and feel free to give a mail. I will send u the final cut. ;-)

Ruediger Lampe

]]>
By: Alejandro https://princessleia.com/journal/2008/11/debian-installation-over-ssh-lenny-rc1/comment-page-1/#comment-1276 Sun, 01 Mar 2009 08:53:02 +0000 http://princessleia.com/journal/?p=1357#comment-1276 Very nice ty for the tip.

]]>
By: Staselig https://princessleia.com/journal/2008/11/debian-installation-over-ssh-lenny-rc1/comment-page-1/#comment-1204 Fri, 09 Jan 2009 07:48:03 +0000 http://princessleia.com/journal/?p=1357#comment-1204 This would be real interesting if you were able to preconfigure it, so that you didn´t ever need a monitor.
You would just pop in a cd on your target, then look at your router/dhcp server what ip it got, and then log-in.

I´m in the clever situation that I gave away my only monitor in the house you see, because I only use laptops, and now, when I´m soon going to upgrade my servers, I have o drag them down to my LCD-TV to get a freaking monitor during install!!!

:/

]]>
By: Aaron https://princessleia.com/journal/2008/11/debian-installation-over-ssh-lenny-rc1/comment-page-1/#comment-932 Mon, 17 Nov 2008 12:11:54 +0000 http://princessleia.com/journal/?p=1357#comment-932 LOVE IT! This begs the question of what else the installer is capable of.

]]>
By: wearetherock https://princessleia.com/journal/2008/11/debian-installation-over-ssh-lenny-rc1/comment-page-1/#comment-931 Mon, 17 Nov 2008 10:52:35 +0000 http://princessleia.com/journal/?p=1357#comment-931 good

]]>
By: RoboNuggie https://princessleia.com/journal/2008/11/debian-installation-over-ssh-lenny-rc1/comment-page-1/#comment-927 Mon, 17 Nov 2008 00:11:40 +0000 http://princessleia.com/journal/?p=1357#comment-927 Wow, that is so cool and useful…. thanks for the tip!

]]>